C-SKY FAIL: jbt - csky
authorAlan Modra <amodra@gmail.com>
Wed, 15 May 2019 07:07:18 +0000 (16:37 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 15 May 2019 07:11:22 +0000 (16:41 +0930)
Another failure seen with MALLOC_PERTURB_=1.

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

gas/ChangeLog
gas/config/tc-csky.c

index be6938429e5cbf51316f555e6280cac5cd9da7ca..34a4eeedd8275d0d9c4e339598c6cfc312481b9b 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 75ced2ab0dfa9e12f54d72bc9097ae99a77473c4..970c72afaf00c258ffade268d5e9def287e1ff53 100644 (file)
@@ -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.  */