diff options
| author | Kevin Enderby <enderby@apple.com> | 2014-09-16 18:00:57 +0000 |
|---|---|---|
| committer | Kevin Enderby <enderby@apple.com> | 2014-09-16 18:00:57 +0000 |
| commit | 98c9accacec15eeb284f1ae62cbb81e1f3a411ac (patch) | |
| tree | 7d0f36f634bdfe6484ba59b151ac7d6a6a8b90d1 /llvm/test/tools/llvm-objdump/X86/macho-symbolized-disassembly.test | |
| parent | 6652403c2dc5b20a882efb129bae23cd9c646d49 (diff) | |
| download | bcm5719-llvm-98c9accacec15eeb284f1ae62cbb81e1f3a411ac.tar.gz bcm5719-llvm-98c9accacec15eeb284f1ae62cbb81e1f3a411ac.zip | |
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.
llvm-svn: 217893
Diffstat (limited to 'llvm/test/tools/llvm-objdump/X86/macho-symbolized-disassembly.test')
| -rw-r--r-- | llvm/test/tools/llvm-objdump/X86/macho-symbolized-disassembly.test | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-objdump/X86/macho-symbolized-disassembly.test b/llvm/test/tools/llvm-objdump/X86/macho-symbolized-disassembly.test new file mode 100644 index 00000000000..23b54563078 --- /dev/null +++ b/llvm/test/tools/llvm-objdump/X86/macho-symbolized-disassembly.test @@ -0,0 +1,4 @@ +// RUN: llvm-objdump -d -m %p/Inputs/hello.obj.macho-x86_64 | FileCheck %s + +CHECK: leaq L_.str(%rip), %rax +CHECK: callq _printf |

