173
|
1 # REQUIRES: x86
|
|
2 ## Regression test that we don't crash on DWARF v5 .debug_loclists
|
|
3
|
|
4 # RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o
|
|
5 # RUN: ld.lld --gdb-index %t.o -o /dev/null
|
|
6
|
|
7 .section .debug_abbrev,"",@progbits
|
|
8 .byte 1 # Abbreviation Code
|
|
9 .byte 17 # DW_TAG_compile_unit
|
|
10 .byte 0 # DW_CHILDREN_no
|
|
11 .ascii "\214\001" # DW_AT_loclists_base
|
|
12 .byte 23 # DW_FORM_sec_offset
|
|
13 .byte 0 # EOM(1)
|
|
14 .byte 0 # EOM(2)
|
|
15 .byte 0
|
|
16
|
|
17 .section .debug_info,"",@progbits
|
|
18 .Lcu_begin0:
|
|
19 .long .Lcu_end0-.Lcu_begin0-4 # Length of Unit
|
|
20 .short 5 # DWARF version number
|
|
21 .byte 1 # DWARF Unit Type
|
|
22 .byte 8 # Address Size
|
|
23 .long 0 # Offset Into Abbrev. Section
|
|
24 .byte 1 # Abbrev [1] DW_TAG_compile_unit
|
|
25 .long .Lloclists_table_base0 # DW_AT_loclists_base
|
|
26 .Lcu_end0:
|
|
27
|
|
28 .section .debug_loclists,"",@progbits
|
|
29 .long .Ldebug_loclist_table_end0-.Ldebug_loclist_table_start0 # Length
|
|
30 .Ldebug_loclist_table_start0:
|
|
31 .short 5 # Version
|
|
32 .byte 8 # Address size
|
|
33 .byte 0 # Segment selector size
|
|
34 .long 0 # Offset entry count
|
|
35 .Lloclists_table_base0:
|
|
36 .byte 0 # DW_LLE_end_of_list
|
|
37 .Ldebug_loclist_table_end0:
|