diff options
author | Ken Raeburn <raeburn@cygnus> | 1994-01-06 23:17:44 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@cygnus> | 1994-01-06 23:17:44 +0000 |
commit | fd0e2cf2d56e6adabdc0000f6afbb037c954812d (patch) | |
tree | 31b30070759d34a2a54b874a770c8d268cb8f18b /gas/config/tc-sparc.c | |
parent | d8a66e60cd8468ed1a4cde59963cbe62a5e50da4 (diff) | |
download | gdb-fd0e2cf2d56e6adabdc0000f6afbb037c954812d.zip gdb-fd0e2cf2d56e6adabdc0000f6afbb037c954812d.tar.gz gdb-fd0e2cf2d56e6adabdc0000f6afbb037c954812d.tar.bz2 |
fix sparc-solaris reloc bug
Diffstat (limited to 'gas/config/tc-sparc.c')
-rw-r--r-- | gas/config/tc-sparc.c | 4 |
1 files changed, 1 insertions, 3 deletions
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; } |