Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Feb 2009 18:21:41 -0600
From:      Brooks Davis <brooks@FreeBSD.ORG>
To:        Doug Ambrisko <ambrisko@ambrisko.com>, Kostik Belousov <kostikbel@gmail.com>, arch@FreeBSD.ORG
Subject:   Re: rtld enhancement to add osversion sub-directory search
Message-ID:  <20090213002141.GA47689@lor.one-eyed-alien.net>
In-Reply-To: <20090213001935.GA21752@zim.MIT.EDU>
References:  <20090212201101.GI2723@deviant.kiev.zoral.com.ua> <200902122119.n1CLJOmI092041@ambrisko.com> <20090213001935.GA21752@zim.MIT.EDU>

next in thread | previous in thread | raw e-mail | index | archive | help

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



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