From: Alan Modra Date: Wed, 15 May 2019 07:07:18 +0000 (+0930) Subject: C-SKY FAIL: jbt - csky X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f6bd0b7677cbe76cab7322974a418e0e539400d6;p=binutils-gdb.git C-SKY FAIL: jbt - csky Another failure seen with MALLOC_PERTURB_=1. * config/tc-csky.c (md_convert_frag): Initialise trailing padding for COND_JUMP_PIC. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index be6938429e5..34a4eeedd82 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2019-05-15 Alan Modra + + * config/tc-csky.c (md_convert_frag): Initialise trailing + padding for COND_JUMP_PIC. + 2019-05-15 Alan Modra * dwarf2dbg.c: Whitespace fixes. diff --git a/gas/config/tc-csky.c b/gas/config/tc-csky.c index 75ced2ab0df..970c72afaf0 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. */