1 # RUN: yaml2obj %s > %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"
78 # CHECK: Relocations [
79 # CHECK-NEXT: Section (2) .rel.text {
80 # CHECK-NEXT: 0x1000 R_X86_64_PC32 foo 0x0
82 # CHECK-NEXT: Section (4) .rel.data {
83 # CHECK-NEXT: 0x2000 R_X86_64_PC32 bar 0x0
85 # CHECK-NEXT: Section (5) .rela.data {
86 # CHECK-NEXT: 0x2000 R_X86_64_PC32 barA 0x17
88 # CHECK-NEXT: Section (6) .rela.text {
89 # CHECK-NEXT: 0x1000 R_X86_64_PC32 fooA 0x13