58 lines · yaml
1# RUN: yaml2obj %s -o %t.o2# RUN: llvm-dwarfdump -debug-str-offsets -verify %t.o | FileCheck %s3 4# CHECK: Verifying .debug_str_offsets...5# CHECK: No errors6 7# Check that when mixing standard DWARF 4 debug information with standard DWARF8# 5 debug information, the verifier correctly interprets the debug_str_offsets9# section as a standards-conforming DWARF 5 section.10 11--- !ELF12FileHeader:13 Class: ELFCLASS6414 Data: ELFDATA2LSB15 Type: ET_EXEC16DWARF:17 debug_str:18 - 'cu1'19 - 'cu2'20 debug_str_offsets:21 - Offsets:22 - 0x023 debug_abbrev:24 - Table:25 - Code: 0x126 Tag: DW_TAG_compile_unit27 Children: DW_CHILDREN_no28 Attributes:29 - Attribute: DW_AT_name30 Form: DW_FORM_strp31 - Code: 0x232 Tag: DW_TAG_compile_unit33 Children: DW_CHILDREN_no34 Attributes:35 - Attribute: DW_AT_name36 Form: DW_FORM_strx137 - Attribute: DW_AT_str_offsets_base38 Form: DW_FORM_sec_offset39 debug_info:40 - Version: 441 AbbrevTableID: 042 AbbrOffset: 0x043 AddrSize: 844 Entries:45 - AbbrCode: 0x146 Values:47 - Value: 0x448 - Version: 549 UnitType: DW_UT_compile50 AbbrOffset: 0x051 AddrSize: 852 AbbrevTableID: 053 Entries:54 - AbbrCode: 0x255 Values:56 - Value: 0x057 - Value: 0x8 # str offsets base58