[llvm] Do not replace dead constant references in metadata with undef
[llvm-project.git] / lld / test / ELF / just-symbols.s
blob974358a00709ccc2ce714d463b3667ba6fcbd47b
1 # REQUIRES: x86
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
4 # RUN: ld.lld %t.o -o %t1.exe -Ttext=0x10000
6 # RUN: ld.lld -just-symbols=%t1.exe -o %t2.exe
7 # RUN: llvm-readelf -s %t2.exe | FileCheck %s
9 # CHECK: 0000000000010000 0 NOTYPE GLOBAL DEFAULT ABS foo
10 # CHECK: 0000000000011001 40 OBJECT GLOBAL DEFAULT ABS bar
12 .globl foo, bar
13 foo:
14 ret
16 .section .data
17 .type bar, @object
18 .size bar, 40
19 bar:
20 .zero 40