From: Ulrich Drepper Date: Tue, 5 Feb 2002 19:39:42 +0000 (+0000) Subject: Update. X-Git-Tag: cvs/glibc-2-3~1146 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=475361200b40615d2d459c8d6a7544fdf4f9533a;p=thirdparty%2Fglibc.git Update. * elf/rtld.c (_dl_start_final): Determine load address to locate ehdr with GL(dl_rtld_map).l_map_start. --- diff --git a/ChangeLog b/ChangeLog index f26b51354e7..6492b832202 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2002-02-05 Ulrich Drepper + * elf/rtld.c (_dl_start_final): Determine load address to locate + ehdr with GL(dl_rtld_map).l_map_start. + * po/ca.po: Update from translation team. * elf/rtld.c (dl_main): Read PT_TLS entry of the executable. diff --git a/elf/rtld.c b/elf/rtld.c index 64cb7cb49b3..3241cc9d102 100644 --- a/elf/rtld.c +++ b/elf/rtld.c @@ -252,8 +252,8 @@ _dl_start_final (void *arg, struct link_map *bootstrap_map_p, #if USE_TLS /* Get the dynamic linkers program header. */ - ehdr = (ElfW(Ehdr) *) bootstrap_map_p->l_addr; - phdr = (ElfW(Phdr) *) (bootstrap_map_p->l_addr + ehdr->e_phoff); + ehdr = (ElfW(Ehdr) *) GL(dl_rtld_map).l_map_start; + phdr = (ElfW(Phdr) *) (GL(dl_rtld_map).l_map_start + ehdr->e_phoff); for (cnt = 0; cnt < ehdr->e_phnum; ++cnt) if (phdr[cnt].p_type == PT_TLS) {