forked from OSchip/llvm-project
28 lines
653 B
ArmAsm
28 lines
653 B
ArmAsm
// RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
|
|
// RUN: ld.lld2 %t -o %t2
|
|
// RUN: llvm-readobj -sections %t2 | FileCheck %s
|
|
// REQUIRES: x86
|
|
|
|
// Test that bss takes no space on disk.
|
|
|
|
// CHECK: Name: .bss
|
|
// CHECK-NEXT: Type: SHT_NOBITS
|
|
// CHECK-NEXT: Flags [
|
|
// CHECK-NEXT: SHF_ALLOC
|
|
// CHECK-NEXT: SHF_WRITE
|
|
// CHECK-NEXT: ]
|
|
// CHECK-NEXT: Address: 0x11000
|
|
// CHECK-NEXT: Offset: 0x1000
|
|
// CHECK-NEXT: Size: 4
|
|
// CHECK-NEXT: Link: 0
|
|
// CHECK-NEXT: Info: 0
|
|
// CHECK-NEXT: AddressAlignment:
|
|
// CHECK-NEXT: EntrySize: 0
|
|
// CHECK-NEXT: }
|
|
|
|
.global _start
|
|
_start:
|
|
|
|
.bss
|
|
.zero 4
|