xref: /llvm-project/lld/test/ELF/linkerscript/eh-frame-merge.s (revision 2bd1ca28c1f1ea4b865790a6299f71496652fd2d)
1# REQUIRES: x86
2# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
3# RUN: echo "SECTIONS { .eh_frame_hdr : { *(.eh_frame_hdr) *(.eh_frame) } }" > %t.script
4# RUN: ld.lld -o %t --eh-frame-hdr --script %t.script %t.o
5# RUN: llvm-readobj -S -u %t | FileCheck %s
6
7# CHECK: Name: .dah
8# CHECK-NOT: Section
9# CHECK: Address: 0x4D
10
11# CHECK: initial_location: 0x4d
12
13.global _start
14_start:
15 nop
16
17.section .dah,"ax",@progbits
18.cfi_startproc
19 nop
20.cfi_endproc
21