This is the mail archive of the glibc-bugs@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]

[Bug dynamic-link/17251] RPATH of shared libraries doesn't follow symlinks for $ORIGIN


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.

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