2019-05-01 13:27:20 +08:00
|
|
|
// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S | FileCheck %s
|
2010-09-29 22:52:01 +08:00
|
|
|
|
2015-11-04 02:50:51 +08:00
|
|
|
// Test local common construction.
|
|
|
|
// Unlike gas, common symbols are created when found, not at the end of .bss.
|
|
|
|
// In this example it causes .bss to have size 8 instead of 9.
|
2010-09-29 22:52:01 +08:00
|
|
|
|
|
|
|
.local vimvardict
|
|
|
|
.comm vimvardict,1,8
|
|
|
|
.bss
|
|
|
|
.zero 1
|
|
|
|
.align 8
|
|
|
|
|
2013-04-12 12:06:46 +08:00
|
|
|
// CHECK: Section {
|
2015-05-23 05:37:13 +08:00
|
|
|
// CHECK: Name: .bss
|
2013-04-12 12:06:46 +08:00
|
|
|
// CHECK-NEXT: Type:
|
|
|
|
// CHECK-NEXT: Flags [
|
|
|
|
// CHECK: ]
|
|
|
|
// CHECK-NEXT: Address:
|
|
|
|
// CHECK-NEXT: Offset:
|
2015-11-04 02:50:51 +08:00
|
|
|
// CHECK-NEXT: Size: 8
|
2013-04-12 12:06:46 +08:00
|
|
|
// CHECK-NEXT: Link:
|
|
|
|
// CHECK-NEXT: Info:
|
|
|
|
// CHECK-NEXT: AddressAlignment:
|
|
|
|
// CHECK-NEXT: EntrySize:
|
|
|
|
// CHECK-NEXT: }
|