mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
a12e184ad8
This commit accomplish two goals: 1) it's a step forward to deprecate macho-dump, now less than 40 tests rely on it. 2) It tests all the MachO specific features introduced in llvm-readobj in the following commits: r246789, r246665, r246474. While the conversion is mostly mechanical (I double-checked all the tests output one by one, but still), a post-commit review is greatly appreciated. llvm-svn: 246904
34 lines
870 B
ArmAsm
34 lines
870 B
ArmAsm
// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj -t | FileCheck %s
|
|
//
|
|
// Check that the section itself is aligned.
|
|
|
|
.byte 0
|
|
|
|
.zerofill __DATA,__bss,_a,1,0
|
|
.zerofill __DATA,__bss,_b,4,4
|
|
|
|
// CHECK: File: <stdin>
|
|
// CHECK: Format: Mach-O 32-bit i386
|
|
// CHECK: Arch: i386
|
|
// CHECK: AddressSize: 32bit
|
|
// CHECK: Symbols [
|
|
// CHECK: Symbol {
|
|
// CHECK: Name: _a (4)
|
|
// CHECK: Type: Section (0xE)
|
|
// CHECK: Section: __bss (0x2)
|
|
// CHECK: RefType: UndefinedNonLazy (0x0)
|
|
// CHECK: Flags [ (0x0)
|
|
// CHECK: ]
|
|
// CHECK: Value: 0x10
|
|
// CHECK: }
|
|
// CHECK: Symbol {
|
|
// CHECK: Name: _b (1)
|
|
// CHECK: Type: Section (0xE)
|
|
// CHECK: Section: __bss (0x2)
|
|
// CHECK: RefType: UndefinedNonLazy (0x0)
|
|
// CHECK: Flags [ (0x0)
|
|
// CHECK: ]
|
|
// CHECK: Value: 0x20
|
|
// CHECK: }
|
|
// CHECK: ]
|