This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: unsupported relocation type with mtspr and mfspr
- From: balasankaran at starcomtec dot com
- To: Geoff Keating <geoffk at redhat dot com>
- Cc: hjl at lucon dot org, balasankaran at starcomtec dot com, binutils at sourceware dot cygnus dot com
- Date: Mon, 31 Dec 2001 13:16:22 -0800
- Subject: Re: unsupported relocation type with mtspr and mfspr
- References: <20011231115137.A30275@mail.starcomtec.com> <20011231112956.A4171@lucon.org> <200112311950.LAA06173@geoffk.org>
Geoffrey,
Thanks a lot for the clarification. The assembler accepts
mtevpr/mfevpr in place of mtspr/mfspr.
-Bala
On Mon, Dec 31, 2001 at 11:50:59AM -0800, Geoff Keating wrote:
> > Date: Mon, 31 Dec 2001 11:29:56 -0800
> > From: "H . J . Lu" <hjl@lucon.org>
> > Cc: binutils@sourceware.cygnus.com
> > Content-Disposition: inline
> > User-Agent: Mutt/1.2.5i
> >
> > On Mon, Dec 31, 2001 at 11:51:37AM -0800, balasankaran@starcomtec.com wrote:
> > > i,
> > > I am using the following assembler.
> > > ----------------------------------------
> > > <vkit/ppc/405/bin/ppc_405-as -mregnames -m405 --version
> > > GNU assembler 2.10.91
> > > Copyright 2001 Free Software Foundation, Inc.
> > > This program is free software; you may redistribute it under the terms of
> > > the GNU General Public License. This program has absolutely no warranty.
> > > This assembler was configured for a target of `powerpc-hardhat-linux'.
> > > -------------------------------------------
> > >
> > > The assembler reports the following error for the assembly lines
> > > mentioned below. Any suggestions to overcome the problem ?
> > > Thanks a lot.
> > > -Bala
>
> I think you probably wanted to write
>
> mtspr 1,11
>
> The ppc assembler doesn't know about the 'SR1' names. Normally you'd
> use the appropriate simplified mnemonic instead:
> mtxer 11
> or
> mtxer %r11
> or, with the -mregnames switch to gas,
> mtxer r11
>
> --
> - Geoffrey Keating <geoffk@geoffk.org> <geoffk@redhat.com>