(objfile_relocate): Relocate textlow and texthigh in psymtabs.

This commit is contained in:
Jim Kingdon 1993-09-21 23:15:10 +00:00
parent bb7b38008e
commit 804506f6e8
1 changed files with 4 additions and 0 deletions

View File

@ -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);
}