This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Error in documentation of $ORIGIN in the ld.so man page


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]