mips-binutils-2.14/gas oddity

Maciej W. Rozycki macro@ds2.pg.gda.pl
Wed Sep 10 17:06:00 GMT 2003


On Wed, 10 Sep 2003, Ralf Corsepius wrote:

> Found it - It was the day before yesterday, at least in binutils' list
> archive ;)
> 
> Unfortunately his patch doesn't seem to help me:
> 
> Using a brand new binutils built from a freshly checked out
> binutils-2.14-branch with Maciej's patch applied:
> 
> # 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)

 Please make sure you've actually rebuilt gas:

$ cat mipsbug.s
	sw	$8,0xfffe0130
$ mips-linux-as -G0 -EB -mips1 -g0 -32 -v -o mipsbug.o mipsbug.s
GNU assembler version 2.14 (mips-linux) using BFD version 2.14 20030612
$ mips-linux-objdump -Sr mipsbug.o

mipsbug.o:     file format elf32-tradbigmips

Disassembly of section .text:

00000000 <.text>:
   0:	3c01fffe 	lui	at,0xfffe
   4:	ac280130 	sw	t0,304(at)
	...
$ as-new -G0 -EB -mips1 -g0 -32 -v -o mipsbug.o mipsbug.s
GNU assembler version 2.14.90 (mips-rtems4.7) using BFD version 2.14.90 20030910
$ objdump -Sr mipsbug.o

mipsbug.o:     file format elf32-bigmips

Disassembly of section .text:

00000000 <.text>:
   0:	3c01fffe 	lui	at,0xfffe
   4:	ac280130 	sw	t0,304(at)
	...

 IOW, it works for me. :-)

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: macro@ds2.pg.gda.pl, PGP key available        +



More information about the Binutils mailing list