Subject: Re: ld_elf.so proposal for selecting hw/dependent libraries
To: Christos Zoulas <email@example.com>
From: Jason Thorpe <firstname.lastname@example.org>
Date: 12/12/1999 14:06:31
On Sun, 12 Dec 1999 16:42:15 -0500
email@example.com (Christos Zoulas) wrote:
> Here's a brief update on what I am planning to implement for ld_elf.so
> in order to solve the problem of selecting different libraries at runtime
> depending on the capabilities of the hardware.
> In /etc/ld.so.conf, add lines of the form
> <library-name> <sysctl-machdep-name> <value>:<library-name> ...
> For example ld.so.conf could contain:
> m fpu_present 0:msoft 1:m387
Great! This is cool!
How does it handle defaults, tho? I suppose we have library build
infrastructure to take care of this?
Also, what about just portions of libraries? e.g. BWX-optimized string
routines on Alpha?
Also, do the return values have to be ints, or can they be strings?
I'm thinking of the Alpha case again, here. We can't just key off
"21164" ... BWX appears in "21164A" (EV56), "21164PC" (PCA56), and
-- Jason R. Thorpe <firstname.lastname@example.org>