aboutsummaryrefslogtreecommitdiff
path: root/elf/dl-open.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/dl-open.c')
-rw-r--r--elf/dl-open.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/elf/dl-open.c b/elf/dl-open.c
index dcc24130fe..a23e65926b 100644
--- a/elf/dl-open.c
+++ b/elf/dl-open.c
@@ -760,8 +760,8 @@ dl_open_worker_begin (void *a)
if (!args->libc_already_loaded)
{
/* dlopen cannot be used to load an initial libc by design. */
- if (GL(dl_ns)[args->nsid].libc_map != NULL)
- GL(dl_ns)[args->nsid].libc_map_early_init (false);
+ struct link_map *libc_map = GL(dl_ns)[args->nsid].libc_map;
+ _dl_call_libc_early_init (libc_map, false);
}
args->worker_continue = true;