OSDN Git Service

* config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
authoramylaar <amylaar>
Tue, 9 Apr 2002 15:26:58 +0000 (15:26 +0000)
committeramylaar <amylaar>
Tue, 9 Apr 2002 15:26:58 +0000 (15:26 +0000)
endian hosts.

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

index b854bf5..2cad825 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 5afaad8..1f33e10 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;