mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
d0678b9132
Users of getSectionContents shouldn't try to pass in BSS or virtual sections. In all instances, this is a bug in the code calling this routine. N.B. Some COFF implementations (like CL) will mark their BSS sections as taking space on disk. This would confuse COFFObjectFile into thinking the section is larger than the file. llvm-svn: 218549
22 lines
664 B
ArmAsm
22 lines
664 B
ArmAsm
# RUN: llvm-mc -triple powerpc-unknown-unknown -filetype=obj %s | \
|
|
# RUN: llvm-readobj -s -sd | FileCheck %s
|
|
# RUN: llvm-mc -triple powerpc64-unknown-unknown -filetype=obj %s | \
|
|
# RUN: llvm-readobj -s -sd | FileCheck %s
|
|
|
|
.lcomm foo, 16, 16
|
|
|
|
// CHECK: Section {
|
|
// CHECK: Name: .bss
|
|
// CHECK-NEXT: Type: SHT_NOBITS
|
|
// CHECK-NEXT: Flags [
|
|
// CHECK-NEXT: SHF_ALLOC
|
|
// CHECK-NEXT: SHF_WRITE
|
|
// CHECK-NEXT: ]
|
|
// CHECK-NEXT: Address: 0x0
|
|
// CHECK-NEXT: Offset: 0x40
|
|
// CHECK-NEXT: Size: 16
|
|
// CHECK-NEXT: Link: 0
|
|
// CHECK-NEXT: Info: 0
|
|
// CHECK-NEXT: AddressAlignment: 16
|
|
// CHECK-NEXT: EntrySize: 0
|