[Patch] ldd failures on multilb architectures

Hannes Reinecke hare@suse.de
Fri Nov 14 09:48:00 GMT 2003


Hi all,

/usr/bin/ldd has some slight problems with multilib architectures. 
First, it tries to execute all eligible 'ld.so', but does not redirect 
the output to /dev/null, so we always get the nasty 'Cannot execute 
binary file' error message.
Second, 'ld.so' might return 1 in case it found a statically linked 
binary. Since ldd only checks for return codes 0 or 2, it fails horribly.
The attached patch fixes this. Please apply.

Please keep me in CC, as I'm not subscribed to this list.

Cheers,

Hannes
-- 
Dr. Hannes Reinecke			hare@suse.de
SuSE Linux AG				S390 & zSeries
Deutschherrnstr. 15-19			+49 911 74053 688
90429 Nürnberg				http://www.suse.de
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ldd-multilib.patch
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20031114/955cac18/attachment.ksh>


More information about the Libc-alpha mailing list