This adds a new method to ELFObjectFileBase that returns the symbols and addresses of PLT entries.
This design was suggested by pcc and eugenis in https://reviews.llvm.org/D49383.
Paths
| Differential D50203
Find PLT entries for x86, x86_64, and AArch64 ClosedPublic Authored by jgalenson on Aug 2 2018, 3:40 PM.
Details Summary This adds a new method to ELFObjectFileBase that returns the symbols and addresses of PLT entries. This design was suggested by pcc and eugenis in https://reviews.llvm.org/D49383.
Diff Detail Event TimelineComment Actions I'm not at all familiar with ELF or parsing x86 and ARM, so I'd appreciate feedback on how this works and if there's a way to do it more cleanly (especially the parsing). I'm also not sure how to test this. The two child patches both use the new APIs and have tests for themselves, so perhaps that's good enough?
jgalenson marked 4 inline comments as done. jgalenson added inline comments.
jgalenson marked 3 inline comments as done. This revision is now accepted and ready to land.Aug 16 2018, 1:27 PM Closed by commit rL340610: Find PLT entries for x86, x86_64, and AArch64. (authored by jgalenson). · Explain WhyAug 24 2018, 8:22 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 160597 include/llvm/MC/MCInstrAnalysis.h
include/llvm/Object/ELFObjectFile.h
lib/Object/ELFObjectFile.cpp
lib/Target/AArch64/MCTargetDesc/AArch64MCTargetDesc.cpp
lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp
|
Maybe this should be named JumpSlotReloc?