This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
[delayed-symfile] [commit] Fix objfile_relocate
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: archer at sourceware dot org
- Date: Sun, 6 Dec 2009 22:06:12 +0100
- Subject: [delayed-symfile] [commit] Fix objfile_relocate
850378e2d04b910f0541aa67e8fa5f990b6e35ba Mon Sep 17 00:00:00 2001
From: Jan Kratochvil <jkratoch@host1.dyn.jankratochvil.net>
Date: Sun, 6 Dec 2009 22:02:22 +0100
Subject: [PATCH] Fix objfile_relocate for this branch.
* objfiles.c (objfile_relocate): Call addrmap_relocate on quick_addrmap.
Testcase included in archer-jankratochvil-pie-fedora12 break-interp.exp .
---
gdb/objfiles.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/gdb/objfiles.c b/gdb/objfiles.c
index 9c5f303..0f75ebd 100644
--- a/gdb/objfiles.c
+++ b/gdb/objfiles.c
@@ -633,6 +633,11 @@ objfile_relocate (struct objfile *objfile, struct section_offsets *new_offsets)
}
}
+ /* Alread QUICK_ADDRMAP tiself assumes all sections have the same offset. */
+ if (objfile->quick_addrmap)
+ addrmap_relocate (objfile->quick_addrmap,
+ ANOFFSET (delta, SECT_OFF_TEXT (objfile)));
+
{
struct partial_symbol **psym;
--
1.6.5.2