[Bug libdw/23982] dwarf_formref_die() does not support DW_FORM_indirect
mark at klomp dot org
sourceware-bugzilla@sourceware.org
Fri Sep 3 13:49:03 GMT 2021
https://sourceware.org/bugzilla/show_bug.cgi?id=23982
Mark Wielaard <mark at klomp dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|UNCONFIRMED |RESOLVED
--- Comment #4 from Mark Wielaard <mark at klomp dot org> ---
This was implemented by:
commit d63b26b8d21fb554049789290cd245cbe0446735
Author: Omar Sandoval <osandov@fb.com>
Date: Fri Apr 23 16:36:15 2021 -0700
libdw: handle DW_FORM_indirect when reading attributes
Whenever we encounter an attribute with DW_FORM_indirect, we need to
read its true form from the DIE data. Then, we can continue normally.
This adds support to the most obvious places: __libdw_find_attr() and
dwarf_getattrs(). There may be more places that need to be updated.
I encountered this when inspecting a file that was processed by our BOLT
tool: https://github.com/facebookincubator/BOLT. This also adds a couple
of test cases using a file generated by that tool.
Signed-off-by: Omar Sandoval <osandov@fb.com>
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Elfutils-devel
mailing list