diff options
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-4.7/arm-nolibfloat.patch')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.7/arm-nolibfloat.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.7/arm-nolibfloat.patch b/meta/recipes-devtools/gcc/gcc-4.7/arm-nolibfloat.patch new file mode 100644 index 0000000000..901f014ed7 --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-4.7/arm-nolibfloat.patch | |||
@@ -0,0 +1,40 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | # Dimitry Andric <dimitry@andric.com>, 2004-05-01 | ||
4 | # | ||
5 | # * Removed the extra -lfloat option from LIBGCC_SPEC, since it isn't needed | ||
6 | # anymore. (The required functions are now in libgcc.) | ||
7 | # | ||
8 | # Fixes errors like | ||
9 | # arm-softfloat-linux-gnu/3.4.0/../../../../arm-softfloat-linux-gnu/bin/ld: cannot find -lfloat | ||
10 | # collect2: ld returned 1 exit status | ||
11 | # make[2]: *** [arm-softfloat-linux-gnu/gcc-3.4.0-glibc-2.3.2/build-glibc/iconvdata/ISO8859-1.so] Error 1 | ||
12 | # when building glibc-2.3.3 with gcc-3.4.0 for arm-softfloat | ||
13 | |||
14 | Index: trunk/gcc/config/arm/linux-elf.h | ||
15 | =================================================================== | ||
16 | --- trunk.orig/gcc/config/arm/linux-elf.h 2012-02-22 12:04:30.644385926 -0800 | ||
17 | +++ trunk/gcc/config/arm/linux-elf.h 2012-02-22 12:04:30.764385931 -0800 | ||
18 | @@ -57,7 +57,7 @@ | ||
19 | %{shared:-lc} \ | ||
20 | %{!shared:%{profile:-lc_p}%{!profile:-lc}}" | ||
21 | |||
22 | -#define LIBGCC_SPEC "%{mfloat-abi=soft*:-lfloat} -lgcc" | ||
23 | +#define LIBGCC_SPEC "-lgcc" | ||
24 | |||
25 | #define GLIBC_DYNAMIC_LINKER SYSTEMLIBS_DIR "ld-linux.so.2" | ||
26 | |||
27 | Index: trunk/libgcc/config/arm/t-linux | ||
28 | =================================================================== | ||
29 | --- trunk.orig/libgcc/config/arm/t-linux 2012-02-22 12:11:48.372407121 -0800 | ||
30 | +++ trunk/libgcc/config/arm/t-linux 2012-02-22 12:13:19.868411588 -0800 | ||
31 | @@ -1,6 +1,8 @@ | ||
32 | LIB1ASMSRC = arm/lib1funcs.S | ||
33 | LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx _clzsi2 _clzdi2 \ | ||
34 | - _arm_addsubdf3 _arm_addsubsf3 | ||
35 | + _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi _fixunsdfsi \ | ||
36 | + _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2 \ | ||
37 | + _fixsfsi _fixunssfsi _floatdidf _floatundidf _floatdisf _floatundisf | ||
38 | |||
39 | # Just for these, we omit the frame pointer since it makes such a big | ||
40 | # difference. | ||