ld.so.8: Correct documentation of $ORIGIN

As noted by Siddhesh:

    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

    This 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.

See http://stackoverflow.com/questions/26280738/what-is-the-equivalent-of-loader-path-for-rpath-specification-on-linux/26281226#26281226

Reported-by: Siddhesh Poyarekar <siddhesh.poyarekar@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Jonathan Wakely 2014-10-28 14:47:19 +01:00 committed by Michael Kerrisk
parent ea55bc7b3a
commit d3acae5682
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ understands certain strings in an rpath specification (DT_RPATH or DT_RUNPATH);
.TP .TP
.IR $ORIGIN " (or equivalently " ${ORIGIN} ) .IR $ORIGIN " (or equivalently " ${ORIGIN} )
This expands to This expands to
the directory containing the application executable. the directory containing the program or shared library.
Thus, an application located in Thus, an application located in
.I somedir/app .I somedir/app
could be compiled with could be compiled with