1# RUN: yaml2obj %s | llvm-dwarfdump --uuid - | FileCheck %s
2# CHECK: UUID: 229E6146-A7AB-3BA0-8B17-DD5125D3AFEF (i386) <stdin>
3--- !mach-o
4FileHeader:      
5  magic:           0xFEEDFACE
6  cputype:         0x00000007
7  cpusubtype:      0x00000003
8  filetype:        0x00000002
9  ncmds:           14
10  sizeofcmds:      648
11  flags:           0x01200085
12LoadCommands:    
13  - cmd:             LC_SEGMENT
14    cmdsize:         56
15    segname:         __PAGEZERO
16    vmaddr:          0
17    vmsize:          4096
18    fileoff:         0
19    filesize:        0
20    maxprot:         0
21    initprot:        0
22    nsects:          0
23    flags:           0
24  - cmd:             LC_SEGMENT
25    cmdsize:         192
26    segname:         __TEXT
27    vmaddr:          4096
28    vmsize:          4096
29    fileoff:         0
30    filesize:        4096
31    maxprot:         7
32    initprot:        5
33    nsects:          2
34    flags:           0
35    Sections:        
36      - sectname:        __text
37        segname:         __TEXT
38        addr:            0x0000000000001FB1
39        size:            7
40        offset:          0x00000FB1
41        align:           0
42        reloff:          0x00000000
43        nreloc:          0
44        flags:           0x80000400
45        reserved1:       0x00000000
46        reserved2:       0x00000000
47        reserved3:       0x00000000
48      - sectname:        __unwind_info
49        segname:         __TEXT
50        addr:            0x0000000000001FB8
51        size:            72
52        offset:          0x00000FB8
53        align:           2
54        reloff:          0x00000000
55        nreloc:          0
56        flags:           0x00000000
57        reserved1:       0x00000000
58        reserved2:       0x00000000
59        reserved3:       0x00000000
60  - cmd:             LC_SEGMENT
61    cmdsize:         56
62    segname:         __LINKEDIT
63    vmaddr:          8192
64    vmsize:          4096
65    fileoff:         4096
66    filesize:        132
67    maxprot:         7
68    initprot:        1
69    nsects:          0
70    flags:           0
71  - cmd:             LC_DYLD_INFO_ONLY
72    cmdsize:         48
73    rebase_off:      0
74    rebase_size:     0
75    bind_off:        0
76    bind_size:       0
77    weak_bind_off:   0
78    weak_bind_size:  0
79    lazy_bind_off:   0
80    lazy_bind_size:  0
81    export_off:      4096
82    export_size:     44
83  - cmd:             LC_SYMTAB
84    cmdsize:         24
85    symoff:          4144
86    nsyms:           3
87    stroff:          4180
88    strsize:         48
89  - cmd:             LC_DYSYMTAB
90    cmdsize:         80
91    ilocalsym:       0
92    nlocalsym:       0
93    iextdefsym:      0
94    nextdefsym:      2
95    iundefsym:       2
96    nundefsym:       1
97    tocoff:          0
98    ntoc:            0
99    modtaboff:       0
100    nmodtab:         0
101    extrefsymoff:    0
102    nextrefsyms:     0
103    indirectsymoff:  0
104    nindirectsyms:   0
105    extreloff:       0
106    nextrel:         0
107    locreloff:       0
108    nlocrel:         0
109  - cmd:             LC_LOAD_DYLINKER
110    cmdsize:         28
111    name:            12
112    PayloadString:   /usr/lib/dyld
113    ZeroPadBytes:    3
114  - cmd:             LC_UUID
115    cmdsize:         24
116    uuid:            229E6146-A7AB-3BA0-8B17-DD5125D3AFEF
117  - cmd:             LC_VERSION_MIN_MACOSX
118    cmdsize:         16
119    version:         658688
120    sdk:             658688
121  - cmd:             LC_SOURCE_VERSION
122    cmdsize:         16
123    version:         0
124  - cmd:             LC_MAIN
125    cmdsize:         24
126    entryoff:        4017
127    stacksize:       0
128  - cmd:             LC_LOAD_DYLIB
129    cmdsize:         52
130    dylib:           
131      name:            24
132      timestamp:       2
133      current_version: 81985536
134      compatibility_version: 65536
135    PayloadString:   /usr/lib/libSystem.B.dylib
136    ZeroPadBytes:    2
137  - cmd:             LC_FUNCTION_STARTS
138    cmdsize:         16
139    dataoff:         4140
140    datasize:        4
141  - cmd:             LC_DATA_IN_CODE
142    cmdsize:         16
143    dataoff:         4144
144    datasize:        0
145LinkEditData:    
146  ExportTrie:      
147    TerminalSize:    0
148    NodeOffset:      0
149    Name:            ''
150    Flags:           0x0000000000000000
151    Address:         0x0000000000000000
152    Other:           0x0000000000000000
153    ImportName:      ''
154    Children:        
155      - TerminalSize:    0
156        NodeOffset:      5
157        Name:            _
158        Flags:           0x0000000000000000
159        Address:         0x0000000000000000
160        Other:           0x0000000000000000
161        ImportName:      ''
162        Children:        
163          - TerminalSize:    2
164            NodeOffset:      33
165            Name:            _mh_execute_header
166            Flags:           0x0000000000000000
167            Address:         0x0000000000000000
168            Other:           0x0000000000000000
169            ImportName:      ''
170          - TerminalSize:    3
171            NodeOffset:      37
172            Name:            main
173            Flags:           0x0000000000000000
174            Address:         0x0000000000000FB1
175            Other:           0x0000000000000000
176            ImportName:      ''
177  NameList:        
178    - n_strx:          2
179      n_type:          0x0F
180      n_sect:          1
181      n_desc:          16
182      n_value:         4096
183    - n_strx:          22
184      n_type:          0x0F
185      n_sect:          1
186      n_desc:          0
187      n_value:         8113
188    - n_strx:          28
189      n_type:          0x01
190      n_sect:          0
191      n_desc:          256
192      n_value:         0
193  StringTable:     
194    - ' '
195    - __mh_execute_header
196    - _main
197    - dyld_stub_binder
198    - ''
199    - ''
200    - ''
201...
202