On Fri, Nov 14, Hannes Reinecke wrote:
hare> gcc -m64 -o test test.c
hare> ldd ./test
/usr/bin/ldd: line 1: /lib/ld.so.1: cannot execute binary file
libc.so.6 => /lib64/libc.so.6 (0x0000010000025000)
/lib/ld64.so.1 => /lib/ld64.so.1 (0x0000010000000000)
hare> gcc -m64 -static -o test test.c
hare> ldd ./test
/usr/bin/ldd: line 1: /lib/ld.so.1: cannot execute binary file
/usr/bin/ldd: line 1: /lib/ld.so.1: cannot execute binary file
ldd: /lib/ld.so.1 exited with unknown exit code (126)
Ok, what you forget to write:
You try to run ldd on a 64bit binary on a 31bit architecture.
This is important, since the 31bit s390 is no biarch architecture
and ldd cannot work.