[llvm] Do not replace dead constant references in metadata with undef
[llvm-project.git] / lld / test / ELF / linkerscript / undef.s
blobf352466204c8af42ae89831aa8c66173f405b126
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
4 # RUN: echo "SECTIONS { patatino = 0x1234; }" > %t.script
5 # RUN: ld.lld -o %t1 --script %t.script %t
6 # RUN: llvm-nm %t1 | FileCheck %s
7 # CHECK: 0000000000001234 A patatino
9 .global _start
10 _start:
11 call patatino