mirror of the now-defunct rocklinux.org
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.

63 lines
2.5 KiB

  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.
  4. Index: gcc/config/rs6000/linux.h
  5. ===================================================================
  6. RCS file: /home/cvs/tools/gcc-3.3.2/gcc/config/rs6000/linux.h,v
  7. retrieving revision 1.1.1.1
  8. diff -d -u -r1.1.1.1 linux.h
  9. --- gcc-3.3.2/gcc/config/rs6000/linux.h 4 Dec 2003 01:19:31 -0000 1.1.1.1
  10. +++ gcc-3.3.2/gcc/config/rs6000/linux.h 4 Dec 2003 23:18:01 -0000
  11. @@ -64,7 +64,11 @@
  12. #define LINK_START_DEFAULT_SPEC "%(link_start_linux)"
  13. #undef LINK_OS_DEFAULT_SPEC
  14. +#ifdef USE_UCLIBC
  15. +#define LINK_OS_DEFAULT_SPEC "%(link_os_linux_uclibc)"
  16. +#else
  17. #define LINK_OS_DEFAULT_SPEC "%(link_os_linux)"
  18. +#endif
  19. #undef TARGET_VERSION
  20. #define TARGET_VERSION fprintf (stderr, " (PowerPC GNU/Linux)");
  21. Index: gcc/config/rs6000/sysv4.h
  22. ===================================================================
  23. RCS file: /home/cvs/tools/gcc-3.3.2/gcc/config/rs6000/sysv4.h,v
  24. retrieving revision 1.1.1.1
  25. diff -d -u -r1.1.1.1 sysv4.h
  26. --- gcc-3.3.2/gcc/config/rs6000/sysv4.h 4 Dec 2003 01:19:31 -0000 1.1.1.1
  27. +++ gcc-3.3.2/gcc/config/rs6000/sysv4.h 4 Dec 2003 23:18:18 -0000
  28. @@ -953,9 +953,11 @@
  29. %{mcall-linux: %(link_os_linux) } \
  30. %{mcall-gnu: %(link_os_gnu) } \
  31. %{mcall-netbsd: %(link_os_netbsd) } \
  32. +%{mcall-uclibc: %(link_os_linux_uclibc) } \
  33. %{!mads: %{!myellowknife: %{!mmvme: %{!msim: %{!mwindiss: \
  34. %{!mcall-freebsd: %{!mcall-linux: %{!mcall-gnu: \
  35. - %{!mcall-netbsd: %(link_os_default) }}}}}}}}}"
  36. + %{!mcall-netbsd: %{!mcall-uclibc: \
  37. + %(link_os_default) }}}}}}}}}}"
  38. #define LINK_OS_DEFAULT_SPEC ""
  39. @@ -1292,6 +1294,12 @@
  40. #define LINK_OS_WINDISS_SPEC ""
  41. +/* uClibc support for Linux. */
  42. +
  43. +#define LINK_OS_LINUX_UCLIBC_SPEC "-m elf32ppclinux %{!shared: %{!static: \
  44. + %{rdynamic:-export-dynamic} \
  45. + %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}}}"
  46. +
  47. /* Define any extra SPECS that the compiler needs to generate. */
  48. /* Override rs6000.h definition. */
  49. #undef SUBTARGET_EXTRA_SPECS
  50. @@ -1357,6 +1365,7 @@
  51. { "link_os_netbsd", LINK_OS_NETBSD_SPEC }, \
  52. { "link_os_vxworks", LINK_OS_VXWORKS_SPEC }, \
  53. { "link_os_windiss", LINK_OS_WINDISS_SPEC }, \
  54. + { "link_os_linux_uclibc", LINK_OS_LINUX_UCLIBC_SPEC }, \
  55. { "link_os_default", LINK_OS_DEFAULT_SPEC }, \
  56. { "cc1_endian_big", CC1_ENDIAN_BIG_SPEC }, \
  57. { "cc1_endian_little", CC1_ENDIAN_LITTLE_SPEC }, \