aboutsummaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2006-01-17 17:39:20 +0000
committerAndreas Schwab <schwab@linux-m68k.org>2006-01-17 17:39:20 +0000
commitd99b646536a8d905046ac3aabe8624fd86d56ccc (patch)
treeaca96d472075797ece666b6d6ddb303a0e342633 /opcodes
parent6dd55cb711112860860407fe47f18e1ddb17c599 (diff)
downloadgdb-d99b646536a8d905046ac3aabe8624fd86d56ccc.zip
gdb-d99b646536a8d905046ac3aabe8624fd86d56ccc.tar.gz
gdb-d99b646536a8d905046ac3aabe8624fd86d56ccc.tar.bz2
PR binutils/1486
binutils/: * configure.in: Don't define DISASSEMBLER_NEEDS_RELOCS. * configure: Regenerate. * objdump.c (struct objdump_disasm_info): Don't check for DISASSEMBLER_NEEDS_RELOCS. (objdump_print_addr): Likewise. (disassemble_bytes): Check disassembler_needs_relocs from disassemble_info at run-time instead of DISASSEMBLER_NEEDS_RELOCS at compile-time. (disassemble_section): Likewise. (disassemble_data): Initialize it. include/: * dis-asm.h (struct disassemble_info): Add disassembler_needs_relocs. objdump/: * disassemble.c (disassemble_init_for_target): Set disassembler_needs_relocs for bfd_arch_arm.
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/ChangeLog6
-rw-r--r--opcodes/disassemble.c1
2 files changed, 7 insertions, 0 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index 9083afa..fe28508 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,9 @@
+2006-01-17 Andreas Schwab <schwab@suse.de>
+
+ PR binutils/1486
+ * disassemble.c (disassemble_init_for_target): Set
+ disassembler_needs_relocs for bfd_arch_arm.
+
2006-01-16 Paul Brook <paul@codesourcery.com>
* m68k-opc.c (m68k_opcodes): Fix opcodes for ColdFire f?abss,
diff --git a/opcodes/disassemble.c b/opcodes/disassemble.c
index db5b90b..5cef902 100644
--- a/opcodes/disassemble.c
+++ b/opcodes/disassemble.c
@@ -442,6 +442,7 @@ disassemble_init_for_target (struct disassemble_info * info)
#ifdef ARCH_arm
case bfd_arch_arm:
info->symbol_is_valid = arm_symbol_is_valid;
+ info->disassembler_needs_relocs = TRUE;
break;
#endif
#ifdef ARCH_ia64