1// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj -file-headers -s -r -t -macho-segment -macho-dysymtab -macho-indirect-symbols | FileCheck %s 2 3direction_labels: 410: nop 5 jmp 10b 6 nop 7 jne 0f 80: nop 9 jne 0b 10 jmp 11f 1111: nop 12 ret 13 14// CHECK: File: <stdin> 15// CHECK: Format: Mach-O 32-bit i386 16// CHECK: Arch: i386 17// CHECK: AddressSize: 32bit 18// CHECK: MachHeader { 19// CHECK: Magic: Magic (0xFEEDFACE) 20// CHECK: CpuType: X86 (0x7) 21// CHECK: CpuSubType: CPU_SUBTYPE_I386_ALL (0x3) 22// CHECK: FileType: Relocatable (0x1) 23// CHECK: NumOfLoadCommands: 4 24// CHECK: SizeOfLoadCommands: 244 25// CHECK: Flags [ (0x0) 26// CHECK: ] 27// CHECK: } 28// CHECK: Sections [ 29// CHECK: Section { 30// CHECK: Index: 0 31// CHECK: Name: __text (5F 5F 74 65 78 74 00 00 00 00 00 00 00 00 00 00) 32// CHECK: Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00) 33// CHECK: Address: 0x0 34// CHECK: Size: 0xD 35// CHECK: Offset: 272 36// CHECK: Alignment: 0 37// CHECK: RelocationOffset: 0x0 38// CHECK: RelocationCount: 0 39// CHECK: Type: 0x0 40// CHECK: Attributes [ (0x800004) 41// CHECK: PureInstructions (0x800000) 42// CHECK: SomeInstructions (0x4) 43// CHECK: ] 44// CHECK: Reserved1: 0x0 45// CHECK: Reserved2: 0x0 46// CHECK: } 47// CHECK: ] 48// CHECK: Relocations [ 49// CHECK: ] 50// CHECK: Symbols [ 51// CHECK: Symbol { 52// CHECK: Name: direction_labels (1) 53// CHECK: Type: Section (0xE) 54// CHECK: Section: __text (0x1) 55// CHECK: RefType: UndefinedNonLazy (0x0) 56// CHECK: Flags [ (0x0) 57// CHECK: ] 58// CHECK: Value: 0x0 59// CHECK: } 60// CHECK: ] 61// CHECK: Indirect Symbols { 62// CHECK: Number: 0 63// CHECK: Symbols [ 64// CHECK: ] 65// CHECK: } 66// CHECK: Segment { 67// CHECK: Cmd: LC_SEGMENT 68// CHECK: Name: 69// CHECK: Size: 124 70// CHECK: vmaddr: 0x0 71// CHECK: vmsize: 0xD 72// CHECK: fileoff: 272 73// CHECK: filesize: 13 74// CHECK: maxprot: rwx 75// CHECK: initprot: rwx 76// CHECK: nsects: 1 77// CHECK: flags: 0x0 78// CHECK: } 79// CHECK: Dysymtab { 80// CHECK: ilocalsym: 0 81// CHECK: nlocalsym: 1 82// CHECK: iextdefsym: 1 83// CHECK: nextdefsym: 0 84// CHECK: iundefsym: 1 85// CHECK: nundefsym: 0 86// CHECK: tocoff: 0 87// CHECK: ntoc: 0 88// CHECK: modtaboff: 0 89// CHECK: nmodtab: 0 90// CHECK: extrefsymoff: 0 91// CHECK: nextrefsyms: 0 92// CHECK: indirectsymoff: 0 93// CHECK: nindirectsyms: 0 94// CHECK: extreloff: 0 95// CHECK: nextrel: 0 96// CHECK: locreloff: 0 97// CHECK: nlocrel: 0 98// CHECK: } 99