1 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -s -sr -sd | FileCheck %s
3 # Should use SPARC as the target to test this. However, SPARC does not
14 // CHECK: Name: .eh_frame
15 // CHECK-NEXT: Type: SHT_PROGBITS
16 // CHECK-NEXT: Flags [
17 // CHECK-NEXT: SHF_ALLOC
19 // CHECK-NEXT: Address: 0x0
20 // CHECK-NEXT: Offset: 0x48
21 // CHECK-NEXT: Size: 48
22 // CHECK-NEXT: Link: 0
23 // CHECK-NEXT: Info: 0
24 // CHECK-NEXT: AddressAlignment: 8
25 // CHECK-NEXT: EntrySize: 0
26 // CHECK-NEXT: Relocations [
28 // CHECK-NEXT: SectionData (
29 // CHECK-NEXT: 0000: 14000000 00000000 037A5200 01781001
30 // CHECK-NEXT: 0010: 1B0C0708 90010000 14000000 1C000000
31 // CHECK-NEXT: 0020: 00000000 02000000 00412D00 00000000
36 // CHECK: Name: .rela.eh_frame
37 // CHECK-NEXT: Type: SHT_RELA
38 // CHECK-NEXT: Flags [
40 // CHECK-NEXT: Address: 0x0
41 // CHECK-NEXT: Offset: 0x390
42 // CHECK-NEXT: Size: 24
43 // CHECK-NEXT: Link: 7
44 // CHECK-NEXT: Info: 4
45 // CHECK-NEXT: AddressAlignment: 8
46 // CHECK-NEXT: EntrySize: 24
47 // CHECK-NEXT: Relocations [
48 // CHECK-NEXT: 0x20 R_X86_64_PC32 .text 0x0