r2686 - in glibc-package/branches/glibc-2.7/debian: . local/manpages
Author: aurel32
Date: 2007-11-18 21:13:00 +0000 (Sun, 18 Nov 2007)
New Revision: 2686
Modified:
glibc-package/branches/glibc-2.7/debian/changelog
glibc-package/branches/glibc-2.7/debian/local/manpages/ld.so.8
Log:
* debian/local/manpages/ld.so.8: document $ORIGIN, $PLATFORM and $LIB
features. Closes: #444145.
Modified: glibc-package/branches/glibc-2.7/debian/changelog
===================================================================
--- glibc-package/branches/glibc-2.7/debian/changelog 2007-11-18 19:09:27 UTC (rev 2685)
+++ glibc-package/branches/glibc-2.7/debian/changelog 2007-11-18 21:13:00 UTC (rev 2686)
@@ -122,8 +122,10 @@
- sysdeps/alpha.mk: add a new pass for ev67 flavour.
* debian/local/manpages/iconv.1: document //translit and //ignore
options. Closes: #451304.
- * debian/local/manpages/getent.1: documents exit codes. Closes:
+ * debian/local/manpages/getent.1: document exit codes. Closes:
#445631.
+ * debian/local/manpages/ld.so.8: document $ORIGIN, $PLATFORM and $LIB
+ features. Closes: #444145.
[ Petr Salinger]
* any/local-linuxthreads-unwind.diff: provide unwind-resume routine for
@@ -147,7 +149,7 @@
[ Samuel Thibault ]
* hurd-i386/submitted-ptr-mangle.diff: Define PTR_MANGLE for assembly.
- -- Aurelien Jarno <aurel32@debian.org> Sun, 18 Nov 2007 20:08:27 +0100
+ -- Aurelien Jarno <aurel32@debian.org> Sun, 18 Nov 2007 22:11:35 +0100
glibc (2.6.1-6) unstable; urgency=low
Modified: glibc-package/branches/glibc-2.7/debian/local/manpages/ld.so.8
===================================================================
--- glibc-package/branches/glibc-2.7/debian/local/manpages/ld.so.8 2007-11-18 19:09:27 UTC (rev 2685)
+++ glibc-package/branches/glibc-2.7/debian/local/manpages/ld.so.8 2007-11-18 21:13:00 UTC (rev 2686)
@@ -119,11 +119,32 @@
minimum OS ABI version is needed. The information about the minimum OS ABI version is encoded in
a ELF note section usually named .note.ABI-tag. This is used to determine which library to load
when multiple version of the same library is installed on the system.
-
The
.B LD_ASSUME_KERNEL
environment variable overrides the kernel version used by the dynamic linker to determine which
library to load.
+.SH RPATH TOKEN EXPANSION
+The runtime linker provides a number of tokens that can be used in an rpath
+specification (\fBDT_RPATH\fR or \fBDT_RUNPATH\fR).
+.TP
+.B $ORIGIN
+ld.so understands the string \fB$ORIGIN\fR (or equivalently \fB${ORIGIN}\fR)
+in an rpath specification to mean the directory containing the application
+executable. Thus, an application located in somedir/app could be compiled
+with gcc -Wl,-rpath,'$ORIGIN/../lib' so that it finds an associated shared
+library in somedir/lib no matter where somedir is located in the directory
+hierarchy.
+.TP
+.B $PLATFORM
+The string \fB$PLATFORM\fR (or equivalently \fB${PLATFORM}\fR) in an rpath
+specifcation expands to the processor type of the current machine. Please note
+that on some architectures the Linux kernel doesn't provide a platform
+string to the dynamic linker.
+.TP
+.B $LIB
+The string \fB$LIB\fR (or equivalently \fB${LIB}\fR) in an rpath corresponds
+to the system libraries directory, which is /lib for the native architecture
+on FHS compliant GNU/Linux systems.
.SH FILES
.PD 0
.TP 20
Reply to: