[PATCH] D132743: [ELF] Add ability to get a symbol by name from the GNU_HASH table section
Joseph Huber via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 26 08:41:03 PDT 2022
jhuber6 created this revision.
jhuber6 added reviewers: MaskRay, jhenderson, JonChesterfield, ronlieb.
Herald added a subscriber: StephenFan.
Herald added a project: All.
jhuber6 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
The `SHT_GNU_HASH` section contains information used to identify symbols
using only their name. Previous support was added for the sys-V hash
table section. This patch expands this support to apply to the GNU hash
table as well. So now this function works with both hash table methods.
Implementation derived from description at
https://flapenguin.me/elf-dt-gnu-hash.
Depends on D132696 <https://reviews.llvm.org/D132696>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D132743
Files:
llvm/include/llvm/Object/ELF.h
llvm/unittests/Object/ELFObjectFileTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132743.455924.patch
Type: text/x-patch
Size: 11029 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220826/7120c524/attachment.bin>
More information about the llvm-commits
mailing list