forked from pool/elfutils
24 lines
608 B
Diff
24 lines
608 B
Diff
From 74825c4d9d21ff8ba0828d1790879965764ddb01 Mon Sep 17 00:00:00 2001
|
|
From: Roland McGrath <roland@redhat.com>
|
|
Date: Mon, 15 Dec 2008 19:33:33 -0800
|
|
Subject: [PATCH] (dwfl_module_relocate_address): Apply main.bias, not debug.bias.
|
|
|
|
---
|
|
|
|
diff --git a/libdwfl/derelocate.c b/libdwfl/derelocate.c
|
|
index 402bc06..7f390c7 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;
|
|
}
|
|
|
|
--
|
|
1.6.0.5
|
|
|