Question about MIPS soft-float libraries?

Joel Sherrill joel.sherrill at OARcorp.com
Mon Apr 28 17:13:00 UTC 2003



Ivica Mikec wrote:
> 
> Hi!
> 
> I an using RTEMS 4.6.0.pre3 with gcc 3.2.1-20021209 and newlib is
> 1.11.0-20030203.
> 
> I've noticed following:
> 
> If you use file command to check crti.o in
> /opt/rtems/lib/gcc-lib/mips-rtems/3.2.1/soft-float
> you will get this result:
> 
> crti.o: ELF 32-bit MSB MIPS-I relocatable, MIPS, version 1 (SYSV), not
> stripped
> 
> but if you use same command on crt0.o in:
> 
> /opt/rtems/mips-rtems/lib/soft-float
> you get different result:
> 
> crt0.o: ELF 32-bit MSB MIPS-I relocatable, MIPS, version 1
> MathCoPro/FPU/MAU required (SYSV), not stripped
> 
> I think both files should be compiled with -msoft-float, and it seams
> that only ctri.o was compiled with this flag and that crt0.o was not
> compiled with -msoft-float.
> 
> Can you check this?

I don't have logs left for 3.2.1 but could check the last 3.2.2 and
3.2.3 
logs and at least one variant is compiled with the -msoft-float. 

I suspect that gcc is not linking against the right multilib variant
subdirectory.  Add a -v to the gcc linking command and see where it
gets it.

> --
> Ivica Mikec <mikeci at znet.com>
> 
>   ------------------------------------------------------------------------
>                        Name: signature.asc
>    signature.asc       Type: application/pgp-signature
>                 Description: This is a digitally signed message part

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel at OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985



More information about the users mailing list