public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
From: Jonathan Nieder <jrnieder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: Petr Baudis <pasky-AlSwsSmVLrQ@public.gmane.org>,
	Aurelien Jarno <aurelien-rXXEIb44qovR7s880joybQ@public.gmane.org>,
	Reuben Thomas <rrt-0NV8xZLkR+A@public.gmane.org>,
	Reinhard Tartler
	<siretart-8fiUuRrzOP0dnm+yROfE0A@public.gmane.org>
Subject: [PATCH 5/6] ld.so.8: document $PLATFORM and $LIB expansion
Date: Thu, 20 Oct 2011 02:15:38 -0500	[thread overview]
Message-ID: <20111020071538.GE11485@elie.hsd1.il.comcast.net> (raw)
In-Reply-To: <20111020070037.GA11392-E4JsH6yu/ca99If2fRKg35Ea+QML8DWm@public.gmane.org>

Wording based on a combination of a patch by Aurelien Jarno,
2007-11-18 (Debian glibc r2686) and comments by Michael Kerrisk
from man-pages-2.55~65 (Document $ORIGIN and rpath, 2007-05-26).

Fixes http://bugs.debian.org/444145

Requested-by: Reinhard Tartler <siretart-8fiUuRrzOP0dnm+yROfE0A@public.gmane.org>
Signed-off-by: Jonathan Nieder <jrnieder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
 man8/ld.so.8 |   78 ++++++++++++++++++++++++++++++++++-----------------------
 1 files changed, 46 insertions(+), 32 deletions(-)

diff --git a/man8/ld.so.8 b/man8/ld.so.8
index a5ecc4b..409876d 100644
--- a/man8/ld.so.8
+++ b/man8/ld.so.8
@@ -84,8 +84,28 @@ support files and programs
 .BR ldconfig (8)
 and
 .IR /etc/ld.so.conf .
-.SS $ORIGIN and rpath
-.PP
+.SH OPTIONS
+.TP
+.B \-\-list
+List all dependencies and how they are resolved.
+.TP
+.B \-\-verify
+Verify that program is dynamically linked and this dynamic linker can handle
+it.
+.TP
+.B \-\-library\-path PATH
+Override
+.B LD_LIBRARY_PATH
+environment variable setting (see below).
+.TP
+.B \-\-inhibit\-rpath LIST
+Ignore RPATH and RUNPATH information in object names in LIST.
+This option is ignored if
+.B ld.so
+is set-user-ID or set-group-ID.
+.SH RPATH TOKEN EXPANSION
+.TP
+.B ORIGIN
 .B ld.so
 understands the string
 .I $ORIGIN
@@ -106,38 +126,32 @@ This facilitates the creation of "turn-key" applications that
 do not need to be installed into special directories,
 but can instead be unpacked into any directory
 and still find their own shared libraries.
-.\" ld.so also understands $LIB, with the same meaning as $ORIGIN/lib,
-.\" it appears.
-.\"
-.\" There is also $PLATFORM.  This is a kind of wildcard
-.\" of directories related at AT_HWCAP.  To get an idea of the
-.\" places that $PLATFORM would match, look at the output of the
-.\" following:
-.\"
-.\" mkdir /tmp/d
-.\" LD_LIBRARY_PATH=/tmp/d strace -e open /bin/date 2>&1 | grep /tmp/d
-.\"
+.TP
+.B PLATFORM
+The string \fB$PLATFORM\fR (or equivalently \fB${PLATFORM}\fR) expands to
+the processor type of the current machine.
+This information is obtained from the kernel via the AT_HWCAP entry
+in the ELF aux vector.
+Please note that on some architectures the Linux kernel doesn't provide
+a platform string to the dynamic linker.
+
+To get an idea of the places that \fB$PLATFORM\fR would match,
+look at the output of the following:
+.in +4n
+.nf
+
+mkdir /tmp/d
+LD_LIBRARY_PATH=/tmp/d strace -e open /bin/date 2>&1 | grep /tmp/d
+
+.fi
+.in
+.TP
+.B LIB
+The string \fB$LIB\fR (or equivalently \fB${LIB}\fR) represents
+the system libraries directory, which is /lib for the native architecture
+on FHS compliant GNU/Linux systems.
 .\" ld.so lets names be abbreviated, so $O will work for $ORIGIN;
 .\" Don't do this!!
-.SH OPTIONS
-.TP
-.B \-\-list
-List all dependencies and how they are resolved.
-.TP
-.B \-\-verify
-Verify that program is dynamically linked and this dynamic linker can handle
-it.
-.TP
-.B \-\-library\-path PATH
-Override
-.B LD_LIBRARY_PATH
-environment variable setting (see below).
-.TP
-.B \-\-inhibit\-rpath LIST
-Ignore RPATH and RUNPATH information in object names in LIST.
-This option is ignored if
-.B ld.so
-is set-user-ID or set-group-ID.
 .SH ENVIRONMENT
 There are four important environment variables.
 .TP
-- 
1.7.7

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2011-10-20  7:15 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-20  7:01 [PATCH/RFC 0/6] ld.so.8: some improvements from Debian Jonathan Nieder
     [not found] ` <20111020070037.GA11392-E4JsH6yu/ca99If2fRKg35Ea+QML8DWm@public.gmane.org>
2011-10-20  7:04   ` [PATCH 1/6] ld.so.8: clarify synopsis Jonathan Nieder
     [not found]     ` <20111020070412.GA11485-E4JsH6yu/ca99If2fRKg35Ea+QML8DWm@public.gmane.org>
2011-10-20 18:08       ` Mike Frysinger
     [not found]         ` <201110201408.34778.vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org>
2011-10-20 18:17           ` Reuben Thomas
     [not found]             ` <CAOnWdojdzzvBFnyE9njnZg+RFoaC8V-HGSnhiBhGeY-tQzCiig-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-10-20 18:18               ` Reuben Thomas
2011-10-20 18:26               ` Mike Frysinger
     [not found]                 ` <201110201426.07094.vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org>
2011-10-20 18:28                   ` Reuben Thomas
     [not found]                     ` <CAOnWdojWj5PYAp7ANX_qmvTJjR9EicSy0yG5LUTumOxQTpmQAQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-10-20 18:51                       ` Mike Frysinger
2011-10-20 18:39           ` Jonathan Nieder
2011-10-20  7:06   ` [PATCH 2/6] ld.so.8: move important information toward the top Jonathan Nieder
2011-10-20  7:09   ` [PATCH 3/6] ld.so.8: document LD_ASSUME_KERNEL Jonathan Nieder
2011-10-20  7:14   ` [PATCH 4/6] ld.so.8: document Debian's /etc/ld.so.nohwcap extension Jonathan Nieder
     [not found]     ` <20111020071424.GD11485-E4JsH6yu/ca99If2fRKg35Ea+QML8DWm@public.gmane.org>
2011-10-20 18:11       ` Mike Frysinger
     [not found]         ` <201110201411.03656.vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org>
2011-10-21  5:30           ` Jonathan Nieder
2011-10-20  7:15   ` Jonathan Nieder [this message]
     [not found]     ` <20111020071538.GE11485-E4JsH6yu/ca99If2fRKg35Ea+QML8DWm@public.gmane.org>
2011-10-20 18:16       ` [PATCH 5/6] ld.so.8: document $PLATFORM and $LIB expansion Mike Frysinger
     [not found]         ` <201110201416.30351.vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org>
2011-10-21  5:25           ` Jonathan Nieder
     [not found]             ` <20111021052528.GF23372-E4JsH6yu/ca99If2fRKg35Ea+QML8DWm@public.gmane.org>
2011-12-11  3:16               ` Mike Frysinger
     [not found]                 ` <201112102216.34565.vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org>
2012-04-16 16:59                   ` Jonathan Nieder
2011-10-20  7:16   ` [PATCH 6/6] ld.so.8: document how hwcaps affect search path Jonathan Nieder
2011-11-07  8:41   ` [PATCH/RFC 0/6] ld.so.8: some improvements from Debian Reuben Thomas
2012-04-16  7:26   ` Michael Kerrisk (man-pages)
     [not found]     ` <CAKgNAkgbcL3deJ4x0DEV==vtiAmYie7+Gw+c=K_dAJhWE4va1Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-04-16 16:58       ` Jonathan Nieder
2012-04-16 17:19         ` Michael Kerrisk (man-pages)
     [not found]           ` <CAKgNAkj0BAKbP6SrohCEG+eeEAZAYkJ6NA9Jvi0hS2j3e19mmg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-04-16 17:24             ` Jonathan Nieder
2012-04-16 18:07               ` Michael Kerrisk (man-pages)
     [not found]                 ` <CAKgNAkggZ1EZyBkkkd4xmJnjt-_kw=F_xb81+--gpQztvyD8oA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-04-16 18:23                   ` Jonathan Nieder
2012-04-16 19:03                   ` [PATCH v2] ld.so.8: Document effect of hwcaps on search path Jonathan Nieder
2012-04-16 19:19                     ` Michael Kerrisk (man-pages)
     [not found]                       ` <CAKgNAkjfcbiDiGqd1PNpdPcUTQBd+8qyrWZj3D6hnzU5vZdecA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-04-16 19:27                         ` [PATCH v3] " Jonathan Nieder
2012-04-16 20:00                           ` Michael Kerrisk (man-pages)
     [not found]                             ` <CAKgNAkiZT4oUV6WKprpc2DWdJMSVQaOEyqL9VmsBub7TMW6HKw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-04-16 20:13                               ` Jonathan Nieder
2012-04-16 20:29                                 ` Michael Kerrisk (man-pages)
2012-04-16 20:39                           ` Michael Kerrisk (man-pages)
2012-04-21 18:04                           ` Mike Frysinger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20111020071538.GE11485@elie.hsd1.il.comcast.net \
    --to=jrnieder-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=aurelien-rXXEIb44qovR7s880joybQ@public.gmane.org \
    --cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=pasky-AlSwsSmVLrQ@public.gmane.org \
    --cc=rrt-0NV8xZLkR+A@public.gmane.org \
    --cc=siretart-8fiUuRrzOP0dnm+yROfE0A@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox