diff options
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/config/tc-sparc.c | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 0e268dc..c5502ec 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +Thu Jan 6 18:05:21 1994 Ken Raeburn (raeburn@cujo.cygnus.com) + + * config/tc-sparc.c (tc_gen_reloc): Fix handling of addends in + non-pcrel_offset relocations. + Thu Jan 6 01:06:40 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) * config/tc-mips.c (mips_ip): Warn about using $1 as well as $at diff --git a/gas/config/tc-sparc.c b/gas/config/tc-sparc.c index 1a05748..2480300 100644 --- a/gas/config/tc-sparc.c +++ b/gas/config/tc-sparc.c @@ -2076,10 +2076,8 @@ tc_gen_reloc (section, fixp) /* @@ Why fx_addnumber sometimes and fx_offset other times? */ if (reloc->howto->pc_relative == 0) reloc->addend = fixp->fx_addnumber; - else if (reloc->howto->pcrel_offset) - reloc->addend = fixp->fx_offset - reloc->address; else - reloc->addend = fixp->fx_offset; + reloc->addend = fixp->fx_offset - reloc->address; return reloc; } |