readelf: Always initialize .debug_addr unit_length, even without a header.
authorMark Wielaard <mark@klomp.org>
Tue, 5 Jun 2018 21:21:05 +0000 (23:21 +0200)
committerMark Wielaard <mark@klomp.org>
Fri, 8 Jun 2018 10:03:14 +0000 (12:03 +0200)
commita3b15251cdb68e225dc4e0433984784b7a6592d5
treede20a801089153cf8f855b1de6c820c5b0d3ba27
parent090ef3e03c884d4d936129c4cffaa73cd57d4c7f
readelf: Always initialize .debug_addr unit_length, even without a header.

We would print a "fake" .debug_addr header, but didn't always setup the
unit_length (in case there was a mix of GNU DebugFission and DWARF5 tables).
Make sure to always set the unit_length (we do always calculate the next
unit offset already).

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