xref: /llvm-project/lld/test/ELF/linkerscript/pt_gnu_eh_frame.s (revision 40a9f2251b75012d1d9ce8f86a834ffef9edfb0f)
1# REQUIRES: x86
2# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
3# RUN: echo "SECTIONS { /DISCARD/ : { *(.eh_frame*) *(.eh_frame_hdr*) } }" > %t.script
4# RUN: ld.lld -o /dev/null --eh-frame-hdr --script %t.script %t
5
6.global _start
7_start:
8 nop
9
10.section .dah,"ax",@progbits
11.cfi_startproc
12 nop
13.cfi_endproc
14