projects
/
platform
/
upstream
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36106aa
)
(dl_open_worker): Avoid dereferencing map in statically linked code if there might...
author
Ulrich Drepper
<drepper@redhat.com>
Mon, 18 Oct 2004 15:37:14 +0000
(15:37 +0000)
committer
Ulrich Drepper
<drepper@redhat.com>
Mon, 18 Oct 2004 15:37:14 +0000
(15:37 +0000)
elf/dl-open.c
patch
|
blob
|
history
diff --git
a/elf/dl-open.c
b/elf/dl-open.c
index
34e2aff
..
2ab1e30
100644
(file)
--- a/
elf/dl-open.c
+++ b/
elf/dl-open.c
@@
-207,7
+207,15
@@
dl_open_worker (void *a)
found_caller:
if (args->nsid == __LM_ID_CALLER)
- args->nsid = call_map->l_ns;
+ {
+#ifndef SHARED
+ /* In statically linked apps there might be no loaded object. */
+ if (call_map == NULL)
+ args->nsid = LM_ID_BASE;
+ else
+#endif
+ args->nsid = call_map->l_ns;
+ }
}
/* Maybe we have to expand a DST. */