On 11/04/2012 22:46, RW wrote: > > What's the explanation for this: > > > $ ldd /usr/compat/linux/bin/pwd > /usr/compat/linux/bin/pwd: > /tmp > > $ LD_TRACE_LOADED_OBJECTS=1 /usr/compat/linux/bin/pwd > libc.so.6 => /lib/libc.so.6 (0x28076000) > /lib/ld-linux.so.2 (0x28050000) > > From what I've read ldd works through setting LD_TRACE_LOADED_OBJECTS, > and neither form should work on a linux binary.
You might find the audit trail in http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/127276 interesting. There's a patch in there that makes the stock ldd(1) generate reasonable output for Linux binaries, although it seems not to be getting much love from anyone willing to commit it. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey
signature.asc
Description: OpenPGP digital signature