[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / eh-frame-hdr-augmentation.s
blob4fe6a5fd45e712c72e1d7b0e19ef1be4fbb712f1
1 // REQUIRES: x86
2 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
3 // RUN: ld.lld --hash-style=sysv --eh-frame-hdr %t.o -o %t -shared
4 // RUN: llvm-objdump --dwarf=frames %t | FileCheck %s
6 // CHECK: .eh_frame contents:
8 // CHECK: 00000000 0000001c 00000000 CIE
9 // CHECK-NEXT: Format: DWARF32
10 // CHECK-NEXT: Version: 1
11 // CHECK-NEXT: Augmentation: "zPLR"
12 // CHECK-NEXT: Code alignment factor: 1
13 // CHECK-NEXT: Data alignment factor: -8
14 // CHECK-NEXT: Return address column: 16
15 // CHECK-NEXT: Personality Address: 000000000000127c
16 // CHECK-NEXT: Augmentation data:
18 // CHECK: DW_CFA_def_cfa: reg7 +8
19 // CHECK-NEXT: DW_CFA_offset: reg16 -8
20 // CHECK-NEXT: DW_CFA_nop:
21 // CHECK-NEXT: DW_CFA_nop:
23 /// FIXME Handle relocation correctly
24 // CHECK: 00000020 00000014 00000024 FDE cie=00000000 pc=0000127c...0000127c
25 // CHECK-NEXT: Format: DWARF32
26 // CHECK-NEXT: LSDA Address: 000000000000127c
27 // CHECK-NEXT: DW_CFA_nop:
28 // CHECK-NEXT: DW_CFA_nop:
29 // CHECK-NEXT: DW_CFA_nop:
31 .cfi_startproc
32 .cfi_personality 0x9b, g
33 .cfi_lsda 0x1b, h
34 .cfi_endproc
36 .global g
37 .hidden g
40 .global h
41 .hidden h