[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / bss.s
blob78cdff619a0002d38d61b147cda59bde9765c47b
1 // REQUIRES: x86
2 // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
3 // RUN: ld.lld %t -o %t2
4 // RUN: llvm-readobj --sections %t2 | FileCheck %s
6 // Test that bss takes no space on disk.
8 // CHECK: Name: .bss
9 // CHECK-NEXT: Type: SHT_NOBITS
10 // CHECK-NEXT: Flags [
11 // CHECK-NEXT: SHF_ALLOC
12 // CHECK-NEXT: SHF_WRITE
13 // CHECK-NEXT: ]
14 // CHECK-NEXT: Address:
15 // CHECK-NEXT: Offset: 0x[[OFFSET:.*]]
16 // CHECK-NEXT: Size: 4
17 // CHECK-NEXT: Link: 0
18 // CHECK-NEXT: Info: 0
19 // CHECK-NEXT: AddressAlignment:
20 // CHECK-NEXT: EntrySize: 0
21 // CHECK-NEXT: }
22 // CHECK-NEXT: Section {
23 // CHECK-NEXT: Index:
24 // CHECK-NEXT: Name:
25 // CHECK-NEXT: Type:
26 // CHECK-NEXT: Flags [
27 // CHECK-NEXT: SHF_MERGE
28 // CHECK-NEXT: SHF_STRINGS
29 // CHECK-NEXT: ]
30 // CHECK-NEXT: Address:
31 // CHECK-NEXT: Offset: 0x[[OFFSET]]
33 .global _start
34 _start:
36 .bss
37 .zero 4