[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[openrisc] How to link programs with floating point operations?



Hi: 
 
 I have an error when I try to link programs wich uses floating 
points operations. I compile codes without floting point operations 
and compile ok. But when I use a FFT program that uses floats when I 
am linking I obtains errors like these: 
 
/root/or1k/or1ksim/prueba/fft.c:138: undefined reference to 
`___addsf3' 
/root/or1k/or1ksim/prueba/fft.c:138: undefined reference to 
`___subsf3' 
/root/or1k/or1ksim/prueba/fft.c:140: undefined reference to 
`___addsf3' 
/root/or1k/or1ksim/prueba/fft.c:141: undefined reference to 
`___subsf3' 
 
 
I compile my program using the uos included in the or1ksim 
testbenches: 
 
 
I use these orders to compile: 
or32-uclinux-gcc -DPACKAGE=\"or1ksimtest\" -DVERSION=\"1.3\" -I. -I.  
-I./support -Wall -g -nostdlib -mhard-div -c fft.c 
 
 
or32-uclinux-gcc -Wall -g -nostdlib -mhard-div -o fft 
-T.//default.ld except.o fft.o support/libsupport.a  
 
 
Thanks again 
 
--
To unsubscribe from openrisc mailing list please visit http://www.opencores.org/mailinglists.shtml