mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-24 17:51:17 +03:00
[BZ #116]
Update. * elf/dl-load.c (_dl_map_object): If __RTLD_CALLMAP flag is set, reset loader before the actual loading. * elf/dl-open.c (dl_open_worker): If file name contains no path element determine map of caller. Pass caller map in this case to _dl_map_object. Set __RTLD_CALLMAP in mode. * include/dlfcn.h (__RTLD_CALLMAP): Define. [BZ #116] Patch by Greg Wolodkin <greg@mathworks.com>.
This commit is contained in:
@@ -1914,6 +1914,12 @@ _dl_map_object (struct link_map *loader, const char *name, int preloaded,
|
||||
}
|
||||
}
|
||||
|
||||
/* In case the LOADER information has only been provided to get to
|
||||
the appropriate RUNPATH/RPATH information we do not need it
|
||||
anymore. */
|
||||
if (mode & __RTLD_CALLMAP)
|
||||
loader = NULL;
|
||||
|
||||
if (__builtin_expect (fd, 0) == -1)
|
||||
{
|
||||
if (trace_mode
|
||||
|
||||
Reference in New Issue
Block a user