diff options
Diffstat (limited to 'test/MC/MachO/x86_64-reloc-arithmetic.s')
-rw-r--r-- | test/MC/MachO/x86_64-reloc-arithmetic.s | 42 |
1 files changed, 29 insertions, 13 deletions
diff --git a/test/MC/MachO/x86_64-reloc-arithmetic.s b/test/MC/MachO/x86_64-reloc-arithmetic.s index e82f69b6d477..de524791faa3 100644 --- a/test/MC/MachO/x86_64-reloc-arithmetic.s +++ b/test/MC/MachO/x86_64-reloc-arithmetic.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple x86_64-apple-darwin10 %s -filetype=obj -o - | macho-dump | FileCheck %s +// RUN: llvm-mc -triple x86_64-apple-darwin10 %s -filetype=obj -o - | llvm-readobj -r -t | FileCheck %s // rdar://9906375 .org 0x100 @@ -7,15 +7,31 @@ _bar = _foo + 2 _baz: leaq _bar(%rip), %rcx -// CHECK: ('_relocations', [ -// CHECK-NEXT: # Relocation 0 -// CHECK-NEXT: (('word-0', 0x103), -// CHECK-NEXT: ('word-1', 0x1d000001)) - -// CHECK: # Symbol 1 -// CHECK-NEXT: (('n_strx', 6) -// CHECK-NEXT: ('n_type', 0xe) -// CHECK-NEXT: ('n_sect', 1) -// CHECK-NEXT: ('n_desc', 0) -// CHECK-NEXT: ('n_value', 258) -// CHECK-NEXT: ('_string', '_bar') +// CHECK: File: <stdin> +// CHECK-NEXT: Format: Mach-O 64-bit x86-64 +// CHECK-NEXT: Arch: x86_64 +// CHECK-NEXT: AddressSize: 64bit +// CHECK-NEXT: Relocations [ +// CHECK-NEXT: Section __text { +// CHECK-NEXT: 0x103 1 2 1 X86_64_RELOC_SIGNED 0 _bar +// CHECK-NEXT: } +// CHECK-NEXT: ] +// CHECK-NEXT: Symbols [ +// CHECK-NEXT: Symbol { +// CHECK-NEXT: Name: _foo (11) +// CHECK-NEXT: Type: Section (0xE) +// CHECK-NEXT: Section: __text (0x1) +// CHECK-NEXT: RefType: UndefinedNonLazy (0x0) +// CHECK-NEXT: Flags [ (0x0) +// CHECK-NEXT: ] +// CHECK-NEXT: Value: 0x100 +// CHECK-NEXT: } +// CHECK-NEXT: Symbol { +// CHECK-NEXT: Name: _bar (6) +// CHECK-NEXT: Type: Section (0xE) +// CHECK-NEXT: Section: __text (0x1) +// CHECK-NEXT: RefType: UndefinedNonLazy (0x0) +// CHECK-NEXT: Flags [ (0x0) +// CHECK-NEXT: ] +// CHECK-NEXT: Value: 0x102 +// CHECK-NEXT: } |