aboutsummaryrefslogtreecommitdiff
path: root/elf/get-dynamic-info.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2018-02-05 14:58:39 -0800
committerH.J. Lu <hjl.tools@gmail.com>2018-02-05 14:58:57 -0800
commit6a5cac49b6eeb60abc891f9e28908da733766630 (patch)
tree19a0e8045c6c664667860a8e1e269e7b5f536e22 /elf/get-dynamic-info.h
parentb44e0dfbacecd0f84ebfa942e6d6c0153981680e (diff)
downloadglibc-6a5cac49b6eeb60abc891f9e28908da733766630.zip
glibc-6a5cac49b6eeb60abc891f9e28908da733766630.tar.gz
glibc-6a5cac49b6eeb60abc891f9e28908da733766630.tar.bz2
Use ADDRIDX with DT_GNU_HASH
The only differences in ld.so are line numbers for asserts. Reviewed-by: Jonathan Nieder <jrnieder@gmail.com> * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH. * elf/dl-lookup.c (_dl_setup_hash): Likewise. * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
Diffstat (limited to 'elf/get-dynamic-info.h')
-rw-r--r--elf/get-dynamic-info.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/elf/get-dynamic-info.h b/elf/get-dynamic-info.h
index d1bbd81..4b1ea7c 100644
--- a/elf/get-dynamic-info.h
+++ b/elf/get-dynamic-info.h
@@ -110,8 +110,7 @@ elf_get_dynamic_info (struct link_map *l, ElfW(Dyn) *temp)
# endif
ADJUST_DYN_INFO (DT_JMPREL);
ADJUST_DYN_INFO (VERSYMIDX (DT_VERSYM));
- ADJUST_DYN_INFO (DT_ADDRTAGIDX (DT_GNU_HASH) + DT_NUM + DT_THISPROCNUM
- + DT_VERSIONTAGNUM + DT_EXTRANUM + DT_VALNUM);
+ ADJUST_DYN_INFO (ADDRIDX (DT_GNU_HASH));
# undef ADJUST_DYN_INFO
assert (cnt <= DL_RO_DYN_TEMP_CNT);
}