Skip site navigation (1)Skip section navigation (2)
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
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig8501025BEB5E2C39EC08B3EA
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 11/04/2012 22:46, RW wrote:
>=20
> What's the explanation for this:
>=20
>=20
>   $ ldd /usr/compat/linux/bin/pwd
>   /usr/compat/linux/bin/pwd:
>   /tmp
>=20
>   $ LD_TRACE_LOADED_OBJECTS=3D1  /usr/compat/linux/bin/pwd
> 	  libc.so.6 =3D> /lib/libc.so.6 (0x28076000)
> 	  /lib/ld-linux.so.2 (0x28050000)
>=20
> 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=3Dbin/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

--=20
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey



--------------enig8501025BEB5E2C39EC08B3EA
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----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-----

--------------enig8501025BEB5E2C39EC08B3EA--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F867CC3.1090304>