From 3712b288d1407cf6551d359cdaacb31bbf2b2a75 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 23 Aug 2005 05:58:42 +0000 Subject: [PATCH] 2005-08-22 Roland McGrath * dwfl_module_getdwarf.c (find_symtab): Use elf_getdata instead of elf_rawdata for symbol-related sections. --- libdwfl/ChangeLog | 5 +++++ libdwfl/dwfl_module_getdwarf.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/libdwfl/ChangeLog b/libdwfl/ChangeLog index 532e1805d..3d4320c62 100644 --- a/libdwfl/ChangeLog +++ b/libdwfl/ChangeLog @@ -1,3 +1,8 @@ +2005-08-22 Roland McGrath + + * dwfl_module_getdwarf.c (find_symtab): Use elf_getdata instead of + elf_rawdata for symbol-related sections. + 2005-08-10 Roland McGrath * relocate.c (__libdwfl_relocate): Take argument DEBUGFILE, diff --git a/libdwfl/dwfl_module_getdwarf.c b/libdwfl/dwfl_module_getdwarf.c index cf982aafe..329ecde19 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; } -- 2.47.2