From: Ulrich Drepper Date: Thu, 19 Aug 1999 23:19:21 +0000 (+0000) Subject: (_dl_start): Initialize bootstrap_map.l_info to zero. X-Git-Tag: cvs/glibc_2-1-2~110 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=01998b294203780addbf43098616af4327bfe079;p=thirdparty%2Fglibc.git (_dl_start): Initialize bootstrap_map.l_info to zero. --- diff --git a/elf/rtld.c b/elf/rtld.c index 33c26269fc1..9a5d3236580 100644 --- a/elf/rtld.c +++ b/elf/rtld.c @@ -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 ();