* objdump.c (disassemble_bytes): Clear aux->reloc before printing

a new address, so as not to reuse a previous, non-related reloc.

        * gas/arm/arm-it-auto.d, gas/arm/bl-local-v4t.d,
        gas/arm/blx-local.d, gas/arm/thumb-w-good.d: Update expected
        results.
This commit is contained in:
Nick Clifton 2010-02-08 14:33:22 +00:00
parent 0b8bcf0ddb
commit bb7c70edcc
8 changed files with 49 additions and 35 deletions

View file

@ -1516,6 +1516,9 @@ disassemble_bytes (struct disassemble_info * inf,
previous_octets = octets;
octets = 0;
/* Make sure we don't use relocs from previous instructions. */
aux->reloc = NULL;
/* If we see more than SKIP_ZEROES octets of zeroes, we just
print `...'. */
for (z = addr_offset * opb; z < stop_offset * opb; z++)
@ -1619,8 +1622,6 @@ disassemble_bytes (struct disassemble_info * inf,
inf->flags |= INSN_HAS_RELOC;
aux->reloc = **relppp;
}
else
aux->reloc = NULL;
}
octets = (*disassemble_fn) (section->vma + addr_offset, inf);