diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2012-10-20 16:16:59 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2012-10-20 16:16:59 -0700 |
commit | f2eed205244da988934624b02f52a9acdcef568e (patch) | |
tree | 2cc3ac2f4993c4bd6d383ed8a4e822e78ec634a5 /elf/dl-open.c | |
parent | 335e6931e2b77627f4bc2eb007c5e15e8dbdeb98 (diff) | |
download | glibc-f2eed205244da988934624b02f52a9acdcef568e.tar.gz glibc-f2eed205244da988934624b02f52a9acdcef568e.tar.xz glibc-f2eed205244da988934624b02f52a9acdcef568e.zip |
Check the main application only if SHARED is defined
Diffstat (limited to 'elf/dl-open.c')
-rw-r--r-- | elf/dl-open.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/elf/dl-open.c b/elf/dl-open.c index 5149e578b1..9c39a34a4b 100644 --- a/elf/dl-open.c +++ b/elf/dl-open.c @@ -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) |