Bump version to 19.1.0-rc3
[llvm-project.git] / llvm / test / ObjectYAML / MachO / load_commands.yaml
blob5236cd0dd7abc015a3db62523f2b98629ba8310b
1 # RUN: yaml2obj %s | obj2yaml | FileCheck %s
3 --- !mach-o
4 FileHeader:      
5   magic:           0xFEEDFACF
6   cputype:         0x01000007
7   cpusubtype:      0x80000003
8   filetype:        0x00000002
9   ncmds:           16
10   sizeofcmds:      1408
11   flags:           0x00218085
12   reserved:        0x00000000
13 LoadCommands:    
14   - cmd:             LC_SEGMENT_64
15     cmdsize:         72
16     segname:         __PAGEZERO
17     vmaddr:          0
18     vmsize:          4294967296
19     fileoff:         0
20     filesize:        0
21     maxprot:         0
22     initprot:        0
23     nsects:          0
24     flags:           0
25   - cmd:             LC_SEGMENT_64
26     cmdsize:         552
27     segname:         __TEXT
28     vmaddr:          4294967296
29     vmsize:          8192
30     fileoff:         0
31     filesize:        8192
32     maxprot:         7
33     initprot:        5
34     nsects:          6
35     flags:           0
36   - cmd:             LC_SEGMENT_64
37     cmdsize:         312
38     segname:         __DATA
39     vmaddr:          4294975488
40     vmsize:          4096
41     fileoff:         8192
42     filesize:        4096
43     maxprot:         7
44     initprot:        3
45     nsects:          3
46     flags:           0
47   - cmd:             LC_SEGMENT_64
48     cmdsize:         72
49     segname:         __LINKEDIT
50     vmaddr:          4294979584
51     vmsize:          4096
52     fileoff:         12288
53     filesize:        2508
54     maxprot:         7
55     initprot:        1
56     nsects:          0
57     flags:           0
58   - cmd:             LC_DYLD_INFO_ONLY
59     cmdsize:         48
60     rebase_off:      12288
61     rebase_size:     8
62     bind_off:        12296
63     bind_size:       96
64     weak_bind_off:   0
65     weak_bind_size:  0
66     lazy_bind_off:   12392
67     lazy_bind_size:  624
68     export_off:      13016
69     export_size:     48
70   - cmd:             LC_SYMTAB
71     cmdsize:         24
72     symoff:          13080
73     nsyms:           30
74     stroff:          13700
75     strsize:         1096
76   - cmd:             LC_DYSYMTAB
77     cmdsize:         80
78     ilocalsym:       0
79     nlocalsym:       9
80     iextdefsym:      9
81     nextdefsym:      2
82     iundefsym:       11
83     nundefsym:       19
84     tocoff:          0
85     ntoc:            0
86     modtaboff:       0
87     nmodtab:         0
88     extrefsymoff:    0
89     nextrefsyms:     0
90     indirectsymoff:  13560
91     nindirectsyms:   35
92     extreloff:       0
93     nextrel:         0
94     locreloff:       0
95     nlocrel:         0
96   - cmd:             LC_LOAD_DYLINKER
97     cmdsize:         32
98     name:            12
99   - cmd:             LC_UUID
100     cmdsize:         24
101     uuid:            461A1B28-822F-3F38-B670-645419E636F5
102   - cmd:             LC_VERSION_MIN_MACOSX
103     cmdsize:         16
104     version:         658176
105     sdk:             658176
106   - cmd:             LC_SOURCE_VERSION
107     cmdsize:         16
108     version:         0
109   - cmd:             LC_MAIN
110     cmdsize:         24
111     entryoff:        4448
112     stacksize:       0
113   - cmd:             LC_LOAD_DYLIB
114     cmdsize:         48
115     dylib:           
116       name:            24
117       timestamp:       2
118       current_version: 7864576
119       compatibility_version: 65536
120   - cmd:             LC_LOAD_DYLIB
121     cmdsize:         56
122     dylib:           
123       name:            24
124       timestamp:       2
125       current_version: 80349697
126       compatibility_version: 65536
127   - cmd:             LC_FUNCTION_STARTS
128     cmdsize:         16
129     dataoff:         13064
130     datasize:        16
131   - cmd:             LC_DATA_IN_CODE
132     cmdsize:         16
133     dataoff:         13080
134     datasize:        0
139 #CHECK: LoadCommands:    
140 #CHECK:   - cmd:             LC_SEGMENT_64
141 #CHECK:     cmdsize:         72
142 #CHECK:     segname:         __PAGEZERO
143 #CHECK:     vmaddr:          0
144 #CHECK:     vmsize:          4294967296
145 #CHECK:     fileoff:         0
146 #CHECK:     filesize:        0
147 #CHECK:     maxprot:         0
148 #CHECK:     initprot:        0
149 #CHECK:     nsects:          0
150 #CHECK:     flags:           0
151 #CHECK:   - cmd:             LC_SEGMENT_64
152 #CHECK:     cmdsize:         552
153 #CHECK:     segname:         __TEXT
154 #CHECK:     vmaddr:          4294967296
155 #CHECK:     vmsize:          8192
156 #CHECK:     fileoff:         0
157 #CHECK:     filesize:        8192
158 #CHECK:     maxprot:         7
159 #CHECK:     initprot:        5
160 #CHECK:     nsects:          6
161 #CHECK:     flags:           0
162 #CHECK:   - cmd:             LC_SEGMENT_64
163 #CHECK:     cmdsize:         312
164 #CHECK:     segname:         __DATA
165 #CHECK:     vmaddr:          4294975488
166 #CHECK:     vmsize:          4096
167 #CHECK:     fileoff:         8192
168 #CHECK:     filesize:        4096
169 #CHECK:     maxprot:         7
170 #CHECK:     initprot:        3
171 #CHECK:     nsects:          3
172 #CHECK:     flags:           0
173 #CHECK:   - cmd:             LC_SEGMENT_64
174 #CHECK:     cmdsize:         72
175 #CHECK:     segname:         __LINKEDIT
176 #CHECK:     vmaddr:          4294979584
177 #CHECK:     vmsize:          4096
178 #CHECK:     fileoff:         12288
179 #CHECK:     filesize:        2508
180 #CHECK:     maxprot:         7
181 #CHECK:     initprot:        1
182 #CHECK:     nsects:          0
183 #CHECK:     flags:           0
184 #CHECK:   - cmd:             LC_DYLD_INFO_ONLY
185 #CHECK:     cmdsize:         48
186 #CHECK:     rebase_off:      12288
187 #CHECK:     rebase_size:     8
188 #CHECK:     bind_off:        12296
189 #CHECK:     bind_size:       96
190 #CHECK:     weak_bind_off:   0
191 #CHECK:     weak_bind_size:  0
192 #CHECK:     lazy_bind_off:   12392
193 #CHECK:     lazy_bind_size:  624
194 #CHECK:     export_off:      13016
195 #CHECK:     export_size:     48
196 #CHECK:   - cmd:             LC_SYMTAB
197 #CHECK:     cmdsize:         24
198 #CHECK:     symoff:          13080
199 #CHECK:     nsyms:           30
200 #CHECK:     stroff:          13700
201 #CHECK:     strsize:         1096
202 #CHECK:   - cmd:             LC_DYSYMTAB
203 #CHECK:     cmdsize:         80
204 #CHECK:     ilocalsym:       0
205 #CHECK:     nlocalsym:       9
206 #CHECK:     iextdefsym:      9
207 #CHECK:     nextdefsym:      2
208 #CHECK:     iundefsym:       11
209 #CHECK:     nundefsym:       19
210 #CHECK:     tocoff:          0
211 #CHECK:     ntoc:            0
212 #CHECK:     modtaboff:       0
213 #CHECK:     nmodtab:         0
214 #CHECK:     extrefsymoff:    0
215 #CHECK:     nextrefsyms:     0
216 #CHECK:     indirectsymoff:  13560
217 #CHECK:     nindirectsyms:   35
218 #CHECK:     extreloff:       0
219 #CHECK:     nextrel:         0
220 #CHECK:     locreloff:       0
221 #CHECK:     nlocrel:         0
222 #CHECK:   - cmd:             LC_LOAD_DYLINKER
223 #CHECK:     cmdsize:         32
224 #CHECK:     name:            12
225 #CHECK:   - cmd:             LC_UUID
226 #CHECK:     cmdsize:         24
227 #CHECK:     uuid:            461A1B28-822F-3F38-B670-645419E636F5
228 #CHECK:   - cmd:             LC_VERSION_MIN_MACOSX
229 #CHECK:     cmdsize:         16
230 #CHECK:     version:         658176
231 #CHECK:     sdk:             658176
232 #CHECK:   - cmd:             LC_SOURCE_VERSION
233 #CHECK:     cmdsize:         16
234 #CHECK:     version:         0
235 #CHECK:   - cmd:             LC_MAIN
236 #CHECK:     cmdsize:         24
237 #CHECK:     entryoff:        4448
238 #CHECK:     stacksize:       0
239 #CHECK:   - cmd:             LC_LOAD_DYLIB
240 #CHECK:     cmdsize:         48
241 #CHECK:     dylib:           
242 #CHECK:       name:            24
243 #CHECK:       timestamp:       2
244 #CHECK:       current_version: 7864576
245 #CHECK:       compatibility_version: 65536
246 #CHECK:   - cmd:             LC_LOAD_DYLIB
247 #CHECK:     cmdsize:         56
248 #CHECK:     dylib:           
249 #CHECK:       name:            24
250 #CHECK:       timestamp:       2
251 #CHECK:       current_version: 80349697
252 #CHECK:       compatibility_version: 65536
253 #CHECK:   - cmd:             LC_FUNCTION_STARTS
254 #CHECK:     cmdsize:         16
255 #CHECK:     dataoff:         13064
256 #CHECK:     datasize:        16
257 #CHECK:   - cmd:             LC_DATA_IN_CODE
258 #CHECK:     cmdsize:         16
259 #CHECK:     dataoff:         13080
260 #CHECK:     datasize:        0