]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(_dl_start): Initialize bootstrap_map.l_info to zero.
authorUlrich Drepper <drepper@redhat.com>
Thu, 19 Aug 1999 23:19:21 +0000 (23:19 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 19 Aug 1999 23:19:21 +0000 (23:19 +0000)
elf/rtld.c

index 33c26269fc14f6d2cb4abb51c2f3929f5e5590e9..9a5d32365801f326c942d7a3d5cac72d4e6b934c 100644 (file)
@@ -154,6 +154,14 @@ _dl_start (void *arg)
   if (HP_TIMING_INLINE && HP_TIMING_AVAIL)
     HP_TIMING_NOW (start_time);
 
+  /* Partly clean the `bootstrap_map' structure up.  Don't use `memset'
+     since it might nor be built in or inlined and we cannot make function
+     calls at this point.  */
+  for (cnt = 0;
+       cnt < sizeof (bootstrap_map.l_info) / sizeof (bootstrap_map.l_info[0]);
+       ++cnt)
+    bootstrap_map.l_info[cnt] = 0;
+
   /* Figure out the run-time load address of the dynamic linker itself.  */
   bootstrap_map.l_addr = elf_machine_load_address ();