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

See the CrossGCC FAQ for lots more information.


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: Soft Float is not being reported


On 2004-06-24 at 21:11:11 Dave wrote:

> # cat /opt/crosstool2/lib/gcc-lib/arm-linux/3.3.3/specs  | grep lgcc

> %{msoft-float:-lfloat}
> %{static|static-libgcc:-lgcc
> -lgcc_eh}%{!static:%{!static-libgcc:%{!shared:%
> {!shared-libgcc:-lgcc -lgcc_eh}%{shared-libgcc:-lgcc_s%M -lgcc}}%{shared:-lg
> cc_s%M}}}

> I removed the -lfloat section...


>  /opt/crosstool2/bin/arm-linux-gcc -o float float.c -msoft-float
> /opt/crosstool2/bin/../lib/gcc-lib/arm-linux/3.3.3/../../../../arm-linux/bin
> /ld: ERROR:
> /opt/crosstool2/bin/../lib/gcc-lib/arm-linux/3.3.3/libgcc.a(_addsubdf3.oS)
> uses FPA instructions, whereas float does not

> [...]

> So somehow gcc/glibc got built with FPA hardfloat?

Yes, since that is the default.  You might get away with rebuilding
glibc using CC="arm-linux-gcc -msoft-float", but that could cause
other problems.

The real solution would be building gcc with multilib support, so it
builds three separate versions (i.e. FPA hardfloat, FPA softfloat and
VFP softfloat) of libgcc and the other runtimes, but I've never
understood how to do this with glibc...  It doesn't seem to have
multilib support.

Attachment: pgp00000.pgp
Description: PGP signature


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