[llvm] Do not replace dead constant references in metadata with undef
[llvm-project.git] / lld / test / ELF / linkerscript / wildcards2.s
blob65386e5ad7df713e6dfd9d56daeeb4a3dba6762e
1 # REQUIRES: x86
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
4 ## Check that aabc is not included in text.
5 # RUN: echo "SECTIONS { \
6 # RUN: .text : { *(.abc) } }" > %t.script
7 # RUN: ld.lld -o %t.out --script %t.script %t
8 # RUN: llvm-objdump --section-headers %t.out | \
9 # RUN: FileCheck %s
10 # CHECK: Sections:
11 # CHECK-NEXT: Idx Name Size
12 # CHECK-NEXT: 0 00000000
13 # CHECK-NEXT: 1 .text 00000004
14 # CHECK-NEXT: 2 aabc 00000004
16 .text
17 .section .abc,"ax",@progbits
18 .long 0
20 .text
21 .section aabc,"ax",@progbits
22 .long 0
24 .globl _start
25 _start: