This is the mail archive of the newlib@sourceware.org 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]
Other format: [Raw text]

How to enable soft-float support in newlib and gcc toolchains for an i386 target


Hello Everyone,

I am newbie to newlib and gcc toolchains, so my question may be a little ambiguous for this forum.

In fact I am trying to build a gcc toolchain with newlib for an i386 target which doesn't support hw float/mmx instructions. In fact it is a virtual machine which I am targeting.
So when I compile my applications with "-msoft-float" flag, I get quite a few unresolved symbols.


For Example:
Sources/susan.c:979: undefined reference to `__floatsisf'
Sources/susan.c:979: undefined reference to `__divsf3'
Sources/susan.c:1626: undefined reference to `__subdf3'
Sources/susan.c:1628: undefined reference to `__mulsf3'
...

So my obvious 'guess' is to rebuild the gcc toolchain and/or newlib using "--with-float=soft" and/or "--enable-soft-float" options. But so far I haven't been able to build a toolchain that solves this issue.

Any help / pointers in this regard will be greatly appreciated.
Please also point-out if this is not the right forum for this type of question.


Best Regards,
Hamayun

--
-- Mian Muhammad HAMAYUN              Bureau: T422              --
-- Doctorant, TIMA/INPG/SLS           Mob   : +33 6 27 41 18 10 --
-- 46, Avenue Felix Viallet,          Tel   : +33 4 76 57 43 34 --
-- F-38031 Grenoble Cedex FRANCE      Fax   : +33 4 76 57 49 81 --

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


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