// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols - | FileCheck %s
_b:
_c = 0
_e:
_f = 0
.section __IMPORT,__jump_table,symbol_stubs,pure_instructions+self_modifying_code,5
.indirect_symbol _a
.ascii "\364\364\364\364\364"
.indirect_symbol _b
.ascii "\364\364\364\364\364"
.indirect_symbol _c
.ascii "\364\364\364\364\364"
.section __IMPORT,__pointers,non_lazy_symbol_pointers
.indirect_symbol _d
.long 0
.indirect_symbol _e
.long 0
.indirect_symbol _f
.long 0
// CHECK: File: <stdin>
// CHECK: Format: Mach-O 32-bit i386
// CHECK: Arch: i386
// 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: 6
// CHECK: Symbols
// CHECK: }
// CHECK: Segment {
// CHECK: Cmd: LC_SEGMENT
// CHECK: Name:
// CHECK: Size: 260
// CHECK: vmaddr: 0x0
// CHECK: vmsize: 0x1B
// CHECK: fileoff: 408
// CHECK: filesize: 27
// CHECK: maxprot: rwx
// CHECK: initprot: rwx
// CHECK: nsects: 3
// CHECK: flags: 0x0
// CHECK: }
// CHECK: Dysymtab {
// CHECK: ilocalsym: 0
// CHECK: nlocalsym: 4
// CHECK: iextdefsym: 4
// CHECK: nextdefsym: 0
// CHECK: iundefsym: 4
// CHECK: nundefsym: 2
// CHECK: tocoff: 0
// CHECK: ntoc: 0
// CHECK: modtaboff: 0
// CHECK: nmodtab: 0
// CHECK: extrefsymoff: 0
// CHECK: nextrefsyms: 0
// CHECK: indirectsymoff: 436
// CHECK: nindirectsyms: 6
// CHECK: extreloff: 0
// CHECK: nextrel: 0
// CHECK: locreloff: 0
// CHECK: nlocrel: 0
// CHECK: }