[llvm] Do not replace dead constant references in metadata with undef
[llvm-project.git] / lld / test / ELF / linkerscript / eh-frame-merge.s
blob7a9c40b5797e8544b605b662577ef0467f555a4c
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
7 # CHECK: Name: .dah
8 # CHECK-NOT: Section
9 # CHECK: Address: 0x4D
11 # CHECK: initial_location: 0x4d
13 .global _start
14 _start:
15 nop
17 .section .dah,"ax",@progbits
18 .cfi_startproc
19 nop
20 .cfi_endproc