50 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o3 4## Input is reduced from following code and invocation:5## clang++ -gsplit-dwarf -c test.ii -o test.s -S6## clang version: 6.0.0 (trunk 318293)7##8## test.ii:9## int a;10##11## Debug information does not contain any address ranges.12## We crashed in that case. Check we don't.13# RUN: ld.lld --gdb-index %t1.o -o /dev/null14 15.section .debug_str,"MS",@progbits,116.Lskel_string0:17 .asciz "t.dwo"18.Lskel_string1:19 .asciz "path"20 21.section .debug_abbrev,"",@progbits22 .byte 1 # Abbreviation Code23 .byte 17 # DW_TAG_compile_unit24 .byte 0 # DW_CHILDREN_no25 .byte 16 # DW_AT_stmt_list26 .byte 23 # DW_FORM_sec_offset27 .ascii "\260B" # DW_AT_GNU_dwo_name28 .byte 14 # DW_FORM_strp29 .byte 27 # DW_AT_comp_dir30 .byte 14 # DW_FORM_strp31 .ascii "\261B" # DW_AT_GNU_dwo_id32 .byte 7 # DW_FORM_data833 .ascii "\263B" # DW_AT_GNU_addr_base34 .byte 23 # DW_FORM_sec_offset35 .byte 0 # EOM(1)36 .byte 0 # EOM(2)37 .byte 0 # EOM(3)38 39.section .debug_info,"",@progbits40 .long 32 # Length of Unit41 .short 4 # DWARF version number42 .long .debug_abbrev # Offset Into Abbrev. Section43 .byte 8 # Address Size (in bytes)44 .byte 1 # Abbrev [1] 0xb:0x19 DW_TAG_compile_unit45 .long 0 # DW_AT_stmt_list46 .long .Lskel_string0 # DW_AT_GNU_dwo_name47 .long .Lskel_string1 # DW_AT_comp_dir48 .quad -3824446529333676116 # DW_AT_GNU_dwo_id49 .long 0 # DW_AT_GNU_addr_base50