This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch] ldd failures on multilb architectures


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.

  Thorsten
-- 
Thorsten Kukuk       http://www.suse.de/~kukuk/        kukuk@suse.de
SuSE Linux AG        Deutschherrnstr. 15-19        D-90429 Nuernberg
--------------------------------------------------------------------    
Key fingerprint = A368 676B 5E1B 3E46 CFCE  2D97 F8FD 4E23 56C6 FB4B


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]