https://sourceware.org/bugzilla/show_bug.cgi?id=24851

            Bug ID: 24851
           Summary: gas/testsuite/gas/epiphany/badrelax.s failure with
                    MALLOC_PERTURB_=1
           Product: binutils
           Version: 2.33 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gas
          Assignee: unassigned at sourceware dot org
          Reporter: amodra at gmail dot com
  Target Milestone: ---

regexp_diff match failure
regexp "^   2:  013b 0000       sub r0,r0,2$"
line   "   2:   013b ff00       *unknown*"
FAIL: badrelax

If as-new is run under valgrind, it complains about writing uninitialised
memory to file.

Some uninitialised memory is read in md_convert_frag:

  /* Do all the housekeeping for frag conversions. */
  switch (fragP->fr_subtype)
    {
    case EPIPHANY_RELAX_ARITH_SIMM11:
      *opcode |= OP4_IMM32;
      displacement = &opcode[0];
      extension += 3;

      addend
        = (((addend & 0x7) << 7)
           | opcode[0]
           | ((addend & 0x7f8) << 13)
           | (opcode[1] << 8)
           | (opcode[2] << 16));

opcode[2] is uninitialised.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to