summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libdwfl/ChangeLog5
-rw-r--r--libdwfl/dwfl_module_getdwarf.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/libdwfl/ChangeLog b/libdwfl/ChangeLog
index 532e1805..3d4320c6 100644
--- a/libdwfl/ChangeLog
+++ b/libdwfl/ChangeLog
@@ -1,3 +1,8 @@
+2005-08-22 Roland McGrath <[email protected]>
+
+ * dwfl_module_getdwarf.c (find_symtab): Use elf_getdata instead of
+ elf_rawdata for symbol-related sections.
+
2005-08-10 Roland McGrath <[email protected]>
* relocate.c (__libdwfl_relocate): Take argument DEBUGFILE,
diff --git a/libdwfl/dwfl_module_getdwarf.c b/libdwfl/dwfl_module_getdwarf.c
index cf982aaf..329ecde1 100644
--- a/libdwfl/dwfl_module_getdwarf.c
+++ b/libdwfl/dwfl_module_getdwarf.c
@@ -257,7 +257,7 @@ find_symtab (Dwfl_Module *mod)
/* Cache the data; MOD->syments was set above. */
- mod->symstrdata = elf_rawdata (elf_getscn (mod->symfile->elf, strshndx),
+ mod->symstrdata = elf_getdata (elf_getscn (mod->symfile->elf, strshndx),
NULL);
if (mod->symstrdata == NULL)
goto elferr;
@@ -266,12 +266,12 @@ find_symtab (Dwfl_Module *mod)
mod->symxndxdata = NULL;
else
{
- mod->symxndxdata = elf_rawdata (xndxscn, NULL);
+ mod->symxndxdata = elf_getdata (xndxscn, NULL);
if (mod->symxndxdata == NULL)
goto elferr;
}
- mod->symdata = elf_rawdata (symscn, NULL);
+ mod->symdata = elf_getdata (symscn, NULL);
if (mod->symdata == NULL)
goto elferr;
}