OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
2.0 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../uclibc/pkg_patch/gcc/810-arm-softfloat-libgcc.patch
  5. # Copyright (C) 2009 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. [PATCH] add the correct symbols to libgcc for uclibc arm softfloat
  17. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
  18. ---
  19. gcc/config/arm/linux-elf.h | 2 +-
  20. gcc/config/arm/t-linux | 6 +++++-
  21. 2 files changed, 6 insertions(+), 2 deletions(-)
  22. Index: gcc-4.4.0/gcc/config/arm/t-linux
  23. ===================================================================
  24. --- gcc-4.4.0.orig/gcc/config/arm/t-linux
  25. +++ gcc-4.4.0/gcc/config/arm/t-linux
  26. @@ -4,7 +4,11 @@
  27. LIB1ASMSRC = arm/lib1funcs.asm
  28. LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx _clzsi2 _clzdi2 \
  29. - _arm_addsubdf3 _arm_addsubsf3
  30. + _arm_addsubdf3 _arm_addsubsf3 \
  31. + _arm_negdf2 _arm_muldivdf3 _arm_cmpdf2 _arm_unorddf2 \
  32. + _arm_fixdfsi _arm_fixunsdfsi _arm_truncdfsf2 \
  33. + _arm_negsf2 _arm_muldivsf3 _arm_cmpsf2 _arm_unordsf2 \
  34. + _arm_fixsfsi _arm_fixunssfsi
  35. # MULTILIB_OPTIONS = mhard-float/msoft-float
  36. # MULTILIB_DIRNAMES = hard-float soft-float
  37. Index: gcc-4.4.0/gcc/config/arm/linux-elf.h
  38. ===================================================================
  39. --- gcc-4.4.0.orig/gcc/config/arm/linux-elf.h
  40. +++ gcc-4.4.0/gcc/config/arm/linux-elf.h
  41. @@ -60,7 +60,7 @@
  42. %{shared:-lc} \
  43. %{!shared:%{profile:-lc_p}%{!profile:-lc}}"
  44. -#define LIBGCC_SPEC "%{msoft-float:-lfloat} %{mfloat-abi=soft*:-lfloat} -lgcc"
  45. +#define LIBGCC_SPEC "-lgcc"
  46. #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"