From owner-freebsd-arch@FreeBSD.ORG Fri Feb 13 01:00:53 2009 Return-Path: Delivered-To: arch@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EE1721065670 for ; Fri, 13 Feb 2009 01:00:53 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (lor.one-eyed-alien.net [69.66.77.232]) by mx1.freebsd.org (Postfix) with ESMTP id 7D9928FC17 for ; Fri, 13 Feb 2009 01:00:53 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.14.3/8.14.3) with ESMTP id n1D0LfiI047730; Thu, 12 Feb 2009 18:21:41 -0600 (CST) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.14.3/8.14.3/Submit) id n1D0Lfpp047729; Thu, 12 Feb 2009 18:21:41 -0600 (CST) (envelope-from brooks) Date: Thu, 12 Feb 2009 18:21:41 -0600 From: Brooks Davis To: Doug Ambrisko , Kostik Belousov , arch@FreeBSD.ORG Message-ID: <20090213002141.GA47689@lor.one-eyed-alien.net> References: <20090212201101.GI2723@deviant.kiev.zoral.com.ua> <200902122119.n1CLJOmI092041@ambrisko.com> <20090213001935.GA21752@zim.MIT.EDU> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="y0ulUmNC+osPPQO6" Content-Disposition: inline In-Reply-To: <20090213001935.GA21752@zim.MIT.EDU> User-Agent: Mutt/1.5.17 (2007-11-01) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (lor.one-eyed-alien.net [127.0.0.1]); Thu, 12 Feb 2009 18:21:42 -0600 (CST) Cc: Subject: Re: rtld enhancement to add osversion sub-directory search X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Feb 2009 01:00:54 -0000 --y0ulUmNC+osPPQO6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 12, 2009 at 07:19:35PM -0500, David Schultz wrote: > On Thu, Feb 12, 2009, Doug Ambrisko wrote: > > Kostik Belousov writes: > > | There is a popular feature, unfortunately, not supported by FreeBSD > > | ld.so, called Dynamic String Tokens, see > > | http://docs.sun.com/app/docs/doc/817-1984/appendixc-4?l=3Den&a=3Dview > > |=20 > > | I have almost abandoned patch that adds support for $ORIGIN, $OSREL, > > | $OSNAME, and $PLATFORM. Quite amazingly, it merged with today CURRENT > > | without serious conflicts. > > | http://people.freebsd.org/~kib/misc/rtld_locks.4.patch > >=20 > > That is an interesting feature, however, it almost seems backwards for > > me if I understand it correctly. I need old binaries to find the libra= ry=20 > > it was built with and not new ones based on the base OS. The plus that= =20 > > I see with their feature is for a library that has been optimized for a= =20 > > specific type of CPU etc. >=20 > The Solaris rtld features are very useful when you want to > export a volume with a bunch of apps over NFS, and the clients are > running different releases or different architectures. It can > probably also solve your problem if you bother to place different > library versions in different directories and set your library > path appropriately. >=20 > As you mention, it's also useful for optimization; people who > install binary releases don't need to tolerate libraries that have > been compiled to run on an 80486 DX. In principle this would allow numeric libraries like ATLAS to be compiled for all the microarchitectures on a heterogeneous cluster. That could have a major impact on some applications. -- Brooks --y0ulUmNC+osPPQO6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iD8DBQFJlL0VXY6L6fI4GtQRAuuQAKCMHuRBG2Xt/eQ+Jt8eTgpcWQ6uUQCgr1hg RI++gtQFy9XbVunfi9i3w2g= =lAGb -----END PGP SIGNATURE----- --y0ulUmNC+osPPQO6--