1 # RUN: yaml2obj %s -o %t
2 # RUN: llvm-objcopy %t %t2
3 # RUN: llvm-readobj --relocations %t2 | FileCheck %s
14 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
16 AddressAlign: 0x0000000000000010
17 Content: "0000000000000000"
30 AddressAlign: 0x0000000000000010
31 Content: "0000000000000000"
82 # CHECK: Relocations [
83 # CHECK-NEXT: Section (2) .rel.text {
84 # CHECK-NEXT: 0x1000 R_X86_64_PC32 foo
86 # CHECK-NEXT: Section (4) .rel.data {
87 # CHECK-NEXT: 0x2000 R_X86_64_PC32 bar
89 # CHECK-NEXT: Section (5) .rela.data {
90 # CHECK-NEXT: 0x2000 R_X86_64_PC32 barA 0x17
92 # CHECK-NEXT: Section (6) .rela.text {
93 # CHECK-NEXT: 0x1000 R_X86_64_PC32 fooA 0x13