xref: /llvm-project/llvm/test/tools/llvm-readtapi/Inputs/universal.yaml (revision c6f29dbb596ff0fd6d8b6445eabbf01f6d063c8c)
1--- !fat-mach-o
2FatHeader:
3  magic:           0xCAFEBABE
4  nfat_arch:       2
5FatArchs:
6  - cputype:         0x0000000C
7    cpusubtype:      0x00000009
8    offset:          0x0000000000004000
9    size:            16424
10    align:           14
11  - cputype:         0x0100000C
12    cpusubtype:      0x00000000
13    offset:          0x000000000000C000
14    size:            16464
15    align:           14
16Slices:
17  - !mach-o
18    FileHeader:
19      magic:           0xFEEDFACE
20      cputype:         0x0000000C
21      cpusubtype:      0x00000009
22      filetype:        0x00000006
23      ncmds:           13
24      sizeofcmds:      608
25      flags:           0x00100085
26    LoadCommands:
27      - cmd:             LC_SEGMENT
28        cmdsize:         124
29        segname:         __TEXT
30        vmaddr:          0
31        vmsize:          16384
32        fileoff:         0
33        filesize:        16384
34        maxprot:         5
35        initprot:        5
36        nsects:          1
37        flags:           0
38        Sections:
39          - sectname:        __text
40            segname:         __TEXT
41            addr:            0x0000000000004000
42            size:            0
43            offset:          0x00004000
44            align:           0
45            reloff:          0x00000000
46            nreloc:          0
47            flags:           0x80000400
48            reserved1:       0x00000000
49            reserved2:       0x00000000
50            reserved3:       0x00000000
51            content:         ''
52      - cmd:             LC_SEGMENT
53        cmdsize:         124
54        segname:         __DATA
55        vmaddr:          16384
56        vmsize:          16384
57        fileoff:         0
58        filesize:        0
59        maxprot:         3
60        initprot:        3
61        nsects:          1
62        flags:           0
63        Sections:
64          - sectname:        __common
65            segname:         __DATA
66            addr:            0x0000000000004000
67            size:            4
68            offset:          0x00000000
69            align:           2
70            reloff:          0x00000000
71            nreloc:          0
72            flags:           0x00000001
73            reserved1:       0x00000000
74            reserved2:       0x00000000
75            reserved3:       0x00000000
76      - cmd:             LC_SEGMENT
77        cmdsize:         56
78        segname:         __LINKEDIT
79        vmaddr:          32768
80        vmsize:          16384
81        fileoff:         16384
82        filesize:        40
83        maxprot:         1
84        initprot:        1
85        nsects:          0
86        flags:           0
87      - cmd:             LC_ID_DYLIB
88        cmdsize:         44
89        dylib:
90          name:            24
91          timestamp:       1
92          current_version: 0
93          compatibility_version: 0
94        Content:   '@rpath/libfoo.dylib'
95        ZeroPadBytes:    1
96      - cmd:             LC_DYLD_INFO_ONLY
97        cmdsize:         48
98        rebase_off:      0
99        rebase_size:     0
100        bind_off:        0
101        bind_size:       0
102        weak_bind_off:   0
103        weak_bind_size:  0
104        lazy_bind_off:   0
105        lazy_bind_size:  0
106        export_off:      16384
107        export_size:     16
108      - cmd:             LC_SYMTAB
109        cmdsize:         24
110        symoff:          16404
111        nsyms:           1
112        stroff:          16416
113        strsize:         8
114      - cmd:             LC_DYSYMTAB
115        cmdsize:         80
116        ilocalsym:       0
117        nlocalsym:       0
118        iextdefsym:      0
119        nextdefsym:      1
120        iundefsym:       1
121        nundefsym:       0
122        tocoff:          0
123        ntoc:            0
124        modtaboff:       0
125        nmodtab:         0
126        extrefsymoff:    0
127        nextrefsyms:     0
128        indirectsymoff:  0
129        nindirectsyms:   0
130        extreloff:       0
131        nextrel:         0
132        locreloff:       0
133        nlocrel:         0
134      - cmd:             LC_UUID
135        cmdsize:         24
136        uuid:            55BB3EB2-88FF-39A2-BAFB-C8695DC33D4B
137      - cmd:             LC_VERSION_MIN_IPHONEOS
138        cmdsize:         16
139        version:         680803
140        sdk:             917504
141      - cmd:             LC_SOURCE_VERSION
142        cmdsize:         16
143        version:         0
144      - cmd:             LC_ENCRYPTION_INFO
145        cmdsize:         20
146        cryptoff:        16384
147        cryptsize:       0
148        cryptid:         0
149      - cmd:             LC_FUNCTION_STARTS
150        cmdsize:         16
151        dataoff:         16400
152        datasize:        4
153      - cmd:             LC_DATA_IN_CODE
154        cmdsize:         16
155        dataoff:         16404
156        datasize:        0
157    LinkEditData:
158      ExportTrie:
159        TerminalSize:    0
160        NodeOffset:      0
161        Name:            ''
162        Flags:           0x0000000000000000
163        Address:         0x0000000000000000
164        Other:           0x0000000000000000
165        ImportName:      ''
166        Children:
167          - TerminalSize:    4
168            NodeOffset:      8
169            Name:            _foo
170            Flags:           0x0000000000000000
171            Address:         0x0000000000004000
172            Other:           0x0000000000000000
173            ImportName:      ''
174      NameList:
175        - n_strx:          2
176          n_type:          0x0F
177          n_sect:          2
178          n_desc:          0
179          n_value:         16384
180      StringTable:
181        - ' '
182        - _foo
183        - ''
184  - !mach-o
185    FileHeader:
186      magic:           0xFEEDFACF
187      cputype:         0x0100000C
188      cpusubtype:      0x00000000
189      filetype:        0x00000006
190      ncmds:           14
191      sizeofcmds:      760
192      flags:           0x00100085
193      reserved:        0x00000000
194    LoadCommands:
195      - cmd:             LC_SEGMENT_64
196        cmdsize:         152
197        segname:         __TEXT
198        vmaddr:          0
199        vmsize:          16384
200        fileoff:         0
201        filesize:        16384
202        maxprot:         5
203        initprot:        5
204        nsects:          1
205        flags:           0
206        Sections:
207          - sectname:        __text
208            segname:         __TEXT
209            addr:            0x0000000000004000
210            size:            0
211            offset:          0x00004000
212            align:           0
213            reloff:          0x00000000
214            nreloc:          0
215            flags:           0x80000400
216            reserved1:       0x00000000
217            reserved2:       0x00000000
218            reserved3:       0x00000000
219            content:         ''
220      - cmd:             LC_SEGMENT_64
221        cmdsize:         152
222        segname:         __DATA
223        vmaddr:          16384
224        vmsize:          16384
225        fileoff:         0
226        filesize:        0
227        maxprot:         3
228        initprot:        3
229        nsects:          1
230        flags:           0
231        Sections:
232          - sectname:        __common
233            segname:         __DATA
234            addr:            0x0000000000004000
235            size:            4
236            offset:          0x00000000
237            align:           2
238            reloff:          0x00000000
239            nreloc:          0
240            flags:           0x00000001
241            reserved1:       0x00000000
242            reserved2:       0x00000000
243            reserved3:       0x00000000
244      - cmd:             LC_SEGMENT_64
245        cmdsize:         72
246        segname:         __LINKEDIT
247        vmaddr:          32768
248        vmsize:          16384
249        fileoff:         16384
250        filesize:        80
251        maxprot:         1
252        initprot:        1
253        nsects:          0
254        flags:           0
255      - cmd:             LC_ID_DYLIB
256        cmdsize:         48
257        dylib:
258          name:            24
259          timestamp:       1
260          current_version: 0
261          compatibility_version: 0
262        Content:   '@rpath/libfoo.dylib'
263        ZeroPadBytes:    5
264      - cmd:             LC_DYLD_INFO_ONLY
265        cmdsize:         48
266        rebase_off:      0
267        rebase_size:     0
268        bind_off:        0
269        bind_size:       0
270        weak_bind_off:   0
271        weak_bind_size:  0
272        lazy_bind_off:   0
273        lazy_bind_size:  0
274        export_off:      16384
275        export_size:     16
276      - cmd:             LC_SYMTAB
277        cmdsize:         24
278        symoff:          16408
279        nsyms:           2
280        stroff:          16440
281        strsize:         24
282      - cmd:             LC_DYSYMTAB
283        cmdsize:         80
284        ilocalsym:       0
285        nlocalsym:       0
286        iextdefsym:      0
287        nextdefsym:      1
288        iundefsym:       1
289        nundefsym:       1
290        tocoff:          0
291        ntoc:            0
292        modtaboff:       0
293        nmodtab:         0
294        extrefsymoff:    0
295        nextrefsyms:     0
296        indirectsymoff:  0
297        nindirectsyms:   0
298        extreloff:       0
299        nextrel:         0
300        locreloff:       0
301        nlocrel:         0
302      - cmd:             LC_UUID
303        cmdsize:         24
304        uuid:            57F7A4EB-2EDE-3150-80B6-8D587A135790
305      - cmd:             LC_BUILD_VERSION
306        cmdsize:         32
307        platform:        2
308        minos:           917504
309        sdk:             917504
310        ntools:          1
311        Tools:
312          - tool:            3
313            version:         39322368
314      - cmd:             LC_SOURCE_VERSION
315        cmdsize:         16
316        version:         0
317      - cmd:             LC_ENCRYPTION_INFO_64
318        cmdsize:         24
319        cryptoff:        16384
320        cryptsize:       0
321        cryptid:         0
322        pad:             0
323      - cmd:             LC_LOAD_DYLIB
324        cmdsize:         56
325        dylib:
326          name:            24
327          timestamp:       2
328          current_version: 84017152
329          compatibility_version: 65536
330        Content:   '/usr/lib/libSystem.B.dylib'
331        ZeroPadBytes:    6
332      - cmd:             LC_FUNCTION_STARTS
333        cmdsize:         16
334        dataoff:         16400
335        datasize:        8
336      - cmd:             LC_DATA_IN_CODE
337        cmdsize:         16
338        dataoff:         16408
339        datasize:        0
340    LinkEditData:
341      ExportTrie:
342        TerminalSize:    0
343        NodeOffset:      0
344        Name:            ''
345        Flags:           0x0000000000000000
346        Address:         0x0000000000000000
347        Other:           0x0000000000000000
348        ImportName:      ''
349        Children:
350          - TerminalSize:    4
351            NodeOffset:      8
352            Name:            _foo
353            Flags:           0x0000000000000000
354            Address:         0x0000000000004000
355            Other:           0x0000000000000000
356            ImportName:      ''
357      NameList:
358        - n_strx:          2
359          n_type:          0x0F
360          n_sect:          2
361          n_desc:          0
362          n_value:         16384
363        - n_strx:          7
364          n_type:          0x01
365          n_sect:          0
366          n_desc:          256
367          n_value:         0
368      StringTable:
369        - ' '
370        - _foo
371        - dyld_stub_binder
372...
373