Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / bolt / test / X86 / MachO / Inputs / external_symbol.yaml
blob049c39d0f7ba2f2394cb726882668e3cefb882fb
1 --- !mach-o
2 FileHeader:
3   magic:           0xFEEDFACF
4   cputype:         0x1000007
5   cpusubtype:      0x80000003
6   filetype:        0x2
7   ncmds:           15
8   sizeofcmds:      1216
9   flags:           0x200085
10   reserved:        0x0
11 LoadCommands:
12   - cmd:             LC_SEGMENT_64
13     cmdsize:         72
14     segname:         __PAGEZERO
15     vmaddr:          0
16     vmsize:          4294967296
17     fileoff:         0
18     filesize:        0
19     maxprot:         0
20     initprot:        0
21     nsects:          0
22     flags:           0
23   - cmd:             LC_SEGMENT_64
24     cmdsize:         392
25     segname:         __TEXT
26     vmaddr:          4294967296
27     vmsize:          4096
28     fileoff:         0
29     filesize:        4096
30     maxprot:         5
31     initprot:        5
32     nsects:          4
33     flags:           0
34     Sections:
35       - sectname:        __text
36         segname:         __TEXT
37         addr:            0x100000F50
38         size:            70
39         offset:          0xF50
40         align:           4
41         reloff:          0x0
42         nreloc:          0
43         flags:           0x80000400
44         reserved1:       0x0
45         reserved2:       0x0
46         reserved3:       0x0
47         content:         554889E54883EC20C745FC00000000897DF8488975F0837DF8010F8E0D000000E8210000008945FCE910000000C745EC010000008B45EC83C0028945FC8B45FC4883C4205DC3
48       - sectname:        __stubs
49         segname:         __TEXT
50         addr:            0x100000F96
51         size:            6
52         offset:          0xF96
53         align:           1
54         reloff:          0x0
55         nreloc:          0
56         flags:           0x80000408
57         reserved1:       0x0
58         reserved2:       0x6
59         reserved3:       0x0
60         content:         FF2574000000
61       - sectname:        __stub_helper
62         segname:         __TEXT
63         addr:            0x100000F9C
64         size:            28
65         offset:          0xF9C
66         align:           2
67         reloff:          0x0
68         nreloc:          0
69         flags:           0x80000400
70         reserved1:       0x0
71         reserved2:       0x0
72         reserved3:       0x0
73         content:         6800000000E90200000000004C8D1D510000004153FF255100000090
74       - sectname:        __unwind_info
75         segname:         __TEXT
76         addr:            0x100000FB8
77         size:            72
78         offset:          0xFB8
79         align:           2
80         reloff:          0x0
81         nreloc:          0
82         flags:           0x0
83         reserved1:       0x0
84         reserved2:       0x0
85         reserved3:       0x0
86         content:         010000001C000000000000001C000000000000001C00000002000000500F00003400000034000000970F00000000000034000000030000000C000100100001000000000000000001
87   - cmd:             LC_SEGMENT_64
88     cmdsize:         312
89     segname:         __DATA
90     vmaddr:          4294971392
91     vmsize:          4096
92     fileoff:         4096
93     filesize:        4096
94     maxprot:         3
95     initprot:        3
96     nsects:          3
97     flags:           0
98     Sections:
99       - sectname:        __nl_symbol_ptr
100         segname:         __DATA
101         addr:            0x100001000
102         size:            8
103         offset:          0x1000
104         align:           3
105         reloff:          0x0
106         nreloc:          0
107         flags:           0x6
108         reserved1:       0x1
109         reserved2:       0x0
110         reserved3:       0x0
111         content:         '0000000000000000'
112       - sectname:        __got
113         segname:         __DATA
114         addr:            0x100001008
115         size:            8
116         offset:          0x1008
117         align:           3
118         reloff:          0x0
119         nreloc:          0
120         flags:           0x6
121         reserved1:       0x2
122         reserved2:       0x0
123         reserved3:       0x0
124         content:         '0000000000000000'
125       - sectname:        __la_symbol_ptr
126         segname:         __DATA
127         addr:            0x100001010
128         size:            8
129         offset:          0x1010
130         align:           3
131         reloff:          0x0
132         nreloc:          0
133         flags:           0x7
134         reserved1:       0x3
135         reserved2:       0x0
136         reserved3:       0x0
137         content:         9C0F000001000000
138   - cmd:             LC_SEGMENT_64
139     cmdsize:         72
140     segname:         __LINKEDIT
141     vmaddr:          4294975488
142     vmsize:          4096
143     fileoff:         8192
144     filesize:        232
145     maxprot:         1
146     initprot:        1
147     nsects:          0
148     flags:           0
149   - cmd:             LC_DYLD_INFO_ONLY
150     cmdsize:         48
151     rebase_off:      8192
152     rebase_size:     8
153     bind_off:        8200
154     bind_size:       24
155     weak_bind_off:   0
156     weak_bind_size:  0
157     lazy_bind_off:   8224
158     lazy_bind_size:  16
159     export_off:      8240
160     export_size:     48
161   - cmd:             LC_SYMTAB
162     cmdsize:         24
163     symoff:          8296
164     nsyms:           4
165     stroff:          8376
166     strsize:         48
167   - cmd:             LC_DYSYMTAB
168     cmdsize:         80
169     ilocalsym:       0
170     nlocalsym:       0
171     iextdefsym:      0
172     nextdefsym:      2
173     iundefsym:       2
174     nundefsym:       2
175     tocoff:          0
176     ntoc:            0
177     modtaboff:       0
178     nmodtab:         0
179     extrefsymoff:    0
180     nextrefsyms:     0
181     indirectsymoff:  8360
182     nindirectsyms:   4
183     extreloff:       0
184     nextrel:         0
185     locreloff:       0
186     nlocrel:         0
187   - cmd:             LC_LOAD_DYLINKER
188     cmdsize:         32
189     name:            12
190     Content:         '/usr/lib/dyld'
191     ZeroPadBytes:    7
192   - cmd:             LC_UUID
193     cmdsize:         24
194     uuid:            4A03D302-35D2-3E3B-93AC-22375185ACFB
195   - cmd:             LC_BUILD_VERSION
196     cmdsize:         32
197     platform:        1
198     minos:           658944
199     sdk:             658944
200     ntools:          1
201     Tools:
202       - tool:            3
203         version:         34734080
204   - cmd:             LC_SOURCE_VERSION
205     cmdsize:         16
206     version:         0
207   - cmd:             LC_MAIN
208     cmdsize:         24
209     entryoff:        3920
210     stacksize:       0
211   - cmd:             LC_LOAD_DYLIB
212     cmdsize:         56
213     dylib:
214       name:            24
215       timestamp:       2
216       current_version: 82115073
217       compatibility_version: 65536
218     Content:         '/usr/lib/libSystem.B.dylib'
219     ZeroPadBytes:    6
220   - cmd:             LC_FUNCTION_STARTS
221     cmdsize:         16
222     dataoff:         8288
223     datasize:        8
224   - cmd:             LC_DATA_IN_CODE
225     cmdsize:         16
226     dataoff:         8296
227     datasize:        0
228 LinkEditData:
229   RebaseOpcodes:
230     - Opcode:          REBASE_OPCODE_SET_TYPE_IMM
231       Imm:             1
232     - Opcode:          REBASE_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
233       Imm:             2
234       ExtraData:       [ 0x10 ]
235     - Opcode:          REBASE_OPCODE_DO_REBASE_IMM_TIMES
236       Imm:             1
237     - Opcode:          REBASE_OPCODE_DONE
238       Imm:             0
239   BindOpcodes:
240     - Opcode:          BIND_OPCODE_SET_DYLIB_ORDINAL_IMM
241       Imm:             1
242       Symbol:          ''
243     - Opcode:          BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM
244       Imm:             0
245       Symbol:          dyld_stub_binder
246     - Opcode:          BIND_OPCODE_SET_TYPE_IMM
247       Imm:             1
248       Symbol:          ''
249     - Opcode:          BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
250       Imm:             2
251       ULEBExtraData:   [ 0x8 ]
252       Symbol:          ''
253     - Opcode:          BIND_OPCODE_DO_BIND
254       Imm:             0
255       Symbol:          ''
256     - Opcode:          BIND_OPCODE_DONE
257       Imm:             0
258       Symbol:          ''
259   LazyBindOpcodes:
260     - Opcode:          BIND_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB
261       Imm:             2
262       ULEBExtraData:   [ 0x10 ]
263       Symbol:          ''
264     - Opcode:          BIND_OPCODE_SET_DYLIB_SPECIAL_IMM
265       Imm:             14
266       Symbol:          ''
267     - Opcode:          BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM
268       Imm:             0
269       Symbol:          _f
270     - Opcode:          BIND_OPCODE_DO_BIND
271       Imm:             0
272       Symbol:          ''
273     - Opcode:          BIND_OPCODE_DONE
274       Imm:             0
275       Symbol:          ''
276     - Opcode:          BIND_OPCODE_DONE
277       Imm:             0
278       Symbol:          ''
279     - Opcode:          BIND_OPCODE_DONE
280       Imm:             0
281       Symbol:          ''
282     - Opcode:          BIND_OPCODE_DONE
283       Imm:             0
284       Symbol:          ''
285     - Opcode:          BIND_OPCODE_DONE
286       Imm:             0
287       Symbol:          ''
288     - Opcode:          BIND_OPCODE_DONE
289       Imm:             0
290       Symbol:          ''
291     - Opcode:          BIND_OPCODE_DONE
292       Imm:             0
293       Symbol:          ''
294     - Opcode:          BIND_OPCODE_DONE
295       Imm:             0
296       Symbol:          ''
297   ExportTrie:
298     TerminalSize:    0
299     NodeOffset:      0
300     Name:            ''
301     Flags:           0x0
302     Address:         0x0
303     Other:           0x0
304     ImportName:      ''
305     Children:
306       - TerminalSize:    0
307         NodeOffset:      5
308         Name:            _
309         Flags:           0x0
310         Address:         0x0
311         Other:           0x0
312         ImportName:      ''
313         Children:
314           - TerminalSize:    2
315             NodeOffset:      33
316             Name:            _mh_execute_header
317             Flags:           0x0
318             Address:         0x0
319             Other:           0x0
320             ImportName:      ''
321           - TerminalSize:    3
322             NodeOffset:      37
323             Name:            main
324             Flags:           0x0
325             Address:         0xF50
326             Other:           0x0
327             ImportName:      ''
328   NameList:
329     - n_strx:          2
330       n_type:          0xF
331       n_sect:          1
332       n_desc:          16
333       n_value:         4294967296
334     - n_strx:          22
335       n_type:          0xF
336       n_sect:          1
337       n_desc:          0
338       n_value:         4294971216
339     - n_strx:          28
340       n_type:          0x1
341       n_sect:          0
342       n_desc:          65024
343       n_value:         0
344     - n_strx:          31
345       n_type:          0x1
346       n_sect:          0
347       n_desc:          256
348       n_value:         0
349   StringTable:
350     - ' '
351     - __mh_execute_header
352     - _main
353     - _f
354     - dyld_stub_binder
355   IndirectSymbols: [ 0x2, 0x40000000, 0x3, 0x2 ]
356   FunctionStarts:  [ 0xF50 ]