[obj2yaml] - Fix a comment. NFC.
[llvm-complete.git] / test / ObjectYAML / MachO / DWARF-debug_aranges.yaml
blob0b0421d6a09210e62f425afd7f3a4e11f59b937a
1 # RUN: yaml2obj %s | obj2yaml | FileCheck %s
3 --- !mach-o
4 FileHeader:      
5   magic:           0xFEEDFACF
6   cputype:         0x01000007
7   cpusubtype:      0x00000003
8   filetype:        0x0000000A
9   ncmds:           7
10   sizeofcmds:      1848
11   flags:           0x00000000
12   reserved:        0x00000000
13 LoadCommands:    
14   - cmd:             LC_UUID
15     cmdsize:         24
16     uuid:            B4D48511-37F4-3ED4-AFA7-1683DCE69AC4
17   - cmd:             LC_SYMTAB
18     cmdsize:         24
19     symoff:          4096
20     nsyms:           2
21     stroff:          4128
22     strsize:         28
23   - cmd:             LC_SEGMENT_64
24     cmdsize:         72
25     segname:         __PAGEZERO
26     vmaddr:          0
27     vmsize:          4294967296
28     fileoff:         0
29     filesize:        0
30     maxprot:         0
31     initprot:        0
32     nsects:          0
33     flags:           0
34   - cmd:             LC_SEGMENT_64
35     cmdsize:         472
36     segname:         __TEXT
37     vmaddr:          4294967296
38     vmsize:          4096
39     fileoff:         0
40     filesize:        0
41     maxprot:         7
42     initprot:        5
43     nsects:          5
44     flags:           0
45     Sections:        
46       - sectname:        __text
47         segname:         __TEXT
48         addr:            0x0000000100000F50
49         size:            52
50         offset:          0x00000000
51         align:           4
52         reloff:          0x00000000
53         nreloc:          0
54         flags:           0x80000400
55         reserved1:       0x00000000
56         reserved2:       0x00000000
57         reserved3:       0x00000000
58       - sectname:        __stubs
59         segname:         __TEXT
60         addr:            0x0000000100000F84
61         size:            6
62         offset:          0x00000000
63         align:           1
64         reloff:          0x00000000
65         nreloc:          0
66         flags:           0x80000408
67         reserved1:       0x00000000
68         reserved2:       0x00000006
69         reserved3:       0x00000000
70       - sectname:        __stub_helper
71         segname:         __TEXT
72         addr:            0x0000000100000F8C
73         size:            26
74         offset:          0x00000000
75         align:           2
76         reloff:          0x00000000
77         nreloc:          0
78         flags:           0x80000400
79         reserved1:       0x00000000
80         reserved2:       0x00000000
81         reserved3:       0x00000000
82       - sectname:        __cstring
83         segname:         __TEXT
84         addr:            0x0000000100000FA6
85         size:            14
86         offset:          0x00000000
87         align:           0
88         reloff:          0x00000000
89         nreloc:          0
90         flags:           0x00000002
91         reserved1:       0x00000000
92         reserved2:       0x00000000
93         reserved3:       0x00000000
94       - sectname:        __unwind_info
95         segname:         __TEXT
96         addr:            0x0000000100000FB4
97         size:            72
98         offset:          0x00000000
99         align:           2
100         reloff:          0x00000000
101         nreloc:          0
102         flags:           0x00000000
103         reserved1:       0x00000000
104         reserved2:       0x00000000
105         reserved3:       0x00000000
106   - cmd:             LC_SEGMENT_64
107     cmdsize:         232
108     segname:         __DATA
109     vmaddr:          4294971392
110     vmsize:          4096
111     fileoff:         0
112     filesize:        0
113     maxprot:         7
114     initprot:        3
115     nsects:          2
116     flags:           0
117     Sections:        
118       - sectname:        __nl_symbol_ptr
119         segname:         __DATA
120         addr:            0x0000000100001000
121         size:            16
122         offset:          0x00000000
123         align:           3
124         reloff:          0x00000000
125         nreloc:          0
126         flags:           0x00000006
127         reserved1:       0x00000001
128         reserved2:       0x00000000
129         reserved3:       0x00000000
130       - sectname:        __la_symbol_ptr
131         segname:         __DATA
132         addr:            0x0000000100001010
133         size:            8
134         offset:          0x00000000
135         align:           3
136         reloff:          0x00000000
137         nreloc:          0
138         flags:           0x00000007
139         reserved1:       0x00000003
140         reserved2:       0x00000000
141         reserved3:       0x00000000
142   - cmd:             LC_SEGMENT_64
143     cmdsize:         72
144     segname:         __LINKEDIT
145     vmaddr:          4294975488
146     vmsize:          4096
147     fileoff:         4096
148     filesize:        60
149     maxprot:         7
150     initprot:        1
151     nsects:          0
152     flags:           0
153   - cmd:             LC_SEGMENT_64
154     cmdsize:         952
155     segname:         __DWARF
156     vmaddr:          4294979584
157     vmsize:          4096
158     fileoff:         8192
159     filesize:        764
160     maxprot:         7
161     initprot:        3
162     nsects:          11
163     flags:           0
164     Sections:        
165       - sectname:        __debug_line
166         segname:         __DWARF
167         addr:            0x0000000100003000
168         size:            69
169         offset:          0x00002000
170         align:           0
171         reloff:          0x00000000
172         nreloc:          0
173         flags:           0x00000000
174         reserved1:       0x00000000
175         reserved2:       0x00000000
176         reserved3:       0x00000000
177       - sectname:        __debug_pubnames
178         segname:         __DWARF
179         addr:            0x0000000100003045
180         size:            27
181         offset:          0x00002045
182         align:           0
183         reloff:          0x00000000
184         nreloc:          0
185         flags:           0x00000000
186         reserved1:       0x00000000
187         reserved2:       0x00000000
188         reserved3:       0x00000000
189       - sectname:        __debug_pubtypes
190         segname:         __DWARF
191         addr:            0x0000000100003060
192         size:            35
193         offset:          0x00002060
194         align:           0
195         reloff:          0x00000000
196         nreloc:          0
197         flags:           0x00000000
198         reserved1:       0x00000000
199         reserved2:       0x00000000
200         reserved3:       0x00000000
201       - sectname:        __debug_aranges
202         segname:         __DWARF
203         addr:            0x0000000100003083
204         size:            48
205         offset:          0x00002083
206         align:           0
207         reloff:          0x00000000
208         nreloc:          0
209         flags:           0x00000000
210         reserved1:       0x00000000
211         reserved2:       0x00000000
212         reserved3:       0x00000000
213       - sectname:        __debug_info
214         segname:         __DWARF
215         addr:            0x00000001000030B3
216         size:            121
217         offset:          0x000020B3
218         align:           0
219         reloff:          0x00000000
220         nreloc:          0
221         flags:           0x00000000
222         reserved1:       0x00000000
223         reserved2:       0x00000000
224         reserved3:       0x00000000
225       - sectname:        __debug_abbrev
226         segname:         __DWARF
227         addr:            0x000000010000312C
228         size:            76
229         offset:          0x0000212C
230         align:           0
231         reloff:          0x00000000
232         nreloc:          0
233         flags:           0x00000000
234         reserved1:       0x00000000
235         reserved2:       0x00000000
236         reserved3:       0x00000000
237       - sectname:        __debug_str
238         segname:         __DWARF
239         addr:            0x0000000100003178
240         size:            142
241         offset:          0x00002178
242         align:           0
243         reloff:          0x00000000
244         nreloc:          0
245         flags:           0x00000000
246         reserved1:       0x00000000
247         reserved2:       0x00000000
248         reserved3:       0x00000000
249       - sectname:        __apple_names
250         segname:         __DWARF
251         addr:            0x0000000100003206
252         size:            60
253         offset:          0x00002206
254         align:           0
255         reloff:          0x00000000
256         nreloc:          0
257         flags:           0x00000000
258         reserved1:       0x00000000
259         reserved2:       0x00000000
260         reserved3:       0x00000000
261       - sectname:        __apple_namespac
262         segname:         __DWARF
263         addr:            0x0000000100003242
264         size:            36
265         offset:          0x00002242
266         align:           0
267         reloff:          0x00000000
268         nreloc:          0
269         flags:           0x00000000
270         reserved1:       0x00000000
271         reserved2:       0x00000000
272         reserved3:       0x00000000
273       - sectname:        __apple_types
274         segname:         __DWARF
275         addr:            0x0000000100003266
276         size:            114
277         offset:          0x00002266
278         align:           0
279         reloff:          0x00000000
280         nreloc:          0
281         flags:           0x00000000
282         reserved1:       0x00000000
283         reserved2:       0x00000000
284         reserved3:       0x00000000
285       - sectname:        __apple_objc
286         segname:         __DWARF
287         addr:            0x00000001000032D8
288         size:            36
289         offset:          0x000022D8
290         align:           0
291         reloff:          0x00000000
292         nreloc:          0
293         flags:           0x00000000
294         reserved1:       0x00000000
295         reserved2:       0x00000000
296         reserved3:       0x00000000
297 LinkEditData:    
298   NameList:        
299     - n_strx:          2
300       n_type:          0x0F
301       n_sect:          1
302       n_desc:          16
303       n_value:         4294967296
304     - n_strx:          22
305       n_type:          0x0F
306       n_sect:          1
307       n_desc:          0
308       n_value:         4294971216
309   StringTable:     
310     - ''
311     - ''
312     - __mh_execute_header
313     - _main
314 DWARF:           
315   debug_aranges:   
316     - Length:          
317         TotalLength:     44
318       Version:         2
319       CuOffset:        0
320       AddrSize:        8
321       SegSize:         0
322       Descriptors:     
323         - Address:         0x0000000100000F50
324           Length:          52
327 #CHECK: DWARF:           
328 #CHECK:   debug_aranges:   
329 #CHECK:     - Length:          
330 #CHECK:         TotalLength:     44
331 #CHECK:       Version:         2
332 #CHECK:       CuOffset:        0
333 #CHECK:       AddrSize:        8
334 #CHECK:       SegSize:         0
335 #CHECK:       Descriptors:     
336 #CHECK:         - Address:         0x0000000100000F50
337 #CHECK:           Length:          52