From: Roland McGrath Date: Tue, 23 Aug 2005 05:58:42 +0000 (+0000) Subject: 2005-08-22 Roland McGrath X-Git-Tag: elfutils-0.120~104 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3712b288d1407cf6551d359cdaacb31bbf2b2a75;p=thirdparty%2Felfutils.git 2005-08-22 Roland McGrath * dwfl_module_getdwarf.c (find_symtab): Use elf_getdata instead of elf_rawdata for symbol-related sections. --- 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; }