[obj2yaml] - Fix a comment. NFC.
[llvm-complete.git] / test / MC / X86 / reloc-directive-elf-64.s
blobe9523d72949f75f6935aae39417368eb50b25c98
1 # RUN: llvm-mc -triple=x86_64-pc-linux-musl %s | FileCheck --check-prefix=PRINT %s
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux-musl %s -o %t
4 # RUN: llvm-readobj -r %t | FileCheck %s
6 # PRINT: .reloc 2, R_X86_64_NONE, .data
7 # PRINT-NEXT: .reloc 1, R_X86_64_NONE, foo+4
8 # PRINT-NEXT: .reloc 0, R_X86_64_NONE, 8
10 # CHECK: 0x2 R_X86_64_NONE .data 0x0
11 # CHECK-NEXT: 0x1 R_X86_64_NONE foo 0x4
12 # CHECK-NEXT: 0x0 R_X86_64_NONE - 0x8
14 .text
15 ret
16 nop
17 nop
18 .reloc 2, R_X86_64_NONE, .data
19 .reloc 1, R_X86_64_NONE, foo+4
20 .reloc 0, R_X86_64_NONE, 8
22 .data
23 .globl foo
24 foo:
25 .word 0
26 .word 0