patches/gcc/3.4.3/gcc-3.4.0-arm-lib1asm.patch
changeset 1 eeea35fbf182
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/gcc/3.4.3/gcc-3.4.0-arm-lib1asm.patch	Sat Feb 24 11:00:05 2007 +0000
     1.3 @@ -0,0 +1,27 @@
     1.4 +# Origin: from a patch by Dimitry Andric <dimitry@andric.com>, 2004-05-01
     1.5 +# See http://gcc.gnu.org/PR14352 and http://gcc.gnu.org/PR16314
     1.6 +# See also http://gcc.gnu.org/ml/gcc-patches/2004-08/msg02568.html et seq for why this isn't in mainline
     1.7 +# Fixes errors like the following when building glibc (or any other executable
     1.8 +# or shared library) when using gcc 3.4.0 for ARM with softfloat:
     1.9 +#
    1.10 +# .../libc_pic.os(.text+0x15834): In function `__modf': undefined reference to `__subdf3'
    1.11 +# .../libc_pic.os(.text+0x158b8): In function `__modf': undefined reference to `__subdf3'
    1.12 +# .../libc_pic.os(.text+0x1590c): In function `scalbn': undefined reference to `__muldf3'
    1.13 +# .../libc_pic.os(.text+0x15e94): In function `__ldexpf': undefined reference to `__eqsf2'
    1.14 +# .../libc_pic.os(.text+0xcee4c): In function `monstartup': undefined reference to `__fixsfsi'
    1.15 +
    1.16 +diff -urNd gcc-3.4.0-orig/gcc/config/arm/t-linux gcc-3.4.0/gcc/config/arm/t-linux
    1.17 +--- gcc-3.4.0-orig/gcc/config/arm/t-linux	2003-09-20 23:09:07.000000000 +0200
    1.18 ++++ gcc-3.4.0/gcc/config/arm/t-linux	2004-05-01 20:31:59.102846400 +0200
    1.19 +@@ -4,7 +4,10 @@
    1.20 + LIBGCC2_DEBUG_CFLAGS = -g0
    1.21 + 
    1.22 + LIB1ASMSRC = arm/lib1funcs.asm
    1.23 +-LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx
    1.24 ++LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx \
    1.25 ++	_negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi _fixunsdfsi \
    1.26 ++	_truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2 \
    1.27 ++	_fixsfsi _fixunssfsi
    1.28 + 
    1.29 + # MULTILIB_OPTIONS = mhard-float/msoft-float
    1.30 + # MULTILIB_DIRNAMES = hard-float soft-float