]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
objdump.c: Fix coding for DISASSEMBLER_NEEDS_RELOC:
authorNick Clifton <nickc@redhat.com>
Tue, 1 Mar 2005 15:18:44 +0000 (15:18 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 1 Mar 2005 15:18:44 +0000 (15:18 +0000)
commitce04548af9eafaa2034f081247a21ff3fcfede15
treebe5ab939f6d3c9eb1219b097fa1fa5ef177a3021
parentb15c27d7c12d8c8d500a4f96693f6a7cff86aeaa
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