1 # REQUIRES: system-linux
3 # RUN: llvm-mc -dwarf-version=5 -filetype=obj -triple x86_64-unknown-linux %s -o %t.o
4 # RUN: %clang %cflags -gdwarf-5 %t.o -o %t.exe
5 # RUN: llvm-bolt %t.exe -o %t.bolt --update-debug-sections
6 # RUN: llvm-dwarfdump --show-form --verbose --debug-info %t.bolt | FileCheck --check-prefix=POSTCHECK %s
8 # This test checks that BOLT handles backward cross CU references for dwarf5
9 # when -fdebug-types-sections is specified.
11 # The assembly was manually modified to do cross CU reference.
13 # POSTCHECK: Type Unit
14 # POSTCHECK-SAME: version = 0x0005
15 # POSTCHECK: Type Unit
16 # POSTCHECK-SAME: version = 0x0005
17 # POSTCHECK: Type Unit
18 # POSTCHECK-SAME: version = 0x0005
19 # POSTCHECK: Type Unit
20 # POSTCHECK-SAME: version = 0x0005
21 # POSTCHECK: Compile Unit
22 # POSTCHECK-SAME: version = 0x0005
23 # POSTCHECK: DW_TAG_structure_type [10]
24 # POSTCHECK: DW_TAG_structure_type [10]
25 # POSTCHECK: Compile Unit
26 # POSTCHECK-SAME: version = 0x0005
27 # POSTCHECK: DW_TAG_variable [9]
28 # POSTCHECK: DW_TAG_variable [12]
29 # POSTCHECK: DW_AT_type [DW_FORM_ref_addr] (0x{{[0-9a-f]+}} "Foo")
42 # int main(int argc, char *argv[]) {
45 # f.c2 = argv[argc + 1];
46 # f.c3 = argv[argc + 2];
48 # f.c1 = argv[argc + 3];
49 # f.c2 = argv[argc + 4];
72 .globl main # -- Begin function main
77 .file 1 "/dwarf5-types-backward-cross-reference-test" "main.cpp" md5 0x13f000d932d7bb7e6986b96c183027b9
78 .loc 1 10 0 # main.cpp:10:0
82 .cfi_def_cfa_offset 16
85 .cfi_def_cfa_register %rbp
90 .loc 1 12 9 prologue_end # main.cpp:12:9
93 movq
(%rax
,%rcx
,8), %rax
94 .loc 1 12 7 is_stmt 0 # main.cpp:12:7
96 .loc 1 13 9 is_stmt 1 # main.cpp:13:9
98 .loc 1 13 14 is_stmt 0 # main.cpp:13:14
100 .loc 1 13 19 # main.cpp:13:19
102 .loc 1 13 9 # main.cpp:13:9
104 movq
(%rax
,%rcx
,8), %rax
105 .loc 1 13 7 # main.cpp:13:7
107 .loc 1 14 9 is_stmt 1 # main.cpp:14:9
109 .loc 1 14 14 is_stmt 0 # main.cpp:14:14
111 .loc 1 14 19 # main.cpp:14:19
113 .loc 1 14 9 # main.cpp:14:9
115 movq
(%rax
,%rcx
,8), %rax
116 .loc 1 14 7 # main.cpp:14:7
118 .loc 1 16 9 is_stmt 1 # main.cpp:16:9
120 .loc 1 16 14 is_stmt 0 # main.cpp:16:14
122 .loc 1 16 19 # main.cpp:16:19
124 .loc 1 16 9 # main.cpp:16:9
126 movq
(%rax
,%rcx
,8), %rax
127 .loc 1 16 7 # main.cpp:16:7
129 .loc 1 17 9 is_stmt 1 # main.cpp:17:9
131 .loc 1 17 14 is_stmt 0 # main.cpp:17:14
133 .loc 1 17 19 # main.cpp:17:19
135 .loc 1 17 9 # main.cpp:17:9
137 movq
(%rax
,%rcx
,8), %rax
138 .loc 1 17 7 # main.cpp:17:7
140 .loc 1 18 2 is_stmt 1 # main.cpp:18:2
142 .loc 1 18 2 epilogue_begin is_stmt 0 # main.cpp:18:2
148 .size main, .Lfunc_end0-main
151 .globl _Z3foov # -- Begin function _Z3foov
153 .type _Z3foov,@function
156 .file 2 "/dwarf5-types-backward-cross-reference-test" "helper.cpp" md5 0x650c984f17ca3a4e7785e30e6ca8f130
157 .loc 2 11 0 is_stmt 1 # helper.cpp:11:0
161 .cfi_def_cfa_offset 16
162 .cfi_offset %rbp, -16
164 .cfi_def_cfa_register %rbp
166 .loc 2 14 3 prologue_end # helper.cpp:14:3
168 .loc 2 14 3 epilogue_begin is_stmt 0 # helper.cpp:14:3
174 .size _Z3foov, .Lfunc_end1-_Z3foov
177 .section .debug_info,"G",@progbits,7448148824980338162,comdat
178 .long .Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit
180 .short 5 # DWARF version number
181 .byte 2 # DWARF Unit Type
182 .byte 8 # Address Size (in bytes)
183 .long .debug_abbrev # Offset Into Abbrev. Section
184 .quad 7448148824980338162 # Type Signature
185 .long 35 # Type DIE Offset
186 .byte 1 # Abbrev [1] 0x18:0x37 DW_TAG_type_unit
187 .short 33 # DW_AT_language
188 .long .Lline_table_start0 # DW_AT_stmt_list
189 .long .Lstr_offsets_base0 # DW_AT_str_offsets_base
190 .byte 2 # Abbrev [2] 0x23:0x22 DW_TAG_structure_type
191 .byte 5 # DW_AT_calling_convention
192 .byte 15 # DW_AT_name
193 .byte 24 # DW_AT_byte_size
194 .byte 1 # DW_AT_decl_file
195 .byte 1 # DW_AT_decl_line
196 .byte 3 # Abbrev [3] 0x29:0x9 DW_TAG_member
197 .byte 12 # DW_AT_name
198 .long 69 # DW_AT_type
199 .byte 1 # DW_AT_decl_file
200 .byte 2 # DW_AT_decl_line
201 .byte 0 # DW_AT_data_member_location
202 .byte 3 # Abbrev [3] 0x32:0x9 DW_TAG_member
203 .byte 13 # DW_AT_name
204 .long 69 # DW_AT_type
205 .byte 1 # DW_AT_decl_file
206 .byte 3 # DW_AT_decl_line
207 .byte 8 # DW_AT_data_member_location
208 .byte 3 # Abbrev [3] 0x3b:0x9 DW_TAG_member
209 .byte 14 # DW_AT_name
210 .long 69 # DW_AT_type
211 .byte 1 # DW_AT_decl_file
212 .byte 4 # DW_AT_decl_line
213 .byte 16 # DW_AT_data_member_location
214 .byte 0 # End Of Children Mark
215 .byte 4 # Abbrev [4] 0x45:0x5 DW_TAG_pointer_type
216 .long 74 # DW_AT_type
217 .byte 5 # Abbrev [5] 0x4a:0x4 DW_TAG_base_type
218 .byte 10 # DW_AT_name
219 .byte 6 # DW_AT_encoding
220 .byte 1 # DW_AT_byte_size
221 .byte 0 # End Of Children Mark
223 .section .debug_info,"G",@progbits,5322170643381124694,comdat
224 .long .Ldebug_info_end1-.Ldebug_info_start1 # Length of Unit
226 .short 5 # DWARF version number
227 .byte 2 # DWARF Unit Type
228 .byte 8 # Address Size (in bytes)
229 .long .debug_abbrev # Offset Into Abbrev. Section
230 .quad 5322170643381124694 # Type Signature
231 .long 35 # Type DIE Offset
232 .byte 1 # Abbrev [1] 0x18:0x2e DW_TAG_type_unit
233 .short 33 # DW_AT_language
234 .long .Lline_table_start0 # DW_AT_stmt_list
235 .long .Lstr_offsets_base0 # DW_AT_str_offsets_base
236 .byte 2 # Abbrev [2] 0x23:0x19 DW_TAG_structure_type
237 .byte 5 # DW_AT_calling_convention
238 .byte 17 # DW_AT_name
239 .byte 16 # DW_AT_byte_size
240 .byte 1 # DW_AT_decl_file
241 .byte 6 # DW_AT_decl_line
242 .byte 3 # Abbrev [3] 0x29:0x9 DW_TAG_member
243 .byte 12 # DW_AT_name
244 .long 60 # DW_AT_type
245 .byte 1 # DW_AT_decl_file
246 .byte 7 # DW_AT_decl_line
247 .byte 0 # DW_AT_data_member_location
248 .byte 3 # Abbrev [3] 0x32:0x9 DW_TAG_member
249 .byte 13 # DW_AT_name
250 .long 60 # DW_AT_type
251 .byte 1 # DW_AT_decl_file
252 .byte 8 # DW_AT_decl_line
253 .byte 8 # DW_AT_data_member_location
254 .byte 0 # End Of Children Mark
255 .byte 4 # Abbrev [4] 0x3c:0x5 DW_TAG_pointer_type
256 .long 65 # DW_AT_type
257 .byte 5 # Abbrev [5] 0x41:0x4 DW_TAG_base_type
258 .byte 10 # DW_AT_name
259 .byte 6 # DW_AT_encoding
260 .byte 1 # DW_AT_byte_size
261 .byte 0 # End Of Children Mark
263 .section .debug_info,"G",@progbits,1175092228111723119,comdat
264 .long .Ldebug_info_end2-.Ldebug_info_start2 # Length of Unit
266 .short 5 # DWARF version number
267 .byte 2 # DWARF Unit Type
268 .byte 8 # Address Size (in bytes)
269 .long .debug_abbrev # Offset Into Abbrev. Section
270 .quad 1175092228111723119 # Type Signature
271 .long 35 # Type DIE Offset
272 .byte 1 # Abbrev [1] 0x18:0x37 DW_TAG_type_unit
273 .short 33 # DW_AT_language
274 .long .Lline_table_start0 # DW_AT_stmt_list
275 .long .Lstr_offsets_base0 # DW_AT_str_offsets_base
276 .byte 2 # Abbrev [2] 0x23:0x22 DW_TAG_structure_type
277 .byte 5 # DW_AT_calling_convention
278 .byte 18 # DW_AT_name
279 .byte 24 # DW_AT_byte_size
280 .byte 2 # DW_AT_decl_file
281 .byte 1 # DW_AT_decl_line
282 .byte 3 # Abbrev [3] 0x29:0x9 DW_TAG_member
283 .byte 12 # DW_AT_name
284 .long 69 # DW_AT_type
285 .byte 2 # DW_AT_decl_file
286 .byte 2 # DW_AT_decl_line
287 .byte 0 # DW_AT_data_member_location
288 .byte 3 # Abbrev [3] 0x32:0x9 DW_TAG_member
289 .byte 13 # DW_AT_name
290 .long 69 # DW_AT_type
291 .byte 2 # DW_AT_decl_file
292 .byte 3 # DW_AT_decl_line
293 .byte 8 # DW_AT_data_member_location
294 .byte 3 # Abbrev [3] 0x3b:0x9 DW_TAG_member
295 .byte 14 # DW_AT_name
296 .long 69 # DW_AT_type
297 .byte 2 # DW_AT_decl_file
298 .byte 4 # DW_AT_decl_line
299 .byte 16 # DW_AT_data_member_location
300 .byte 0 # End Of Children Mark
301 .byte 4 # Abbrev [4] 0x45:0x5 DW_TAG_pointer_type
302 .long 74 # DW_AT_type
303 .byte 5 # Abbrev [5] 0x4a:0x4 DW_TAG_base_type
304 .byte 10 # DW_AT_name
305 .byte 6 # DW_AT_encoding
306 .byte 1 # DW_AT_byte_size
307 .byte 0 # End Of Children Mark
309 .section .debug_info,"G",@progbits,12995149649732825572,comdat
310 .long .Ldebug_info_end3-.Ldebug_info_start3 # Length of Unit
312 .short 5 # DWARF version number
313 .byte 2 # DWARF Unit Type
314 .byte 8 # Address Size (in bytes)
315 .long .debug_abbrev # Offset Into Abbrev. Section
316 .quad -5451594423976726044 # Type Signature
317 .long 35 # Type DIE Offset
318 .byte 1 # Abbrev [1] 0x18:0x2e DW_TAG_type_unit
319 .short 33 # DW_AT_language
320 .long .Lline_table_start0 # DW_AT_stmt_list
321 .long .Lstr_offsets_base0 # DW_AT_str_offsets_base
322 .byte 2 # Abbrev [2] 0x23:0x19 DW_TAG_structure_type
323 .byte 5 # DW_AT_calling_convention
324 .byte 19 # DW_AT_name
325 .byte 16 # DW_AT_byte_size
326 .byte 2 # DW_AT_decl_file
327 .byte 6 # DW_AT_decl_line
328 .byte 3 # Abbrev [3] 0x29:0x9 DW_TAG_member
329 .byte 12 # DW_AT_name
330 .long 60 # DW_AT_type
331 .byte 2 # DW_AT_decl_file
332 .byte 7 # DW_AT_decl_line
333 .byte 0 # DW_AT_data_member_location
334 .byte 3 # Abbrev [3] 0x32:0x9 DW_TAG_member
335 .byte 13 # DW_AT_name
336 .long 60 # DW_AT_type
337 .byte 2 # DW_AT_decl_file
338 .byte 8 # DW_AT_decl_line
339 .byte 8 # DW_AT_data_member_location
340 .byte 0 # End Of Children Mark
341 .byte 4 # Abbrev [4] 0x3c:0x5 DW_TAG_pointer_type
342 .long 65 # DW_AT_type
343 .byte 5 # Abbrev [5] 0x41:0x4 DW_TAG_base_type
344 .byte 10 # DW_AT_name
345 .byte 6 # DW_AT_encoding
346 .byte 1 # DW_AT_byte_size
347 .byte 0 # End Of Children Mark
349 .section .debug_abbrev,"",@progbits
350 .byte 1 # Abbreviation Code
351 .byte 65 # DW_TAG_type_unit
352 .byte 1 # DW_CHILDREN_yes
353 .byte 19 # DW_AT_language
354 .byte 5 # DW_FORM_data2
355 .byte 16 # DW_AT_stmt_list
356 .byte 23 # DW_FORM_sec_offset
357 .byte 114 # DW_AT_str_offsets_base
358 .byte 23 # DW_FORM_sec_offset
361 .byte 2 # Abbreviation Code
362 .byte 19 # DW_TAG_structure_type
363 .byte 1 # DW_CHILDREN_yes
364 .byte 54 # DW_AT_calling_convention
365 .byte 11 # DW_FORM_data1
367 .byte 37 # DW_FORM_strx1
368 .byte 11 # DW_AT_byte_size
369 .byte 11 # DW_FORM_data1
370 .byte 58 # DW_AT_decl_file
371 .byte 11 # DW_FORM_data1
372 .byte 59 # DW_AT_decl_line
373 .byte 11 # DW_FORM_data1
376 .byte 3 # Abbreviation Code
377 .byte 13 # DW_TAG_member
378 .byte 0 # DW_CHILDREN_no
380 .byte 37 # DW_FORM_strx1
381 .byte 73 # DW_AT_type
382 .byte 19 # DW_FORM_ref4
383 .byte 58 # DW_AT_decl_file
384 .byte 11 # DW_FORM_data1
385 .byte 59 # DW_AT_decl_line
386 .byte 11 # DW_FORM_data1
387 .byte 56 # DW_AT_data_member_location
388 .byte 11 # DW_FORM_data1
391 .byte 4 # Abbreviation Code
392 .byte 15 # DW_TAG_pointer_type
393 .byte 0 # DW_CHILDREN_no
394 .byte 73 # DW_AT_type
395 .byte 19 # DW_FORM_ref4
398 .byte 5 # Abbreviation Code
399 .byte 36 # DW_TAG_base_type
400 .byte 0 # DW_CHILDREN_no
402 .byte 37 # DW_FORM_strx1
403 .byte 62 # DW_AT_encoding
404 .byte 11 # DW_FORM_data1
405 .byte 11 # DW_AT_byte_size
406 .byte 11 # DW_FORM_data1
409 .byte 6 # Abbreviation Code
410 .byte 17 # DW_TAG_compile_unit
411 .byte 1 # DW_CHILDREN_yes
412 .byte 37 # DW_AT_producer
413 .byte 37 # DW_FORM_strx1
414 .byte 19 # DW_AT_language
415 .byte 5 # DW_FORM_data2
417 .byte 37 # DW_FORM_strx1
418 .byte 114 # DW_AT_str_offsets_base
419 .byte 23 # DW_FORM_sec_offset
420 .byte 16 # DW_AT_stmt_list
421 .byte 23 # DW_FORM_sec_offset
422 .byte 27 # DW_AT_comp_dir
423 .byte 37 # DW_FORM_strx1
424 .byte 17 # DW_AT_low_pc
425 .byte 27 # DW_FORM_addrx
426 .byte 18 # DW_AT_high_pc
427 .byte 6 # DW_FORM_data4
428 .byte 115 # DW_AT_addr_base
429 .byte 23 # DW_FORM_sec_offset
432 .byte 7 # Abbreviation Code
433 .byte 46 # DW_TAG_subprogram
434 .byte 1 # DW_CHILDREN_yes
435 .byte 17 # DW_AT_low_pc
436 .byte 27 # DW_FORM_addrx
437 .byte 18 # DW_AT_high_pc
438 .byte 6 # DW_FORM_data4
439 .byte 64 # DW_AT_frame_base
440 .byte 24 # DW_FORM_exprloc
442 .byte 37 # DW_FORM_strx1
443 .byte 58 # DW_AT_decl_file
444 .byte 11 # DW_FORM_data1
445 .byte 59 # DW_AT_decl_line
446 .byte 11 # DW_FORM_data1
447 .byte 73 # DW_AT_type
448 .byte 19 # DW_FORM_ref4
449 .byte 63 # DW_AT_external
450 .byte 25 # DW_FORM_flag_present
453 .byte 8 # Abbreviation Code
454 .byte 5 # DW_TAG_formal_parameter
455 .byte 0 # DW_CHILDREN_no
456 .byte 2 # DW_AT_location
457 .byte 24 # DW_FORM_exprloc
459 .byte 37 # DW_FORM_strx1
460 .byte 58 # DW_AT_decl_file
461 .byte 11 # DW_FORM_data1
462 .byte 59 # DW_AT_decl_line
463 .byte 11 # DW_FORM_data1
464 .byte 73 # DW_AT_type
465 .byte 19 # DW_FORM_ref4
468 .byte 9 # Abbreviation Code
469 .byte 52 # DW_TAG_variable
470 .byte 0 # DW_CHILDREN_no
471 .byte 2 # DW_AT_location
472 .byte 24 # DW_FORM_exprloc
474 .byte 37 # DW_FORM_strx1
475 .byte 58 # DW_AT_decl_file
476 .byte 11 # DW_FORM_data1
477 .byte 59 # DW_AT_decl_line
478 .byte 11 # DW_FORM_data1
479 .byte 73 # DW_AT_type
480 .byte 19 # DW_FORM_ref4
483 .byte 10 # Abbreviation Code
484 .byte 19 # DW_TAG_structure_type
485 .byte 0 # DW_CHILDREN_no
486 .byte 60 # DW_AT_declaration
487 .byte 25 # DW_FORM_flag_present
488 .byte 105 # DW_AT_signature
489 .byte 32 # DW_FORM_ref_sig8
492 .byte 11 # Abbreviation Code
493 .byte 46 # DW_TAG_subprogram
494 .byte 1 # DW_CHILDREN_yes
495 .byte 17 # DW_AT_low_pc
496 .byte 27 # DW_FORM_addrx
497 .byte 18 # DW_AT_high_pc
498 .byte 6 # DW_FORM_data4
499 .byte 64 # DW_AT_frame_base
500 .byte 24 # DW_FORM_exprloc
501 .byte 110 # DW_AT_linkage_name
502 .byte 37 # DW_FORM_strx1
504 .byte 37 # DW_FORM_strx1
505 .byte 58 # DW_AT_decl_file
506 .byte 11 # DW_FORM_data1
507 .byte 59 # DW_AT_decl_line
508 .byte 11 # DW_FORM_data1
509 .byte 73 # DW_AT_type
510 .byte 19 # DW_FORM_ref4
511 .byte 63 # DW_AT_external
512 .byte 25 # DW_FORM_flag_present
515 .byte 12 # Abbreviation Code <-- Manually added abbrev decl
516 .byte 52 # DW_TAG_variable
517 .byte 0 # DW_CHILDREN_no
518 .byte 2 # DW_AT_location
519 .byte 24 # DW_FORM_exprloc
521 .byte 37 # DW_FORM_strx1
522 .byte 58 # DW_AT_decl_file
523 .byte 11 # DW_FORM_data1
524 .byte 59 # DW_AT_decl_line
525 .byte 11 # DW_FORM_data1
526 .byte 73 # DW_AT_type
527 .byte 16 # DW_FORM_ref_addr
531 .section .debug_info,"",@progbits
533 .long .Ldebug_info_end4-.Ldebug_info_start4 # Length of Unit
535 .short 5 # DWARF version number
536 .byte 1 # DWARF Unit Type
537 .byte 8 # Address Size (in bytes)
538 .long .debug_abbrev # Offset Into Abbrev. Section
539 .byte 6 # Abbrev [6] 0xc:0x78 DW_TAG_compile_unit
540 .byte 0 # DW_AT_producer
541 .short 33 # DW_AT_language
543 .long .Lstr_offsets_base0 # DW_AT_str_offsets_base
544 .long .Lline_table_start0 # DW_AT_stmt_list
545 .byte 2 # DW_AT_comp_dir
546 .byte 0 # DW_AT_low_pc
547 .long .Lfunc_end0-.Lfunc_begin0 # DW_AT_high_pc
548 .long .Laddr_table_base0 # DW_AT_addr_base
549 .byte 7 # Abbrev [7] 0x23:0x3c DW_TAG_subprogram
550 .byte 0 # DW_AT_low_pc
551 .long .Lfunc_end0-.Lfunc_begin0 # DW_AT_high_pc
552 .byte 1 # DW_AT_frame_base
555 .byte 1 # DW_AT_decl_file
556 .byte 10 # DW_AT_decl_line
557 .long 95 # DW_AT_type
559 .byte 8 # Abbrev [8] 0x32:0xb DW_TAG_formal_parameter
560 .byte 2 # DW_AT_location
564 .byte 1 # DW_AT_decl_file
565 .byte 10 # DW_AT_decl_line
566 .long 95 # DW_AT_type
567 .byte 8 # Abbrev [8] 0x3d:0xb DW_TAG_formal_parameter
568 .byte 2 # DW_AT_location
572 .byte 1 # DW_AT_decl_file
573 .byte 10 # DW_AT_decl_line
574 .long 99 # DW_AT_type
575 .byte 9 # Abbrev [9] 0x48:0xb DW_TAG_variable
576 .byte 2 # DW_AT_location
579 .byte 11 # DW_AT_name
580 .byte 1 # DW_AT_decl_file
581 .byte 11 # DW_AT_decl_line
582 .long 113 # DW_AT_type
583 .byte 9 # Abbrev [9] 0x53:0xb DW_TAG_variable
584 .byte 2 # DW_AT_location
587 .byte 16 # DW_AT_name
588 .byte 1 # DW_AT_decl_file
589 .byte 15 # DW_AT_decl_line
590 .long 122 # DW_AT_type
591 .byte 0 # End Of Children Mark
592 .byte 5 # Abbrev [5] 0x5f:0x4 DW_TAG_base_type
594 .byte 5 # DW_AT_encoding
595 .byte 4 # DW_AT_byte_size
596 .byte 4 # Abbrev [4] 0x63:0x5 DW_TAG_pointer_type
597 .long 104 # DW_AT_type
598 .byte 4 # Abbrev [4] 0x68:0x5 DW_TAG_pointer_type
599 .long 109 # DW_AT_type
600 .byte 5 # Abbrev [5] 0x6d:0x4 DW_TAG_base_type
601 .byte 10 # DW_AT_name
602 .byte 6 # DW_AT_encoding
603 .byte 1 # DW_AT_byte_size
605 .byte 10 # Abbrev [10] 0x71:0x9 DW_TAG_structure_type
607 .quad 7448148824980338162 # DW_AT_signature
608 .byte 10 # Abbrev [10] 0x7a:0x9 DW_TAG_structure_type
610 .quad 5322170643381124694 # DW_AT_signature
611 .byte 0 # End Of Children Mark
614 .long .Ldebug_info_end5-.Ldebug_info_start5 # Length of Unit
616 .short 5 # DWARF version number
617 .byte 1 # DWARF Unit Type
618 .byte 8 # Address Size (in bytes)
619 .long .debug_abbrev # Offset Into Abbrev. Section
620 .byte 6 # Abbrev [6] 0xc:0x55 DW_TAG_compile_unit
621 .byte 0 # DW_AT_producer
622 .short 33 # DW_AT_language
624 .long .Lstr_offsets_base0 # DW_AT_str_offsets_base
625 .long .Lline_table_start0 # DW_AT_stmt_list
626 .byte 2 # DW_AT_comp_dir
627 .byte 1 # DW_AT_low_pc
628 .long .Lfunc_end1-.Lfunc_begin1 # DW_AT_high_pc
629 .long .Laddr_table_base0 # DW_AT_addr_base
630 .byte 11 # Abbrev [11] 0x23:0x27 DW_TAG_subprogram
631 .byte 1 # DW_AT_low_pc
632 .long .Lfunc_end1-.Lfunc_begin1 # DW_AT_high_pc
633 .byte 1 # DW_AT_frame_base
635 .byte 6 # DW_AT_linkage_name
637 .byte 2 # DW_AT_decl_file
638 .byte 11 # DW_AT_decl_line
639 .long 74 # DW_AT_type
641 .byte 9 # Abbrev [9] 0x33:0xb DW_TAG_variable
642 .byte 2 # DW_AT_location
645 .byte 11 # DW_AT_name
646 .byte 2 # DW_AT_decl_file
647 .byte 12 # DW_AT_decl_line
648 .long 78 # DW_AT_type
649 .byte 12 # Abbrev [12] 0x3e:0xb DW_TAG_variable <-- Manually modified s/9/12
650 .byte 2 # DW_AT_location
653 .byte 16 # DW_AT_name
654 .byte 2 # DW_AT_decl_file
655 .byte 13 # DW_AT_decl_line
656 .long .Lmanual_label # DW_AT_type <-- Manually modified
657 .byte 0 # End Of Children Mark
658 .byte 5 # Abbrev [5] 0x4a:0x4 DW_TAG_base_type
660 .byte 5 # DW_AT_encoding
661 .byte 4 # DW_AT_byte_size
662 .byte 10 # Abbrev [10] 0x4e:0x9 DW_TAG_structure_type
664 .quad 1175092228111723119 # DW_AT_signature
665 .byte 10 # Abbrev [10] 0x57:0x9 DW_TAG_structure_type
667 .quad -5451594423976726044 # DW_AT_signature
668 .byte 0 # End Of Children Mark
670 .section .debug_str_offsets,"",@progbits
671 .long 84 # Length of String Offsets Set
675 .section .debug_str,"MS",@progbits,1
677 .asciz "clang version 17.0.0 (https://github.com/llvm/llvm-project.git 73027ae39b1492e5b6033358a13b86d7d1e781ae)" # string offset=0
679 .asciz "main.cpp" # string offset=105
681 .asciz "/dwarf5-types-backward-reference-test" # string offset=114
683 .asciz "helper.cpp" # string offset=189
685 .asciz "main" # string offset=200
687 .asciz "int" # string offset=205
689 .asciz "_Z3foov" # string offset=209
691 .asciz "foo" # string offset=217
693 .asciz "argc" # string offset=221
695 .asciz "argv" # string offset=226
697 .asciz "char" # string offset=231
699 .asciz "f" # string offset=236
701 .asciz "c1" # string offset=238
703 .asciz "c2" # string offset=241
705 .asciz "c3" # string offset=244
707 .asciz "Foo" # string offset=247
709 .asciz "f2" # string offset=251
711 .asciz "Foo2" # string offset=254
713 .asciz "Foo2a" # string offset=259
715 .asciz "Foo3" # string offset=265
716 .section .debug_str_offsets,"",@progbits
727 .long .Linfo_string10
728 .long .Linfo_string11
729 .long .Linfo_string12
730 .long .Linfo_string13
731 .long .Linfo_string14
732 .long .Linfo_string15
733 .long .Linfo_string16
734 .long .Linfo_string17
735 .long .Linfo_string18
736 .long .Linfo_string19
737 .section .debug_addr,"",@progbits
738 .long .Ldebug_addr_end0-.Ldebug_addr_start0 # Length of contribution
740 .short 5 # DWARF version number
741 .byte 8 # Address size
742 .byte 0 # Segment selector size
747 .ident "clang version 17.0.0 (https://github.com/llvm/llvm-project.git 73027ae39b1492e5b6033358a13b86d7d1e781ae)"
748 .ident "clang version 17.0.0 (https://github.com/llvm/llvm-project.git 73027ae39b1492e5b6033358a13b86d7d1e781ae)"
749 .section ".note.GNU-stack","",@progbits
751 .section .debug_line,"",@progbits