mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-05 21:00:05 +00:00
Update.
* elf/rtld.c (_dl_start_final): Determine load address to locate ehdr with GL(dl_rtld_map).l_map_start.
This commit is contained in:
parent
31e592f789
commit
475361200b
@ -1,5 +1,8 @@
|
||||
2002-02-05 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* 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.
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user