]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - binutils/dwarf.c
binutils: Handle DWARF5 DW_FORM_ref_addr and DW_UT_partial.
authorMark Wielaard <mark@klomp.org>
Wed, 23 Sep 2020 14:31:14 +0000 (16:31 +0200)
committerMark Wielaard <mark@klomp.org>
Thu, 24 Sep 2020 20:52:57 +0000 (22:52 +0200)
commitec47b32a85294af959457ad19bd98dd13f6389fd
tree251b843adb9a3689d40d2d819d66fea9fc0cba05
parent29363cfa40b59aca282a0b3b2ba4c305f6ff8f79
binutils: Handle DWARF5 DW_FORM_ref_addr and DW_UT_partial.

dwz in DWARF5 mode might produce DW_UT_partial unit types, which are
the same as DW_UT_compile unit types (but start with a DW_TAG_partial_unit)
and it might produce DW_FORM_ref_addr to create a reference between
units. Accept both constructs.

binutils/ChangeLog:

* dwarf.c (read_and_display_attr_value): Handle DW_FORM_ref_addr
for dwarf_version 5 just as version 3 and 4 (only 2 is different).
(process_debug_info): Allow DW_UT_partial.
binutils/ChangeLog
binutils/dwarf.c