aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-csky.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2019-05-15 16:37:18 +0930
committerAlan Modra <amodra@gmail.com>2019-05-15 16:41:22 +0930
commitf6bd0b7677cbe76cab7322974a418e0e539400d6 (patch)
tree8de54b63b4cdef3ebb1846111711ebb6cd3a2778 /gas/config/tc-csky.c
parent3a1bb98c3c4f983b950fbaf2797ddcd21fcb5211 (diff)
downloadgdb-f6bd0b7677cbe76cab7322974a418e0e539400d6.zip
gdb-f6bd0b7677cbe76cab7322974a418e0e539400d6.tar.gz
gdb-f6bd0b7677cbe76cab7322974a418e0e539400d6.tar.bz2
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.
Diffstat (limited to 'gas/config/tc-csky.c')
-rw-r--r--gas/config/tc-csky.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gas/config/tc-csky.c b/gas/config/tc-csky.c
index 75ced2a..970c72a 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. */