On Sun, Apr 29, 2012 at 7:42 PM, Simon Paillard <[email protected]> wrote:
> (but no more LD_ASSUME_KERNEL).
I just drafted the following for ld.so.8 in man-pages:
LD_ASSUME_KERNEL
(glibc since 2.2.3) Each shared library can inform the
dynamic linker of the minimum kernel ABI version that it
requires. (This requirement is encoded in an ELF note
section that is typically named .note.ABI-tag.) At run
time, the dynamic linker determines the ABI version of
the running kernel and will reject loading shared
libraries that specify minimum ABI versions that exceed
that ABI version.
LD_ASSUME_KERNEL can be used to cause the dynamic linker
to assume that it is running on a system with a differ‐
ent kernel ABI version. For example, the following com‐
mand line causes the dynamic linker to assume it is run‐
ning on Linux 2.2.5 when loading the shared libraries
required by myprog:
$ LD_ASSUME_KERNEL=2.2.5 ./myprog
On systems that provide multiple versions of a shared
library (in different directories in the search path)
that have different minimum kernel ABI version require‐
ments, LD_ASSUME_KERNEL can be used to select the ver‐
sion of the library that is used (dependent on the
directory search order). Historically, the most common
use of the LD_ASSUME_KERNEL feature was to manually
select the older LinuxThreads POSIX threads implementa‐
tion on systems that provided both LinuxThreads and NPTL
(which latter was typically the default on such sys‐
tems).
Look okay?
Michael
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface"; http://man7.org/tlpi/
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]