Mercurial > hg > aboriginal
changeset 129:0bfd1ada5183
Make armv4l do soft-float instead of vfp. Thanks to James Newell and
Yann E. Morin.
author | Rob Landley <rob@landley.net> |
---|---|
date | Wed, 14 Mar 2007 17:14:39 -0400 |
parents | 8c6b1e6a94d1 |
children | 527938a80642 |
files | mini-native.sh sources/configs/armv4l sources/patches/gcc-core-softfloat-fix.patch |
diffstat | 3 files changed, 26 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mini-native.sh Fri Mar 09 17:33:16 2007 -0500 +++ b/mini-native.sh Wed Mar 14 17:14:39 2007 -0400 @@ -96,7 +96,7 @@ CC="${ARCH}-gcc" GCC_FOR_TARGET="${ARCH}-gcc" CC_FOR_TARGET="${ARCH}-gcc" \ AR="${ARCH}-ar" AR_FOR_TARGET="${ARCH}-ar" AS="${ARCH}-ar" LD="${ARCH}-ld" \ NM="${ARCH}-nm" NM_FOR_TARGET="${ARCH}-nm" \ - "${CURSRC}/configure" --prefix="${TOOLS}" --disable-multilib \ + "${CURSRC}/configure" --prefix="${TOOLS}" --disable-multilib $GCC_FLAGS \ --build="${CROSS_HOST}" --host="${CROSS_TARGET}" --target="${CROSS_TARGET}" \ --enable-long-long --enable-c99 --enable-shared --enable-threads=posix \ --enable-__cxa_atexit --disable-nls --enable-languages=c,c++ \
--- a/sources/configs/armv4l Fri Mar 09 17:33:16 2007 -0500 +++ b/sources/configs/armv4l Wed Mar 14 17:14:39 2007 -0400 @@ -1,6 +1,6 @@ KARCH=arm KERNEL_PATH=arch/${KARCH}/boot/zImage -GCC_FLAGS= #"--with-float=soft" +GCC_FLAGS="--with-float=soft" BINUTILS_FLAGS= QEMU_TEST=$KARCH run_emulator()
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sources/patches/gcc-core-softfloat-fix.patch Wed Mar 14 17:14:39 2007 -0400 @@ -0,0 +1,24 @@ +diff -dur a/gcc/config.gcc b/gcc/config.gcc +--- a/gcc/config.gcc 2007-02-01 21:57:17.000000000 +0100 ++++ b/gcc/config.gcc 2007-02-01 22:11:06.000000000 +0100 +@@ -690,7 +690,7 @@ + default_use_cxa_atexit=yes + ;; + *) +- tmake_file="$tmake_file arm/t-linux" ++ tmake_file="$tmake_file arm/t-linux arm/t-arm-elf" + ;; + esac + tm_file="$tm_file arm/aout.h arm/arm.h" +diff -dur a/gcc/config/arm/linux-elf.h b/gcc/config/arm/linux-elf.h +--- a/gcc/config/arm/linux-elf.h 2007-02-01 21:57:17.000000000 +0100 ++++ b/gcc/config/arm/linux-elf.h 2007-02-01 23:00:42.000000000 +0100 +@@ -63,7 +63,7 @@ + %{shared:-lc} \ + %{!shared:%{profile:-lc_p}%{!profile:-lc}}" + +-#define LIBGCC_SPEC "%{msoft-float:-lfloat} %{mfloat-abi=soft*:-lfloat} -lgcc" ++#define LIBGCC_SPEC "-lgcc" + + #ifdef USE_UCLIBC + #define LINUX_TARGET_INTERPRETER "/lib/ld-uClibc.so.0"