brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.3 KiB · 2885891 Raw
53 lines · plain
1# RUN: llvm-mc %s -filetype obj -triple=x86_64-pc-linux -o %t.o2# RUN: llvm-dwarfdump -v %t.o | FileCheck %s -match-full-lines3 4## Ensure bogus empty section names are not printed when dumping5## rnglists that reference debug_addr when it is not present (such as in .dwo files)6 7# CHECK:       DW_AT_ranges [DW_FORM_rnglistx]   (indexed (0x0) rangelist = 0x000000108# CHECK-NEXT:    [0x0000000000000000, 0x0000000000000001)9# CHECK-NEXT:    [0x0000000000000000, 0x0000000000000002))10 11.section .debug_info.dwo,"e",@progbits12.long .Ldebug_info_dwo_end1-.Ldebug_info_dwo_start1   # Length of Unit13.Ldebug_info_dwo_start1:14  .short 5                       # DWARF version number15  .byte  5                       # DWARF Unit Type16  .byte  8                       # Address Size (in bytes)17  .long  0                       # Offset Into Abbrev. Section18  .quad  -680975597886885980719  .byte  1                       # Abbrev [1] 0x14:0x32 DW_TAG_compile_unit20  .byte  0                       # DW_AT_ranges21.Ldebug_info_dwo_end1:22 23.section .debug_abbrev.dwo,"e",@progbits24  .byte 1                        # Abbreviation Code25  .byte 17                       # DW_TAG_compile_unit26  .byte 0                        # DW_CHILDREN_no27  .byte 85                       # DW_AT_ranges28  .byte 35                       # DW_FORM_rnglistx29  .byte 0                        # EOM(1)30  .byte 0                        # EOM(2)31  .byte 0                        # EOM(3)32 33.section .debug_rnglists.dwo,"e",@progbits34  .long  .Ldebug_rnglist_table_end1-.Ldebug_rnglist_table_start1 # Length35.Ldebug_rnglist_table_start1:36  .short  5                      # Version37  .byte  8                       # Address size38  .byte  0                       # Segment selector size39  .long  1                       # Offset entry count40.Lrnglists_dwo_table_base0:41  .long  .Ldebug_ranges0-.Lrnglists_dwo_table_base042.Ldebug_ranges0:43  .byte  1                       # DW_RLE_base_addressx44  .byte  0                       #   base address index45  .byte  4                       # DW_RLE_offset_pair46  .byte  0                       #   starting offset47  .byte  1                       #   ending offset48  .byte  3                       # DW_RLE_startx_length49  .byte  1                       #   start index50  .byte  2                       #   length51  .byte  0                       # DW_RLE_end_of_list52.Ldebug_rnglist_table_end1:53