Date: Thu, 12 Apr 2012 07:57:07 +0100 From: Matthew Seaman <matthew@FreeBSD.org> To: freebsd-questions@FreeBSD.org Subject: Re: LD_TRACE_LOADED_OBJECTS and Linux binaries Message-ID: <4F867CC3.1090304@FreeBSD.org> In-Reply-To: <20120411224648.378f49ec@gumby.homeunix.com> References: <20120411224648.378f49ec@gumby.homeunix.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] 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 [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk+GfMkACgkQ8Mjk52CukIwWGQCdE4IY6vN6mqRmfi9YIWNuGqaR GyQAn2Sv1tKYT2Sxi+2hrASVN20yOsyo =WKUG -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F867CC3.1090304>
