diff options
author | Mark Wielaard <mark@klomp.org> | 2018-05-30 11:54:31 +0200 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2018-05-31 21:09:08 +0200 |
commit | 84acd2365d4775b93aed5e5970b34db05ea5d547 (patch) | |
tree | 5b1fc9911d0bbbbad887322a450630e59a7136ba /src | |
parent | aa02fb9028abcadaa18440b86b1ed085e029956c (diff) | |
download | elfutils-84acd2365d4775b93aed5e5970b34db05ea5d547.tar.gz |
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 <mark@klomp.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/ChangeLog | 5 | ||||
-rw-r--r-- | src/readelf.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 03ed5aab..0e6f1f27 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +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. diff --git a/src/readelf.c b/src/readelf.c index 470a94eb..db7723d3 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; |