projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb7b380
)
(objfile_relocate): Relocate textlow and texthigh in psymtabs.
author
Jim Kingdon
<jkingdon@engr.sgi.com>
Tue, 21 Sep 1993 23:15:10 +0000
(23:15 +0000)
committer
Jim Kingdon
<jkingdon@engr.sgi.com>
Tue, 21 Sep 1993 23:15:10 +0000
(23:15 +0000)
gdb/objfiles.c
patch
|
blob
|
history
diff --git
a/gdb/objfiles.c
b/gdb/objfiles.c
index 30a0aadc8b45c5f100abbadfa62106d7803aa8f3..93d5ddea201bea98fcf5ab102a25cc265be2e252 100644
(file)
--- a/
gdb/objfiles.c
+++ b/
gdb/objfiles.c
@@
-479,6
+479,10
@@
objfile_relocate (objfile, new_offsets)
ALL_OBJFILE_PSYMTABS (objfile, p)
{
+ /* FIXME: specific to symbol readers which use gdb-stabs.h.
+ We can only get away with it since objfile_relocate is only
+ used on XCOFF, which lacks psymtabs, and for gdb-stabs.h
+ targets. */
p->textlow += ANOFFSET (delta, SECT_OFF_TEXT);
p->texthigh += ANOFFSET (delta, SECT_OFF_TEXT);
}