From 52fe4420b771a0f3b4fc7c6535bbd6e9b279f775 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 7 Mar 2018 11:06:15 +1030 Subject: XCOFF disassembler xcoff (32-bit) objdump accepted but ignored -M options unless -mpowerpc was also given. This patch fixes that, leaving the default as -Mpwr for xcoff. I've also enabled more tests for xcoff targets. binutils/ * configure.ac: Add objdump_private_desc_xcoff for rs6000. * configure: Regenerate. gas/ * testsuite/gas/ppc/aix.exp: Run for rs6000 too. * testsuite/gas/ppc/ppc.exp: Run more tests for non-ELF targets. * testsuite/gas/ppc/machine.d: Don't run for PE targets. opcodes/ * disassemble.c (disassembler): Use bfd_arch_powerpc entry for bfd_arch_rs6000. * disassemble.h (print_insn_rs6000): Delete. * ppc-dis.c (powerpc_init_dialect): Handle rs6000. (disassemble_init_powerpc): Call powerpc_init_dialect for rs6000. (print_insn_rs6000): Delete. --- binutils/ChangeLog | 5 +++++ binutils/configure | 2 +- binutils/configure.ac | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) (limited to 'binutils') diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 8af7344..3f3a9dd 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2018-03-07 Alan Modra + + * configure.ac: Add objdump_private_desc_xcoff for rs6000. + * configure: Regenerate. + 2018-03-05 H.J. Lu PR binutils/22911 diff --git a/binutils/configure b/binutils/configure index 9ce9f3f..e11c43f 100755 --- a/binutils/configure +++ b/binutils/configure @@ -14599,7 +14599,7 @@ do avr-*-*) od_vectors="$od_vectors objdump_private_desc_elf32_avr" ;; - powerpc-*-aix*) + powerpc*-*-aix* | rs6000-*-aix*) od_vectors="$od_vectors objdump_private_desc_xcoff" ;; *-*-darwin*) diff --git a/binutils/configure.ac b/binutils/configure.ac index 30898ae..430192b 100644 --- a/binutils/configure.ac +++ b/binutils/configure.ac @@ -417,7 +417,7 @@ changequote([,])dnl avr-*-*) od_vectors="$od_vectors objdump_private_desc_elf32_avr" ;; - powerpc-*-aix*) + powerpc*-*-aix* | rs6000-*-aix*) od_vectors="$od_vectors objdump_private_desc_xcoff" ;; *-*-darwin*) -- cgit v1.1