This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] C-SKY FAIL: jbt - csky
- From: Alan Modra <amodra at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 15 May 2019 07:13:29 -0000
- Subject: [binutils-gdb] C-SKY FAIL: jbt - csky
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=f6bd0b7677cbe76cab7322974a418e0e539400d6
commit f6bd0b7677cbe76cab7322974a418e0e539400d6
Author: Alan Modra <amodra@gmail.com>
Date: Wed May 15 16:37:18 2019 +0930
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:
---
gas/ChangeLog | 5 +++++
gas/config/tc-csky.c | 2 ++
2 files changed, 7 insertions(+)
diff --git a/gas/ChangeLog b/gas/ChangeLog
index be69384..34a4eee 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,10 @@
2019-05-15 Alan Modra <amodra@gmail.com>
+ * config/tc-csky.c (md_convert_frag): Initialise trailing
+ padding for COND_JUMP_PIC.
+
+2019-05-15 Alan Modra <amodra@gmail.com>
+
* dwarf2dbg.c: Whitespace fixes.
(get_filenum): Don't strdup "file". Adjust error message.
(dwarf2_directive_filename): Use an unsigned type for "num".
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. */