Re: Build U-Boot with soft floating point - help!

From: Dennis C (dchou4u_at_hotmail.com)
Date: 04/08/04


Date: 8 Apr 2004 13:53:59 -0700

Dan:

Thanks for your help. I have successfully patched the GNC GCC and
completely rebuilt it. However I am still getting the linker error
regarding the clash between HW and SW floating point.

This is how I am configuring my GCC and GLIB:

cd gcc
../gcc-$GCC_VER/configure --target=$TARGET --with-newlib
--prefix=$PREFIX --with-gnu-as --with-gnu-ld --nfp
make all
make install
cd ..

# newlib
mkdir newlib
cd newlib
../newlib-$NEWLIB_VER/configure --target=$TARGET --prefix=$PREFIX
--nfp
make all
make install
cd ..

And these are my C flags when I compile the UBoot code:

arm-unknown-elf-gcc -g -Os -fno-strict-aliasing -fno-common
-ffixed-r8 -mshort-load-bytes -msoft-float -D__KERNEL__
-DTEXT_BASE=0x21f00000 -I/home/dchou/atmel/u-boot-1.0.0/include
-fno-builtin -ffreestanding -nostdinc -isystem
/usr/local/arm/lib/gcc-lib/arm-unknown-elf/3.3.2/include -pipe
-DCONFIG_ARM -D__ARM__ -mapcs-32 -march=armv4 -mtune=arm7tdmi -Wall
-Wstrict-prototypes -c -o string.o string.c

I think I have done everything to tell it to use soft floating point.
Am I still missing something?

Thanks
Dennis

Dan Kegel <dank-news@kegel.com> wrote in message news:<4074E222.1080609@kegel.com>...
> Dennis C wrote:
> > Thanks for the tip. The patch was what I was looking for.
> >
> > However I am new to linux, so how do I apply the patch? Can you
> > provide line by line instruction on how I can apply this patch?
> >
> >>http://kegel.com/crosstool/current/patches/gcc-3.3.2/gcc-3.3.2-arm-softfloat.patch
>
> Does this help?
>
> http://kegel.com/academy/opensource.html#patches.using
>
> If not, post the steps you used to build your gcc, and we'll
> show you where to apply the patch.
> - Dan



Relevant Pages