(elf_get_dynamic_info): Also relocate DT_HASH entry if necessary.

This commit is contained in:
Ulrich Drepper 2002-09-27 02:56:54 +00:00
parent ba967ec556
commit 58c9f058a2

View File

@ -67,6 +67,8 @@ elf_get_dynamic_info (struct link_map *l)
{
ElfW(Addr) l_addr = l->l_addr;
if (info[DT_HASH] != NULL)
info[DT_HASH]->d_un.d_ptr += l_addr;
if (info[DT_PLTGOT] != NULL)
info[DT_PLTGOT]->d_un.d_ptr += l_addr;
if (info[DT_STRTAB] != NULL)