[llvm] Do not replace dead constant references in metadata with undef
[llvm-project.git] / lld / test / ELF / linkerscript / sort-non-script.s
blob7cb31304596682bb904ff351913fe4925dc0ae11
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
4 # RUN: echo "SECTIONS { foo : {*(foo)} }" > %t.script
5 # RUN: ld.lld --hash-style=sysv -o %t --script %t.script %t.o -shared
6 # RUN: llvm-readelf -S %t | FileCheck %s
8 # CHECK: .dynsym {{.*}} A
9 # CHECK-NEXT: .hash {{.*}} A
10 # CHECK-NEXT: .dynstr {{.*}} A
11 # CHECK-NEXT: .text {{.*}} AX
12 # CHECK-NEXT: .dynamic {{.*}} WA
13 # CHECK-NEXT: foo {{.*}} WA
15 .section foo, "aw"
16 .byte 0