[llvm] Do not replace dead constant references in metadata with undef
[llvm-project.git] / lld / test / ELF / relocatable-local-sym.s
blobb894d6b9900c1aa10d9606da53835fc496270448
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o
3 # RUN: ld.lld -r %t1.o -o %t2.o
4 # RUN: llvm-readobj -r %t2.o | FileCheck %s
6 # CHECK: Relocations [
7 # CHECK-NEXT: Section ({{.*}}) .rela.text {
8 # CHECK-NEXT: 0x3 R_X86_64_PC32 .Lstr 0xFFFFFFFFFFFFFFFC
9 # CHECK-NEXT: }
10 # CHECK-NEXT: ]
12 leaq .Lstr(%rip), %rdi
14 .section .rodata.str1.1,"aMS",@progbits,1
15 .Lstr:
16 .asciz "abc\n"