[PATCH] Honor executables DT_RUNPATH for dlopen
Roland McGrath
roland@redhat.com
Tue Nov 5 20:04:00 GMT 2002
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.
More information about the Libc-hacker
mailing list