This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug dynamic-link/17251] RPATH of shared libraries doesn't follow symlinks for $ORIGIN
- From: "carlos at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 05 Jun 2018 03:46:15 +0000
- Subject: [Bug dynamic-link/17251] RPATH of shared libraries doesn't follow symlinks for $ORIGIN
- Auto-submitted: auto-generated
- References: <bug-17251-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=17251
Carlos O'Donell <carlos at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |carlos at redhat dot com
--- Comment #7 from Carlos O'Donell <carlos at redhat dot com> ---
Note that the gABI says:
~~~
Within a string provided by dynamic array entries with the DT_NEEDED or
DT_RUNPATH tags and in pathnames passed as parameters to the dlopen() routine,
a dollar sign ($) introduces a substitution sequence.
...
If the name is ``ORIGIN'', then the substitution sequence is replaced by the
dynamic linker with the absolute pathname of the directory in which the object
containing the substitution sequence originated. Moreover, the pathname will
contain no symbolic links or use of ``.'' or ``..'' components. Otherwise (when
the name is not ``ORIGIN'') the behavior of the dynamic linker is unspecified.
~~~
http://www.sco.com/developers/gabi/latest/ch5.dynamic.html#shobj_dependencies
It seems to me that the entire sequence, including $ORIGIN, is considered a
"pathname", and that "pathname" should contain no symbolic links, ".", or ".."
components.
Therefore following symlinks seems against the specification of $ORIGIN?
--
You are receiving this mail because:
You are on the CC list for the bug.