From 2ed5f585e4f1b7f0c719d704807f994938613a4c Mon Sep 17 00:00:00 2001 From: Joern Rennecke Date: Tue, 9 Apr 2002 15:26:59 +0000 Subject: [PATCH] * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big endian hosts. --- gas/ChangeLog | 5 +++++ gas/config/tc-sh.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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; -- 2.30.2