From owner-freebsd-arch@FreeBSD.ORG Fri Feb 13 00:18:40 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 8350F1065698 for ; Fri, 13 Feb 2009 00:18:40 +0000 (UTC) (envelope-from das@FreeBSD.ORG) Received: from zim.MIT.EDU (ZIM.MIT.EDU [18.95.3.101]) by mx1.freebsd.org (Postfix) with ESMTP id 435A38FC0C for ; Fri, 13 Feb 2009 00:18:39 +0000 (UTC) (envelope-from das@FreeBSD.ORG) Received: from zim.MIT.EDU (localhost [127.0.0.1]) by zim.MIT.EDU (8.14.3/8.14.2) with ESMTP id n1D0JadF021808; Thu, 12 Feb 2009 19:19:36 -0500 (EST) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by zim.MIT.EDU (8.14.3/8.14.2/Submit) id n1D0JZ3i021807; Thu, 12 Feb 2009 19:19:35 -0500 (EST) (envelope-from das@FreeBSD.ORG) Date: Thu, 12 Feb 2009 19:19:35 -0500 From: David Schultz To: Doug Ambrisko Message-ID: <20090213001935.GA21752@zim.MIT.EDU> Mail-Followup-To: Doug Ambrisko , Kostik Belousov , arch@FreeBSD.ORG References: <20090212201101.GI2723@deviant.kiev.zoral.com.ua> <200902122119.n1CLJOmI092041@ambrisko.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200902122119.n1CLJOmI092041@ambrisko.com> Cc: Kostik Belousov , arch@FreeBSD.ORG 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 00:18:40 -0000 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=en&a=view > | > | 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 > > That is an interesting feature, however, it almost seems backwards for > me if I understand it correctly. I need old binaries to find the library > it was built with and not new ones based on the base OS. The plus that > I see with their feature is for a library that has been optimized for a > specific type of CPU etc. 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. 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.