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: "H . J . Lu" <hjl at lucon dot org>
- To: balasankaran at starcomtec dot com
- Cc: binutils at sourceware dot cygnus dot com
- Date: Mon, 31 Dec 2001 11:29:56 -0800
- Subject: Re: unsupported relocation type with mtspr and mfspr
- References: <20011231115137.A30275@mail.starcomtec.com>
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 know nothing about PPC. I am forwording your question to the binutils
mailing list.
H.J.
----
>
> ps: The following lines seems to be accepted by Diab data assembler.
>
>
>
>
> Error: unsupported relocation type
>
> mtspr SR1,11 # store MSR to SR1 for rfi
> mfspr r0,SR1
> mfspr r0,SR1
> mtspr SR1,12 # restore MSR
>
>
>
> mfspr 12,SRR2 # read the rfi PC value/SRR2
> mfspr 12,SRR3 # read the MSR value/SRR3
> mfspr 12,SRR2
> mfspr 12,SRR3
> mfspr 12,SRR2
> mfspr 12,SRR3
> mfspr 12,SRR2
> mfspr 12,SRR3
> mtspr EVPR,6
> mtspr TSR,3 # clear all pending timer inter
> rupts
> mtspr PIT,3 # write the count to the PIT
> mtspr TCR,3 # enable PIT
> mfspr 10,EVPR # get vector base address
> mtspr TSR,12 # clear PIT interrupt bit
> mtspr PIT,12 # reload PIT