@@ -59,6 +59,13 @@ dwo_LT_5b:
5959 .byte 0x0e # DW_FORM_strp
6060 .byte 0x00 # EOM(1)
6161 .byte 0x00 # EOM(2)
62+ .byte 0x04 # Abbrev code
63+ .byte 0x3c # DW_TAG_partial_unit
64+ .byte 0x00 # DW_CHILDREN_no
65+ .byte 0x03 # DW_AT_name
66+ .byte 0x0e # DW_FORM_strp
67+ .byte 0x00 # EOM(1)
68+ .byte 0x00 # EOM(2)
6269 .byte 0x00 # EOM(3)
6370
6471# And a .dwo copy for the .dwo sections.
@@ -128,6 +135,22 @@ CU_5_end:
128135# CHECK: 0x00000019: Compile Unit: length = 0x00000016, format = DWARF32, version = 0x0005, unit_type = DW_UT_compile, abbr_offset = 0x0000, addr_size = 0x08 (next unit at 0x00000033)
129136# CHECK: 0x00000025: DW_TAG_compile_unit
130137
138+ # DWARF v5 CU header (Unit Type = DW_UT_partial).
139+ .long CU_5_partial_end-CU_5_partial_version # Length of Unit
140+ CU_5_partial_version:
141+ .short 5 # DWARF version number
142+ .byte 3 # DWARF Unit Type
143+ .byte 8 # Address Size (in bytes)
144+ .long .debug_abbrev # Offset Into Abbrev. Section
145+ # The partial-unit DIE, with DW_AT_name
146+ .byte 4
147+ .long str_CU_5
148+ .byte 0 # NULL
149+ CU_5_partial_end:
150+
151+ # CHECK: 0x00000033: Compile Unit: length = 0x0000000e, format = DWARF32, version = 0x0005, unit_type = DW_UT_partial, abbr_offset = 0x0000, addr_size = 0x08 (next unit at 0x00000045)
152+ # CHECK: 0x0000003f: DW_TAG_partial_unit
153+
131154 .section .debug_info.dwo,"e" ,@progbits
132155# CHECK-LABEL: .debug_info.dwo
133156
0 commit comments