Hookup the MCSymbolizer to llvm-objdump’s disassembly for Mach-O files.
authorKevin Enderby <enderby@apple.com>
Tue, 16 Sep 2014 18:00:57 +0000 (18:00 +0000)
committerKevin Enderby <enderby@apple.com>
Tue, 16 Sep 2014 18:00:57 +0000 (18:00 +0000)
commitfdedee296fe8705bb9123998a335afeda2993673
tree5f17b6b23b6bc3c3d76f5af6ec3ee69e0c0e6820
parent3959d4337dc4f44a6a99a39d15cdc00b625d034e
Hookup the MCSymbolizer to llvm-objdump’s disassembly for Mach-O files.

First step done in this commit is to get flush out enough of the
SymbolizerGetOpInfo() routine to symbolic an X86_64 hello world .o and
its loading of the literal string and call to printf.  Also the code to
symbolicate the X86_64_RELOC_SUBTRACTOR relocation and a test is also
added to show a slightly more complicated case.

Next will be to flush out enough of SymbolizerSymbolLookUp() to get the
literal string “Hello world” printed as a comment on the instruction that load
the pointer to it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217893 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-objdump/X86/macho-symbolized-disassembly.test [new file with mode: 0644]
test/tools/llvm-objdump/X86/macho-symbolized-subtractor.test [new file with mode: 0644]
tools/llvm-objdump/MachODump.cpp