xref: /llvm-project/llvm/test/tools/llvm-readtapi/Inputs/macho.yaml (revision 5656d7971b395b6303661e2ef7c3e6960c715b2a)
1--- !mach-o
2FileHeader:
3  magic:           0xFEEDFACF
4  cputype:         0x1000007
5  cpusubtype:      0x3
6  filetype:        0x6
7  ncmds:           13
8  sizeofcmds:      584
9  flags:           0x100085
10  reserved:        0x0
11LoadCommands:
12  - cmd:             LC_SEGMENT_64
13    cmdsize:         152
14    segname:         __TEXT
15    vmaddr:          0
16    vmsize:          4096
17    fileoff:         0
18    filesize:        4096
19    maxprot:         7
20    initprot:        5
21    nsects:          1
22    flags:           0
23    Sections:
24      - sectname:        __text
25        segname:         __TEXT
26        addr:            0x1000
27        size:            0
28        offset:          0x1000
29        align:           0
30        reloff:          0x0
31        nreloc:          0
32        flags:           0x80000400
33        reserved1:       0x0
34        reserved2:       0x0
35        reserved3:       0x0
36        content:         ''
37  - cmd:             LC_SEGMENT_64
38    cmdsize:         72
39    segname:         __LINKEDIT
40    vmaddr:          4096
41    vmsize:          4096
42    fileoff:         4096
43    filesize:        112
44    maxprot:         7
45    initprot:        1
46    nsects:          0
47    flags:           0
48  - cmd:             LC_ID_DYLIB
49    cmdsize:         48
50    dylib:
51      name:            24
52      timestamp:       1
53      current_version: 65536
54      compatibility_version: 65536
55    Content:         macho-no-exports.dylib
56    ZeroPadBytes:    2
57  - cmd:             LC_DYLD_INFO_ONLY
58    cmdsize:         48
59    rebase_off:      0
60    rebase_size:     0
61    bind_off:        0
62    bind_size:       0
63    weak_bind_off:   0
64    weak_bind_size:  0
65    lazy_bind_off:   0
66    lazy_bind_size:  0
67    export_off:      0
68    export_size:     0
69  - cmd:             LC_SYMTAB
70    cmdsize:         24
71    symoff:          4168
72    nsyms:           1
73    stroff:          4184
74    strsize:         24
75  - cmd:             LC_DYSYMTAB
76    cmdsize:         80
77    ilocalsym:       0
78    nlocalsym:       0
79    iextdefsym:      0
80    nextdefsym:      0
81    iundefsym:       0
82    nundefsym:       1
83    tocoff:          0
84    ntoc:            0
85    modtaboff:       0
86    nmodtab:         0
87    extrefsymoff:    0
88    nextrefsyms:     0
89    indirectsymoff:  0
90    nindirectsyms:   0
91    extreloff:       0
92    nextrel:         0
93    locreloff:       0
94    nlocrel:         0
95  - cmd:             LC_UUID
96    cmdsize:         24
97    uuid:            A24CBA21-865D-372D-B267-4964F4ADCDFC
98  - cmd:             LC_VERSION_MIN_MACOSX
99    cmdsize:         16
100    version:         657920
101    sdk:             657920
102  - cmd:             LC_SOURCE_VERSION
103    cmdsize:         16
104    version:         0
105  - cmd:             LC_LOAD_DYLIB
106    cmdsize:         56
107    dylib:
108      name:            24
109      timestamp:       2
110      current_version: 79495168
111      compatibility_version: 65536
112    Content:         '/usr/lib/libSystem.B.dylib'
113    ZeroPadBytes:    6
114  - cmd:             LC_FUNCTION_STARTS
115    cmdsize:         16
116    dataoff:         4096
117    datasize:        8
118  - cmd:             LC_DATA_IN_CODE
119    cmdsize:         16
120    dataoff:         4104
121    datasize:        0
122  - cmd:             LC_DYLIB_CODE_SIGN_DRS
123    cmdsize:         16
124    dataoff:         4104
125    datasize:        64
126LinkEditData:
127  NameList:
128    - n_strx:          2
129      n_type:          0x1
130      n_sect:          0
131      n_desc:          256
132      n_value:         0
133  StringTable:
134    - ' '
135    - dyld_stub_binder
136    - ''
137    - ''
138    - ''
139    - ''
140    - ''
141...
142