]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
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>
Mon, 16 Nov 2020 19:41:54 +0000 (20:41 +0100)
commitc9ebbcc99b94820f4462308942ea0cab70c4b427
treed6169cffb5b3831901936cbe119d135dc8a62dd7
parent1767e3f3bd6d460491f8c8d032a7fea88d5ec8ff
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.

(cherry picked from commit ec47b32a85294af959457ad19bd98dd13f6389fd)
binutils/ChangeLog
binutils/dwarf.c