[llvm] Do not replace dead constant references in metadata with undef
[llvm-project.git] / lld / test / ELF / linkerscript / eh-frame-hdr.s
blob1a1cf8d220c9c9217f0b075be15f46c457033e9d
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
3 # RUN: echo "SECTIONS { .eh_frame_hdr : {} .eh_frame : {} }" > %t.script
4 # RUN: ld.lld -o %t1 --eh-frame-hdr --script %t.script %t
5 # RUN: llvm-objdump -s --section=".eh_frame_hdr" %t1 | FileCheck %s
7 # CHECK: 011b033b 14000000 01000000 4d000000
8 # CHECK-NEXT: 30000000
10 .global _start
11 _start:
12 nop
14 .section .dah,"ax",@progbits
15 .cfi_startproc
16 nop
17 .cfi_endproc