We were using loclistsptr instead of locsptr in print_debug_loc_section.
https://sourceware.org/bugzilla/show_bug.cgi?id=23247
Signed-off-by: Mark Wielaard <mark@klomp.org>
+2018-05-30 Mark Wielaard <mark@klomp.org>
+
+ * readelf.c (print_debug_loc_section): Use correct listptr for
+ locview attribute.
+
2018-05-31 Mark Wielaard <mark@klomp.org>
* readelf.c (print_debug_units): Check offset against -1 not ~0ul.
2018-05-31 Mark Wielaard <mark@klomp.org>
* readelf.c (print_debug_units): Check offset against -1 not ~0ul.
if (attr == DW_AT_GNU_locviews)
{
if (attr == DW_AT_GNU_locviews)
{
- Dwarf_Off next_off = next_listptr_offset (&known_loclistsptr,
+ Dwarf_Off next_off = next_listptr_offset (&known_locsptr,
listptr_idx);
const unsigned char *locp = readp;
const unsigned char *locendp;
listptr_idx);
const unsigned char *locp = readp;
const unsigned char *locendp;