C-SKY FAIL: jbt - csky

Message ID 20190515072905.GE6820@bubble.grove.modra.org
State New
Headers show
Series
  • C-SKY FAIL: jbt - csky
Related show

Commit Message

Alan Modra May 15, 2019, 7:29 a.m.
Another failure seen with MALLOC_PERTURB_=1.  Applied.

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


-- 
Alan Modra
Australia Development Lab, IBM

Patch

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.  */