2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/relocatable-ehframe.s -o %t2.o
4 # RUN: ld.lld -r %t1.o %t2.o -o %t
5 # RUN: llvm-readobj -r -S --section-data %t | FileCheck %s
8 # CHECK-NEXT: Type: SHT_STRTAB
11 # CHECK-NEXT: Address:
16 # CHECK-NEXT: AddressAlignment: 1
17 # CHECK-NEXT: EntrySize: 0
18 # CHECK-NEXT: SectionData (
19 # CHECK-NEXT: 0000: 005F7374 61727400 |._start.|
22 # CHECK: Relocations [
23 # CHECK-NEXT: Section {{.*}} .rela.eh_frame {
24 # CHECK-NEXT: 0x20 R_X86_64_PC32 foo 0x0
25 # CHECK-NEXT: 0x34 R_X86_64_PC32 bar 0x0
26 # CHECK-NEXT: 0x48 R_X86_64_PC32 dah 0x0
27 # CHECK-NEXT: 0x78 R_X86_64_PC32 foo1 0x0
28 # CHECK-NEXT: 0x8C R_X86_64_PC32 bar1 0x0
29 # CHECK-NEXT: 0xA0 R_X86_64_PC32 dah1 0x0
33 .section foo,"ax",@progbits
38 .section bar,"ax",@progbits
43 .section dah,"ax",@progbits