OSDN Git Service

objdump.c: Fix coding for DISASSEMBLER_NEEDS_RELOC:
authornickc <nickc>
Tue, 1 Mar 2005 15:18:40 +0000 (15:18 +0000)
committernickc <nickc>
Tue, 1 Mar 2005 15:18:40 +0000 (15:18 +0000)
commitd550f59ca9b7db332757f34774b2451a561a1c1d
tree26500db1f06acdf33b22e6630dbb285dade9c636
parent50237bf130da16aa1c6f029a94f2027002033145
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