]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
(dwfl_module_relocate_address): Apply main.bias, not debug.bias.
authorRoland McGrath <roland@redhat.com>
Tue, 16 Dec 2008 03:33:33 +0000 (19:33 -0800)
committerRoland McGrath <roland@redhat.com>
Tue, 16 Dec 2008 03:33:33 +0000 (19:33 -0800)
libdwfl/ChangeLog
libdwfl/derelocate.c

index 4f03855f5c6b88394a7934c3ab918c390a16f4c3..9d86f52b489f302d6a506bb39d1a690fc4b68bc0 100644 (file)
@@ -1,3 +1,8 @@
+2008-12-15  Roland McGrath  <roland@redhat.com>
+
+       * derelocate.c (dwfl_module_relocate_address): Apply main.bias, not
+       debug.bias.
+
 2008-12-11  Roland McGrath  <roland@redhat.com>
 
        * offline.c (process_archive): Don't call elf_end and close if
index 402bc06f76caafca1ec64bba4652a0af5de84ec9..7f390c759cd6390f20bb7c3476d3d79beb6a7185 100644 (file)
@@ -358,7 +358,7 @@ dwfl_module_relocate_address (Dwfl_Module *mod, Dwarf_Addr *addr)
 
   if (mod->e_type != ET_REL)
     {
-      *addr -= mod->debug.bias;
+      *addr -= mod->main.bias;
       return 0;
     }