From owner-cvs-src@FreeBSD.ORG Fri Jul 4 09:16:49 2008 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6FE761065674 for ; Fri, 4 Jul 2008 09:16:49 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.184]) by mx1.freebsd.org (Postfix) with ESMTP id EAABC8FC14 for ; Fri, 4 Jul 2008 09:16:48 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: by nf-out-0910.google.com with SMTP id h3so415695nfh.33 for ; Fri, 04 Jul 2008 02:16:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc :in-reply-to:references:content-type:date:message-id:mime-version :x-mailer; bh=uFIO2fsiUd9Qmyr4NWDqBCkcG7316mo7Vhz8UZhkUQI=; b=CqMsOOnMX2Mo3FRSxg1EUzLcp0OOnXU6ClK12tsuIE4hUGxZgZLGZxm9gC19xxlUok n4vrTPCmcFVa8n7FkgUV82bm619c8O4z4cPa2/mvSE9WfgvEtF3zcmtDUDx6Sg6mAg9o 8wqearuMADYEDCVhgiO6yO/feeJjdYVBDQdbo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer; b=Ggx5ajJLveDbZ3w0iv1ryZlVzgKOlUWA7dQh2uGkholYle3r3cvT6l6RQxh0fCU/ie TZwNChuGKeaKsP81FdaNX5EBZj/dkv3yc1xI9/YK7P0gNEfAQzhDVpedpX1I40pGSPtT AT5Jzn0wMLullEVEILKLLlFOIbYbq9/cxus1E= Received: by 10.210.28.4 with SMTP id b4mr140393ebb.40.1215161442708; Fri, 04 Jul 2008 01:50:42 -0700 (PDT) Received: from ?127.0.0.1? ( [217.206.187.80]) by mx.google.com with ESMTPS id q9sm42973gve.5.2008.07.04.01.50.40 (version=SSLv3 cipher=RC4-MD5); Fri, 04 Jul 2008 01:50:41 -0700 (PDT) From: Tom Evans To: Edwin Groothuis In-Reply-To: <200807032238.m63Mc8cZ039421@repoman.freebsd.org> References: <200807032238.m63Mc8cZ039421@repoman.freebsd.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-JaoWvdMHzf6Gbahru/W0" Date: Fri, 04 Jul 2008 09:50:35 +0100 Message-Id: <1215161435.35536.50.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 FreeBSD GNOME Team Port Cc: cvs-src@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/ldd ldd.1 ldd.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jul 2008 09:16:49 -0000 --=-JaoWvdMHzf6Gbahru/W0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, 2008-07-03 at 22:37 +0000, Edwin Groothuis wrote: > edwin 2008-07-03 22:37:51 UTC >=20 > FreeBSD src repository >=20 > Modified files: > usr.bin/ldd ldd.1 ldd.c=20 > Log: > SVN rev 180236 on 2008-07-03 22:37:51Z by edwin > =20 > On 64 bit architectures, you can run 32 bit executables and the rtld ca= n trace them, but ldd(1) doesn't know yet how to detect them: > =20 > [/] root@ed-exigent>ldd `which httpd` > ldd: /usr/local/sbin/httpd: can't read program header > ldd: /usr/local/sbin/httpd: not a dynamic executable > =20 > But... > =20 > [/] root@ed-exigent>LD_32_TRACE_LOADED_OBJECTS=3D=3D1 `which httpd` > libm.so.4 =3D> /lib32//libm.so.4 (0x280c8000) > libaprutil-1.so.2 =3D> /usr/local/lib/libaprutil-1.so.2 (0x280de000= ) > libexpat.so.6 =3D> /usr/local/lib/libexpat.so.6 (0x280f2000) > libiconv.so.3 =3D> /usr/local/lib/libiconv.so.3 (0x28110000) > libapr-1.so.2 =3D> /usr/local/lib/libapr-1.so.2 (0x281fd000) > libcrypt.so.3 =3D> /lib32//libcrypt.so.3 (0x2821d000) > libpthread.so.2 =3D> not found (0x0) > libc.so.6 =3D> /lib32//libc.so.6 (0x28235000) > libpthread.so.2 =3D> /usr/lib32/libpthread.so.2 (0x2830d000) > =20 > Added support in ldd(1) for the LD_32_xxx environment variables if > the architecture of the machine is >32 bits. If we ever go to 128 > bit architectures this excercise will have to be repeated but thanks > to earlier commits today it will be relative simple. > =20 > PR: bin/124906 > Submitted by: edwin > Approved by: bde (mentor) > MFC after: 1 week > =20 > Revision Changes Path > 1.27 +6 -0 src/usr.bin/ldd/ldd.1 > 1.36 +76 -2 src/usr.bin/ldd/ldd.c Hi Edwin, this is fantastic. Can it be MFC'ed to RELENG_6? Cheers Tom --=-JaoWvdMHzf6Gbahru/W0 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEABECAAYFAkht5FcACgkQlcRvFfyds/cw2wCglfTXOHYz6gr9RC1EbrH4Y7Dx lc0An1ztSG3H7LAkfF/Z+8tQj2LwjCEo =MhNJ -----END PGP SIGNATURE----- --=-JaoWvdMHzf6Gbahru/W0--