diff options
author | Ulrich Drepper <drepper@redhat.com> | 2002-09-27 02:56:54 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2002-09-27 02:56:54 +0000 |
commit | 58c9f058a240339cbbb6476d804d80f02a59595f (patch) | |
tree | 49e21e081413a30cbc2272e05aa6df0b7c0468ec /elf/dynamic-link.h | |
parent | ba967ec55672679ae38f7215f5eb84d045b0e6e3 (diff) | |
download | glibc-58c9f058a240339cbbb6476d804d80f02a59595f.tar.gz glibc-58c9f058a240339cbbb6476d804d80f02a59595f.tar.xz glibc-58c9f058a240339cbbb6476d804d80f02a59595f.zip |
(elf_get_dynamic_info): Also relocate DT_HASH entry if necessary.
Diffstat (limited to 'elf/dynamic-link.h')
-rw-r--r-- | elf/dynamic-link.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/elf/dynamic-link.h b/elf/dynamic-link.h index 40367b8974..6a8871ea9c 100644 --- a/elf/dynamic-link.h +++ b/elf/dynamic-link.h @@ -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) |