readelf: Set begin properly for DW_LLE_GNU_start_end_entry on addrx failure.
authorMark Wielaard <mark@klomp.org>
Tue, 5 Jun 2018 20:50:43 +0000 (22:50 +0200)
committerMark Wielaard <mark@klomp.org>
Fri, 8 Jun 2018 10:03:14 +0000 (12:03 +0200)
commit090ef3e03c884d4d936129c4cffaa73cd57d4c7f
treeee8f9faa68bd43d7777c6c2e0ef10717018fbcc8
parentab92149d354207f55e912c264a72a258f0132e02
readelf: Set begin properly for DW_LLE_GNU_start_end_entry on addrx failure.

When printing the GNU DebugFission location entries we want to print the
start idx as begin, if we cannot find the address index.
A copy/paste error set up end instead of begin in that case causing us
to print garbage (in the unlikely event the .debug_addr table wasn't
found for this entry).

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