libdw: Add support for DWARF5 DW_FORM_data16.
authorMark Wielaard <mark@klomp.org>
Thu, 28 Dec 2017 16:44:06 +0000 (17:44 +0100)
committerMark Wielaard <mark@klomp.org>
Wed, 21 Feb 2018 16:20:30 +0000 (17:20 +0100)
commit8e5e78927ee319816eb7a74f870671d21e762bfc
treec17038a711cda068bf7dc73a6824b36b044f6eca
parent8961f33e2a72a9430455cbb0368c71d22574dc3d
libdw: Add support for DWARF5 DW_FORM_data16.

The DWARF5 spec says DW_FORM_data16 is constant class (128bit value).
But we treat it as if it is block class. So to use a attribute that is
encoded as DW_FORM_data16 use dwarf_formblock, not dwarf_form[us]data.

We cannot use dwarf_form[us]data since they return a Dwarf_Word/Sword,
which are only 64bits.

This does mean we don't try to convert the value but just return it as
a block of 16 raw bytes.

Signed-off-by: Mark Wielaard <mark@klomp.org>
libdw/ChangeLog
libdw/dwarf_formblock.c
src/ChangeLog
src/readelf.c