This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Unrecognized opcode: mfsr
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Olaf Hering <olh at suse dot de>
- Cc: binutils at sources dot redhat dot com
- Date: Tue, 16 Aug 2005 09:37:07 +0930
- Subject: Re: Unrecognized opcode: mfsr
- References: <20050815154019.GA17029@suse.de>
On Mon, Aug 15, 2005 at 05:40:19PM +0200, Olaf Hering wrote:
>
> Hmm, what is this? current hju binutils release. works with a 32bit ld,
> but not with the 64bit one.
>
> as -a32 drivers/macintosh/mol/_traps.o.s -o drivers/macintosh/mol/_traps.o
> drivers/macintosh/mol/asm-files/entry.S: Assembler messages:
> drivers/macintosh/mol/asm-files/entry.S:64: Error: Unrecognized opcode: `mfsr'
It's a bug in setting defaults. Of course, sane people build a biarch
powerpc toolchain with a default of 32-bit. :)
* config/tc-ppc.c (ppc_set_cpu): Don't select 64-bit based on
default cpu.
Index: gas/config/tc-ppc.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-ppc.c,v
retrieving revision 1.104
diff -u -p -r1.104 tc-ppc.c
--- gas/config/tc-ppc.c 15 Aug 2005 15:37:14 -0000 1.104
+++ gas/config/tc-ppc.c 16 Aug 2005 00:03:44 -0000
@@ -1155,12 +1155,7 @@ ppc_set_cpu ()
else if (strcmp (default_cpu, "rs6000") == 0)
ppc_cpu |= PPC_OPCODE_POWER | PPC_OPCODE_32;
else if (strncmp (default_cpu, "powerpc", 7) == 0)
- {
- if (default_cpu[7] == '6' && default_cpu[8] == '4')
- ppc_cpu |= PPC_OPCODE_PPC | PPC_OPCODE_CLASSIC | PPC_OPCODE_64;
- else
- ppc_cpu |= PPC_OPCODE_PPC | PPC_OPCODE_CLASSIC | PPC_OPCODE_32;
- }
+ ppc_cpu |= PPC_OPCODE_PPC | PPC_OPCODE_CLASSIC | PPC_OPCODE_32;
else
as_fatal (_("Unknown default cpu = %s, os = %s"),
default_cpu, default_os);
--
Alan Modra
IBM OzLabs - Linux Technology Centre