Hi all
I need some help about binary format executable.
I've developed a console application using Lazarus 2.1.0 and fpc 3.2.1.
My OS is linux and this is uname output:
$ uname -a
Linux myhostname 5.10.23_1 #1 SMP 1615503150 x86_64 GNU/Linux
This is the "file" command output:
$ file ./myprogram
./myprogram: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.4.0, stripped
well...
Deploy (production system) is on a VM running ubuntu, follow uname output:
$ uname -a
Linux myvmhost 5.4.0-72-generic #80-Ubuntu SMP Mon Apr 12 17:35:00 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
and this is the "file" command output on ubuntu:
$ file ./myprogram
./myprogram: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), too many program (2573)
When I run myprogram I get this error:
$ ./myprogram
-bash: ./myprogram: cannot execute binary file: Exec format error
Searching in web I found this error can occur when I run a 64bit application on a 32bit system.
But I think I've both systems using 64bit.
The strange to me is "too many program (2573)" on ubuntu: why a different uname output for the same bin?
Thanks in advance for any help.
nomorelogic