1// REQUIRES: x86 2 3 .cfi_startproc 4 .cfi_personality 0x1b, bar 5 .cfi_endproc 6 7.global bar 8.hidden bar 9bar: 10 11// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o 12// RUN: llvm-readobj -S --section-data %t.o | FileCheck --check-prefix=OBJ %s 13 14// Check the size of the CIE (0x18 + 4) an FDE (0x10 + 4) 15// OBJ: Name: .eh_frame 16// OBJ-NEXT: Type: 17// OBJ-NEXT: Flags [ 18// OBJ-NEXT: SHF_ALLOC 19// OBJ-NEXT: ] 20// OBJ-NEXT: Address: 21// OBJ-NEXT: Offset: 22// OBJ-NEXT: Size: 23// OBJ-NEXT: Link: 24// OBJ-NEXT: Info: 25// OBJ-NEXT: AddressAlignment: 26// OBJ-NEXT: EntrySize: 27// OBJ-NEXT: SectionData ( 28// OBJ-NEXT: 0000: 18000000 00000000 017A5052 00017810 29// OBJ-NEXT: 0010: 061B0000 00001B0C 07089001 10000000 30// OBJ-NEXT: 0020: 20000000 00000000 00000000 00000000 31// OBJ-NEXT: ) 32 33 34// RUN: ld.lld --hash-style=sysv %t.o -o %t -shared 35// RUN: llvm-readobj -S --section-data %t | FileCheck %s 36 37// Check that the size of the CIE was changed to (0x1C + 4) and the FDE one was 38// changed to (0x14 + 4) 39 40// CHECK: Name: .eh_frame 41// CHECK-NEXT: Type: 42// CHECK-NEXT: Flags 43// CHECK-NEXT: SHF_ALLOC 44// CHECK-NEXT: ] 45// CHECK-NEXT: Address: 46// CHECK-NEXT: Offset: 47// CHECK-NEXT: Size: 48// CHECK-NEXT: Link: 49// CHECK-NEXT: Info: 50// CHECK-NEXT: AddressAlignment: 51// CHECK-NEXT: EntrySize: 52// CHECK-NEXT: SectionData ( 53// CHECK-NEXT: 0000: 1C000000 00000000 017A5052 00017810 54// CHECK-NEXT: 0010: 061B2A10 00001B0C 07089001 00000000 55// CHECK-NEXT: 0020: 14000000 24000000 14100000 00000000 56// CHECK-NEXT: 0030: 00000000 00000000 57// CHECK-NEXT: ) 58