diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-09-21 23:15:10 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-09-21 23:15:10 +0000 |
commit | 804506f6e8eeb5b3bd02d516ff4faab5679f198a (patch) | |
tree | 672689e4c1fa3468814aac400c08797e346d3ab4 /gdb/objfiles.c | |
parent | bb7b38008eca5e948b39e65c7d5ff9ae2eb56a4a (diff) | |
download | gdb-804506f6e8eeb5b3bd02d516ff4faab5679f198a.zip gdb-804506f6e8eeb5b3bd02d516ff4faab5679f198a.tar.gz gdb-804506f6e8eeb5b3bd02d516ff4faab5679f198a.tar.bz2 |
(objfile_relocate): Relocate textlow and texthigh in psymtabs.
Diffstat (limited to 'gdb/objfiles.c')
-rw-r--r-- | gdb/objfiles.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/objfiles.c b/gdb/objfiles.c index 30a0aad..93d5dde 100644 --- 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); } |