fix sparc-solaris reloc bug
authorKen Raeburn <raeburn@cygnus>
Thu, 6 Jan 1994 23:17:44 +0000 (23:17 +0000)
committerKen Raeburn <raeburn@cygnus>
Thu, 6 Jan 1994 23:17:44 +0000 (23:17 +0000)
gas/ChangeLog
gas/config/tc-sparc.c

index 0e268dca2e3cf80fc03c408d652ec2514ded821d..c5502ec96f9de350e048ec1aa11cd5e113d0fd1a 100644 (file)
@@ -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
index 1a057486df7496076992a2a39b5212bd12eaaf4f..24803009b0b32b26e902b9c3600400df6101f48f 100644 (file)
@@ -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;
 }
This page took 0.034108 seconds and 4 git commands to generate.