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.

173 lines
6.1 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/gdb-10-uclibc_arch_target.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. diff -urN gdb-5.3/bfd/config.bfd gdb-5.3-new/bfd/config.bfd
  20. --- gdb-5.3/bfd/config.bfd 2002-09-05 15:34:35.000000000 -0500
  21. +++ gdb-5.3-new/bfd/config.bfd 2004-01-11 06:25:31.000000000 -0600
  22. @@ -83,7 +83,7 @@
  23. targ_defvec=ecoffalpha_little_vec
  24. targ_selvecs=bfd_elf64_alpha_vec
  25. ;;
  26. - alpha*-*-linux-gnu* | alpha*-*-elf*)
  27. + alpha*-*-linux-gnu* | alpha*-*-linux-uclibc* | alpha*-*-elf*)
  28. targ_defvec=bfd_elf64_alpha_vec
  29. targ_selvecs=ecoffalpha_little_vec
  30. ;;
  31. @@ -97,7 +97,8 @@
  32. targ_defvec=bfd_elf64_ia64_aix_little_vec
  33. targ_selvecs="bfd_elf64_ia64_aix_big_vec bfd_efi_app_ia64_vec"
  34. ;;
  35. - ia64*-*-freebsd* | ia64*-*-netbsd* | ia64*-*-linux-gnu* | ia64*-*-elf*)
  36. + ia64*-*-freebsd* | ia64*-*-netbsd* | ia64*-*-linux-gnu* | \
  37. + ia64*-*-linux-uclibc* | ia64*-*-elf*)
  38. targ_defvec=bfd_elf64_ia64_little_vec
  39. targ_selvecs="bfd_elf64_ia64_big_vec bfd_efi_app_ia64_vec"
  40. ;;
  41. @@ -176,11 +177,12 @@
  42. targ_defvec=bfd_elf32_littlearm_vec
  43. targ_selvecs=bfd_elf32_bigarm_vec
  44. ;;
  45. - armeb-*-elf | arm*b-*-linux-gnu*)
  46. + armeb-*-elf | arm*b-*-linux-gnu* | arm*b-*-linux-uclibc*)
  47. targ_defvec=bfd_elf32_bigarm_vec
  48. targ_selvecs=bfd_elf32_littlearm_vec
  49. ;;
  50. - arm-*-elf | arm-*-freebsd* | arm*-*-linux-gnu* | arm*-*-conix* | arm*-*-uclinux*)
  51. + arm-*-elf | arm-*-freebsd* | arm*-*-linux-gnu* | arm*-*-linux-uclibc* | \
  52. + arm*-*-conix* | arm*-*-uclinux*)
  53. targ_defvec=bfd_elf32_littlearm_vec
  54. targ_selvecs=bfd_elf32_bigarm_vec
  55. ;;
  56. @@ -313,7 +315,7 @@
  57. ;;
  58. #ifdef BFD64
  59. - hppa*64*-*-linux-gnu*)
  60. + hppa*64*-*-linux-gnu* | hppa*64*-*-linux-uclibc*)
  61. targ_defvec=bfd_elf64_hppa_linux_vec
  62. targ_selvecs=bfd_elf64_hppa_vec
  63. ;;
  64. @@ -324,7 +326,7 @@
  65. ;;
  66. #endif
  67. - hppa*-*-linux-gnu*)
  68. + hppa*-*-linux-gnu* | hppa*-*-linux-uclibc*)
  69. targ_defvec=bfd_elf32_hppa_linux_vec
  70. targ_selvecs=bfd_elf32_hppa_vec
  71. ;;
  72. @@ -424,7 +426,7 @@
  73. targ_selvecs=bfd_elf32_i386_vec
  74. targ_underscore=yes
  75. ;;
  76. - i[3456]86-*-linux-gnu*)
  77. + i[3-7]86-*-linux-gnu* | i[3-7]86-*-linux-uclibc*)
  78. targ_defvec=bfd_elf32_i386_vec
  79. targ_selvecs="i386linux_vec bfd_efi_app_ia32_vec"
  80. targ64_selvecs=bfd_elf64_x86_64_vec
  81. @@ -438,7 +440,7 @@
  82. targ_defvec=bfd_elf64_x86_64_vec
  83. targ_selvecs="bfd_elf32_i386_vec i386netbsd_vec i386coff_vec bfd_efi_app_ia32_vec"
  84. ;;
  85. - x86_64-*-linux-gnu*)
  86. + x86_64-*-linux-gnu* | x86_64-*-linux-uclibc*)
  87. targ_defvec=bfd_elf64_x86_64_vec
  88. targ_selvecs="bfd_elf32_i386_vec i386linux_vec bfd_efi_app_ia32_vec"
  89. ;;
  90. @@ -589,7 +591,7 @@
  91. targ_defvec=hp300hpux_vec
  92. targ_underscore=yes
  93. ;;
  94. - m68*-*-linux*aout*)
  95. + m68*-*-linux-gnu* | m68*-*-linux-uclibc*)
  96. targ_defvec=m68klinux_vec
  97. targ_selvecs=bfd_elf32_m68k_vec
  98. targ_underscore=yes
  99. @@ -865,7 +867,8 @@
  100. ;;
  101. #endif
  102. powerpc-*-*bsd* | powerpc-*-elf* | powerpc-*-sysv4* | powerpc-*-eabi* | \
  103. - powerpc-*-solaris2* | powerpc-*-linux-gnu* | powerpc-*-rtems* | \
  104. + powerpc-*-solaris2* | powerpc-*-linux-gnu* | powerpc-*-linux-uclibc* | \
  105. + powerpc-*-rtems* | \
  106. powerpc-*-chorus* | powerpc-*-vxworks* | powerpc-*-windiss*)
  107. targ_defvec=bfd_elf32_powerpc_vec
  108. targ_selvecs="rs6000coff_vec bfd_elf32_powerpcle_vec ppcboot_vec"
  109. @@ -887,8 +890,8 @@
  110. targ_selvecs="rs6000coff_vec bfd_elf32_powerpcqnx_vec ppcboot_vec"
  111. ;;
  112. powerpcle-*-elf* | powerpcle-*-sysv4* | powerpcle-*-eabi* | \
  113. - powerpcle-*-solaris2* | powerpcle-*-linux-gnu* | powerpcle-*-vxworks* |\
  114. - powerpcle-*-rtems*)
  115. + powerpcle-*-solaris2* | powerpcle-*-linux-gnu* | powerpcle-*-linux-uclibc* |\
  116. + powerpcle-*-vxworks* | powerpcle-*-rtems*)
  117. targ_defvec=bfd_elf32_powerpcle_vec
  118. targ_selvecs="rs6000coff_vec bfd_elf32_powerpc_vec ppcboot_vec"
  119. targ64_selvecs="bfd_elf64_powerpc_vec bfd_elf64_powerpcle_vec"
  120. @@ -1038,7 +1041,7 @@
  121. targ_selvecs="bfd_elf32_sparc_vec sunos_big_vec"
  122. targ_underscore=yes
  123. ;;
  124. - sparc-*-linux-gnu*)
  125. + sparc-*-linux-gnu* | sparc-*-linux-uclibc*)
  126. targ_defvec=bfd_elf32_sparc_vec
  127. targ_selvecs="sparclinux_vec bfd_elf64_sparc_vec sunos_big_vec"
  128. ;;
  129. @@ -1081,7 +1084,7 @@
  130. targ_defvec=sunos_big_vec
  131. targ_underscore=yes
  132. ;;
  133. - sparc64-*-linux-gnu*)
  134. + sparc64-*-linux-gnu* | sparc64-*-linux-uclibc*)
  135. targ_defvec=bfd_elf64_sparc_vec
  136. targ_selvecs="bfd_elf32_sparc_vec sparclinux_vec sunos_big_vec"
  137. ;;
  138. diff -urN gdb-5.3/bfd/configure gdb-5.3-new/bfd/configure
  139. --- gdb-5.3/bfd/configure 2002-08-28 05:38:44.000000000 -0500
  140. +++ gdb-5.3-new/bfd/configure 2004-01-11 06:27:15.000000000 -0600
  141. @@ -1677,6 +1677,11 @@
  142. lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  143. ;;
  144. +linux-uclibc*)
  145. + lt_cv_deplibs_check_method=pass_all
  146. + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
  147. + ;;
  148. +
  149. netbsd*)
  150. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  151. lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
  152. @@ -5067,7 +5072,7 @@
  153. alpha*-*-freebsd*)
  154. COREFILE=''
  155. ;;
  156. - alpha*-*-linux-gnu*)
  157. + alpha*-*-linux-gnu* | alpha*-*-linux-uclibc*)
  158. COREFILE=trad-core.lo
  159. TRAD_HEADER='"hosts/alphalinux.h"'
  160. ;;
  161. @@ -5126,7 +5131,7 @@
  162. COREFILE=trad-core.lo
  163. TRAD_HEADER='"hosts/i386mach3.h"'
  164. ;;
  165. - i[3456]86-*-linux-gnu*)
  166. + i[3-7]86-*-linux-gnu* | i[3-7]86-*-linux-uclibc*)
  167. COREFILE=trad-core.lo
  168. TRAD_HEADER='"hosts/i386linux.h"'
  169. ;;