Error in documentation of $ORIGIN in the ld.so man page
Siddhesh Poyarekar
siddhesh.poyarekar@gmail.com
Thu Oct 9 17:48:00 GMT 2014
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
More information about the Libc-alpha
mailing list