2015-09-01 04:23:57 +08:00
|
|
|
// RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
|
2015-11-18 14:11:01 +08:00
|
|
|
// RUN: ld.lld %t -o %t2
|
2015-09-01 04:23:57 +08:00
|
|
|
// 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: ]
|
2015-09-10 23:41:34 +08:00
|
|
|
// CHECK-NEXT: Address: 0x11000
|
2015-09-01 04:23:57 +08:00
|
|
|
// CHECK-NEXT: Offset: 0x1000
|
|
|
|
// CHECK-NEXT: Size: 4
|
|
|
|
// CHECK-NEXT: Link: 0
|
|
|
|
// CHECK-NEXT: Info: 0
|
2015-11-04 03:56:47 +08:00
|
|
|
// CHECK-NEXT: AddressAlignment:
|
2015-09-01 04:23:57 +08:00
|
|
|
// CHECK-NEXT: EntrySize: 0
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
|
|
|
|
.global _start
|
|
|
|
_start:
|
|
|
|
|
|
|
|
.bss
|
|
|
|
.zero 4
|