diff options
Diffstat (limited to 'gdb/mdebugread.c')
-rw-r--r-- | gdb/mdebugread.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c index f2e0045..c4f1889 100644 --- a/gdb/mdebugread.c +++ b/gdb/mdebugread.c @@ -687,9 +687,12 @@ parse_symbol (sh, ax, ext_sh, bigend, section_offsets) switch (sh->sc) { case scText: - /* The value of a stEnd symbol is the displacement from the - corresponding start symbol value, do not relocate it. */ - if (sh->st != stEnd) + /* Do not relocate relative values. + The value of a stEnd symbol is the displacement from the + corresponding start symbol value. + The value of a stBlock symbol is the displacement from the + procedure address. */ + if (sh->st != stEnd && sh->st != stBlock) sh->value += ANOFFSET (section_offsets, SECT_OFF_TEXT); break; case scData: @@ -3217,8 +3220,6 @@ psymtab_to_symtab_1 (pst, filename) { /* This symbol table contains ordinary ecoff entries. */ - /* FIXME: doesn't use pst->section_offsets. */ - int f_max; int maxlines; EXTR *ext_ptr; |