1# RUN: yaml2obj %s -o %t
2# RUN: llvm-objdump --macho --reloc %t | FileCheck %s --check-prefix=OBJDUMP-VERIFY
3
4# OBJDUMP-VERIFY: Relocation information (__TEXT,__text) 8 entries
5# OBJDUMP-VERIFY-NEXT: address  pcrel length extern type    scattered symbolnum/value
6# OBJDUMP-VERIFY-NEXT: 00000030 False long   n/a    11      True      0x00000144
7# OBJDUMP-VERIFY-NEXT: 00000000 False long   n/a    1       True      0x00000018
8# OBJDUMP-VERIFY-NEXT: 0000002c False long   n/a    12      True      0x00000144
9# OBJDUMP-VERIFY-NEXT: 0000012c False long   n/a    1       True      0x00000018
10# OBJDUMP-VERIFY-NEXT: 00000028 False long   n/a    11      True      0x000000d4
11# OBJDUMP-VERIFY-NEXT: 00000000 False long   n/a    1       True      0x00000018
12# OBJDUMP-VERIFY-NEXT: 00000024 False long   n/a    12      True      0x000000d4
13# OBJDUMP-VERIFY-NEXT: 000000bc False long   n/a    1       True      0x00000018
14# OBJDUMP-VERIFY-NEXT: Relocation information (__TEXT,__StaticInit) 13 entries
15# OBJDUMP-VERIFY-NEXT: address  pcrel length extern type    scattered symbolnum/value
16# OBJDUMP-VERIFY-NEXT: 00000064 True  long   False  3       False     4 (__TEXT,__StaticInit)
17# OBJDUMP-VERIFY-NEXT: 00000034 False long   n/a    11      True      0x00000144
18# OBJDUMP-VERIFY-NEXT: 00000000 False long   n/a    1       True      0x00000068
19# OBJDUMP-VERIFY-NEXT: 00000030 False long   n/a    12      True      0x00000144
20# OBJDUMP-VERIFY-NEXT: 000000dc False long   n/a    1       True      0x00000068
21# OBJDUMP-VERIFY-NEXT: 00000028 False long   n/a    11      True      0x000000d0
22# OBJDUMP-VERIFY-NEXT: 00000000 False long   n/a    1       True      0x00000068
23# OBJDUMP-VERIFY-NEXT: 00000024 False long   n/a    12      True      0x000000d0
24# OBJDUMP-VERIFY-NEXT: 00000068 False long   n/a    1       True      0x00000068
25# OBJDUMP-VERIFY-NEXT: 00000020 False long   n/a    11      True      0x000000cc
26# OBJDUMP-VERIFY-NEXT: 00000000 False long   n/a    1       True      0x00000068
27# OBJDUMP-VERIFY-NEXT: 0000001c False long   n/a    12      True      0x000000cc
28# OBJDUMP-VERIFY-NEXT: 00000064 False long   n/a    1       True      0x00000068
29# OBJDUMP-VERIFY-NEXT: Relocation information (__DATA,__data) 1 entries
30# OBJDUMP-VERIFY-NEXT: address  pcrel length extern type    scattered symbolnum/value
31# OBJDUMP-VERIFY-NEXT: 00000008 False long   False  0       False     5 (__DATA,__data)
32# OBJDUMP-VERIFY-NEXT: Relocation information (__DATA,__mod_init_func) 1 entries
33# OBJDUMP-VERIFY-NEXT: address  pcrel length extern type    scattered symbolnum/value
34# OBJDUMP-VERIFY-NEXT: 00000000 False long   False  0       False     4 (__TEXT,__StaticInit)
35# OBJDUMP-VERIFY-NEXT: Relocation information (__TEXT,__eh_frame) 3 entries
36# OBJDUMP-VERIFY-NEXT: address  pcrel length extern type    scattered symbolnum/value
37# OBJDUMP-VERIFY-NEXT: 00000054 False long   n/a    0       True      0x000000a0
38# OBJDUMP-VERIFY-NEXT: 00000038 False long   n/a    0       True      0x00000000
39# OBJDUMP-VERIFY-NEXT: 0000001c False long   n/a    0       True      0x00000050
40
41# RUN: obj2yaml %t | FileCheck %s
42
43# CHECK:     Sections:
44# CHECK-NEXT:       - sectname:        __text
45# CHECK-NEXT:         segname:         __TEXT
46# CHECK-NEXT:         addr:            0x0
47# CHECK-NEXT:         size:            76
48# CHECK-NEXT:         offset:          0x2EC
49# CHECK-NEXT:         align:           4
50# CHECK-NEXT:         reloff:          0x430
51# CHECK-NEXT:         nreloc:          8
52# CHECK-NEXT:         flags:           0x80000400
53# CHECK-NEXT:         reserved1:       0x0
54# CHECK-NEXT:         reserved2:       0x0
55# CHECK-NEXT:         reserved3:       0x0
56# CHECK-NEXT:         content:
57# CHECK-NEXT:         relocations:
58# CHECK-NEXT:           - address:         0x30
59# CHECK-NEXT:             symbolnum:       0
60# CHECK-NEXT:             pcrel:           false
61# CHECK-NEXT:             length:          2
62# CHECK-NEXT:             extern:          false
63# CHECK-NEXT:             type:            11
64# CHECK-NEXT:             scattered:       true
65# CHECK-NEXT:             value:           324
66# CHECK-NEXT:           - address:         0x0
67# CHECK-NEXT:             symbolnum:       0
68# CHECK-NEXT:             pcrel:           false
69# CHECK-NEXT:             length:          2
70# CHECK-NEXT:             extern:          false
71# CHECK-NEXT:             type:            1
72# CHECK-NEXT:             scattered:       true
73# CHECK-NEXT:             value:           24
74# CHECK-NEXT:           - address:         0x2C
75# CHECK-NEXT:             symbolnum:       0
76# CHECK-NEXT:             pcrel:           false
77# CHECK-NEXT:             length:          2
78# CHECK-NEXT:             extern:          false
79# CHECK-NEXT:             type:            12
80# CHECK-NEXT:             scattered:       true
81# CHECK-NEXT:             value:           324
82# CHECK-NEXT:           - address:         0x12C
83# CHECK-NEXT:             symbolnum:       0
84# CHECK-NEXT:             pcrel:           false
85# CHECK-NEXT:             length:          2
86# CHECK-NEXT:             extern:          false
87# CHECK-NEXT:             type:            1
88# CHECK-NEXT:             scattered:       true
89# CHECK-NEXT:             value:           24
90# CHECK-NEXT:           - address:         0x28
91# CHECK-NEXT:             symbolnum:       0
92# CHECK-NEXT:             pcrel:           false
93# CHECK-NEXT:             length:          2
94# CHECK-NEXT:             extern:          false
95# CHECK-NEXT:             type:            11
96# CHECK-NEXT:             scattered:       true
97# CHECK-NEXT:             value:           212
98# CHECK-NEXT:           - address:         0x0
99# CHECK-NEXT:             symbolnum:       0
100# CHECK-NEXT:             pcrel:           false
101# CHECK-NEXT:             length:          2
102# CHECK-NEXT:             extern:          false
103# CHECK-NEXT:             type:            1
104# CHECK-NEXT:             scattered:       true
105# CHECK-NEXT:             value:           24
106# CHECK-NEXT:           - address:         0x24
107# CHECK-NEXT:             symbolnum:       0
108# CHECK-NEXT:             pcrel:           false
109# CHECK-NEXT:             length:          2
110# CHECK-NEXT:             extern:          false
111# CHECK-NEXT:             type:            12
112# CHECK-NEXT:             scattered:       true
113# CHECK-NEXT:             value:           212
114# CHECK-NEXT:           - address:         0xBC
115# CHECK-NEXT:             symbolnum:       0
116# CHECK-NEXT:             pcrel:           false
117# CHECK-NEXT:             length:          2
118# CHECK-NEXT:             extern:          false
119# CHECK-NEXT:             type:            1
120# CHECK-NEXT:             scattered:       true
121# CHECK-NEXT:             value:           24
122# CHECK-NEXT:       - sectname:        __textcoal_nt
123# CHECK-NEXT:         segname:         __TEXT
124# CHECK-NEXT:         addr:            0x4C
125# CHECK-NEXT:         size:            0
126# CHECK-NEXT:         offset:          0x338
127# CHECK-NEXT:         align:           0
128# CHECK-NEXT:         reloff:          0x0
129# CHECK-NEXT:         nreloc:          0
130# CHECK-NEXT:         flags:           0x8000000B
131# CHECK-NEXT:         reserved1:       0x0
132# CHECK-NEXT:         reserved2:       0x0
133# CHECK-NEXT:         reserved3:       0x0
134# CHECK-NEXT:         content:         ''
135# CHECK-NEXT:       - sectname:        __picsymbolstub1
136# CHECK-NEXT:         segname:         __TEXT
137# CHECK-NEXT:         addr:            0x4C
138# CHECK-NEXT:         size:            0
139# CHECK-NEXT:         offset:          0x338
140# CHECK-NEXT:         align:           0
141# CHECK-NEXT:         reloff:          0x0
142# CHECK-NEXT:         nreloc:          0
143# CHECK-NEXT:         flags:           0x80000008
144# CHECK-NEXT:         reserved1:       0x0
145# CHECK-NEXT:         reserved2:       0x20
146# CHECK-NEXT:         reserved3:       0x0
147# CHECK-NEXT:         content:         ''
148# CHECK-NEXT:       - sectname:        __StaticInit
149# CHECK-NEXT:         segname:         __TEXT
150# CHECK-NEXT:         addr:            0x50
151# CHECK-NEXT:         size:            124
152# CHECK-NEXT:         offset:          0x33C
153# CHECK-NEXT:         align:           4
154# CHECK-NEXT:         reloff:          0x470
155# CHECK-NEXT:         nreloc:          13
156# CHECK-NEXT:         flags:           0x80000400
157# CHECK-NEXT:         reserved1:       0x0
158# CHECK-NEXT:         reserved2:       0x0
159# CHECK-NEXT:         reserved3:       0x0
160# CHECK-NEXT:         content:
161# CHECK-NEXT:         relocations:
162# CHECK-NEXT:           - address:         0x64
163# CHECK-NEXT:             symbolnum:       4
164# CHECK-NEXT:             pcrel:           true
165# CHECK-NEXT:             length:          2
166# CHECK-NEXT:             extern:          false
167# CHECK-NEXT:             type:            3
168# CHECK-NEXT:             scattered:       false
169# CHECK-NEXT:             value:           0
170# CHECK-NEXT:           - address:         0x34
171# CHECK-NEXT:             symbolnum:       0
172# CHECK-NEXT:             pcrel:           false
173# CHECK-NEXT:             length:          2
174# CHECK-NEXT:             extern:          false
175# CHECK-NEXT:             type:            11
176# CHECK-NEXT:             scattered:       true
177# CHECK-NEXT:             value:           324
178# CHECK-NEXT:           - address:         0x0
179# CHECK-NEXT:             symbolnum:       0
180# CHECK-NEXT:             pcrel:           false
181# CHECK-NEXT:             length:          2
182# CHECK-NEXT:             extern:          false
183# CHECK-NEXT:             type:            1
184# CHECK-NEXT:             scattered:       true
185# CHECK-NEXT:             value:           104
186# CHECK-NEXT:           - address:         0x30
187# CHECK-NEXT:             symbolnum:       0
188# CHECK-NEXT:             pcrel:           false
189# CHECK-NEXT:             length:          2
190# CHECK-NEXT:             extern:          false
191# CHECK-NEXT:             type:            12
192# CHECK-NEXT:             scattered:       true
193# CHECK-NEXT:             value:           324
194# CHECK-NEXT:           - address:         0xDC
195# CHECK-NEXT:             symbolnum:       0
196# CHECK-NEXT:             pcrel:           false
197# CHECK-NEXT:             length:          2
198# CHECK-NEXT:             extern:          false
199# CHECK-NEXT:             type:            1
200# CHECK-NEXT:             scattered:       true
201# CHECK-NEXT:             value:           104
202# CHECK-NEXT:           - address:         0x28
203# CHECK-NEXT:             symbolnum:       0
204# CHECK-NEXT:             pcrel:           false
205# CHECK-NEXT:             length:          2
206# CHECK-NEXT:             extern:          false
207# CHECK-NEXT:             type:            11
208# CHECK-NEXT:             scattered:       true
209# CHECK-NEXT:             value:           208
210# CHECK-NEXT:           - address:         0x0
211# CHECK-NEXT:             symbolnum:       0
212# CHECK-NEXT:             pcrel:           false
213# CHECK-NEXT:             length:          2
214# CHECK-NEXT:             extern:          false
215# CHECK-NEXT:             type:            1
216# CHECK-NEXT:             scattered:       true
217# CHECK-NEXT:             value:           104
218# CHECK-NEXT:           - address:         0x24
219# CHECK-NEXT:             symbolnum:       0
220# CHECK-NEXT:             pcrel:           false
221# CHECK-NEXT:             length:          2
222# CHECK-NEXT:             extern:          false
223# CHECK-NEXT:             type:            12
224# CHECK-NEXT:             scattered:       true
225# CHECK-NEXT:             value:           208
226# CHECK-NEXT:           - address:         0x68
227# CHECK-NEXT:             symbolnum:       0
228# CHECK-NEXT:             pcrel:           false
229# CHECK-NEXT:             length:          2
230# CHECK-NEXT:             extern:          false
231# CHECK-NEXT:             type:            1
232# CHECK-NEXT:             scattered:       true
233# CHECK-NEXT:             value:           104
234# CHECK-NEXT:           - address:         0x20
235# CHECK-NEXT:             symbolnum:       0
236# CHECK-NEXT:             pcrel:           false
237# CHECK-NEXT:             length:          2
238# CHECK-NEXT:             extern:          false
239# CHECK-NEXT:             type:            11
240# CHECK-NEXT:             scattered:       true
241# CHECK-NEXT:             value:           204
242# CHECK-NEXT:           - address:         0x0
243# CHECK-NEXT:             symbolnum:       0
244# CHECK-NEXT:             pcrel:           false
245# CHECK-NEXT:             length:          2
246# CHECK-NEXT:             extern:          false
247# CHECK-NEXT:             type:            1
248# CHECK-NEXT:             scattered:       true
249# CHECK-NEXT:             value:           104
250# CHECK-NEXT:           - address:         0x1C
251# CHECK-NEXT:             symbolnum:       0
252# CHECK-NEXT:             pcrel:           false
253# CHECK-NEXT:             length:          2
254# CHECK-NEXT:             extern:          false
255# CHECK-NEXT:             type:            12
256# CHECK-NEXT:             scattered:       true
257# CHECK-NEXT:             value:           204
258# CHECK-NEXT:           - address:         0x64
259# CHECK-NEXT:             symbolnum:       0
260# CHECK-NEXT:             pcrel:           false
261# CHECK-NEXT:             length:          2
262# CHECK-NEXT:             extern:          false
263# CHECK-NEXT:             type:            1
264# CHECK-NEXT:             scattered:       true
265# CHECK-NEXT:             value:           104
266# CHECK-NEXT:       - sectname:        __data
267# CHECK-NEXT:         segname:         __DATA
268# CHECK-NEXT:         addr:            0xCC
269# CHECK-NEXT:         size:            12
270# CHECK-NEXT:         offset:          0x3B8
271# CHECK-NEXT:         align:           2
272# CHECK-NEXT:         reloff:          0x4D8
273# CHECK-NEXT:         nreloc:          1
274# CHECK-NEXT:         flags:           0x0
275# CHECK-NEXT:         reserved1:       0x0
276# CHECK-NEXT:         reserved2:       0x0
277# CHECK-NEXT:         reserved3:       0x0
278# CHECK-NEXT:         content:
279# CHECK-NEXT:         relocations:
280# CHECK-NEXT:           - address:         0x8
281# CHECK-NEXT:             symbolnum:       5
282# CHECK-NEXT:             pcrel:           false
283# CHECK-NEXT:             length:          2
284# CHECK-NEXT:             extern:          false
285# CHECK-NEXT:             type:            0
286# CHECK-NEXT:             scattered:       false
287# CHECK-NEXT:             value:           0
288# CHECK-NEXT:       - sectname:        __common
289# CHECK-NEXT:         segname:         __DATA
290# CHECK-NEXT:         addr:            0x144
291# CHECK-NEXT:         size:            4
292# CHECK-NEXT:         offset:          0x0
293# CHECK-NEXT:         align:           2
294# CHECK-NEXT:         reloff:          0x0
295# CHECK-NEXT:         nreloc:          0
296# CHECK-NEXT:         flags:           0x1
297# CHECK-NEXT:         reserved1:       0x0
298# CHECK-NEXT:         reserved2:       0x0
299# CHECK-NEXT:         reserved3:       0x0
300# CHECK-NEXT:       - sectname:        __mod_init_func
301# CHECK-NEXT:         segname:         __DATA
302# CHECK-NEXT:         addr:            0xD8
303# CHECK-NEXT:         size:            4
304# CHECK-NEXT:         offset:          0x3C4
305# CHECK-NEXT:         align:           2
306# CHECK-NEXT:         reloff:          0x4E0
307# CHECK-NEXT:         nreloc:          1
308# CHECK-NEXT:         flags:           0x9
309# CHECK-NEXT:         reserved1:       0x0
310# CHECK-NEXT:         reserved2:       0x0
311# CHECK-NEXT:         reserved3:       0x0
312# CHECK-NEXT:         content:         000000A0
313# CHECK-NEXT:         relocations:
314# CHECK-NEXT:           - address:         0x0
315# CHECK-NEXT:             symbolnum:       4
316# CHECK-NEXT:             pcrel:           false
317# CHECK-NEXT:             length:          2
318# CHECK-NEXT:             extern:          false
319# CHECK-NEXT:             type:            0
320# CHECK-NEXT:             scattered:       false
321# CHECK-NEXT:             value:           0
322# CHECK-NEXT:       - sectname:        __eh_frame
323# CHECK-NEXT:         segname:         __TEXT
324# CHECK-NEXT:         addr:            0xDC
325# CHECK-NEXT:         size:            104
326# CHECK-NEXT:         offset:          0x3C8
327# CHECK-NEXT:         align:           2
328# CHECK-NEXT:         reloff:          0x4E8
329# CHECK-NEXT:         nreloc:          3
330# CHECK-NEXT:         flags:           0x6800000B
331# CHECK-NEXT:         reserved1:       0x0
332# CHECK-NEXT:         reserved2:       0x0
333# CHECK-NEXT:         reserved3:       0x0
334# CHECK-NEXT:         content:
335# CHECK-NEXT:         relocations:
336# CHECK-NEXT:           - address:         0x54
337# CHECK-NEXT:             symbolnum:       0
338# CHECK-NEXT:             pcrel:           false
339# CHECK-NEXT:             length:          2
340# CHECK-NEXT:             extern:          false
341# CHECK-NEXT:             type:            0
342# CHECK-NEXT:             scattered:       true
343# CHECK-NEXT:             value:           160
344# CHECK-NEXT:           - address:         0x38
345# CHECK-NEXT:             symbolnum:       0
346# CHECK-NEXT:             pcrel:           false
347# CHECK-NEXT:             length:          2
348# CHECK-NEXT:             extern:          false
349# CHECK-NEXT:             type:            0
350# CHECK-NEXT:             scattered:       true
351# CHECK-NEXT:             value:           0
352# CHECK-NEXT:           - address:         0x1C
353# CHECK-NEXT:             symbolnum:       0
354# CHECK-NEXT:             pcrel:           false
355# CHECK-NEXT:             length:          2
356# CHECK-NEXT:             extern:          false
357# CHECK-NEXT:             type:            0
358# CHECK-NEXT:             scattered:       true
359# CHECK-NEXT:             value:           80
360
361--- !mach-o
362IsLittleEndian:  false
363FileHeader:
364  magic:           0xFEEDFACE
365  cputype:         0x00000012
366  cpusubtype:      0x00000000
367  filetype:        0x00000001
368  ncmds:           4
369  sizeofcmds:      720
370  flags:           0x00002000
371LoadCommands:
372  - cmd:             LC_SEGMENT
373    cmdsize:         600
374    segname:         ''
375    vmaddr:          0
376    vmsize:          328
377    fileoff:         748
378    filesize:        324
379    maxprot:         7
380    initprot:        7
381    nsects:          8
382    flags:           0
383    Sections:
384      - sectname:        __text
385        segname:         __TEXT
386        addr:            0x0000000000000000
387        size:            76
388        offset:          0x000002EC
389        align:           4
390        reloff:          0x00000430
391        nreloc:          8
392        flags:           0x80000400
393        reserved1:       0x00000000
394        reserved2:       0x00000000
395        reserved3:       0x00000000
396        content:         7C0802A693E1FFFC900100089421FFE07C3F0B78480000057C4802A638600000907F00183C620000806300BC3C4200008042012C7C631214382100208001000883E1FFFC7C0803A64E800020
397        relocations:
398          - address:         0x00000030
399            symbolnum:       0
400            pcrel:           false
401            length:          2
402            extern:          false
403            type:            11
404            scattered:       true
405            value:           324
406          - address:         0x00000000
407            symbolnum:       0
408            pcrel:           false
409            length:          2
410            extern:          false
411            type:            1
412            scattered:       true
413            value:           24
414          - address:         0x0000002C
415            symbolnum:       0
416            pcrel:           false
417            length:          2
418            extern:          false
419            type:            12
420            scattered:       true
421            value:           324
422          - address:         0x0000012C
423            symbolnum:       0
424            pcrel:           false
425            length:          2
426            extern:          false
427            type:            1
428            scattered:       true
429            value:           24
430          - address:         0x00000028
431            symbolnum:       0
432            pcrel:           false
433            length:          2
434            extern:          false
435            type:            11
436            scattered:       true
437            value:           212
438          - address:         0x00000000
439            symbolnum:       0
440            pcrel:           false
441            length:          2
442            extern:          false
443            type:            1
444            scattered:       true
445            value:           24
446          - address:         0x00000024
447            symbolnum:       0
448            pcrel:           false
449            length:          2
450            extern:          false
451            type:            12
452            scattered:       true
453            value:           212
454          - address:         0x000000BC
455            symbolnum:       0
456            pcrel:           false
457            length:          2
458            extern:          false
459            type:            1
460            scattered:       true
461            value:           24
462      - sectname:        __textcoal_nt
463        segname:         __TEXT
464        addr:            0x000000000000004C
465        size:            0
466        offset:          0x00000338
467        align:           0
468        reloff:          0x00000000
469        nreloc:          0
470        flags:           0x8000000B
471        reserved1:       0x00000000
472        reserved2:       0x00000000
473        reserved3:       0x00000000
474        content:         ''
475      - sectname:        __picsymbolstub1
476        segname:         __TEXT
477        addr:            0x000000000000004C
478        size:            0
479        offset:          0x00000338
480        align:           0
481        reloff:          0x00000000
482        nreloc:          0
483        flags:           0x80000008
484        reserved1:       0x00000000
485        reserved2:       0x00000020
486        reserved3:       0x00000000
487        content:         ''
488      - sectname:        __StaticInit
489        segname:         __TEXT
490        addr:            0x0000000000000050
491        size:            124
492        offset:          0x0000033C
493        align:           4
494        reloff:          0x00000470
495        nreloc:          13
496        flags:           0x80000400
497        reserved1:       0x00000000
498        reserved2:       0x00000000
499        reserved3:       0x00000000
500        content:         7C0802A693E1FFFC900100089421FFE07C3F0B78480000057C4802A63C620000386300643C820000388400687C6418503C420000906200DC382100208001000883E1FFFC7C0803A64E800020600000007C0802A693E1FFFC900100089421FFC07C3F0B784BFFFF9D382100408001000883E1FFFC7C0803A64E800020
501        relocations:
502          - address:         0x00000064
503            symbolnum:       4
504            pcrel:           true
505            length:          2
506            extern:          false
507            type:            3
508            scattered:       false
509            value:           0
510          - address:         0x00000034
511            symbolnum:       0
512            pcrel:           false
513            length:          2
514            extern:          false
515            type:            11
516            scattered:       true
517            value:           324
518          - address:         0x00000000
519            symbolnum:       0
520            pcrel:           false
521            length:          2
522            extern:          false
523            type:            1
524            scattered:       true
525            value:           104
526          - address:         0x00000030
527            symbolnum:       0
528            pcrel:           false
529            length:          2
530            extern:          false
531            type:            12
532            scattered:       true
533            value:           324
534          - address:         0x000000DC
535            symbolnum:       0
536            pcrel:           false
537            length:          2
538            extern:          false
539            type:            1
540            scattered:       true
541            value:           104
542          - address:         0x00000028
543            symbolnum:       0
544            pcrel:           false
545            length:          2
546            extern:          false
547            type:            11
548            scattered:       true
549            value:           208
550          - address:         0x00000000
551            symbolnum:       0
552            pcrel:           false
553            length:          2
554            extern:          false
555            type:            1
556            scattered:       true
557            value:           104
558          - address:         0x00000024
559            symbolnum:       0
560            pcrel:           false
561            length:          2
562            extern:          false
563            type:            12
564            scattered:       true
565            value:           208
566          - address:         0x00000068
567            symbolnum:       0
568            pcrel:           false
569            length:          2
570            extern:          false
571            type:            1
572            scattered:       true
573            value:           104
574          - address:         0x00000020
575            symbolnum:       0
576            pcrel:           false
577            length:          2
578            extern:          false
579            type:            11
580            scattered:       true
581            value:           204
582          - address:         0x00000000
583            symbolnum:       0
584            pcrel:           false
585            length:          2
586            extern:          false
587            type:            1
588            scattered:       true
589            value:           104
590          - address:         0x0000001C
591            symbolnum:       0
592            pcrel:           false
593            length:          2
594            extern:          false
595            type:            12
596            scattered:       true
597            value:           204
598          - address:         0x00000064
599            symbolnum:       0
600            pcrel:           false
601            length:          2
602            extern:          false
603            type:            1
604            scattered:       true
605            value:           104
606      - sectname:        __data
607        segname:         __DATA
608        addr:            0x00000000000000CC
609        size:            12
610        offset:          0x000003B8
611        align:           2
612        reloff:          0x000004D8
613        nreloc:          1
614        flags:           0x00000000
615        reserved1:       0x00000000
616        reserved2:       0x00000000
617        reserved3:       0x00000000
618        content:         0000000100000002000000CC
619        relocations:
620          - address:         0x00000008
621            symbolnum:       5
622            pcrel:           false
623            length:          2
624            extern:          false
625            type:            0
626            scattered:       false
627            value:           0
628      - sectname:        __common
629        segname:         __DATA
630        addr:            0x0000000000000144
631        size:            4
632        offset:          0x00000000
633        align:           2
634        reloff:          0x00000000
635        nreloc:          0
636        flags:           0x00000001
637        reserved1:       0x00000000
638        reserved2:       0x00000000
639        reserved3:       0x00000000
640      - sectname:        __mod_init_func
641        segname:         __DATA
642        addr:            0x00000000000000D8
643        size:            4
644        offset:          0x000003C4
645        align:           2
646        reloff:          0x000004E0
647        nreloc:          1
648        flags:           0x00000009
649        reserved1:       0x00000000
650        reserved2:       0x00000000
651        reserved3:       0x00000000
652        content:         000000A0
653        relocations:
654          - address:         0x00000000
655            symbolnum:       4
656            pcrel:           false
657            length:          2
658            extern:          false
659            type:            0
660            scattered:       false
661            value:           0
662      - sectname:        __eh_frame
663        segname:         __TEXT
664        addr:            0x00000000000000DC
665        size:            104
666        offset:          0x000003C8
667        align:           2
668        reloff:          0x000004E8
669        nreloc:          3
670        flags:           0x6800000B
671        reserved1:       0x00000000
672        reserved2:       0x00000000
673        reserved3:       0x00000000
674        content:         0000001000000000017A5200017C4101100C01000000001800000018FFFFFF580000004C00500E209F0111417E440D1F0000001800000034FFFFFEEC0000004C00500E209F0111417E440D1F0000001800000050FFFFFF700000002C00500E409F0111417E440D1F
675        relocations:
676          - address:         0x00000054
677            symbolnum:       0
678            pcrel:           false
679            length:          2
680            extern:          false
681            type:            0
682            scattered:       true
683            value:           160
684          - address:         0x00000038
685            symbolnum:       0
686            pcrel:           false
687            length:          2
688            extern:          false
689            type:            0
690            scattered:       true
691            value:           0
692          - address:         0x0000001C
693            symbolnum:       0
694            pcrel:           false
695            length:          2
696            extern:          false
697            type:            0
698            scattered:       true
699            value:           80
700  - cmd:             LC_VERSION_MIN_MACOSX
701    cmdsize:         16
702    version:         656384
703    sdk:             0
704  - cmd:             LC_SYMTAB
705    cmdsize:         24
706    symoff:          1280
707    nsyms:           7
708    stroff:          1364
709    strsize:         68
710  - cmd:             LC_DYSYMTAB
711    cmdsize:         80
712    ilocalsym:       0
713    nlocalsym:       2
714    iextdefsym:      2
715    nextdefsym:      5
716    iundefsym:       7
717    nundefsym:       0
718    tocoff:          0
719    ntoc:            0
720    modtaboff:       0
721    nmodtab:         0
722    extrefsymoff:    0
723    nextrefsyms:     0
724    indirectsymoff:  0
725    nindirectsyms:   0
726    extreloff:       0
727    nextrel:         0
728    locreloff:       0
729    nlocrel:         0
730LinkEditData:
731  NameList:
732    - n_strx:          13
733      n_type:          0x0E
734      n_sect:          4
735      n_desc:          0
736      n_value:         80
737    - n_strx:          36
738      n_type:          0x0E
739      n_sect:          4
740      n_desc:          0
741      n_value:         160
742    - n_strx:          61
743      n_type:          0x0F
744      n_sect:          1
745      n_desc:          0
746      n_value:         0
747    - n_strx:          10
748      n_type:          0x0F
749      n_sect:          6
750      n_desc:          0
751      n_value:         324
752    - n_strx:          7
753      n_type:          0x0F
754      n_sect:          5
755      n_desc:          0
756      n_value:         204
757    - n_strx:          4
758      n_type:          0x0F
759      n_sect:          5
760      n_desc:          0
761      n_value:         208
762    - n_strx:          1
763      n_type:          0x0F
764      n_sect:          5
765      n_desc:          0
766      n_value:         212
767  StringTable:
768    - ''
769    - _z
770    - _y
771    - _x
772    - _w
773    - ___cxx_global_var_init
774    - __GLOBAL__sub_I_main.cpp
775    - _main
776    - ''
777...
778