diff options
author | Omar Sandoval <osandov@fb.com> | 2021-04-23 16:36:15 -0700 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2021-05-01 16:49:48 +0200 |
commit | d63b26b8d21fb554049789290cd245cbe0446735 (patch) | |
tree | 7df73b0070538294d2d09f32a9dfd600139d72c4 /COPYING-GPLV2 | |
parent | 6c8b68b0245c8754997b4c4b0ff4ba24974e3fdd (diff) | |
download | elfutils-d63b26b8d21fb554049789290cd245cbe0446735.tar.gz |
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>
Diffstat (limited to 'COPYING-GPLV2')
0 files changed, 0 insertions, 0 deletions