From owner-freebsd-questions@FreeBSD.ORG Thu Apr 12 06:57:20 2012 Return-Path: Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 26BCC106566B for ; Thu, 12 Apr 2012 06:57:20 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id 869378FC14 for ; Thu, 12 Apr 2012 06:57:19 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [IPv6:2001:8b0:151:1:fa1e:dfff:feda:c0bb]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.5/8.14.5) with ESMTP id q3C6vElo046129 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Thu, 12 Apr 2012 07:57:15 +0100 (BST) (envelope-from matthew@FreeBSD.org) X-DKIM: OpenDKIM Filter v2.5.1 smtp.infracaninophile.co.uk q3C6vElo046129 Authentication-Results: smtp.infracaninophile.co.uk/q3C6vElo046129; dkim=none (no signature); dkim-adsp=none Message-ID: <4F867CC3.1090304@FreeBSD.org> Date: Thu, 12 Apr 2012 07:57:07 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 To: freebsd-questions@FreeBSD.org References: <20120411224648.378f49ec@gumby.homeunix.com> In-Reply-To: <20120411224648.378f49ec@gumby.homeunix.com> X-Enigmail-Version: 1.4 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig8501025BEB5E2C39EC08B3EA" X-Virus-Scanned: clamav-milter 0.97.4 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk Cc: Subject: Re: LD_TRACE_LOADED_OBJECTS and Linux binaries X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Apr 2012 06:57:20 -0000 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--