110-uclibc-conf.patch 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. Use the patch by Carl Miller <chaz@energoncube.net> for powerpc, with
  2. some minor modifications. Changed *os_uclibc to *os_linux_uclibc since
  3. at some point we might support other platforms. Also updated to 3.3.3.
  4. diff -urN gcc-3.3.3/gcc/config/rs6000/linux.h gcc-3.3.3-new/gcc/config/rs6000/linux.h
  5. --- gcc-3.3.3/gcc/config/rs6000/linux.h 2003-11-14 00:46:10.000000000 -0600
  6. +++ gcc-3.3.3-new/gcc/config/rs6000/linux.h 2004-02-16 21:13:40.000000000 -0600
  7. @@ -64,7 +64,11 @@
  8. #define LINK_START_DEFAULT_SPEC "%(link_start_linux)"
  9. #undef LINK_OS_DEFAULT_SPEC
  10. +#ifdef USE_UCLIBC
  11. +#define LINK_OS_DEFAULT_SPEC "%(link_os_linux_uclibc)"
  12. +#else
  13. #define LINK_OS_DEFAULT_SPEC "%(link_os_linux)"
  14. +#endif
  15. #undef TARGET_VERSION
  16. #define TARGET_VERSION fprintf (stderr, " (PowerPC GNU/Linux)");
  17. diff -urN gcc-3.3.3/gcc/config/rs6000/sysv4.h gcc-3.3.3-new/gcc/config/rs6000/sysv4.h
  18. --- gcc-3.3.3/gcc/config/rs6000/sysv4.h 2003-10-28 13:55:41.000000000 -0600
  19. +++ gcc-3.3.3-new/gcc/config/rs6000/sysv4.h 2004-02-16 21:13:40.000000000 -0600
  20. @@ -968,9 +968,11 @@
  21. %{mcall-linux: %(link_os_linux) } \
  22. %{mcall-gnu: %(link_os_gnu) } \
  23. %{mcall-netbsd: %(link_os_netbsd) } \
  24. +%{mcall-uclibc: %(link_os_linux_uclibc) } \
  25. %{!mads: %{!myellowknife: %{!mmvme: %{!msim: %{!mwindiss: \
  26. %{!mcall-freebsd: %{!mcall-linux: %{!mcall-gnu: \
  27. - %{!mcall-netbsd: %(link_os_default) }}}}}}}}}"
  28. + %{!mcall-netbsd: %{!mcall-uclibc: \
  29. + %(link_os_default) }}}}}}}}}}"
  30. #define LINK_OS_DEFAULT_SPEC ""
  31. @@ -1307,6 +1309,12 @@
  32. #define LINK_OS_WINDISS_SPEC ""
  33. +/* uClibc support for Linux. */
  34. +
  35. +#define LINK_OS_LINUX_UCLIBC_SPEC "-m elf32ppclinux %{!shared: %{!static: \
  36. + %{rdynamic:-export-dynamic} \
  37. + %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}}}"
  38. +
  39. /* Define any extra SPECS that the compiler needs to generate. */
  40. /* Override rs6000.h definition. */
  41. #undef SUBTARGET_EXTRA_SPECS
  42. @@ -1372,6 +1380,7 @@
  43. { "link_os_netbsd", LINK_OS_NETBSD_SPEC }, \
  44. { "link_os_vxworks", LINK_OS_VXWORKS_SPEC }, \
  45. { "link_os_windiss", LINK_OS_WINDISS_SPEC }, \
  46. + { "link_os_linux_uclibc", LINK_OS_LINUX_UCLIBC_SPEC }, \
  47. { "link_os_default", LINK_OS_DEFAULT_SPEC }, \
  48. { "cc1_endian_big", CC1_ENDIAN_BIG_SPEC }, \
  49. { "cc1_endian_little", CC1_ENDIAN_LITTLE_SPEC }, \