ld.so's LD_LIBRARY_PATH/LD_PRELOAD in mixed 32bit and 64bit environment

Alon Bar-Lev alon.barlev@gmail.com
Mon Aug 22 11:55:00 GMT 2011


On Mon, Aug 22, 2011 at 11:40 AM, Alon Bar-Lev <alon.barlev@gmail.com> wrote:
>> But there is no documentation for this, it should appear in ld.so(8).
>> I will prepare a patch for documentation.
>>
>> Alon.

What do you think of this patch?

Human readable is bellow.

Thanks,
Alon.

---

--- ld.so.8.orig  2011-08-22 12:44:10.475794435 +0300
+++ ld.so.8       2011-08-22 12:44:21.813766610 +0300
@@ -90,6 +90,16 @@ LD.SO(8)                   Linux Program
               libraries  at  execution-time.   Similar to the PATH environment
               variable.

+              ld.so understands the strings $ORIGIN , $LIB and  $PLATFORM  (or
+              equivalently ${var}) in a LD_LIBRARY_PATH string.
+
+              LIB is expanded to lib or lib64 based on the architecture.
+
+              ORIGIN  is  expanded to the location of the binary which is cur‐
+              rently loaded.
+
+              PLATFORM is expanded to the running platform.
+
        LD_PRELOAD
               A whitespace-separated list of additional,  user-specified,  ELF
               shared  libraries  to  be loaded before all others.  This can be
-------------- next part --------------
A non-text attachment was scrubbed...
Name: man-pages-master-ld.so.8-vars.diff
Type: plain/text
Size: 646 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20110822/090308f0/attachment.bin>


More information about the Libc-alpha mailing list