[PATCH] libdw: set address size, offset size and version on fake CUs
Sun Sep 12 19:43:31 GMT 2021
On Wed, Sep 08, 2021 at 10:14:02PM +0200, Mark Wielaard wrote:
> There are three "fake CUs" that are associated with .debug_loc,
> .debug_loclist and .debug_addr. These fake CUs are used for "fake
> attributes" to provide values that are stored in these sections
> instead of in the .debug_info section. These fake CUs didn't have the
> address size, offset size and DWARF version set. This meant that
> values that depended on those properties might not be interpreted
> correctly. One example was the value associated with a DW_OP_addrx
> (which comes from the .debug_addr section).
> Add a testcase using varlocs to test that addresses can correctly be
> retrieved for gcc/clang, DWARF4/5 and 32/64 bits objects.
Added ChangeLog entries and pushed.
More information about the Elfutils-devel