(dl_open_worker): Avoid dereferencing map in statically linked code if there might none be found.
This commit is contained in:
parent
36106aabeb
commit
71fa9dfb12
@ -207,8 +207,16 @@ dl_open_worker (void *a)
|
||||
|
||||
found_caller:
|
||||
if (args->nsid == __LM_ID_CALLER)
|
||||
{
|
||||
#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. */
|
||||
if (__builtin_expect (dst != NULL, 0))
|
||||
|
Loading…
x
Reference in New Issue
Block a user