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