[PATCH] readelf: Use correct listptr when looking up next loc for locview attr.
Mark Wielaard
mark@klomp.org
Wed May 30 10:05:00 GMT 2018
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>
---
src/ChangeLog | 5 +++++
src/readelf.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/ChangeLog b/src/ChangeLog
index f424fb7..7ae15bb 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-29 Mark Wielaard <mark@klomp.org>
* readelf.c (print_debug_loc_section): Handle GNU DebugFission list
diff --git a/src/readelf.c b/src/readelf.c
index 2ccbea5..6f2f637 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;
--
1.8.3.1
More information about the Elfutils-devel
mailing list