1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
| # RUN: yaml2obj %s | obj2yaml | FileCheck %s
--- !mach-o
FileHeader:
magic: 0xFEEDFACF
cputype: 0x01000007
cpusubtype: 0x80000003
filetype: 0x00000002
ncmds: 16
sizeofcmds: 1408
flags: 0x00218085
reserved: 0x00000000
LoadCommands:
- cmd: LC_SEGMENT_64
cmdsize: 72
segname: __PAGEZERO
vmaddr: 0
vmsize: 4294967296
fileoff: 0
filesize: 0
maxprot: 0
initprot: 0
nsects: 0
flags: 0
- cmd: LC_SEGMENT_64
cmdsize: 552
segname: __TEXT
vmaddr: 4294967296
vmsize: 8192
fileoff: 0
filesize: 8192
maxprot: 7
initprot: 5
nsects: 6
flags: 0
Sections:
- cmd: LC_SEGMENT_64
cmdsize: 312
segname: __DATA
vmaddr: 4294975488
vmsize: 4096
fileoff: 8192
filesize: 4096
maxprot: 7
initprot: 3
nsects: 3
flags: 0
Sections:
- cmd: LC_SEGMENT_64
cmdsize: 72
segname: __LINKEDIT
vmaddr: 4294979584
vmsize: 4096
fileoff: 12288
filesize: 2508
maxprot: 7
initprot: 1
nsects: 0
flags: 0
- cmd: LC_DYLD_INFO_ONLY
cmdsize: 48
rebase_off: 12288
rebase_size: 8
bind_off: 12296
bind_size: 96
weak_bind_off: 0
weak_bind_size: 0
lazy_bind_off: 12392
lazy_bind_size: 624
export_off: 13016
export_size: 48
- cmd: LC_SYMTAB
cmdsize: 24
symoff: 13080
nsyms: 30
stroff: 13700
strsize: 1096
- cmd: LC_DYSYMTAB
cmdsize: 80
ilocalsym: 0
nlocalsym: 9
iextdefsym: 9
nextdefsym: 2
iundefsym: 11
nundefsym: 19
tocoff: 0
ntoc: 0
modtaboff: 0
nmodtab: 0
extrefsymoff: 0
nextrefsyms: 0
indirectsymoff: 13560
nindirectsyms: 35
extreloff: 0
nextrel: 0
locreloff: 0
nlocrel: 0
- cmd: LC_LOAD_DYLINKER
cmdsize: 32
name: 12
PayloadString: /usr/lib/dyld
ZeroPadBytes: 7
- cmd: LC_UUID
cmdsize: 24
uuid: 461A1B28-822F-3F38-B670-645419E636F5
- cmd: LC_VERSION_MIN_MACOSX
cmdsize: 16
version: 658176
sdk: 658176
- cmd: LC_SOURCE_VERSION
cmdsize: 16
version: 0
- cmd: LC_MAIN
cmdsize: 24
entryoff: 4448
stacksize: 0
- cmd: LC_LOAD_DYLIB
cmdsize: 48
dylib:
name: 24
timestamp: 2
current_version: 7864576
compatibility_version: 65536
PayloadString: '/usr/lib/libc++.1.dylib'
ZeroPadBytes: 1
- cmd: LC_LOAD_DYLIB
cmdsize: 56
dylib:
name: 24
timestamp: 2
current_version: 80349697
compatibility_version: 65536
PayloadString: /usr/lib/libSystem.B.dylib
ZeroPadBytes: 6
- cmd: LC_FUNCTION_STARTS
cmdsize: 16
dataoff: 13064
datasize: 16
- cmd: LC_DATA_IN_CODE
cmdsize: 16
dataoff: 13080
datasize: 0
LinkEditData:
NameList:
- n_strx: 2
n_type: 0x1E
n_sect: 1
n_desc: 128
n_value: 4294971808
- n_strx: 69
n_type: 0x1E
n_sect: 1
n_desc: 128
n_value: 4294971888
- n_strx: 166
n_type: 0x1E
n_sect: 1
n_desc: 128
n_value: 4294973024
- n_strx: 204
n_type: 0x1E
n_sect: 1
n_desc: 128
n_value: 4294973056
- n_strx: 320
n_type: 0x1E
n_sect: 1
n_desc: 128
n_value: 4294974784
- n_strx: 344
n_type: 0x1E
n_sect: 1
n_desc: 128
n_value: 4294974800
- n_strx: 387
n_type: 0x1E
n_sect: 1
n_desc: 128
n_value: 4294974832
- n_strx: 420
n_type: 0x0E
n_sect: 4
n_desc: 0
n_value: 4294975104
- n_strx: 438
n_type: 0x0E
n_sect: 4
n_desc: 0
n_value: 4294975280
- n_strx: 456
n_type: 0x0F
n_sect: 1
n_desc: 16
n_value: 4294967296
- n_strx: 476
n_type: 0x0F
n_sect: 1
n_desc: 0
n_value: 4294971744
- n_strx: 482
n_type: 0x01
n_sect: 0
n_desc: 512
n_value: 0
- n_strx: 498
n_type: 0x01
n_sect: 0
n_desc: 256
n_value: 0
- n_strx: 537
n_type: 0x01
n_sect: 0
n_desc: 256
n_value: 0
- n_strx: 567
n_type: 0x01
n_sect: 0
n_desc: 256
n_value: 0
- n_strx: 642
n_type: 0x01
n_sect: 0
n_desc: 256
n_value: 0
- n_strx: 711
n_type: 0x01
n_sect: 0
n_desc: 256
n_value: 0
- n_strx: 774
n_type: 0x01
n_sect: 0
n_desc: 256
n_value: 0
- n_strx: 834
n_type: 0x01
n_sect: 0
n_desc: 256
n_value: 0
- n_strx: 851
n_type: 0x01
n_sect: 0
n_desc: 256
n_value: 0
- n_strx: 875
n_type: 0x01
n_sect: 0
n_desc: 256
n_value: 0
- n_strx: 897
n_type: 0x01
n_sect: 0
n_desc: 256
n_value: 0
- n_strx: 954
n_type: 0x01
n_sect: 0
n_desc: 256
n_value: 0
- n_strx: 982
n_type: 0x01
n_sect: 0
n_desc: 256
n_value: 0
- n_strx: 999
n_type: 0x01
n_sect: 0
n_desc: 256
n_value: 0
- n_strx: 1018
n_type: 0x01
n_sect: 0
n_desc: 256
n_value: 0
- n_strx: 1035
n_type: 0x01
n_sect: 0
n_desc: 256
n_value: 0
- n_strx: 1057
n_type: 0x01
n_sect: 0
n_desc: 512
n_value: 0
- n_strx: 1065
n_type: 0x01
n_sect: 0
n_desc: 512
n_value: 0
- n_strx: 1073
n_type: 0x01
n_sect: 0
n_desc: 512
n_value: 0
StringTable:
- ' '
- __ZNSt3__1lsINS_11char_traitsIcEEEERNS_13basic_ostreamIcT_EES6_PKc
- __ZNSt3__124__put_character_sequenceIcNS_11char_traitsIcEEEERNS_13basic_ostreamIT_T0_EES7_PKS4_m
- __ZNSt3__111char_traitsIcE6lengthEPKc
- __ZNSt3__116__pad_and_outputIcNS_11char_traitsIcEEEENS_19ostreambuf_iteratorIT_T0_EES6_PKS4_S8_S8_RNS_8ios_baseES4_
- ___clang_call_terminate
- __ZNSt3__111char_traitsIcE11eq_int_typeEii
- __ZNSt3__111char_traitsIcE3eofEv
- GCC_except_table2
- GCC_except_table4
- __mh_execute_header
- _main
- __Unwind_Resume
- __ZNKSt3__16locale9use_facetERNS0_2idE
- __ZNKSt3__18ios_base6getlocEv
- __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEmc
- __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED1Ev
- __ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEE6sentryC1ERS3_
- __ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEE6sentryD1Ev
- __ZNSt3__14coutE
- __ZNSt3__15ctypeIcE2idE
- __ZNSt3__16localeD1Ev
- __ZNSt3__18ios_base33__set_badbit_and_consider_rethrowEv
- __ZNSt3__18ios_base5clearEj
- __ZSt9terminatev
- ___cxa_begin_catch
- ___cxa_end_catch
- ___gxx_personality_v0
- _memset
- _strlen
- dyld_stub_binder
...
#CHECK: NameList:
#CHECK: - n_strx: 2
#CHECK: n_type: 0x1E
#CHECK: n_sect: 1
#CHECK: n_desc: 128
#CHECK: n_value: 4294971808
#CHECK: - n_strx: 69
#CHECK: n_type: 0x1E
#CHECK: n_sect: 1
#CHECK: n_desc: 128
#CHECK: n_value: 4294971888
#CHECK: - n_strx: 166
#CHECK: n_type: 0x1E
#CHECK: n_sect: 1
#CHECK: n_desc: 128
#CHECK: n_value: 4294973024
#CHECK: - n_strx: 204
#CHECK: n_type: 0x1E
#CHECK: n_sect: 1
#CHECK: n_desc: 128
#CHECK: n_value: 4294973056
#CHECK: - n_strx: 320
#CHECK: n_type: 0x1E
#CHECK: n_sect: 1
#CHECK: n_desc: 128
#CHECK: n_value: 4294974784
#CHECK: - n_strx: 344
#CHECK: n_type: 0x1E
#CHECK: n_sect: 1
#CHECK: n_desc: 128
#CHECK: n_value: 4294974800
#CHECK: - n_strx: 387
#CHECK: n_type: 0x1E
#CHECK: n_sect: 1
#CHECK: n_desc: 128
#CHECK: n_value: 4294974832
#CHECK: - n_strx: 420
#CHECK: n_type: 0x0E
#CHECK: n_sect: 4
#CHECK: n_desc: 0
#CHECK: n_value: 4294975104
#CHECK: - n_strx: 438
#CHECK: n_type: 0x0E
#CHECK: n_sect: 4
#CHECK: n_desc: 0
#CHECK: n_value: 4294975280
#CHECK: - n_strx: 456
#CHECK: n_type: 0x0F
#CHECK: n_sect: 1
#CHECK: n_desc: 16
#CHECK: n_value: 4294967296
#CHECK: - n_strx: 476
#CHECK: n_type: 0x0F
#CHECK: n_sect: 1
#CHECK: n_desc: 0
#CHECK: n_value: 4294971744
#CHECK: - n_strx: 482
#CHECK: n_type: 0x01
#CHECK: n_sect: 0
#CHECK: n_desc: 512
#CHECK: n_value: 0
#CHECK: - n_strx: 498
#CHECK: n_type: 0x01
#CHECK: n_sect: 0
#CHECK: n_desc: 256
#CHECK: n_value: 0
#CHECK: - n_strx: 537
#CHECK: n_type: 0x01
#CHECK: n_sect: 0
#CHECK: n_desc: 256
#CHECK: n_value: 0
#CHECK: - n_strx: 567
#CHECK: n_type: 0x01
#CHECK: n_sect: 0
#CHECK: n_desc: 256
#CHECK: n_value: 0
#CHECK: - n_strx: 642
#CHECK: n_type: 0x01
#CHECK: n_sect: 0
#CHECK: n_desc: 256
#CHECK: n_value: 0
#CHECK: - n_strx: 711
#CHECK: n_type: 0x01
#CHECK: n_sect: 0
#CHECK: n_desc: 256
#CHECK: n_value: 0
#CHECK: - n_strx: 774
#CHECK: n_type: 0x01
#CHECK: n_sect: 0
#CHECK: n_desc: 256
#CHECK: n_value: 0
#CHECK: - n_strx: 834
#CHECK: n_type: 0x01
#CHECK: n_sect: 0
#CHECK: n_desc: 256
#CHECK: n_value: 0
#CHECK: - n_strx: 851
#CHECK: n_type: 0x01
#CHECK: n_sect: 0
#CHECK: n_desc: 256
#CHECK: n_value: 0
#CHECK: - n_strx: 875
#CHECK: n_type: 0x01
#CHECK: n_sect: 0
#CHECK: n_desc: 256
#CHECK: n_value: 0
#CHECK: - n_strx: 897
#CHECK: n_type: 0x01
#CHECK: n_sect: 0
#CHECK: n_desc: 256
#CHECK: n_value: 0
#CHECK: - n_strx: 954
#CHECK: n_type: 0x01
#CHECK: n_sect: 0
#CHECK: n_desc: 256
#CHECK: n_value: 0
#CHECK: - n_strx: 982
#CHECK: n_type: 0x01
#CHECK: n_sect: 0
#CHECK: n_desc: 256
#CHECK: n_value: 0
#CHECK: - n_strx: 999
#CHECK: n_type: 0x01
#CHECK: n_sect: 0
#CHECK: n_desc: 256
#CHECK: n_value: 0
#CHECK: - n_strx: 1018
#CHECK: n_type: 0x01
#CHECK: n_sect: 0
#CHECK: n_desc: 256
#CHECK: n_value: 0
#CHECK: - n_strx: 1035
#CHECK: n_type: 0x01
#CHECK: n_sect: 0
#CHECK: n_desc: 256
#CHECK: n_value: 0
#CHECK: - n_strx: 1057
#CHECK: n_type: 0x01
#CHECK: n_sect: 0
#CHECK: n_desc: 512
#CHECK: n_value: 0
#CHECK: - n_strx: 1065
#CHECK: n_type: 0x01
#CHECK: n_sect: 0
#CHECK: n_desc: 512
#CHECK: n_value: 0
#CHECK: - n_strx: 1073
#CHECK: n_type: 0x01
#CHECK: n_sect: 0
#CHECK: n_desc: 512
#CHECK: n_value: 0
#CHECK: StringTable:
#CHECK: - ' '
#CHECK: - __ZNSt3__1lsINS_11char_traitsIcEEEERNS_13basic_ostreamIcT_EES6_PKc
#CHECK: - __ZNSt3__124__put_character_sequenceIcNS_11char_traitsIcEEEERNS_13basic_ostreamIT_T0_EES7_PKS4_m
#CHECK: - __ZNSt3__111char_traitsIcE6lengthEPKc
#CHECK: - __ZNSt3__116__pad_and_outputIcNS_11char_traitsIcEEEENS_19ostreambuf_iteratorIT_T0_EES6_PKS4_S8_S8_RNS_8ios_baseES4_
#CHECK: - ___clang_call_terminate
#CHECK: - __ZNSt3__111char_traitsIcE11eq_int_typeEii
#CHECK: - __ZNSt3__111char_traitsIcE3eofEv
#CHECK: - GCC_except_table2
#CHECK: - GCC_except_table4
#CHECK: - __mh_execute_header
#CHECK: - _main
#CHECK: - __Unwind_Resume
#CHECK: - __ZNKSt3__16locale9use_facetERNS0_2idE
#CHECK: - __ZNKSt3__18ios_base6getlocEv
#CHECK: - __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEmc
#CHECK: - __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED1Ev
#CHECK: - __ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEE6sentryC1ERS3_
#CHECK: - __ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEE6sentryD1Ev
#CHECK: - __ZNSt3__14coutE
#CHECK: - __ZNSt3__15ctypeIcE2idE
#CHECK: - __ZNSt3__16localeD1Ev
#CHECK: - __ZNSt3__18ios_base33__set_badbit_and_consider_rethrowEv
#CHECK: - __ZNSt3__18ios_base5clearEj
#CHECK: - __ZSt9terminatev
#CHECK: - ___cxa_begin_catch
#CHECK: - ___cxa_end_catch
#CHECK: - ___gxx_personality_v0
#CHECK: - _memset
#CHECK: - _strlen
#CHECK: - dyld_stub_binder
|