diff options
author | Michael Trent <mtrent@apple.com> | 2017-12-15 17:57:40 +0000 |
---|---|---|
committer | Michael Trent <mtrent@apple.com> | 2017-12-15 17:57:40 +0000 |
commit | 6469bc65e33d0f2f3e0577a5f82ddb34d310f818 (patch) | |
tree | 9873dfb7e15c02da3a0cdecb5d4bb36f2dde2199 /include | |
parent | 2a6a25b91be31cb54c1f19ecca2b0b462fd097a2 (diff) |
Updated llvm-objdump to display local relocations in Mach-O binaries
Summary:
llvm-objdump's Mach-O parser was updated in r306037 to display external
relocations for MH_KEXT_BUNDLE file types. This change extends the Macho-O
parser to display local relocations for MH_PRELOAD files. When used with
the -macho option relocations will be displayed in a historical format.
All tests are passing for llvm, clang, and lld. llvm-objdump builds without
compiler warnings.
rdar://35778019
Reviewers: enderby
Reviewed By: enderby
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D41199
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@320832 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Object/MachO.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Object/MachO.h b/include/llvm/Object/MachO.h index 59297eaffbd..d0cc40da429 100644 --- a/include/llvm/Object/MachO.h +++ b/include/llvm/Object/MachO.h @@ -329,6 +329,9 @@ public: return make_range(extrel_begin(), extrel_end()); } + relocation_iterator locrel_begin() const; + relocation_iterator locrel_end() const; + void moveRelocationNext(DataRefImpl &Rel) const override; uint64_t getRelocationOffset(DataRefImpl Rel) const override; symbol_iterator getRelocationSymbol(DataRefImpl Rel) const override; |