This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] [PRU]: Fix disassembly text for instructions with reloc
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: nickc at redhat dot com (Nick Clifton)
- Cc: dimitar at dinux dot eu (Dimitar Dimitrov), binutils at sourceware dot org
- Date: Thu, 14 Dec 2017 23:36:13 +0100 (CET)
- Subject: Re: [PATCH] [PRU]: Fix disassembly text for instructions with reloc
- Authentication-results: sourceware.org; auth=none
Nick Clifton wrote:
> > Could someone commit it? I don't have commit rights.
>
> Done.
Looks like this was added at an incorrect location, breaking
PowerPC disassembly (the bfd_arch_powerpc case no longer falls
through to the bfd_arch_rs6000 case):
diff --git a/opcodes/disassemble.c b/opcodes/disassemble.c
index 11206c6..fa9a765 100644
--- a/opcodes/disassemble.c
+++ b/opcodes/disassemble.c
@@ -654,6 +654,11 @@ disassemble_init_for_target (struct disassemble_info * info)
#ifdef ARCH_powerpc
case bfd_arch_powerpc:
#endif
+#ifdef ARCH_pru
+ case bfd_arch_pru:
+ info->disassembler_needs_relocs = TRUE;
+ break;
+#endif
#ifdef ARCH_rs6000
case bfd_arch_rs6000:
#endif
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU/Linux compilers and toolchain
Ulrich.Weigand@de.ibm.com