[llvm] Do not replace dead constant references in metadata with undef
[llvm-project.git] / lld / test / ELF / linkerscript / emit-relocs-ehframe-discard.s
blobb83c83a7654e46df85e14d73407284d43ac6b9b0
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o
3 # RUN: echo "SECTIONS { /DISCARD/ : { *(.eh_frame) } }" > %t.script
4 # RUN: ld.lld --emit-relocs --script %t.script %t1.o -o %t
5 # RUN: llvm-objdump --section-headers %t | FileCheck %s
7 # CHECK-NOT: .rela.eh_frame
9 .section .foo,"ax",@progbits
10 .cfi_startproc
11 .cfi_endproc