[llvm] Do not replace dead constant references in metadata with undef
[llvm-project.git] / lld / test / ELF / linkerscript / memory2.s
blob7f86ecec29b78881b4e440446a3abce09178d844
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
3 # RUN: echo "MEMORY { ram (rwx) : ORIGIN = 0, LENGTH = 2K } \
4 # RUN: SECTIONS { .text : { *(.text*) } > ram }" > %t.script
5 # RUN: ld.lld -o /dev/null --script %t.script %t
7 .text
8 .global _start
9 _start:
10 .zero 1024
12 .section .text.foo,"ax",%progbits
13 foo:
14 nop