From: Jim Kingdon Date: Tue, 21 Sep 1993 23:15:10 +0000 (+0000) Subject: (objfile_relocate): Relocate textlow and texthigh in psymtabs. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=804506f6e8eeb5b3bd02d516ff4faab5679f198a;p=binutils-gdb.git (objfile_relocate): Relocate textlow and texthigh in psymtabs. --- diff --git a/gdb/objfiles.c b/gdb/objfiles.c index 30a0aadc8b4..93d5ddea201 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); }