From: Roland McGrath Date: Tue, 16 Dec 2008 03:33:33 +0000 (-0800) Subject: (dwfl_module_relocate_address): Apply main.bias, not debug.bias. X-Git-Tag: elfutils-0.138~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74825c4d9d21ff8ba0828d1790879965764ddb01;p=thirdparty%2Felfutils.git (dwfl_module_relocate_address): Apply main.bias, not debug.bias. --- diff --git a/libdwfl/ChangeLog b/libdwfl/ChangeLog index 4f03855f5..9d86f52b4 100644 --- a/libdwfl/ChangeLog +++ b/libdwfl/ChangeLog @@ -1,3 +1,8 @@ +2008-12-15 Roland McGrath + + * derelocate.c (dwfl_module_relocate_address): Apply main.bias, not + debug.bias. + 2008-12-11 Roland McGrath * offline.c (process_archive): Don't call elf_end and close if diff --git a/libdwfl/derelocate.c b/libdwfl/derelocate.c index 402bc06f7..7f390c759 100644 --- a/libdwfl/derelocate.c +++ b/libdwfl/derelocate.c @@ -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; }