mips: genmongoosev/start/start.S

Ralf Corsepius corsepiu at faw.uni-ulm.de
Wed Sep 10 11:33:34 UTC 2003


On Tue, 2003-09-09 at 17:26, gregory.menke at gsfc.nasa.gov wrote:
> Ralf Corsepius writes:
>  > On Tue, 2003-09-09 at 16:37, gregory.menke at gsfc.nasa.gov wrote:
>  > > Ralf Corsepius writes:
>  > >  > Hi,
>  > >  > 
>  > >  > May-be there's a mips-expert on this list, who can help:
>  > >  > 
>  > >  > Compiling genmongoosev/start/start.S with gcc-3.3.2pre and binutils-2.14
>  > >  > fails with this error:
>  > >  > 
>  > >  > # mips-rtems4.7-gcc --pipe -B../../../../../../../lib/
>  > >  > -B../../../../../../../genmongoosev/lib/ -specs bsp_specs -qrtems -mips1
>  > >  > -G0 -isystem ../../../../../../../genmongoosev/lib/include   -DASM -o
>  > >  > o-optimize/start.o -c
>  > >  > .../../../../../../../../../../rtems.master/c/src/lib/libbsp/mips/genmongoosev/start/start.S
>  > >  > .../../../../../../../../../../rtems.master/c/src/lib/libbsp/mips/genmongoosev/start/start.S: Assembler messages:
>  > >  > .../../../../../../../../../../rtems.master/c/src/lib/libbsp/mips/genmongoosev/start/start.S:585: Error: load/store address overflow (max 32 bits)
>  > >  > .../../../../../../../../../../rtems.master/c/src/lib/libbsp/mips/genmongoosev/start/start.S:620: Error: load/store address overflow (max 32 bits)
>  > >  > .../../../../../../../../../../rtems.master/c/src/lib/libbsp/mips/genmongoosev/start/start.S:628: Error: load/store address overflow (max 32 bits)
>  > >  > ....
>  > >  > 
>  > >  > AFAIS, all lines gas is complaining about are of this type:
>  > >  > 
>  > >  >    sw  t0,M_BIU

The whole story can be condensed into this example (It's exactly the
line cited from the original code, above):

# cat mipsbug.s
   sw  $8,0xfffe0130

Compiling it with binutils-2.13.2.1 doesn't complain:

# mips-rtems4.6-as  -G0 -EB -mips1 -g0 -32 -v -o mipsbug.o mipsbug.s
GNU assembler version 2.13.2.1 (mips-rtems4.6) using BFD version 2.13.2.1


Compiling it with binutils-2.14 does:

# mips-rtems4.7-as  -G0 -EB -mips1 -g0 -32 -v -o mipsbug.o mipsbug.s
GNU assembler version 2.14 (mips-rtems4.7) using BFD version 2.14 20030910
mipsbug.s: Assembler messages:
mipsbug.s:1: Error: load/store address overflow (max 32 bits)

I hardly know anything about mips-asm and therefore am not able to judge
on what is wrong.

Ralf





More information about the users mailing list