[llvm] Do not replace dead constant references in metadata with undef
[llvm-project.git] / lld / test / ELF / linkerscript / emit-relocs-discard.s
blob2f1f6c6b4b0a2ba12d4abc936df5a49009fe9ae9
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
3 # RUN: echo "SECTIONS { /DISCARD/ : { *(.bbb) } }" > %t.script
4 # RUN: ld.lld --emit-relocs --script %t.script %t.o -o %t1
5 # RUN: llvm-readobj -r %t1 | FileCheck %s
7 # CHECK: Relocations [
8 # CHECK-NEXT: ]
10 .section .aaa,"",@progbits
11 .Lfoo:
13 .section .bbb,"",@progbits
14 .long .Lfoo