This is the mail archive of the newlib@sourceware.cygnus.com mailing list for the newlib project.


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

newlib v1.8.0 compilation probs for mips target


In trying to compile ./libgloss/mips/vr4300.S the assembler complained
about two lines not containing an absolute expression.  I believe the
following patch should fix the problem.  I suspect for some reason the
assembler didn't want to do address arithmetic on the labels and then
assign it to a register with 'li'.  I don't have a 4300 target, I just
wanted everything to compile cleanly, so I can't test this patch.



newlib v1.8.0 configuration:

--host=i586-pc-cygwin32 (version B19)
--target=mips64el-elf

egcs version 1.0.3a

--host=i586-pc-cygwin32 
--target=mips64el-elf 
--with-gnu-as 
--with-gnu-ld 
--with-newlib 
--with-headers=/d/tools/newlib-1.8.0/newlib/libc/include/

gas version 2.9.1

--host=i586-pc-cygwin32
--target=mips64el-elf


253c254
< 	la	a1,__exception_code_end
---
> 	li	a1,(__exception_code_end - __exception_code)
255,256d255
< 	# calculate move count
< 	subu	a1, a1, a2
295,298c294
< 	la	a1,__exception_code_end
< 	la	a2,__exception_code
< 	# calculate move count
< 	subu	a1, a1, a2
---
> 	li	a1,(__exception_code_end - __exception_code)