]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
2005-08-22 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@redhat.com>
Tue, 23 Aug 2005 05:58:42 +0000 (05:58 +0000)
committerRoland McGrath <roland@redhat.com>
Tue, 23 Aug 2005 05:58:42 +0000 (05:58 +0000)
* dwfl_module_getdwarf.c (find_symtab): Use elf_getdata instead of
elf_rawdata for symbol-related sections.

libdwfl/ChangeLog
libdwfl/dwfl_module_getdwarf.c

index 532e1805d071a9be313320a627a75b1fccf364b2..3d4320c62c329b90a12159982281dcaf606291c1 100644 (file)
@@ -1,3 +1,8 @@
+2005-08-22  Roland McGrath  <roland@redhat.com>
+
+       * dwfl_module_getdwarf.c (find_symtab): Use elf_getdata instead of
+       elf_rawdata for symbol-related sections.
+
 2005-08-10  Roland McGrath  <roland@redhat.com>
 
        * relocate.c (__libdwfl_relocate): Take argument DEBUGFILE,
index cf982aafe2db2a4c8f1240e72a1b87c391af7239..329ecde199e5a148f30e3589d0c1a6cb61a8c430 100644 (file)
@@ -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;
 }