patches/gcc/4.4.2/390-arm-softfloat-libgcc.patch
changeset 2201 c26a78f260a7
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/gcc/4.4.2/390-arm-softfloat-libgcc.patch	Sat Nov 13 14:23:36 2010 +0100
     1.3 @@ -0,0 +1,38 @@
     1.4 +[PATCH] add the correct symbols to libgcc for uclibc arm softfloat
     1.5 +
     1.6 +Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
     1.7 +---
     1.8 + gcc/config/arm/linux-elf.h |    2 +-
     1.9 + gcc/config/arm/t-linux     |    6 +++++-
    1.10 + 2 files changed, 6 insertions(+), 2 deletions(-)
    1.11 +
    1.12 +Index: gcc-4.4.0/gcc/config/arm/t-linux
    1.13 +===================================================================
    1.14 +--- gcc-4.4.0.orig/gcc/config/arm/t-linux
    1.15 ++++ gcc-4.4.0/gcc/config/arm/t-linux
    1.16 +@@ -4,7 +4,11 @@
    1.17 + 
    1.18 + LIB1ASMSRC = arm/lib1funcs.asm
    1.19 + LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx _clzsi2 _clzdi2 \
    1.20 +-	_arm_addsubdf3 _arm_addsubsf3
    1.21 ++	_arm_addsubdf3 _arm_addsubsf3 \
    1.22 ++	_arm_negdf2 _arm_muldivdf3 _arm_cmpdf2 _arm_unorddf2 \
    1.23 ++	_arm_fixdfsi _arm_fixunsdfsi _arm_truncdfsf2 \
    1.24 ++	_arm_negsf2 _arm_muldivsf3 _arm_cmpsf2 _arm_unordsf2 \
    1.25 ++	_arm_fixsfsi _arm_fixunssfsi
    1.26 + 
    1.27 + # MULTILIB_OPTIONS = mhard-float/msoft-float
    1.28 + # MULTILIB_DIRNAMES = hard-float soft-float
    1.29 +Index: gcc-4.4.0/gcc/config/arm/linux-elf.h
    1.30 +===================================================================
    1.31 +--- gcc-4.4.0.orig/gcc/config/arm/linux-elf.h
    1.32 ++++ gcc-4.4.0/gcc/config/arm/linux-elf.h
    1.33 +@@ -60,7 +60,7 @@
    1.34 +    %{shared:-lc} \
    1.35 +    %{!shared:%{profile:-lc_p}%{!profile:-lc}}"
    1.36 + 
    1.37 +-#define LIBGCC_SPEC "%{msoft-float:-lfloat} %{mfloat-abi=soft*:-lfloat} -lgcc"
    1.38 ++#define LIBGCC_SPEC "-lgcc"
    1.39 + 
    1.40 + #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
    1.41 +