[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to use a different ld-linux.so?
From: |
John Reiser |
Subject: |
Re: How to use a different ld-linux.so? |
Date: |
Tue, 29 Jun 2004 08:34:14 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225 |
If re-linking is allowed, then ld-linux.so.2 has a feature that can
help choose libraries dynamically. In search paths used to locate
DT_NEEDED shared libraries, ld-linux.so.2 expands the strings
${ORIGIN}, ${PLATFORM}, and ${LIB} using the shell environment
variables. This is undocumented (at least, I cannot find any),
but unlikely to disappear; it's for "Solaris compatibility".
The source is function _dl_dst_substitute() in file elf/dl-load.c.
"dst" apparently means "dynamic string token".
Re: How to use a different ld-linux.so?, Kasper Dupont, 2004/06/29