[llvm] Do not replace dead constant references in metadata with undef
[llvm-project.git] / lld / test / ELF / linkerscript / multiple-tbss.s
blob2ac0fd84fd94b996e29f8faeb17d5bbba7edd4f4
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
3 # RUN: echo "SECTIONS { }" > %t.script
4 # RUN: ld.lld -T %t.script %t.o -o %t
5 # RUN: llvm-readobj -S -l %t | FileCheck %s
7 # CHECK: Name: .tbss
8 # CHECK-NEXT: Type: SHT_NOBITS
9 # CHECK-NEXT: Flags [
10 # CHECK-NEXT: SHF_ALLOC
11 # CHECK-NEXT: SHF_TLS
12 # CHECK-NEXT: SHF_WRITE
13 # CHECK-NEXT: ]
14 # CHECK-NEXT: Address:
15 # CHECK-NEXT: Offset:
16 # CHECK-NEXT: Size: 8
17 # CHECK-NEXT: Link:
18 # CHECK-NEXT: Info:
19 # CHECK-NEXT: AddressAlignment:
20 # CHECK-NEXT: EntrySize:
21 # CHECK-NEXT: }
22 # CHECK-NEXT: Section {
23 # CHECK-NEXT: Index:
24 # CHECK-NEXT: Name: foo
25 # CHECK-NEXT: Type: SHT_NOBITS
26 # CHECK-NEXT: Flags [
27 # CHECK-NEXT: SHF_ALLOC
28 # CHECK-NEXT: SHF_TLS
29 # CHECK-NEXT: SHF_WRITE
30 # CHECK-NEXT: ]
31 # CHECK-NEXT: Address:
32 # CHECK-NEXT: Offset:
33 # CHECK-NEXT: Size: 1
35 # CHECK: Type: PT_TLS
36 # CHECK-NEXT: Offset:
37 # CHECK-NEXT: VirtualAddress:
38 # CHECK-NEXT: PhysicalAddress:
39 # CHECK-NEXT: FileSize: 0
40 # CHECK-NEXT: MemSize: 9
42 .section .tbss,"awT",@nobits
43 .quad 0
44 .section foo,"awT",@nobits
45 .byte 0