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.

82 lines
3.4 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/mnemoc/uclibc/patches/gcc33-12-uclibc-ppc_corrections.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2005 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. Use the patch by Carl Miller <chaz@energoncube.net> for powerpc, with
  20. some minor modifications. Changed *os_uclibc to *os_linux_uclibc since
  21. at some point we might support other platforms.
  22. Index: gcc/config/rs6000/linux.h
  23. ===================================================================
  24. RCS file: /home/cvs/tools/gcc-3.3.2/gcc/config/rs6000/linux.h,v
  25. retrieving revision 1.1.1.1
  26. diff -d -u -r1.1.1.1 linux.h
  27. --- gcc-3.3.2/gcc/config/rs6000/linux.h 4 Dec 2003 01:19:31 -0000 1.1.1.1
  28. +++ gcc-3.3.2/gcc/config/rs6000/linux.h 4 Dec 2003 23:18:01 -0000
  29. @@ -64,7 +64,11 @@
  30. #define LINK_START_DEFAULT_SPEC "%(link_start_linux)"
  31. #undef LINK_OS_DEFAULT_SPEC
  32. +#ifdef USE_UCLIBC
  33. +#define LINK_OS_DEFAULT_SPEC "%(link_os_linux_uclibc)"
  34. +#else
  35. #define LINK_OS_DEFAULT_SPEC "%(link_os_linux)"
  36. +#endif
  37. #undef TARGET_VERSION
  38. #define TARGET_VERSION fprintf (stderr, " (PowerPC GNU/Linux)");
  39. Index: gcc/config/rs6000/sysv4.h
  40. ===================================================================
  41. RCS file: /home/cvs/tools/gcc-3.3.2/gcc/config/rs6000/sysv4.h,v
  42. retrieving revision 1.1.1.1
  43. diff -d -u -r1.1.1.1 sysv4.h
  44. --- gcc-3.3.2/gcc/config/rs6000/sysv4.h 4 Dec 2003 01:19:31 -0000 1.1.1.1
  45. +++ gcc-3.3.2/gcc/config/rs6000/sysv4.h 4 Dec 2003 23:18:18 -0000
  46. @@ -953,9 +953,11 @@
  47. %{mcall-linux: %(link_os_linux) } \
  48. %{mcall-gnu: %(link_os_gnu) } \
  49. %{mcall-netbsd: %(link_os_netbsd) } \
  50. +%{mcall-uclibc: %(link_os_linux_uclibc) } \
  51. %{!mads: %{!myellowknife: %{!mmvme: %{!msim: %{!mwindiss: \
  52. %{!mcall-freebsd: %{!mcall-linux: %{!mcall-gnu: \
  53. - %{!mcall-netbsd: %(link_os_default) }}}}}}}}}"
  54. + %{!mcall-netbsd: %{!mcall-uclibc: \
  55. + %(link_os_default) }}}}}}}}}}"
  56. #define LINK_OS_DEFAULT_SPEC ""
  57. @@ -1292,6 +1294,12 @@
  58. #define LINK_OS_WINDISS_SPEC ""
  59. +/* uClibc support for Linux. */
  60. +
  61. +#define LINK_OS_LINUX_UCLIBC_SPEC "-m elf32ppclinux %{!shared: %{!static: \
  62. + %{rdynamic:-export-dynamic} \
  63. + %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}}}"
  64. +
  65. /* Define any extra SPECS that the compiler needs to generate. */
  66. /* Override rs6000.h definition. */
  67. #undef SUBTARGET_EXTRA_SPECS
  68. @@ -1357,6 +1365,7 @@
  69. { "link_os_netbsd", LINK_OS_NETBSD_SPEC }, \
  70. { "link_os_vxworks", LINK_OS_VXWORKS_SPEC }, \
  71. { "link_os_windiss", LINK_OS_WINDISS_SPEC }, \
  72. + { "link_os_linux_uclibc", LINK_OS_LINUX_UCLIBC_SPEC }, \
  73. { "link_os_default", LINK_OS_DEFAULT_SPEC }, \
  74. { "cc1_endian_big", CC1_ENDIAN_BIG_SPEC }, \
  75. { "cc1_endian_little", CC1_ENDIAN_LITTLE_SPEC }, \