1 RUN: llvm-readobj -h %p/Inputs/macho-universal.x86_64.i386 \
2 RUN: | FileCheck %s -check-prefix MULTIHEADER
4 RUN: llvm-readobj -sections %p/Inputs/macho-universal.x86_64.i386 \
5 RUN: | FileCheck %s -check-prefix MULTISECTIONS
7 MULTIHEADER: Format: Mach-O 64-bit x86-64
8 MULTIHEADER: Arch: x86_64
9 MULTIHEADER: AddressSize: 64bit
10 MULTIHEADER: MachHeader {
11 MULTIHEADER: Magic: Magic64 (0xFEEDFACF)
12 MULTIHEADER: CpuType: X86-64 (0x1000007)
13 MULTIHEADER: CpuSubType: CPU_SUBTYPE_X86_64_ALL (0x3)
14 MULTIHEADER: FileType: Executable (0x2)
15 MULTIHEADER: NumOfLoadCommands: 16
16 MULTIHEADER: SizeOfLoadCommands: 880
17 MULTIHEADER: Flags [ (0x200085)
18 MULTIHEADER: MH_DYLDLINK (0x4)
19 MULTIHEADER: MH_NOUNDEFS (0x1)
20 MULTIHEADER: MH_PIE (0x200000)
21 MULTIHEADER: MH_TWOLEVEL (0x80)
23 MULTIHEADER: Reserved: 0x0
26 MULTIHEADER: Format: Mach-O 32-bit i386
27 MULTIHEADER: Arch: i386
28 MULTIHEADER: AddressSize: 32bit
29 MULTIHEADER: MachHeader {
30 MULTIHEADER: Magic: Magic (0xFEEDFACE)
31 MULTIHEADER: CpuType: X86 (0x7)
32 MULTIHEADER: CpuSubType: CPU_SUBTYPE_I386_ALL (0x3)
33 MULTIHEADER: FileType: Executable (0x2)
34 MULTIHEADER: NumOfLoadCommands: 16
35 MULTIHEADER: SizeOfLoadCommands: 716
36 MULTIHEADER: Flags [ (0x1200085)
37 MULTIHEADER: MH_DYLDLINK (0x4)
38 MULTIHEADER: MH_NOUNDEFS (0x1)
39 MULTIHEADER: MH_NO_HEAP_EXECUTION (0x1000000)
40 MULTIHEADER: MH_PIE (0x200000)
41 MULTIHEADER: MH_TWOLEVEL (0x80)
47 MULTISECTIONS: Format: Mach-O 64-bit x86-64
48 MULTISECTIONS: Arch: x86_64
49 MULTISECTIONS: AddressSize: 64bit
50 MULTISECTIONS: Sections [
51 MULTISECTIONS: Section {
52 MULTISECTIONS: Index: 0
53 MULTISECTIONS: Name: __text (5F 5F 74 65 78 74 00 00 00 00 00 00 00 00 00 00)
54 MULTISECTIONS: Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00)
55 MULTISECTIONS: Address: 0x100000F60
56 MULTISECTIONS: Size: 0x12
57 MULTISECTIONS: Offset: 3936
58 MULTISECTIONS: Alignment: 4
59 MULTISECTIONS: RelocationOffset: 0x0
60 MULTISECTIONS: RelocationCount: 0
61 MULTISECTIONS: Type: 0x0
62 MULTISECTIONS: Attributes [ (0x800004)
63 MULTISECTIONS: PureInstructions (0x800000)
64 MULTISECTIONS: SomeInstructions (0x4)
66 MULTISECTIONS: Reserved1: 0x0
67 MULTISECTIONS: Reserved2: 0x0
69 MULTISECTIONS: Section {
70 MULTISECTIONS: Index: 1
71 MULTISECTIONS: Name: __unwind_info (5F 5F 75 6E 77 69 6E 64 5F 69 6E 66 6F 00 00 00)
72 MULTISECTIONS: Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00)
73 MULTISECTIONS: Address: 0x100000F72
74 MULTISECTIONS: Size: 0x48
75 MULTISECTIONS: Offset: 3954
76 MULTISECTIONS: Alignment: 0
77 MULTISECTIONS: RelocationOffset: 0x0
78 MULTISECTIONS: RelocationCount: 0
79 MULTISECTIONS: Type: 0x0
80 MULTISECTIONS: Attributes [ (0x0)
82 MULTISECTIONS: Reserved1: 0x0
83 MULTISECTIONS: Reserved2: 0x0
85 MULTISECTIONS: Section {
86 MULTISECTIONS: Index: 2
87 MULTISECTIONS: Name: __eh_frame (5F 5F 65 68 5F 66 72 61 6D 65 00 00 00 00 00 00)
88 MULTISECTIONS: Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00)
89 MULTISECTIONS: Address: 0x100000FC0
90 MULTISECTIONS: Size: 0x40
91 MULTISECTIONS: Offset: 4032
92 MULTISECTIONS: Alignment: 3
93 MULTISECTIONS: RelocationOffset: 0x0
94 MULTISECTIONS: RelocationCount: 0
95 MULTISECTIONS: Type: 0x0
96 MULTISECTIONS: Attributes [ (0x0)
98 MULTISECTIONS: Reserved1: 0x0
99 MULTISECTIONS: Reserved2: 0x0
103 MULTISECTIONS: Format: Mach-O 32-bit i386
104 MULTISECTIONS: Arch: i386
105 MULTISECTIONS: AddressSize: 32bit
106 MULTISECTIONS: Sections [
107 MULTISECTIONS: Section {
108 MULTISECTIONS: Index: 0
109 MULTISECTIONS: Name: __text (5F 5F 74 65 78 74 00 00 00 00 00 00 00 00 00 00)
110 MULTISECTIONS: Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00)
111 MULTISECTIONS: Address: 0x1FA0
112 MULTISECTIONS: Size: 0x15
113 MULTISECTIONS: Offset: 4000
114 MULTISECTIONS: Alignment: 4
115 MULTISECTIONS: RelocationOffset: 0x0
116 MULTISECTIONS: RelocationCount: 0
117 MULTISECTIONS: Type: 0x0
118 MULTISECTIONS: Attributes [ (0x800004)
119 MULTISECTIONS: PureInstructions (0x800000)
120 MULTISECTIONS: SomeInstructions (0x4)
122 MULTISECTIONS: Reserved1: 0x0
123 MULTISECTIONS: Reserved2: 0x0
125 MULTISECTIONS: Section {
126 MULTISECTIONS: Index: 1
127 MULTISECTIONS: Name: __unwind_info (5F 5F 75 6E 77 69 6E 64 5F 69 6E 66 6F 00 00 00)
128 MULTISECTIONS: Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00)
129 MULTISECTIONS: Address: 0x1FB5
130 MULTISECTIONS: Size: 0x48
131 MULTISECTIONS: Offset: 4021
132 MULTISECTIONS: Alignment: 0
133 MULTISECTIONS: RelocationOffset: 0x0
134 MULTISECTIONS: RelocationCount: 0
135 MULTISECTIONS: Type: 0x0
136 MULTISECTIONS: Attributes [ (0x0)
138 MULTISECTIONS: Reserved1: 0x0
139 MULTISECTIONS: Reserved2: 0x0