From: Joern Rennecke Date: Tue, 9 Apr 2002 15:26:59 +0000 (+0000) Subject: * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2ed5f585e4f1b7f0c719d704807f994938613a4c;p=binutils-gdb.git * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big endian hosts. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index b854bf56d44..2cad825453b 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +Tue Apr 9 15:17:53 2002 J"orn Rennecke + + * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big + endian hosts. + 2002-04-04 Alan Modra * dep-in.sed: Cope with absolute paths. diff --git a/gas/config/tc-sh.c b/gas/config/tc-sh.c index 5afaad89683..1f33e10dbcf 100644 --- a/gas/config/tc-sh.c +++ b/gas/config/tc-sh.c @@ -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;