This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


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

Re: [PATCH] Honor executables DT_RUNPATH for dlopen


That change is not correct.  The ELF spec says that DT_RUNPATH applies to
"only the immediate dependencies of the executable or shared object
containing the DT_RUNPATH entry."  I'm not aware of anything that specifies
dlopen in enough detail that it couldn't do whatever it likes.  But it
seems consistent with the spec for dlopen not to be affected by any
DT_RUNPATH (except for dependencies being affected by a DT_RUNPATH within a
dlopen'd dependent object).  The application or library can use whatever
prefix it put in its DT_RUNPATH on the strings it passes to dlopen directly.


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