[llvm] Do not replace dead constant references in metadata with undef
[llvm-project.git] / lld / test / ELF / linkerscript / merge-nonalloc.s
blob41d306b24196dc4ede0f23f171b2312487410a37
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
3 # RUN: echo "SECTIONS { .text : { *(.text) *(.nonalloc) } }" > %t.script
4 # RUN: ld.lld -shared -o %t.exe %t.script %t.o
5 # RUN: llvm-objdump --syms %t.exe | FileCheck %s
7 # CHECK: .text 0000000000000000 nonalloc_start
9 _start:
10 nop
12 .section .nonalloc,"",@progbits
13 nonalloc_start:
14 .long 0xcafe