2015-09-05 09:02:05 +08:00
|
|
|
// RUN: llvm-mc -n -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj -r -s -sd | FileCheck %s
|
2010-03-13 10:38:00 +08:00
|
|
|
|
|
|
|
.data
|
|
|
|
.long 0
|
|
|
|
|
|
|
|
.text
|
|
|
|
_a:
|
2012-01-18 06:14:39 +08:00
|
|
|
_b:
|
2010-03-13 10:38:00 +08:00
|
|
|
call _a
|
2011-12-08 03:46:59 +08:00
|
|
|
|
|
|
|
.subsections_via_symbols
|
2015-09-05 09:02:05 +08:00
|
|
|
|
|
|
|
// CHECK: Section {
|
|
|
|
// CHECK: Index: 0
|
|
|
|
// CHECK: Name: __data (5F 5F 64 61 74 61 00 00 00 00 00 00 00 00 00 00)
|
|
|
|
// CHECK: Segment: __DATA (5F 5F 44 41 54 41 00 00 00 00 00 00 00 00 00 00)
|
|
|
|
// CHECK: Address: 0x0
|
|
|
|
// CHECK: Size: 0x4
|
|
|
|
// CHECK: Offset: 340
|
|
|
|
// CHECK: Alignment: 0
|
|
|
|
// CHECK: RelocationOffset: 0x0
|
|
|
|
// CHECK: RelocationCount: 0
|
|
|
|
// CHECK: Type: 0x0
|
|
|
|
// CHECK: Attributes [ (0x0)
|
|
|
|
// CHECK: ]
|
|
|
|
// CHECK: Reserved1: 0x0
|
|
|
|
// CHECK: Reserved2: 0x0
|
|
|
|
// CHECK: SectionData (
|
|
|
|
// CHECK: 0000: 00000000 |....|
|
|
|
|
// CHECK: )
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: Relocations [
|
|
|
|
// CHECK: Section __text {
|
|
|
|
// CHECK: 0x1 1 2 0 GENERIC_RELOC_VANILLA 0 __text
|
|
|
|
// CHECK: }
|
|
|
|
// CHECK: ]
|