From f6bd0b7677cbe76cab7322974a418e0e539400d6 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 15 May 2019 16:37:18 +0930 Subject: [PATCH] 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. --- gas/ChangeLog | 5 +++++ gas/config/tc-csky.c | 2 ++ 2 files changed, 7 insertions(+) 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. */ -- 2.30.2