1RUN: llvm-readobj -s %p/Inputs/trivial.obj.coff-i386 \
2RUN:   | FileCheck %s -check-prefix COFF
3RUN: llvm-readobj -s %p/Inputs/trivial.obj.elf-i386 \
4RUN:   | FileCheck %s -check-prefix ELF
5RUN: llvm-readobj -s %p/Inputs/trivial.obj.elf-mipsel \
6RUN:   | FileCheck %s -check-prefix ELF-MIPSEL
7RUN: llvm-readobj -s %p/Inputs/trivial.obj.macho-i386 \
8RUN:   | FileCheck %s -check-prefix MACHO-I386
9RUN: llvm-readobj -s %p/Inputs/trivial.obj.macho-x86-64 \
10RUN:   | FileCheck %s -check-prefix MACHO-X86-64
11RUN: llvm-readobj -s %p/Inputs/trivial.obj.macho-ppc \
12RUN:   | FileCheck %s -check-prefix MACHO-PPC
13RUN: llvm-readobj -s %p/Inputs/trivial.obj.macho-ppc64 \
14RUN:   | FileCheck %s -check-prefix MACHO-PPC64
15RUN: llvm-readobj -s %p/Inputs/trivial.obj.macho-arm \
16RUN:   | FileCheck %s -check-prefix MACHO-ARM
17RUN: llvm-readobj -s %p/Inputs/trivial.obj.wasm \
18RUN:   | FileCheck %s -check-prefix WASM
19
20COFF:      Sections [
21COFF-NEXT:   Section {
22COFF-NEXT:     Number: 1
23COFF-NEXT:     Name: .text (2E 74 65 78 74 00 00 00)
24COFF-NEXT:     VirtualSize: 0x0
25COFF-NEXT:     VirtualAddress: 0x0
26COFF-NEXT:     RawDataSize: 22
27COFF-NEXT:     PointerToRawData: 0x64
28COFF-NEXT:     PointerToRelocations: 0x7A
29COFF-NEXT:     PointerToLineNumbers: 0x0
30COFF-NEXT:     RelocationCount: 3
31COFF-NEXT:     LineNumberCount: 0
32COFF-NEXT:     Characteristics [ (0x60500020)
33COFF-NEXT:       IMAGE_SCN_ALIGN_16BYTES (0x500000)
34COFF-NEXT:       IMAGE_SCN_CNT_CODE (0x20)
35COFF-NEXT:       IMAGE_SCN_MEM_EXECUTE (0x20000000)
36COFF-NEXT:       IMAGE_SCN_MEM_READ (0x40000000)
37COFF-NEXT:     ]
38COFF-NEXT:   }
39COFF-NEXT:   Section {
40COFF-NEXT:     Number: 2
41COFF-NEXT:     Name: .data (2E 64 61 74 61 00 00 00)
42COFF-NEXT:     VirtualSize: 0x0
43COFF-NEXT:     VirtualAddress: 0x0
44COFF-NEXT:     RawDataSize: 13
45COFF-NEXT:     PointerToRawData: 0x98
46COFF-NEXT:     PointerToRelocations: 0x0
47COFF-NEXT:     PointerToLineNumbers: 0x0
48COFF-NEXT:     RelocationCount: 0
49COFF-NEXT:     LineNumberCount: 0
50COFF-NEXT:     Characteristics [ (0xC0300040)
51COFF-NEXT:       IMAGE_SCN_ALIGN_4BYTES (0x300000)
52COFF-NEXT:       IMAGE_SCN_CNT_INITIALIZED_DATA (0x40)
53COFF-NEXT:       IMAGE_SCN_MEM_READ (0x40000000)
54COFF-NEXT:       IMAGE_SCN_MEM_WRITE (0x80000000)
55COFF-NEXT:     ]
56COFF-NEXT:   }
57COFF-NEXT: ]
58
59ELF:      Sections [
60ELF-NEXT:   Section {
61ELF-NEXT:     Index: 0
62ELF-NEXT:     Name:  (0)
63ELF-NEXT:     Type: SHT_NULL (0x0)
64ELF-NEXT:     Flags [ (0x0)
65ELF-NEXT:     ]
66ELF-NEXT:     Address: 0x0
67ELF-NEXT:     Offset: 0x0
68ELF-NEXT:     Size: 0
69ELF-NEXT:     Link: 0
70ELF-NEXT:     Info: 0
71ELF-NEXT:     AddressAlignment: 0
72ELF-NEXT:     EntrySize: 0
73ELF-NEXT:   }
74ELF-NEXT:   Section {
75ELF-NEXT:     Index: 1
76ELF-NEXT:     Name: .text (5)
77ELF-NEXT:     Type: SHT_PROGBITS (0x1)
78ELF-NEXT:     Flags [ (0x6)
79ELF-NEXT:       SHF_ALLOC (0x2)
80ELF-NEXT:       SHF_EXECINSTR (0x4)
81ELF-NEXT:     ]
82ELF-NEXT:     Address: 0x0
83ELF-NEXT:     Offset: 0x40
84ELF-NEXT:     Size: 42
85ELF-NEXT:     Link: 0
86ELF-NEXT:     Info: 0
87ELF-NEXT:     AddressAlignment: 16
88ELF-NEXT:     EntrySize: 0
89ELF-NEXT:   }
90
91ELF-MIPSEL:      Section {
92ELF-MIPSEL:        Index: 4
93ELF-MIPSEL-NEXT:   Name: .reginfo (27)
94ELF-MIPSEL-NEXT:   Type: SHT_MIPS_REGINFO (0x70000006)
95ELF-MIPSEL-NEXT:   Flags [ (0x2)
96ELF-MIPSEL-NEXT:     SHF_ALLOC (0x2)
97ELF-MIPSEL-NEXT:   ]
98ELF-MIPSEL-NEXT:   Address: 0x0
99ELF-MIPSEL-NEXT:   Offset: 0x34
100ELF-MIPSEL-NEXT:   Size: 24
101ELF-MIPSEL-NEXT:   Link: 0
102ELF-MIPSEL-NEXT:   Info: 0
103ELF-MIPSEL-NEXT:   AddressAlignment: 1
104ELF-MIPSEL-NEXT:   EntrySize: 0
105ELF-MIPSEL-NEXT: }
106ELF-MIPSEL-NEXT: Section {
107ELF-MIPSEL-NEXT:   Index: 5
108ELF-MIPSEL-NEXT:   Name: .MIPS.abiflags (12)
109ELF-MIPSEL-NEXT:   Type: SHT_MIPS_ABIFLAGS (0x7000002A)
110ELF-MIPSEL-NEXT:   Flags [ (0x2)
111ELF-MIPSEL-NEXT:     SHF_ALLOC (0x2)
112ELF-MIPSEL-NEXT:   ]
113ELF-MIPSEL-NEXT:   Address: 0x0
114ELF-MIPSEL-NEXT:   Offset: 0x50
115ELF-MIPSEL-NEXT:   Size: 24
116ELF-MIPSEL-NEXT:   Link: 0
117ELF-MIPSEL-NEXT:   Info: 0
118ELF-MIPSEL-NEXT:   AddressAlignment: 8
119ELF-MIPSEL-NEXT:   EntrySize: 0
120ELF-MIPSEL-NEXT: }
121
122MACHO-I386:      Sections [
123MACHO-I386-NEXT:   Section {
124MACHO-I386-NEXT:     Index: 0
125MACHO-I386-NEXT:     Name: __text (5F 5F 74 65 78 74 00 00 00 00 00 00 00 00 00 00)
126MACHO-I386-NEXT:     Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00)
127MACHO-I386-NEXT:     Address: 0x0
128MACHO-I386-NEXT:     Size: 0x22
129MACHO-I386-NEXT:     Offset: 324
130MACHO-I386-NEXT:     Alignment: 4
131MACHO-I386-NEXT:     RelocationOffset: 0x174
132MACHO-I386-NEXT:     RelocationCount: 4
133MACHO-I386-NEXT:     Type: 0x0
134MACHO-I386-NEXT:     Attributes [ (0x800004)
135MACHO-I386-NEXT:       PureInstructions (0x800000)
136MACHO-I386-NEXT:       SomeInstructions (0x4)
137MACHO-I386-NEXT:     ]
138MACHO-I386-NEXT:     Reserved1: 0x0
139MACHO-I386-NEXT:     Reserved2: 0x0
140MACHO-I386-NEXT:   }
141MACHO-I386-NEXT:   Section {
142MACHO-I386-NEXT:     Index: 1
143MACHO-I386-NEXT:     Name: __cstring (5F 5F 63 73 74 72 69 6E 67 00 00 00 00 00 00 00)
144MACHO-I386-NEXT:     Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00)
145MACHO-I386-NEXT:     Address: 0x22
146MACHO-I386-NEXT:     Size: 0xD
147MACHO-I386-NEXT:     Offset: 358
148MACHO-I386-NEXT:     Alignment: 0
149MACHO-I386-NEXT:     RelocationOffset: 0x0
150MACHO-I386-NEXT:     RelocationCount: 0
151MACHO-I386-NEXT:     Type: ExtReloc (0x2)
152MACHO-I386-NEXT:     Attributes [ (0x0)
153MACHO-I386-NEXT:     ]
154MACHO-I386-NEXT:     Reserved1: 0x0
155MACHO-I386-NEXT:     Reserved2: 0x0
156MACHO-I386-NEXT:   }
157
158
159MACHO-X86-64:     Sections [
160MACHO-X86-64-NEXT:  Section {
161MACHO-X86-64-NEXT:    Index: 0
162MACHO-X86-64-NEXT:    Name: __text (5F 5F 74 65 78 74 00 00 00 00 00 00 00 00 00 00)
163MACHO-X86-64-NEXT:    Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00)
164MACHO-X86-64-NEXT:    Address: 0x0
165MACHO-X86-64-NEXT:    Size: 0x16
166MACHO-X86-64-NEXT:    Offset: 368
167MACHO-X86-64-NEXT:    Alignment: 4
168MACHO-X86-64-NEXT:    RelocationOffset: 0x194
169MACHO-X86-64-NEXT:    RelocationCount: 3
170MACHO-X86-64-NEXT:    Type: 0x0
171MACHO-X86-64-NEXT:    Attributes [ (0x800004)
172MACHO-X86-64-NEXT:      PureInstructions (0x800000)
173MACHO-X86-64-NEXT:      SomeInstructions (0x4)
174MACHO-X86-64-NEXT:    ]
175MACHO-X86-64-NEXT:    Reserved1: 0x0
176MACHO-X86-64-NEXT:    Reserved2: 0x0
177MACHO-X86-64-NEXT:    Reserved3: 0x0
178MACHO-X86-64-NEXT:  }
179MACHO-X86-64-NEXT:  Section {
180MACHO-X86-64-NEXT:    Index: 1
181MACHO-X86-64-NEXT:    Name: __cstring (5F 5F 63 73 74 72 69 6E 67 00 00 00 00 00 00 00)
182MACHO-X86-64-NEXT:    Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00)
183MACHO-X86-64-NEXT:    Address: 0x16
184MACHO-X86-64-NEXT:    Size: 0xD
185MACHO-X86-64-NEXT:    Offset: 390
186MACHO-X86-64-NEXT:    Alignment: 0
187MACHO-X86-64-NEXT:    RelocationOffset: 0x0
188MACHO-X86-64-NEXT:    RelocationCount: 0
189MACHO-X86-64-NEXT:    Type: ExtReloc (0x2)
190MACHO-X86-64-NEXT:    Attributes [ (0x0)
191MACHO-X86-64-NEXT:    ]
192MACHO-X86-64-NEXT:    Reserved1: 0x0
193MACHO-X86-64-NEXT:    Reserved2: 0x0
194MACHO-X86-64-NEXT:    Reserved3: 0x0
195MACHO-X86-64-NEXT:  }
196MACHO-X86-64-NEXT:]
197
198MACHO-PPC: Sections [
199MACHO-PPC-NEXT:   Section {
200MACHO-PPC-NEXT:     Index: 0
201MACHO-PPC-NEXT:     Name: __text (5F 5F 74 65 78 74 00 00 00 00 00 00 00 00 00 00)
202MACHO-PPC-NEXT:     Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00)
203MACHO-PPC-NEXT:     Address: 0x0
204MACHO-PPC-NEXT:     Size: 0x3C
205MACHO-PPC-NEXT:     Offset: 528
206MACHO-PPC-NEXT:     Alignment: 2
207MACHO-PPC-NEXT:     RelocationOffset: 0x27C
208MACHO-PPC-NEXT:     RelocationCount: 5
209MACHO-PPC-NEXT:     Type: 0x0
210MACHO-PPC-NEXT:     Attributes [ (0x800004)
211MACHO-PPC-NEXT:       PureInstructions (0x800000)
212MACHO-PPC-NEXT:       SomeInstructions (0x4)
213MACHO-PPC-NEXT:     ]
214MACHO-PPC-NEXT:     Reserved1: 0x0
215MACHO-PPC-NEXT:     Reserved2: 0x0
216MACHO-PPC-NEXT:   }
217MACHO-PPC-NEXT:   Section {
218MACHO-PPC-NEXT:     Index: 1
219MACHO-PPC-NEXT:     Name: __picsymbolstub1 (5F 5F 70 69 63 73 79 6D 62 6F 6C 73 74 75 62 31)
220MACHO-PPC-NEXT:     Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00)
221MACHO-PPC-NEXT:     Address: 0x40
222MACHO-PPC-NEXT:     Size: 0x20
223MACHO-PPC-NEXT:     Offset: 592
224MACHO-PPC-NEXT:     Alignment: 5
225MACHO-PPC-NEXT:     RelocationOffset: 0x2A4
226MACHO-PPC-NEXT:     RelocationCount: 4
227MACHO-PPC-NEXT:     Type: 0x8
228MACHO-PPC-NEXT:     Attributes [ (0x800004)
229MACHO-PPC-NEXT:       PureInstructions (0x800000)
230MACHO-PPC-NEXT:       SomeInstructions (0x4)
231MACHO-PPC-NEXT:     ]
232MACHO-PPC-NEXT:     Reserved1: 0x0
233MACHO-PPC-NEXT:     Reserved2: 0x20
234MACHO-PPC-NEXT:   }
235MACHO-PPC-NEXT:   Section {
236MACHO-PPC-NEXT:     Index: 2
237MACHO-PPC-NEXT:     Name: __data (5F 5F 64 61 74 61 00 00 00 00 00 00 00 00 00 00)
238MACHO-PPC-NEXT:     Segment: __DATA (5F 5F 44 41 54 41 00 00 00 00 00 00 00 00 00 00)
239MACHO-PPC-NEXT:     Address: 0x60
240MACHO-PPC-NEXT:     Size: 0x4
241MACHO-PPC-NEXT:     Offset: 624
242MACHO-PPC-NEXT:     Alignment: 2
243MACHO-PPC-NEXT:     RelocationOffset: 0x0
244MACHO-PPC-NEXT:     RelocationCount: 0
245MACHO-PPC-NEXT:     Type: 0x0
246MACHO-PPC-NEXT:     Attributes [ (0x0)
247MACHO-PPC-NEXT:     ]
248MACHO-PPC-NEXT:     Reserved1: 0x0
249MACHO-PPC-NEXT:     Reserved2: 0x0
250MACHO-PPC-NEXT:   }
251MACHO-PPC-NEXT:   Section {
252MACHO-PPC-NEXT:     Index: 3
253MACHO-PPC-NEXT:     Name: __nl_symbol_ptr (5F 5F 6E 6C 5F 73 79 6D 62 6F 6C 5F 70 74 72 00)
254MACHO-PPC-NEXT:     Segment: __DATA (5F 5F 44 41 54 41 00 00 00 00 00 00 00 00 00 00)
255MACHO-PPC-NEXT:     Address: 0x64
256MACHO-PPC-NEXT:     Size: 0x4
257MACHO-PPC-NEXT:     Offset: 628
258MACHO-PPC-NEXT:     Alignment: 2
259MACHO-PPC-NEXT:     RelocationOffset: 0x0
260MACHO-PPC-NEXT:     RelocationCount: 0
261MACHO-PPC-NEXT:     Type: 0x6
262MACHO-PPC-NEXT:     Attributes [ (0x0)
263MACHO-PPC-NEXT:     ]
264MACHO-PPC-NEXT:     Reserved1: 0x1
265MACHO-PPC-NEXT:     Reserved2: 0x0
266MACHO-PPC-NEXT:   }
267MACHO-PPC-NEXT:   Section {
268MACHO-PPC-NEXT:     Index: 4
269MACHO-PPC-NEXT:     Name: __la_symbol_ptr (5F 5F 6C 61 5F 73 79 6D 62 6F 6C 5F 70 74 72 00)
270MACHO-PPC-NEXT:     Segment: __DATA (5F 5F 44 41 54 41 00 00 00 00 00 00 00 00 00 00)
271MACHO-PPC-NEXT:     Address: 0x68
272MACHO-PPC-NEXT:     Size: 0x4
273MACHO-PPC-NEXT:     Offset: 632
274MACHO-PPC-NEXT:     Alignment: 2
275MACHO-PPC-NEXT:     RelocationOffset: 0x2C4
276MACHO-PPC-NEXT:     RelocationCount: 1
277MACHO-PPC-NEXT:     Type: 0x7
278MACHO-PPC-NEXT:     Attributes [ (0x0)
279MACHO-PPC-NEXT:     ]
280MACHO-PPC-NEXT:     Reserved1: 0x2
281MACHO-PPC-NEXT:     Reserved2: 0x0
282MACHO-PPC-NEXT:   }
283MACHO-PPC-NEXT: ]
284
285MACHO-PPC64: Sections [
286MACHO-PPC64-NEXT:   Section {
287MACHO-PPC64-NEXT:     Index: 0
288MACHO-PPC64-NEXT:     Name: __text (5F 5F 74 65 78 74 00 00 00 00 00 00 00 00 00 00)
289MACHO-PPC64-NEXT:     Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00)
290MACHO-PPC64-NEXT:     Address: 0x0
291MACHO-PPC64-NEXT:     Size: 0x3C
292MACHO-PPC64-NEXT:     Offset: 608
293MACHO-PPC64-NEXT:     Alignment: 2
294MACHO-PPC64-NEXT:     RelocationOffset: 0x2D4
295MACHO-PPC64-NEXT:     RelocationCount: 5
296MACHO-PPC64-NEXT:     Type: 0x0
297MACHO-PPC64-NEXT:     Attributes [ (0x800004)
298MACHO-PPC64-NEXT:       PureInstructions (0x800000)
299MACHO-PPC64-NEXT:       SomeInstructions (0x4)
300MACHO-PPC64-NEXT:     ]
301MACHO-PPC64-NEXT:     Reserved1: 0x0
302MACHO-PPC64-NEXT:     Reserved2: 0x0
303MACHO-PPC64-NEXT:     Reserved3: 0x0
304MACHO-PPC64-NEXT:   }
305MACHO-PPC64-NEXT:   Section {
306MACHO-PPC64-NEXT:     Index: 1
307MACHO-PPC64-NEXT:     Name: __picsymbolstub1 (5F 5F 70 69 63 73 79 6D 62 6F 6C 73 74 75 62 31)
308MACHO-PPC64-NEXT:     Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00)
309MACHO-PPC64-NEXT:     Address: 0x40
310MACHO-PPC64-NEXT:     Size: 0x20
311MACHO-PPC64-NEXT:     Offset: 672
312MACHO-PPC64-NEXT:     Alignment: 5
313MACHO-PPC64-NEXT:     RelocationOffset: 0x2FC
314MACHO-PPC64-NEXT:     RelocationCount: 4
315MACHO-PPC64-NEXT:     Type: 0x8
316MACHO-PPC64-NEXT:     Attributes [ (0x800004)
317MACHO-PPC64-NEXT:       PureInstructions (0x800000)
318MACHO-PPC64-NEXT:       SomeInstructions (0x4)
319MACHO-PPC64-NEXT:     ]
320MACHO-PPC64-NEXT:     Reserved1: 0x0
321MACHO-PPC64-NEXT:     Reserved2: 0x20
322MACHO-PPC64-NEXT:     Reserved3: 0x0
323MACHO-PPC64-NEXT:   }
324MACHO-PPC64-NEXT:   Section {
325MACHO-PPC64-NEXT:     Index: 2
326MACHO-PPC64-NEXT:     Name: __data (5F 5F 64 61 74 61 00 00 00 00 00 00 00 00 00 00)
327MACHO-PPC64-NEXT:     Segment: __DATA (5F 5F 44 41 54 41 00 00 00 00 00 00 00 00 00 00)
328MACHO-PPC64-NEXT:     Address: 0x60
329MACHO-PPC64-NEXT:     Size: 0x4
330MACHO-PPC64-NEXT:     Offset: 704
331MACHO-PPC64-NEXT:     Alignment: 2
332MACHO-PPC64-NEXT:     RelocationOffset: 0x0
333MACHO-PPC64-NEXT:     RelocationCount: 0
334MACHO-PPC64-NEXT:     Type: 0x0
335MACHO-PPC64-NEXT:     Attributes [ (0x0)
336MACHO-PPC64-NEXT:     ]
337MACHO-PPC64-NEXT:     Reserved1: 0x0
338MACHO-PPC64-NEXT:     Reserved2: 0x0
339MACHO-PPC64-NEXT:     Reserved3: 0x0
340MACHO-PPC64-NEXT:   }
341MACHO-PPC64-NEXT:   Section {
342MACHO-PPC64-NEXT:     Index: 3
343MACHO-PPC64-NEXT:     Name: __nl_symbol_ptr (5F 5F 6E 6C 5F 73 79 6D 62 6F 6C 5F 70 74 72 00)
344MACHO-PPC64-NEXT:     Segment: __DATA (5F 5F 44 41 54 41 00 00 00 00 00 00 00 00 00 00)
345MACHO-PPC64-NEXT:     Address: 0x64
346MACHO-PPC64-NEXT:     Size: 0x8
347MACHO-PPC64-NEXT:     Offset: 708
348MACHO-PPC64-NEXT:     Alignment: 2
349MACHO-PPC64-NEXT:     RelocationOffset: 0x0
350MACHO-PPC64-NEXT:     RelocationCount: 0
351MACHO-PPC64-NEXT:     Type: 0x6
352MACHO-PPC64-NEXT:     Attributes [ (0x0)
353MACHO-PPC64-NEXT:     ]
354MACHO-PPC64-NEXT:     Reserved1: 0x1
355MACHO-PPC64-NEXT:     Reserved2: 0x0
356MACHO-PPC64-NEXT:     Reserved3: 0x0
357MACHO-PPC64-NEXT:   }
358MACHO-PPC64-NEXT:   Section {
359MACHO-PPC64-NEXT:     Index: 4
360MACHO-PPC64-NEXT:     Name: __la_symbol_ptr (5F 5F 6C 61 5F 73 79 6D 62 6F 6C 5F 70 74 72 00)
361MACHO-PPC64-NEXT:     Segment: __DATA (5F 5F 44 41 54 41 00 00 00 00 00 00 00 00 00 00)
362MACHO-PPC64-NEXT:     Address: 0x6C
363MACHO-PPC64-NEXT:     Size: 0x8
364MACHO-PPC64-NEXT:     Offset: 716
365MACHO-PPC64-NEXT:     Alignment: 2
366MACHO-PPC64-NEXT:     RelocationOffset: 0x31C
367MACHO-PPC64-NEXT:     RelocationCount: 1
368MACHO-PPC64-NEXT:     Type: 0x7
369MACHO-PPC64-NEXT:     Attributes [ (0x0)
370MACHO-PPC64-NEXT:     ]
371MACHO-PPC64-NEXT:     Reserved1: 0x2
372MACHO-PPC64-NEXT:     Reserved2: 0x0
373MACHO-PPC64-NEXT:     Reserved3: 0x0
374MACHO-PPC64-NEXT:   }
375MACHO-PPC64-NEXT: ]
376
377MACHO-ARM:      Sections [
378MACHO-ARM-NEXT:   Section {
379MACHO-ARM-NEXT:    Index: 0
380MACHO-ARM-NEXT:    Name: __text (5F 5F 74 65 78 74 00 00 00 00 00 00 00 00 00 00)
381MACHO-ARM-NEXT:    Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00)
382MACHO-ARM-NEXT:    Address: 0x0
383MACHO-ARM-NEXT:    Size: 0x3C
384MACHO-ARM-NEXT:    Offset: 664
385MACHO-ARM-NEXT:    Alignment: 2
386MACHO-ARM-NEXT:    RelocationOffset: 0x2E0
387MACHO-ARM-NEXT:    RelocationCount: 9
388MACHO-ARM-NEXT:    Type: 0x0
389MACHO-ARM-NEXT:    Attributes [ (0x800004)
390MACHO-ARM-NEXT:      PureInstructions (0x800000)
391MACHO-ARM-NEXT:      SomeInstructions (0x4)
392MACHO-ARM-NEXT:    ]
393MACHO-ARM-NEXT:    Reserved1: 0x0
394MACHO-ARM-NEXT:    Reserved2: 0x0
395MACHO-ARM-NEXT:  }
396MACHO-ARM-NEXT:  Section {
397MACHO-ARM-NEXT:    Index: 1
398MACHO-ARM-NEXT:    Name: __textcoal_nt (5F 5F 74 65 78 74 63 6F 61 6C 5F 6E 74 00 00 00)
399MACHO-ARM-NEXT:    Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00)
400MACHO-ARM-NEXT:    Address: 0x3C
401MACHO-ARM-NEXT:    Size: 0x0
402MACHO-ARM-NEXT:    Offset: 724
403MACHO-ARM-NEXT:    Alignment: 0
404MACHO-ARM-NEXT:    RelocationOffset: 0x0
405MACHO-ARM-NEXT:    RelocationCount: 0
406MACHO-ARM-NEXT:    Type: 0xB
407MACHO-ARM-NEXT:    Attributes [ (0x800000)
408MACHO-ARM-NEXT:      PureInstructions (0x800000)
409MACHO-ARM-NEXT:    ]
410MACHO-ARM-NEXT:    Reserved1: 0x0
411MACHO-ARM-NEXT:    Reserved2: 0x0
412MACHO-ARM-NEXT:  }
413MACHO-ARM-NEXT:  Section {
414MACHO-ARM-NEXT:    Index: 2
415MACHO-ARM-NEXT:    Name: __const_coal (5F 5F 63 6F 6E 73 74 5F 63 6F 61 6C 00 00 00 00)
416MACHO-ARM-NEXT:    Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00)
417MACHO-ARM-NEXT:    Address: 0x3C
418MACHO-ARM-NEXT:    Size: 0x0
419MACHO-ARM-NEXT:    Offset: 724
420MACHO-ARM-NEXT:    Alignment: 0
421MACHO-ARM-NEXT:    RelocationOffset: 0x0
422MACHO-ARM-NEXT:    RelocationCount: 0
423MACHO-ARM-NEXT:    Type: 0xB
424MACHO-ARM-NEXT:    Attributes [ (0x0)
425MACHO-ARM-NEXT:    ]
426MACHO-ARM-NEXT:    Reserved1: 0x0
427MACHO-ARM-NEXT:    Reserved2: 0x0
428MACHO-ARM-NEXT:  }
429MACHO-ARM-NEXT:  Section {
430MACHO-ARM-NEXT:    Index: 3
431MACHO-ARM-NEXT:    Name: __picsymbolstub4 (5F 5F 70 69 63 73 79 6D 62 6F 6C 73 74 75 62 34)
432MACHO-ARM-NEXT:    Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00)
433MACHO-ARM-NEXT:    Address: 0x3C
434MACHO-ARM-NEXT:    Size: 0x0
435MACHO-ARM-NEXT:    Offset: 724
436MACHO-ARM-NEXT:    Alignment: 0
437MACHO-ARM-NEXT:    RelocationOffset: 0x0
438MACHO-ARM-NEXT:    RelocationCount: 0
439MACHO-ARM-NEXT:    Type: 0x8
440MACHO-ARM-NEXT:    Attributes [ (0x0)
441MACHO-ARM-NEXT:    ]
442MACHO-ARM-NEXT:    Reserved1: 0x0
443MACHO-ARM-NEXT:    Reserved2: 0x10
444MACHO-ARM-NEXT:  }
445MACHO-ARM-NEXT:  Section {
446MACHO-ARM-NEXT:    Index: 4
447MACHO-ARM-NEXT:    Name: __StaticInit (5F 5F 53 74 61 74 69 63 49 6E 69 74 00 00 00 00)
448MACHO-ARM-NEXT:    Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00)
449MACHO-ARM-NEXT:    Address: 0x3C
450MACHO-ARM-NEXT:    Size: 0x0
451MACHO-ARM-NEXT:    Offset: 724
452MACHO-ARM-NEXT:    Alignment: 0
453MACHO-ARM-NEXT:    RelocationOffset: 0x0
454MACHO-ARM-NEXT:    RelocationCount: 0
455MACHO-ARM-NEXT:    Type: 0x0
456MACHO-ARM-NEXT:    Attributes [ (0x800000)
457MACHO-ARM-NEXT:      PureInstructions (0x800000)
458MACHO-ARM-NEXT:    ]
459MACHO-ARM-NEXT:    Reserved1: 0x0
460MACHO-ARM-NEXT:    Reserved2: 0x0
461MACHO-ARM-NEXT:  }
462MACHO-ARM-NEXT:  Section {
463MACHO-ARM-NEXT:    Index: 5
464MACHO-ARM-NEXT:    Name: __data (5F 5F 64 61 74 61 00 00 00 00 00 00 00 00 00 00)
465MACHO-ARM-NEXT:    Segment: __DATA (5F 5F 44 41 54 41 00 00 00 00 00 00 00 00 00 00)
466MACHO-ARM-NEXT:    Address: 0x3C
467MACHO-ARM-NEXT:    Size: 0x4
468MACHO-ARM-NEXT:    Offset: 724
469MACHO-ARM-NEXT:    Alignment: 2
470MACHO-ARM-NEXT:    RelocationOffset: 0x0
471MACHO-ARM-NEXT:    RelocationCount: 0
472MACHO-ARM-NEXT:    Type: 0x0
473MACHO-ARM-NEXT:    Attributes [ (0x0)
474MACHO-ARM-NEXT:    ]
475MACHO-ARM-NEXT:    Reserved1: 0x0
476MACHO-ARM-NEXT:    Reserved2: 0x0
477MACHO-ARM-NEXT:  }
478MACHO-ARM-NEXT:  Section {
479MACHO-ARM-NEXT:    Index: 6
480MACHO-ARM-NEXT:    Name: __nl_symbol_ptr (5F 5F 6E 6C 5F 73 79 6D 62 6F 6C 5F 70 74 72 00)
481MACHO-ARM-NEXT:    Segment: __DATA (5F 5F 44 41 54 41 00 00 00 00 00 00 00 00 00 00)
482MACHO-ARM-NEXT:    Address: 0x40
483MACHO-ARM-NEXT:    Size: 0x8
484MACHO-ARM-NEXT:    Offset: 728
485MACHO-ARM-NEXT:    Alignment: 2
486MACHO-ARM-NEXT:    RelocationOffset: 0x0
487MACHO-ARM-NEXT:    RelocationCount: 0
488MACHO-ARM-NEXT:    Type: 0x6
489MACHO-ARM-NEXT:    Attributes [ (0x0)
490MACHO-ARM-NEXT:    ]
491MACHO-ARM-NEXT:    Reserved1: 0x0
492MACHO-ARM-NEXT:    Reserved2: 0x0
493MACHO-ARM-NEXT:  }
494MACHO-ARM-NEXT:]
495
496WASM:      Sections [
497WASM-NEXT:   Section {
498WASM-NEXT:     Type: TYPE (0x1)
499WASM-NEXT:     Size: 14
500WASM-NEXT:     Offset: 8
501WASM-NEXT:   }
502WASM-NEXT:   Section {
503WASM-NEXT:     Type: IMPORT (0x2)
504WASM-NEXT:     Size: 93
505WASM-NEXT:     Offset: 28
506WASM-NEXT:   }
507WASM-NEXT:   Section {
508WASM-NEXT:     Type: FUNCTION (0x3)
509WASM-NEXT:     Size: 2
510WASM-NEXT:     Offset: 127
511WASM-NEXT:   }
512WASM-NEXT:   Section {
513WASM-NEXT:     Type: CODE (0xA)
514WASM-NEXT:     Size: 25
515WASM-NEXT:     Offset: 135
516WASM-NEXT:   }
517WASM-NEXT:   Section {
518WASM-NEXT:     Type: DATA (0xB)
519WASM-NEXT:     Size: 19
520WASM-NEXT:     Offset: 166
521WASM-NEXT:     Segments [
522WASM-NEXT:       Segment {
523WASM-NEXT:         Name: .rodata..L.str
524WASM-NEXT:         Size: 13
525WASM-NEXT:         Offset: 0
526WASM-NEXT:       }
527WASM-NEXT:     ]
528WASM-NEXT:   }
529WASM-NEXT:   Section {
530WASM-NEXT:     Type: CUSTOM (0x0)
531WASM-NEXT:     Size: 61
532WASM-NEXT:     Offset: 191
533WASM-NEXT:     Name: linking
534WASM-NEXT:   }
535WASM-NEXT:   Section {
536WASM-NEXT:     Type: CUSTOM (0x0)
537WASM-NEXT:     Size: 12
538WASM-NEXT:     Offset: 266
539WASM-NEXT:     Name: reloc.CODE
540WASM-NEXT:   }
541WASM-NEXT: ]
542