Subject: New Binutils, New Danger

From: Philip Blundell <[email-masked]>
Date: Sun, 18 Jan 1998 23:33:13 +0000

>  Its adr's in hand created code I think:

Hi Dave.

Can you try the appended patch to gas? 

p.

Sun Jan 18 22:33:27 1998  Philip Blundell  <[email-masked]>

	* config/tc-arm.c (md_apply_fix3): Cast offsets correctly to work
	on 64-bit machines.

--- config/tc-arm.c~	Fri Dec 26 13:43:55 1997
+++ config/tc-arm.c	Sun Jan 18 22:31:59 1998
@@ -5096,8 +5096,8 @@
 
       /* If the instruction will fail, see if we can fix things up by
 	 changing the opcode.  */
-      if (newval == FAIL
-	  && (newval = negate_data_op (&temp, value)) == FAIL)
+      if ((int)newval == FAIL
+	  && (int)(newval = negate_data_op (&temp, value)) == FAIL)
 	{
 	  as_bad_where (fixP->fx_file, fixP->fx_line,
 			"invalid constant after fixup\n");

unsubscribe: body of `unsubscribe linux-arm' to [email-masked]