* config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
authorJoern Rennecke <joern.rennecke@embecosm.com>
Tue, 9 Apr 2002 15:26:59 +0000 (15:26 +0000)
committerJoern Rennecke <joern.rennecke@embecosm.com>
Tue, 9 Apr 2002 15:26:59 +0000 (15:26 +0000)
endian hosts.

gas/ChangeLog
gas/config/tc-sh.c

index b854bf56d440d1de1f9d819d247327ac6c44e98c..2cad825453b66127da4f05fd2cd28e72bb92e06f 100644 (file)
@@ -1,3 +1,8 @@
+Tue Apr  9 15:17:53 2002  J"orn Rennecke <joern.rennecke@superh.com>
+
+       * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
+       endian hosts.
+
 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
 
        * dep-in.sed: Cope with absolute paths.
index 5afaad89683d47705c5fbd3a461f2b1eb010508e..1f33e10dbcfa0b92ea4846ead37060e1bcfea8e6 100644 (file)
@@ -3310,7 +3310,7 @@ md_apply_fix3 (fixP, valP, seg)
   char *buf = fixP->fx_where + fixP->fx_frag->fr_literal;
   int lowbyte = target_big_endian ? 1 : 0;
   int highbyte = target_big_endian ? 0 : 1;
-  long val = * (long *) valP;
+  long val = (long) *valP;
   long max, min;
   int shift;