This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Error in documentation of $ORIGIN in the ld.so man page
- From: Siddhesh Poyarekar <siddhesh dot poyarekar at gmail dot com>
- To: Michael Kerrisk-manpages <mtk dot manpages at gmail dot com>
- Cc: jwakely at redhat dot com, GNU C Library <libc-alpha at sourceware dot org>, carlos at redhat dot com
- Date: Thu, 9 Oct 2014 23:18:50 +0530
- Subject: Error in documentation of $ORIGIN in the ld.so man page
- Authentication-results: sourceware.org; auth=none
Hi Michael,
The ld.so man page says:
$ORIGIN (or equivalently ${ORIGIN})
This expands to the directory containing the application
executable. Thus, an application located in somedir/app could be
compiled with
which is incorrect since it expands to the directory containing the
DSO and not the application executable. This seems like deliberate
behaviour in dl-object.c, so it needs to be fixed in the man page.
Credit goes to Jon Wakely for finding this[1].
Thanks,
Siddhesh
[1] http://stackoverflow.com/questions/26280738/what-is-the-equivalent-of-loader-path-for-rpath-specification-on-linux/26281226#26281226
--
http://siddhesh.in