[obj2yaml] - Fix a comment. NFC.
[llvm-complete.git] / test / MC / MachO / x86_64-reloc-arithmetic.s
blobcbcb77d4194d84200e3be3774ce470b253dbb4c1
1 // RUN: llvm-mc -triple x86_64-apple-darwin10 %s -filetype=obj -o - | llvm-readobj -r --symbols | FileCheck %s
3 // rdar://9906375
4 .org 0x100
5 _foo:
6 _bar = _foo + 2
7 _baz:
8 leaq _bar(%rip), %rcx
10 // CHECK: File: <stdin>
11 // CHECK-NEXT: Format: Mach-O 64-bit x86-64
12 // CHECK-NEXT: Arch: x86_64
13 // CHECK-NEXT: AddressSize: 64bit
14 // CHECK-NEXT: Relocations [
15 // CHECK-NEXT: Section __text {
16 // CHECK-NEXT: 0x103 1 2 1 X86_64_RELOC_SIGNED 0 _bar
17 // CHECK-NEXT: }
18 // CHECK-NEXT: ]
19 // CHECK-NEXT: Symbols [
20 // CHECK-NEXT: Symbol {
21 // CHECK-NEXT: Name: _foo (11)
22 // CHECK-NEXT: Type: Section (0xE)
23 // CHECK-NEXT: Section: __text (0x1)
24 // CHECK-NEXT: RefType: UndefinedNonLazy (0x0)
25 // CHECK-NEXT: Flags [ (0x0)
26 // CHECK-NEXT: ]
27 // CHECK-NEXT: Value: 0x100
28 // CHECK-NEXT: }
29 // CHECK-NEXT: Symbol {
30 // CHECK-NEXT: Name: _bar (6)
31 // CHECK-NEXT: Type: Section (0xE)
32 // CHECK-NEXT: Section: __text (0x1)
33 // CHECK-NEXT: RefType: UndefinedNonLazy (0x0)
34 // CHECK-NEXT: Flags [ (0x200)
35 // CHECK-NEXT: AltEntry (0x200)
36 // CHECK-NEXT: ]
37 // CHECK-NEXT: Value: 0x102
38 // CHECK-NEXT: }