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