1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-12-24 17:51:17 +03:00

Check the main application only if SHARED is defined

This commit is contained in:
H.J. Lu
2012-10-20 16:16:59 -07:00
parent 335e6931e2
commit f2eed20524
5 changed files with 25 additions and 3 deletions

View File

@@ -189,9 +189,11 @@ dl_open_worker (void *a)
{
const void *caller_dlopen = args->caller_dlopen;
#ifdef SHARED
/* We have to find out from which object the caller is calling.
By default we assume this is the main application. */
call_map = GL(dl_ns)[LM_ID_BASE]._ns_loaded;
#endif
struct link_map *l;
for (Lmid_t ns = 0; ns < GL(dl_nns); ++ns)