diff options
author | Fangrui Song <maskray@google.com> | 2022-05-02 09:06:39 -0700 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2022-05-02 09:06:39 -0700 |
commit | 8e28aa3a51bf0ef3683f2aed4b5b448744897b66 (patch) | |
tree | 72b9e532be69784543b8705a8c72a36f42d6721c /ChangeLog.old | |
parent | 4e7e4f3b4ba723bef4b1bcff8902ea38162737d9 (diff) | |
download | glibc-8e28aa3a51bf0ef3683f2aed4b5b448744897b66.tar.gz glibc-8e28aa3a51bf0ef3683f2aed4b5b448744897b66.tar.xz glibc-8e28aa3a51bf0ef3683f2aed4b5b448744897b66.zip |
elf: Remove fallback to the start of DT_STRTAB for dladdr
When neither DT_HASH nor DT_GNU_HASH is present, the code scans [DT_SYMTAB, DT_STRTAB). However, there is no guarantee that .dynstr immediately follows .dynsym (e.g. lld typically places .gnu.version after .dynsym). In the absence of a hash table, symbol lookup will always fail (map->l_nbuckets == 0 in dl-lookup.c) as if the object has no symbol, so it seems fair for dladdr to do the same. Reviewed-by: Florian Weimer <fweimer@redhat.com>
Diffstat (limited to 'ChangeLog.old')
0 files changed, 0 insertions, 0 deletions