C-SKY FAIL: jbt - csky

Alan Modra amodra@gmail.com
Wed May 15 07:29:00 GMT 2019


Another failure seen with MALLOC_PERTURB_=1.  Applied.

	* config/tc-csky.c (md_convert_frag): Initialise trailing
	padding for COND_JUMP_PIC.

diff --git a/gas/config/tc-csky.c b/gas/config/tc-csky.c
index 75ced2ab0d..970c72afaf 100644
--- a/gas/config/tc-csky.c
+++ b/gas/config/tc-csky.c
@@ -4426,6 +4426,8 @@ md_convert_frag (bfd *abfd ATTRIBUTE_UNUSED, segT asec,  fragS *fragp)
 		buf[20] = (disp >> 8) & 0xff;
 		buf[21] = disp & 0xff;
 	      }
+	    buf[22] = 0;  /* initialise.  */
+	    buf[23] = 0;
 	    fragp->fr_fix += C32_LEN_PIC;
 
 	  } /* end if is_unaligned.  */

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list