diff options
author | Nick Clifton <nickc@redhat.com> | 2010-02-08 14:33:21 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2010-02-08 14:33:21 +0000 |
commit | faa440a08d083d7bfb0e32b913974fee9a409b43 (patch) | |
tree | a2773e5c3c1ade36030dfdfb118835362e4e60eb /binutils/objdump.c | |
parent | 969a176a9031a838c3d7865b539fba059a553bc6 (diff) | |
download | binutils-redhat-faa440a08d083d7bfb0e32b913974fee9a409b43.tar.gz |
* 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.
Diffstat (limited to 'binutils/objdump.c')
-rw-r--r-- | binutils/objdump.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/binutils/objdump.c b/binutils/objdump.c index b53d4ebe92..41d0b4eb3a 100644 --- a/binutils/objdump.c +++ b/binutils/objdump.c @@ -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); |