@ RUN: llvm-mc -n -triple armv7-apple-darwin10 %s -filetype=obj -o %t.obj
@ RUN: llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols < %t.obj - > %t.dump
@ RUN: FileCheck < %t.dump %s
.syntax unified
.text
_f0:
bl _printf
_f1:
bl _f0
.data
_d0:
Ld0_0:
.long Lsc0_0 - Ld0_0
.section __TEXT,__cstring,cstring_literals
Lsc0_0:
.long 0
.subsections_via_symbols
@ CHECK: File: <stdin>
@ CHECK: Format: Mach-O arm
@ CHECK: Arch: arm
@ CHECK: AddressSize: 32bit
@ CHECK: MachHeader {
@ CHECK: Magic:
@ CHECK: CpuType:
@ CHECK: CpuSubType:
@ CHECK: FileType:
@ CHECK: NumOfLoadCommands: 4
@ CHECK: SizeOfLoadCommands: 380
@ CHECK: Flags
@ CHECK: }
@ CHECK: Sections
@ CHECK: Relocations
@ CHECK: Symbols
@ CHECK: Indirect Symbols {
@ CHECK: Number: 0
@ CHECK: Symbols
@ CHECK: }
@ CHECK: Segment {
@ CHECK: Cmd: LC_SEGMENT
@ CHECK: Name:
@ CHECK: Size: 260
@ CHECK: vmaddr: 0x0
@ CHECK: vmsize: 0x10
@ CHECK: fileoff: 408
@ CHECK: filesize: 16
@ CHECK: maxprot: rwx
@ CHECK: initprot: rwx
@ CHECK: nsects: 3
@ CHECK: flags: 0x0
@ CHECK: }
@ CHECK: Dysymtab {
@ CHECK: ilocalsym: 0
@ CHECK: nlocalsym: 3
@ CHECK: iextdefsym: 3
@ CHECK: nextdefsym: 0
@ CHECK: iundefsym: 3
@ CHECK: nundefsym: 1
@ CHECK: tocoff: 0
@ CHECK: ntoc: 0
@ CHECK: modtaboff: 0
@ CHECK: nmodtab: 0
@ CHECK: extrefsymoff: 0
@ CHECK: nextrefsyms: 0
@ CHECK: indirectsymoff: 0
@ CHECK: nindirectsyms: 0
@ CHECK: extreloff: 0
@ CHECK: nextrel: 0
@ CHECK: locreloff: 0
@ CHECK: nlocrel: 0
@ CHECK: }