From: Mark Wielaard Date: Wed, 30 May 2018 09:54:31 +0000 (+0200) Subject: readelf: Use correct listptr when looking up next loc for locview attr. X-Git-Tag: elfutils-0.171~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=84acd2365d4775b93aed5e5970b34db05ea5d547;p=platform%2Fupstream%2Felfutils.git readelf: Use correct listptr when looking up next loc for locview attr. 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 --- diff --git a/src/ChangeLog b/src/ChangeLog index 03ed5aa..0e6f1f2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2018-05-30 Mark Wielaard + + * readelf.c (print_debug_loc_section): Use correct listptr for + locview attribute. + 2018-05-31 Mark Wielaard * readelf.c (print_debug_units): Check offset against -1 not ~0ul. diff --git a/src/readelf.c b/src/readelf.c index 470a94e..db7723d 100644 --- a/src/readelf.c +++ b/src/readelf.c @@ -9244,7 +9244,7 @@ print_debug_loc_section (Dwfl_Module *dwflmod, 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;