about summary refs log tree commit diff
path: root/elf
diff options
context:
space:
mode:
Diffstat (limited to 'elf')
-rw-r--r--elf/dynamic-link.h2
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)