Fix bug with expressions like @foo+20

This commit is contained in:
Steve Chamberlain 1991-10-08 00:40:43 +00:00
parent 58721107a6
commit 6ce6f0935f
1 changed files with 2 additions and 2 deletions

View File

@ -201,7 +201,7 @@ void DEFUN(do_relocs_for,(idx),
if (s) {
if ((s->flags & BSF_UNDEFINED)==0) {
to->section = s->section;
to->addend = s->value ;
to->addend += s->value ;
to->sym_ptr_ptr = 0;
if (to->howto->pcrel_offset) {
/* This is a pcrel relocation, the addend should be adjusted */
@ -273,8 +273,8 @@ static void DEFUN(do_symbols, (abfd),
default:
abort();
}
count++;
}
count++;
}
symbol_ptr_vec = (asymbol **)malloc((count+1) * sizeof(asymbol *));