Call elf_getdata with aux_xndxscn, not xndxscn, for aux_symxndxdata.
This was a copy/paste error from the code just above for symxndxdata.

Signed-off-by: Mark Wielaard <[email protected]>
---
 libdwfl/ChangeLog              |    5 +++++
 libdwfl/dwfl_module_getdwarf.c |    2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/libdwfl/ChangeLog b/libdwfl/ChangeLog
index 90ba686..df7a50f 100644
--- a/libdwfl/ChangeLog
+++ b/libdwfl/ChangeLog
@@ -1,3 +1,8 @@
+2013-09-12  Mark Wielaard  <[email protected]>
+
+       * dwfl_module_getdwarf.c (find_symtab): Call elf_getdata with
+       aux_xndxscn, not xndxscn, for aux_symxndxdata.
+
 2013-08-25  Mark Wielaard  <[email protected]>
 
        * linux-kernel-modules.c (report_kernel): Pass add_p_vaddr as true
diff --git a/libdwfl/dwfl_module_getdwarf.c b/libdwfl/dwfl_module_getdwarf.c
index d35c266..7a65ec3 100644
--- a/libdwfl/dwfl_module_getdwarf.c
+++ b/libdwfl/dwfl_module_getdwarf.c
@@ -1077,7 +1077,7 @@ find_symtab (Dwfl_Module *mod)
        mod->aux_symxndxdata = NULL;
       else
        {
-         mod->aux_symxndxdata = elf_getdata (xndxscn, NULL);
+         mod->aux_symxndxdata = elf_getdata (aux_xndxscn, NULL);
          if (mod->aux_symxndxdata == NULL)
            goto aux_cleanup;
        }
-- 
1.7.1

Reply via email to