Re: executable RPATH question
Steve Ellcey <[email protected]>
| Newsgroups | gmane.comp.lib.uclibc.general |
|---|---|
| Message-ID | <1423256407.27046.10.camel@ubuntu-sellcey> |
On Fri, 2015-02-06 at 10:30 +0100, Bernhard Reutner-Fischer wrote: > On February 6, 2015 8:23:27 AM GMT+01:00, Waldemar Brodkorb <[email protected]> wrote: > >> > >> Original discussion: > >> > >> http://lists.uclibc.org/pipermail/uclibc/2011-September/045757.html > > > >Do you have a patch which applies to master? > >Including an option... > > I still think this is wrong. Just set the RUNPATH of the first lib correctly (and fix glibc): > > http://www.sco.com/developers/gabi/latest/ch5.dynamic.html#shobj_dependencies > > The set of directories specified by a given DT_RUNPATH entry is used to find only the immediate dependencies of the executable or shared object containing the DT_RUNPATH entry. That is, it is used only for those dependencies contained in the DT_NEEDED entries of the dynamic structure containing the DT_RUNPATHentry, itself. One object's DT_RUNPATHentry does not affect the search for any other object's dependencies. I don't think I would have any chance of getting glibc to change their behavior and I am not disagreeing with your claim that the current behavior is correct. I just think people might want the alternative behavior and it would be nice to allow it as an option (but not by default). Steve Ellcey [email protected]