diff options
author | Kevin Enderby <enderby@apple.com> | 2017-02-06 18:43:18 +0000 |
---|---|---|
committer | Kevin Enderby <enderby@apple.com> | 2017-02-06 18:43:18 +0000 |
commit | c138da3479ec4f58a4800694d823c77a27e8d7e2 (patch) | |
tree | 3c6ab448980e6030b7ab14510086474e9695b375 /llvm/test/tools | |
parent | 4ee1c952162ee2ba36f41792aa4604a5e5eaecdf (diff) | |
download | bcm5719-llvm-c138da3479ec4f58a4800694d823c77a27e8d7e2.tar.gz bcm5719-llvm-c138da3479ec4f58a4800694d823c77a27e8d7e2.zip |
Fix a bug in llvm-obdump(1) with the -macho and -disassemble options
which caused it to not disassemble the bytes a the start of the section if
the section had symbols and the first symbol was not at the start of the
section.
rdar://30143243
llvm-svn: 294212
Diffstat (limited to 'llvm/test/tools')
-rw-r--r-- | llvm/test/tools/llvm-objdump/X86/Inputs/nofirst-symbol.macho-x86_64 | bin | 0 -> 336 bytes | |||
-rw-r--r-- | llvm/test/tools/llvm-objdump/X86/macho-nofirst-symbol-disassembly.test | 8 |
2 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-objdump/X86/Inputs/nofirst-symbol.macho-x86_64 b/llvm/test/tools/llvm-objdump/X86/Inputs/nofirst-symbol.macho-x86_64 Binary files differnew file mode 100644 index 00000000000..4d1ef25e676 --- /dev/null +++ b/llvm/test/tools/llvm-objdump/X86/Inputs/nofirst-symbol.macho-x86_64 diff --git a/llvm/test/tools/llvm-objdump/X86/macho-nofirst-symbol-disassembly.test b/llvm/test/tools/llvm-objdump/X86/macho-nofirst-symbol-disassembly.test new file mode 100644 index 00000000000..98964ac8047 --- /dev/null +++ b/llvm/test/tools/llvm-objdump/X86/macho-nofirst-symbol-disassembly.test @@ -0,0 +1,8 @@ +// RUN: llvm-objdump -d -m %p/Inputs/nofirst-symbol.macho-x86_64 | FileCheck %s + +CHECK: 0: 90 nop +CHECK: _foo: +CHECK: 1: c3 retq +CHECK: _bar: +CHECK: 2: 90 nop +CHECK: 3: c3 retq |