diff options
| author | Kevin Enderby <enderby@apple.com> | 2016-04-27 23:43:00 +0000 |
|---|---|---|
| committer | Kevin Enderby <enderby@apple.com> | 2016-04-27 23:43:00 +0000 |
| commit | 8eccdad5ecf64ee5e7de261879fc78210d7769e1 (patch) | |
| tree | 84f3bdbd50e5ff27075328967425ab100d21b8c2 /llvm/test/tools | |
| parent | 1822af542f49c8efc09fb51f122f58599496b6d1 (diff) | |
| download | bcm5719-llvm-8eccdad5ecf64ee5e7de261879fc78210d7769e1.tar.gz bcm5719-llvm-8eccdad5ecf64ee5e7de261879fc78210d7769e1.zip | |
Fix bugs in llvm-objdump printing the last word for -section in non i386 and x86 files.
Two problems, 1) for the last 4 bytes it would print them as separate bytes not a word
and 2) it would print the same last byte for those bytes less than a word.
rdar://25938224
llvm-svn: 267819
Diffstat (limited to 'llvm/test/tools')
| -rw-r--r-- | llvm/test/tools/llvm-objdump/Inputs/section.macho-armv7 | bin | 232 -> 308 bytes | |||
| -rw-r--r-- | llvm/test/tools/llvm-objdump/macho-sections.test | 6 |
2 files changed, 5 insertions, 1 deletions
diff --git a/llvm/test/tools/llvm-objdump/Inputs/section.macho-armv7 b/llvm/test/tools/llvm-objdump/Inputs/section.macho-armv7 Binary files differindex 456cd3e5f69..810d5c52d33 100644 --- a/llvm/test/tools/llvm-objdump/Inputs/section.macho-armv7 +++ b/llvm/test/tools/llvm-objdump/Inputs/section.macho-armv7 diff --git a/llvm/test/tools/llvm-objdump/macho-sections.test b/llvm/test/tools/llvm-objdump/macho-sections.test index a7e2e81be5d..7b0d89ce505 100644 --- a/llvm/test/tools/llvm-objdump/macho-sections.test +++ b/llvm/test/tools/llvm-objdump/macho-sections.test @@ -4,4 +4,8 @@ # RUN: llvm-objdump -macho -section=__data %p/Inputs/section.macho-armv7 | FileCheck -check-prefix CHECK-ADDR %s -# CHECK-ADDR: 00000004 00000001 +# CHECK-ADDR: 00000004 00000001 00000002 + +# RUN: llvm-objdump -macho -section=__const %p/Inputs/section.macho-armv7 | FileCheck -check-prefix CHECK-BYTES %s + +# CHECK-BYTES: 0000000c 00000003 04 05 06 |

