readelf, libdw: Handle DWARF5 .debug_macro.
authorMark Wielaard <mark@klomp.org>
Wed, 6 Dec 2017 11:30:12 +0000 (12:30 +0100)
committerMark Wielaard <mark@klomp.org>
Tue, 15 May 2018 09:25:43 +0000 (11:25 +0200)
commitcdf865b890c2480c14245e2dbcae33dea0a03cf7
tree73cd9e8e7340948b5d188df7e6ed4189e5d75d3d
parent6ed8b94952ddf155960c799ef76f3048f033e873
readelf, libdw: Handle DWARF5 .debug_macro.

Almost identical to GNU .debug_macro extension. Just accept and use
DW_AT_macros where we accept or use DW_AT_GNU_macros. And be a little
stricter in which FORMs we accept (this could have caused problems
with the GNU variant too). Deals with DW_FORM_strx[1234], but not yet
with imported macros through DW_MACRO_import_sup.

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