This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: mips-binutils-2.14/gas oddity


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        +


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]