]> sourceware.org Git - glibc.git/blobdiff - elf/rtld.c
elf: Implement __libc_early_init
[glibc.git] / elf / rtld.c
index b2ea21c98b89831e0c9d788f38db1acfaf1d67eb..0016db86a7f63f7403e79d5e30878065ffd50825 100644 (file)
@@ -46,6 +46,7 @@
 #include <stackinfo.h>
 #include <not-cancel.h>
 #include <array_length.h>
+#include <libc-early-init.h>
 
 #include <assert.h>
 
@@ -2372,6 +2373,9 @@ ERROR: '%s': cannot process note segment.\n", _dl_argv[0]);
       rtld_timer_accum (&relocate_time, start);
     }
 
+  /* Relocation is complete.  Perform early libc initialization.  */
+  _dl_call_libc_early_init (GL(dl_ns)[LM_ID_BASE].libc_map);
+
   /* Do any necessary cleanups for the startup OS interface code.
      We do these now so that no calls are made after rtld re-relocation
      which might be resolved to different functions than we expect.
This page took 0.031082 seconds and 5 git commands to generate.