[llvm] Do not replace dead constant references in metadata with undef
[llvm-project.git] / lld / test / ELF / linkerscript / data-commands-gc.s
blob0262d7334e3e15ed4c264b288126348957457ef6
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
3 # RUN: echo "SECTIONS { .text : { *(.text*) QUAD(bar) } }" > %t.script
4 # RUN: ld.lld --gc-sections -o %t %t.o --script %t.script
5 # RUN: llvm-objdump -t %t | FileCheck %s
7 # CHECK: 0000000000000008 g .rodata.bar 0000000000000000 bar
9 .section .rodata.bar
10 .quad 0x1122334455667788
11 .global bar
12 bar:
14 .section .text
15 .global _start
16 _start:
17 nop