OSDN Git Service

Updated llvm-objdump to display local relocations in Mach-O binaries
authorMichael Trent <mtrent@apple.com>
Tue, 12 Dec 2017 23:53:46 +0000 (23:53 +0000)
committerMichael Trent <mtrent@apple.com>
Tue, 12 Dec 2017 23:53:46 +0000 (23:53 +0000)
commit2aa4a861a6d336f39831c2b2199548d5be444b01
tree10e7790917dc14a1fd1e1f40dd88f374e0692a8c
parent0dace14523dca00761b00e1a96d52a57b416feaf
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.

rdar://35778019

Reviewers: enderby

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D41061

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@320532 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/MachO.h
lib/Object/MachOObjectFile.cpp
test/tools/llvm-objdump/X86/Inputs/macho-preload-x86_64 [new file with mode: 0755]
test/tools/llvm-objdump/X86/macho-preload-relocations.test [new file with mode: 0644]
test/tools/llvm-objdump/X86/macho-relocations.test
test/tools/llvm-objdump/X86/malformed-machos.test
tools/llvm-objdump/MachODump.cpp