mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-27 21:50:29 +00:00
fceaf762c0
-t is --symbols in llvm-readobj but --section-details (unimplemented) in readelf. The confusing option should not be used since we aim for improving compatibility. Keep just one llvm-readobj -t use case in test/tools/llvm-readobj/symbols.test git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359661 91177308-0d34-0410-b5e6-96231b3b80d8
34 lines
877 B
ArmAsm
34 lines
877 B
ArmAsm
// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --symbols | 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: ]
|