objdump.c: Fix coding for DISASSEMBLER_NEEDS_RELOC:
commit8d227dd3fe44cd1c919ea6ab2d9161b852d06add
authorNick Clifton <nickc@redhat.com>
Tue, 1 Mar 2005 15:18:44 +0000 (1 15:18 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 1 Mar 2005 15:18:44 +0000 (1 15:18 +0000)
treec3ee9d271eb9f54152727d7639b57f37e8bd2c45
parent47785bfb4fb572b863c8c33205b1dde10b5d8ee6
objdump.c: Fix coding for DISASSEMBLER_NEEDS_RELOC:
(struct objdump_disasm_info): Add 'reloc' field.
(disassemble_bytes): Fix check for when an insn has a reloc associated with it.
Improve comment explaining why the use of octets is wrong.  Set the 'reloc'
field in objdump_disasm_info structure.
(objdump_print_addr): Use new 'reloc' field to lookup the correct address for
the symbol associated with the current instruction's relocation.
(disassemble_info): Initialise 'reloc' field.

gas/arm/inst.d: Allow for ARM ports which decode the reloc associated with
branches and so show the exact symbolic destination address rather than an
offset from the start of the section.

gas/arm/pic.d: Likewise.
binutils/ChangeLog
binutils/objdump.c
gas/testsuite/ChangeLog
gas/testsuite/gas/arm/inst.d
gas/testsuite/gas/arm/pic.d