100-uclibc-conf.patch 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630
  1. diff -urN binutils-2.14.90.0.8-001-debian/bfd/config.bfd binutils-2.14.90.0.8/bfd/config.bfd
  2. --- binutils-2.14.90.0.8-001-debian/bfd/config.bfd 2004-01-14 15:07:43.000000000 -0600
  3. +++ binutils-2.14.90.0.8/bfd/config.bfd 2004-02-12 14:18:14.000000000 -0600
  4. @@ -121,7 +121,7 @@
  5. targ_defvec=ecoffalpha_little_vec
  6. targ_selvecs=bfd_elf64_alpha_vec
  7. ;;
  8. - alpha*-*-linux-gnu* | alpha*-*-elf*)
  9. + alpha*-*-linux-gnu* | alpha*-*-linux-uclibc* | alpha*-*-elf*)
  10. targ_defvec=bfd_elf64_alpha_vec
  11. targ_selvecs=ecoffalpha_little_vec
  12. ;;
  13. @@ -131,7 +131,7 @@
  14. alpha*-*-*)
  15. targ_defvec=ecoffalpha_little_vec
  16. ;;
  17. - ia64*-*-freebsd* | ia64*-*-netbsd* | ia64*-*-linux-gnu* | ia64*-*-elf* | ia64*-*-kfreebsd*-gnu)
  18. + ia64*-*-freebsd* | ia64*-*-netbsd* | ia64*-*-linux-gnu* | ia64*-*-linux-uclibc* | ia64*-*-elf* | ia64*-*-kfreebsd*-gnu)
  19. targ_defvec=bfd_elf64_ia64_little_vec
  20. targ_selvecs="bfd_elf64_ia64_big_vec bfd_efi_app_ia64_vec"
  21. ;;
  22. @@ -208,7 +208,7 @@
  23. targ_defvec=bfd_elf32_littlearm_vec
  24. targ_selvecs=bfd_elf32_bigarm_vec
  25. ;;
  26. - armeb-*-elf | arm*b-*-linux-gnu*)
  27. + armeb-*-elf | arm*b-*-linux-gnu* | arm*b-*-linux-uclibc*)
  28. targ_defvec=bfd_elf32_bigarm_vec
  29. targ_selvecs=bfd_elf32_littlearm_vec
  30. ;;
  31. @@ -216,8 +216,8 @@
  32. targ_defvec=bfd_elf32_littlearm_vec
  33. targ_selvecs=bfd_elf32_bigarm_vec
  34. ;;
  35. - arm-*-elf | arm-*-freebsd* | arm*-*-linux-gnu* | arm*-*-conix* | \
  36. - arm*-*-uclinux* | arm-*-kfreebsd*-gnu | arm-*-vxworks)
  37. + arm-*-elf | arm-*-freebsd* | arm*-*-linux-gnu* | arm*-*-linux-uclibc* | \
  38. + arm*-*-conix* | arm*-*-uclinux* | arm-*-kfreebsd*-gnu | arm-*-vxworks)
  39. targ_defvec=bfd_elf32_littlearm_vec
  40. targ_selvecs=bfd_elf32_bigarm_vec
  41. ;;
  42. @@ -350,7 +350,7 @@
  43. ;;
  44. #ifdef BFD64
  45. - hppa*64*-*-linux-gnu*)
  46. + hppa*64*-*-linux-gnu* | hppa*64*-*-linux-uclibc*)
  47. targ_defvec=bfd_elf64_hppa_linux_vec
  48. targ_selvecs=bfd_elf64_hppa_vec
  49. ;;
  50. @@ -361,7 +361,7 @@
  51. ;;
  52. #endif
  53. - hppa*-*-linux-gnu* | hppa*-*-netbsd*)
  54. + hppa*-*-linux-gnu* | hppa*-*-linux-uclibc* | hppa*-*-netbsd*)
  55. targ_defvec=bfd_elf32_hppa_linux_vec
  56. targ_selvecs=bfd_elf32_hppa_vec
  57. ;;
  58. @@ -483,7 +483,7 @@
  59. targ_selvecs=bfd_elf32_i386_vec
  60. targ_underscore=yes
  61. ;;
  62. - i[3-7]86-*-linux-gnu*)
  63. + i[3-7]86-*-linux-gnu* | i[3-7]86-*-linux-uclibc*)
  64. targ_defvec=bfd_elf32_i386_vec
  65. targ_selvecs="i386linux_vec bfd_efi_app_ia32_vec"
  66. targ64_selvecs=bfd_elf64_x86_64_vec
  67. @@ -497,7 +497,7 @@
  68. targ_defvec=bfd_elf64_x86_64_vec
  69. targ_selvecs="bfd_elf32_i386_vec i386netbsd_vec i386coff_vec bfd_efi_app_ia32_vec"
  70. ;;
  71. - x86_64-*-linux-gnu*)
  72. + x86_64-*-linux-gnu* | x86_64-*-linux-uclibc*)
  73. targ_defvec=bfd_elf64_x86_64_vec
  74. targ_selvecs="bfd_elf32_i386_vec i386linux_vec bfd_efi_app_ia32_vec"
  75. ;;
  76. @@ -672,7 +672,7 @@
  77. targ_selvecs=bfd_elf32_m68k_vec
  78. targ_underscore=yes
  79. ;;
  80. - m68*-*-linux-gnu*)
  81. + m68*-*-linux-gnu* | m68*-*-linux-uclibc*)
  82. targ_defvec=bfd_elf32_m68k_vec
  83. targ_selvecs=m68klinux_vec
  84. ;;
  85. @@ -952,7 +952,8 @@
  86. ;;
  87. #endif
  88. powerpc-*-*bsd* | powerpc-*-elf* | powerpc-*-sysv4* | powerpc-*-eabi* | \
  89. - powerpc-*-solaris2* | powerpc-*-linux-gnu* | powerpc-*-rtems* | \
  90. + powerpc-*-solaris2* | powerpc-*-linux-gnu* | powerpc-*-linux-uclibc* | \
  91. + powerpc-*-rtems* | \
  92. powerpc-*-chorus* | powerpc-*-vxworks* | powerpc-*-windiss*)
  93. targ_defvec=bfd_elf32_powerpc_vec
  94. targ_selvecs="rs6000coff_vec bfd_elf32_powerpcle_vec ppcboot_vec"
  95. @@ -984,8 +985,8 @@
  96. targ_selvecs="rs6000coff_vec bfd_elf32_powerpc_vec ppcboot_vec"
  97. ;;
  98. powerpcle-*-elf* | powerpcle-*-sysv4* | powerpcle-*-eabi* | \
  99. - powerpcle-*-solaris2* | powerpcle-*-linux-gnu* | powerpcle-*-vxworks* |\
  100. - powerpcle-*-rtems*)
  101. + powerpcle-*-solaris2* | powerpcle-*-linux-gnu* | powerpcle-*-linux-uclibc* |\
  102. + powerpcle-*-vxworks* | powerpcle-*-rtems*)
  103. targ_defvec=bfd_elf32_powerpcle_vec
  104. targ_selvecs="rs6000coff_vec bfd_elf32_powerpc_vec ppcboot_vec"
  105. targ64_selvecs="bfd_elf64_powerpc_vec bfd_elf64_powerpcle_vec"
  106. @@ -1141,7 +1142,7 @@
  107. targ_selvecs="bfd_elf32_sparc_vec sunos_big_vec"
  108. targ_underscore=yes
  109. ;;
  110. - sparc-*-linux-gnu*)
  111. + sparc-*-linux-gnu* | sparc-*-linux-uclibc*)
  112. targ_defvec=bfd_elf32_sparc_vec
  113. targ_selvecs="sparclinux_vec bfd_elf64_sparc_vec sunos_big_vec"
  114. ;;
  115. @@ -1188,7 +1189,7 @@
  116. targ_defvec=sunos_big_vec
  117. targ_underscore=yes
  118. ;;
  119. - sparc64-*-linux-gnu*)
  120. + sparc64-*-linux-gnu* | sparc64-*-linux-uclibc*)
  121. targ_defvec=bfd_elf64_sparc_vec
  122. targ_selvecs="bfd_elf32_sparc_vec sparclinux_vec sunos_big_vec"
  123. ;;
  124. diff -urN binutils-2.14.90.0.8-001-debian/bfd/configure binutils-2.14.90.0.8/bfd/configure
  125. --- binutils-2.14.90.0.8-001-debian/bfd/configure 2004-01-14 15:07:43.000000000 -0600
  126. +++ binutils-2.14.90.0.8/bfd/configure 2004-02-12 14:09:10.000000000 -0600
  127. @@ -1699,6 +1699,11 @@
  128. lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  129. ;;
  130. +linux-uclibc*)
  131. + lt_cv_deplibs_check_method=pass_all
  132. + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
  133. + ;;
  134. +
  135. netbsd*)
  136. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  137. lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
  138. @@ -5278,7 +5283,7 @@
  139. alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
  140. COREFILE=''
  141. ;;
  142. - alpha*-*-linux-gnu*)
  143. + alpha*-*-linux-gnu* | alpha*-*-linux-uclibc*)
  144. COREFILE=trad-core.lo
  145. TRAD_HEADER='"hosts/alphalinux.h"'
  146. ;;
  147. @@ -5338,7 +5343,7 @@
  148. COREFILE=trad-core.lo
  149. TRAD_HEADER='"hosts/i386mach3.h"'
  150. ;;
  151. - i[3-7]86-*-linux-gnu*)
  152. + i[3-7]86-*-linux-gnu* | i[3-7]86-*-linux-uclibc*)
  153. COREFILE=trad-core.lo
  154. TRAD_HEADER='"hosts/i386linux.h"'
  155. ;;
  156. @@ -5388,7 +5393,7 @@
  157. COREFILE=trad-core.lo
  158. TRAD_HEADER='"hosts/hp300bsd.h"'
  159. ;;
  160. - m68*-*-linux-gnu*)
  161. + m68*-*-linux-gnu* | m68*-*-linux-uclibc*)
  162. COREFILE=trad-core.lo
  163. TRAD_HEADER='"hosts/m68klinux.h"'
  164. ;;
  165. diff -urN binutils-2.14.90.0.8-001-debian/bfd/configure.in binutils-2.14.90.0.8/bfd/configure.in
  166. --- binutils-2.14.90.0.8-001-debian/bfd/configure.in 2004-01-14 15:07:43.000000000 -0600
  167. +++ binutils-2.14.90.0.8/bfd/configure.in 2004-02-12 14:09:10.000000000 -0600
  168. @@ -178,7 +178,7 @@
  169. alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
  170. COREFILE=''
  171. ;;
  172. - alpha*-*-linux-gnu*)
  173. + alpha*-*-linux-gnu* | alpha*-*-linux-uclibc*)
  174. COREFILE=trad-core.lo
  175. TRAD_HEADER='"hosts/alphalinux.h"'
  176. ;;
  177. @@ -259,7 +259,7 @@
  178. TRAD_HEADER='"hosts/i386mach3.h"'
  179. ;;
  180. changequote(,)dnl
  181. - i[3-7]86-*-linux-gnu*)
  182. + i[3-7]86-*-linux-gnu* | i[3-7]86-*-linux-uclibc*)
  183. changequote([,])dnl
  184. COREFILE=trad-core.lo
  185. TRAD_HEADER='"hosts/i386linux.h"'
  186. @@ -312,7 +312,7 @@
  187. COREFILE=trad-core.lo
  188. TRAD_HEADER='"hosts/hp300bsd.h"'
  189. ;;
  190. - m68*-*-linux-gnu*)
  191. + m68*-*-linux-gnu* | m68*-*-linux-uclibc*)
  192. COREFILE=trad-core.lo
  193. TRAD_HEADER='"hosts/m68klinux.h"'
  194. ;;
  195. diff -urN binutils-2.14.90.0.8-001-debian/config.sub binutils-2.14.90.0.8/config.sub
  196. --- binutils-2.14.90.0.8-001-debian/config.sub 2004-01-14 15:07:42.000000000 -0600
  197. +++ binutils-2.14.90.0.8/config.sub 2004-02-12 14:09:10.000000000 -0600
  198. @@ -118,7 +118,7 @@
  199. # Here we must recognize all the valid KERNEL-OS combinations.
  200. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
  201. case $maybe_os in
  202. - nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
  203. + nto-qnx* | linux-gnu* | linux-uclibc* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
  204. os=-$maybe_os
  205. basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
  206. ;;
  207. @@ -1131,7 +1131,8 @@
  208. | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
  209. | -chorusos* | -chorusrdb* \
  210. | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
  211. - | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
  212. + | -mingw32* | -linux-gnu* | -linux-uclibc* \
  213. + | -uxpv* | -beos* | -mpeix* | -udk* \
  214. | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
  215. | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
  216. | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
  217. diff -urN binutils-2.14.90.0.8-001-debian/configure binutils-2.14.90.0.8/configure
  218. --- binutils-2.14.90.0.8-001-debian/configure 2004-01-14 15:07:42.000000000 -0600
  219. +++ binutils-2.14.90.0.8/configure 2004-02-12 14:09:10.000000000 -0600
  220. @@ -1273,6 +1273,18 @@
  221. i[3456789]86-*-freebsd* | i[3456789]86-*-kfreebsd*-gnu)
  222. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  223. ;;
  224. + i[3456789]86-*-linux-uclibc)
  225. + # This section makes it possible to build newlib natively on linux.
  226. + # If we are using a cross compiler then don't configure newlib.
  227. + if test x${is_cross_compiler} != xno ; then
  228. + noconfigdirs="$noconfigdirs target-newlib"
  229. + fi
  230. + noconfigdirs="$noconfigdirs target-libgloss"
  231. + # If we are not using a cross compiler, do configure newlib.
  232. + # Note however, that newlib will only be configured in this situation
  233. + # if the --with-newlib option has been given, because otherwise
  234. + # 'target-newlib' will appear in skipdirs.
  235. + ;;
  236. i[3456789]86-*-linux*)
  237. # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
  238. # not build java stuff by default.
  239. diff -urN binutils-2.14.90.0.8-001-debian/configure.in binutils-2.14.90.0.8/configure.in
  240. --- binutils-2.14.90.0.8-001-debian/configure.in 2004-01-14 15:07:42.000000000 -0600
  241. +++ binutils-2.14.90.0.8/configure.in 2004-02-12 14:50:56.000000000 -0600
  242. @@ -512,6 +512,18 @@
  243. i[[3456789]]86-*-freebsd* | i[[3456789]]86-*-kfreebsd*-gnu)
  244. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  245. ;;
  246. + i[[3456789]]86-*-linux-uclibc)
  247. + # This section makes it possible to build newlib natively on linux.
  248. + # If we are using a cross compiler then don't configure newlib.
  249. + if test x${is_cross_compiler} != xno ; then
  250. + noconfigdirs="$noconfigdirs target-newlib"
  251. + fi
  252. + noconfigdirs="$noconfigdirs target-libgloss"
  253. + # If we are not using a cross compiler, do configure newlib.
  254. + # Note however, that newlib will only be configured in this situation
  255. + # if the --with-newlib option has been given, because otherwise
  256. + # 'target-newlib' will appear in skipdirs.
  257. + ;;
  258. i[[3456789]]86-*-linux*)
  259. # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
  260. # not build java stuff by default.
  261. diff -urN binutils-2.14.90.0.8-001-debian/gas/configure binutils-2.14.90.0.8/gas/configure
  262. --- binutils-2.14.90.0.8-001-debian/gas/configure 2004-01-14 15:07:45.000000000 -0600
  263. +++ binutils-2.14.90.0.8/gas/configure 2004-02-12 14:57:43.000000000 -0600
  264. @@ -3215,6 +3215,11 @@
  265. lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  266. ;;
  267. +linux-uclibc*)
  268. + lt_cv_deplibs_check_method=pass_all
  269. + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
  270. + ;;
  271. +
  272. netbsd*)
  273. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  274. lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
  275. @@ -4030,6 +4035,7 @@
  276. alpha*-*-osf*) fmt=ecoff ;;
  277. alpha*-*-linuxecoff*) fmt=ecoff ;;
  278. alpha*-*-linux-gnu*) fmt=elf em=linux ;;
  279. + alpha*-*-linux-uclibc*) fmt=elf em=linux ;;
  280. alpha*-*-netbsd*) fmt=elf em=nbsd ;;
  281. alpha*-*-openbsd*) fmt=elf em=obsd ;;
  282. @@ -4046,6 +4052,7 @@
  283. arm*-*-conix*) fmt=elf ;;
  284. arm-*-linux*aout*) fmt=aout em=linux ;;
  285. arm*-*-linux-gnu*) fmt=elf em=linux ;;
  286. + arm*-*-linux-uclibc*) fmt=elf em=linux ;;
  287. arm*-*-uclinux*) fmt=elf em=linux ;;
  288. arm-*-netbsdelf*) fmt=elf em=nbsd ;;
  289. arm-*-*n*bsd*) fmt=aout em=nbsd ;;
  290. @@ -4059,6 +4066,7 @@
  291. avr-*-*) fmt=elf ;;
  292. cris-*-linux-gnu*) fmt=multi bfd_gas=yes em=linux ;;
  293. + cris-*-linux-uclibc*) fmt=multi bfd_gas=yes em=linux ;;
  294. cris-*-*) fmt=multi bfd_gas=yes ;;
  295. d10v-*-*) fmt=elf ;;
  296. @@ -4115,7 +4123,9 @@
  297. i386-*-linux*oldld) fmt=aout em=linux ;;
  298. i386-*-linux*coff*) fmt=coff em=linux ;;
  299. i386-*-linux-gnu*) fmt=elf em=linux ;;
  300. + i386-*-linux-uclibc*) fmt=elf em=linux ;;
  301. x86_64-*-linux-gnu*) fmt=elf em=linux ;;
  302. + x86_64-*-linux-uclibc*) fmt=elf em=linux ;;
  303. i386-*-lynxos*) fmt=coff em=lynx ;;
  304. i386-*-sysv[45]*) fmt=elf ;;
  305. i386-*-solaris*) fmt=elf ;;
  306. @@ -4175,6 +4185,7 @@
  307. ia64-*-elf*) fmt=elf ;;
  308. ia64-*-aix*) fmt=elf em=ia64aix ;;
  309. ia64-*-linux-gnu*) fmt=elf em=linux ;;
  310. + ia64-*-linux-uclibc*) fmt=elf em=linux ;;
  311. ia64-*-hpux*) fmt=elf em=hpux ;;
  312. ia64-*-netbsd*) fmt=elf em=nbsd ;;
  313. @@ -4202,6 +4213,7 @@
  314. m68k-*-hpux*) fmt=hp300 em=hp300 ;;
  315. m68k-*-linux*aout*) fmt=aout em=linux ;;
  316. m68k-*-linux-gnu*) fmt=elf em=linux ;;
  317. + m68k-*-linux-uclibc*) fmt=elf em=linux ;;
  318. m68k-*-uclinux*) fmt=elf ;;
  319. m68k-*-gnu*) fmt=elf ;;
  320. m68k-*-lynxos*) fmt=coff em=lynx ;;
  321. @@ -4265,6 +4277,7 @@
  322. ppc-*-beos*) fmt=coff ;;
  323. ppc-*-*n*bsd* | ppc-*-elf*) fmt=elf ;;
  324. ppc-*-eabi* | ppc-*-sysv4*) fmt=elf ;;
  325. + ppc-*-linux-uclibc* | \
  326. ppc-*-linux-gnu*) fmt=elf em=linux
  327. case "$endian" in
  328. big) ;;
  329. @@ -4292,7 +4305,9 @@
  330. ppc-*-kaos*) fmt=elf ;;
  331. s390x-*-linux-gnu*) fmt=elf em=linux ;;
  332. + s390x-*-linux-uclibc*) fmt=elf em=linux ;;
  333. s390-*-linux-gnu*) fmt=elf em=linux ;;
  334. + s390-*-linux-uclibc*) fmt=elf em=linux ;;
  335. sh*-*-linux*) fmt=elf em=linux
  336. case ${cpu} in
  337. @@ -4325,6 +4340,7 @@
  338. sparc-*-coff) fmt=coff ;;
  339. sparc-*-linux*aout*) fmt=aout em=linux ;;
  340. sparc-*-linux-gnu*) fmt=elf em=linux ;;
  341. + sparc-*-linux-uclibc*) fmt=elf em=linux ;;
  342. sparc-*-lynxos*) fmt=coff em=lynx ;;
  343. sparc-fujitsu-none) fmt=aout ;;
  344. sparc-*-elf) fmt=elf ;;
  345. diff -urN binutils-2.14.90.0.8-001-debian/gas/configure.in binutils-2.14.90.0.8/gas/configure.in
  346. --- binutils-2.14.90.0.8-001-debian/gas/configure.in 2004-01-14 15:07:45.000000000 -0600
  347. +++ binutils-2.14.90.0.8/gas/configure.in 2004-02-12 14:21:06.000000000 -0600
  348. @@ -194,6 +194,7 @@
  349. alpha*-*-osf*) fmt=ecoff ;;
  350. alpha*-*-linuxecoff*) fmt=ecoff ;;
  351. alpha*-*-linux-gnu*) fmt=elf em=linux ;;
  352. + alpha*-*-linux-uclibc*) fmt=elf em=linux ;;
  353. alpha*-*-netbsd*) fmt=elf em=nbsd ;;
  354. alpha*-*-openbsd*) fmt=elf em=obsd ;;
  355. @@ -210,6 +211,7 @@
  356. arm*-*-conix*) fmt=elf ;;
  357. arm-*-linux*aout*) fmt=aout em=linux ;;
  358. arm*-*-linux-gnu*) fmt=elf em=linux ;;
  359. + arm*-*-linux-uclibc*) fmt=elf em=linux ;;
  360. arm*-*-uclinux*) fmt=elf em=linux ;;
  361. arm-*-netbsdelf*) fmt=elf em=nbsd ;;
  362. arm-*-*n*bsd*) fmt=aout em=nbsd ;;
  363. @@ -223,6 +225,7 @@
  364. avr-*-*) fmt=elf ;;
  365. cris-*-linux-gnu*) fmt=multi bfd_gas=yes em=linux ;;
  366. + cris-*-linux-uclibc*) fmt=multi bfd_gas=yes em=linux ;;
  367. cris-*-*) fmt=multi bfd_gas=yes ;;
  368. d10v-*-*) fmt=elf ;;
  369. @@ -279,7 +282,9 @@
  370. i386-*-linux*oldld) fmt=aout em=linux ;;
  371. i386-*-linux*coff*) fmt=coff em=linux ;;
  372. i386-*-linux-gnu*) fmt=elf em=linux ;;
  373. + i386-*-linux-uclibc*) fmt=elf em=linux ;;
  374. x86_64-*-linux-gnu*) fmt=elf em=linux ;;
  375. + x86_64-*-linux-uclibc*) fmt=elf em=linux ;;
  376. i386-*-lynxos*) fmt=coff em=lynx ;;
  377. changequote(,)dnl
  378. i386-*-sysv[45]*) fmt=elf ;;
  379. @@ -332,6 +337,7 @@
  380. ia64-*-elf*) fmt=elf ;;
  381. ia64-*-aix*) fmt=elf em=ia64aix ;;
  382. ia64-*-linux-gnu*) fmt=elf em=linux ;;
  383. + ia64-*-linux-uclibc*) fmt=elf em=linux ;;
  384. ia64-*-hpux*) fmt=elf em=hpux ;;
  385. ia64-*-netbsd*) fmt=elf em=nbsd ;;
  386. @@ -359,6 +365,7 @@
  387. m68k-*-hpux*) fmt=hp300 em=hp300 ;;
  388. m68k-*-linux*aout*) fmt=aout em=linux ;;
  389. m68k-*-linux-gnu*) fmt=elf em=linux ;;
  390. + m68k-*-linux-uclibc*) fmt=elf em=linux ;;
  391. m68k-*-uclinux*) fmt=elf ;;
  392. m68k-*-gnu*) fmt=elf ;;
  393. m68k-*-lynxos*) fmt=coff em=lynx ;;
  394. @@ -419,6 +426,7 @@
  395. ppc-*-beos*) fmt=coff ;;
  396. ppc-*-*n*bsd* | ppc-*-elf*) fmt=elf ;;
  397. ppc-*-eabi* | ppc-*-sysv4*) fmt=elf ;;
  398. + ppc-*-linux-uclibc* | \
  399. ppc-*-linux-gnu*) fmt=elf em=linux
  400. case "$endian" in
  401. big) ;;
  402. @@ -439,7 +447,9 @@
  403. ppc-*-kaos*) fmt=elf ;;
  404. s390x-*-linux-gnu*) fmt=elf em=linux ;;
  405. + s390x-*-linux-uclibc*) fmt=elf em=linux ;;
  406. s390-*-linux-gnu*) fmt=elf em=linux ;;
  407. + s390-*-linux-uclibc*) fmt=elf em=linux ;;
  408. sh*-*-linux*) fmt=elf em=linux
  409. case ${cpu} in
  410. @@ -472,6 +482,7 @@
  411. sparc-*-coff) fmt=coff ;;
  412. sparc-*-linux*aout*) fmt=aout em=linux ;;
  413. sparc-*-linux-gnu*) fmt=elf em=linux ;;
  414. + sparc-*-linux-uclibc*) fmt=elf em=linux ;;
  415. sparc-*-lynxos*) fmt=coff em=lynx ;;
  416. sparc-fujitsu-none) fmt=aout ;;
  417. sparc-*-elf) fmt=elf ;;
  418. diff -urN binutils-2.14.90.0.8-001-debian/ld/configure binutils-2.14.90.0.8/ld/configure
  419. --- binutils-2.14.90.0.8-001-debian/ld/configure 2003-05-05 16:46:49.000000000 -0500
  420. +++ binutils-2.14.90.0.8/ld/configure 2004-02-12 14:09:10.000000000 -0600
  421. @@ -1578,6 +1578,11 @@
  422. lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  423. ;;
  424. +linux-uclibc*)
  425. + lt_cv_deplibs_check_method=pass_all
  426. + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
  427. + ;;
  428. +
  429. netbsd*)
  430. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  431. lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
  432. diff -urN binutils-2.14.90.0.8-001-debian/ld/configure.tgt binutils-2.14.90.0.8/ld/configure.tgt
  433. --- binutils-2.14.90.0.8-001-debian/ld/configure.tgt 2004-01-14 15:07:52.000000000 -0600
  434. +++ binutils-2.14.90.0.8/ld/configure.tgt 2004-02-12 14:14:12.000000000 -0600
  435. @@ -30,6 +30,7 @@
  436. targ_extra_emuls="criself crislinux"
  437. targ_extra_libpath=$targ_extra_emuls ;;
  438. cris-*-linux-gnu*) targ_emul=crislinux ;;
  439. +cris-*-linux-uclibc*) targ_emul=crislinux ;;
  440. cris-*-*) targ_emul=criself
  441. targ_extra_emuls="crisaout crislinux"
  442. targ_extra_libpath=$targ_extra_emuls ;;
  443. @@ -59,14 +60,16 @@
  444. tdir_elf32_sparc=`echo ${targ_alias} | sed -e 's/aout//'`
  445. tdir_sun4=sparc-sun-sunos4
  446. ;;
  447. -sparc64-*-linux-gnu*) targ_emul=elf64_sparc
  448. +sparc64-*-linux-gnu* | sparc64-*-linux-uclibc*) \
  449. + targ_emul=elf64_sparc
  450. targ_extra_emuls="elf32_sparc sparclinux sun4"
  451. targ_extra_libpath=elf32_sparc
  452. tdir_elf32_sparc=`echo ${targ_alias} | sed -e 's/64//'`
  453. tdir_sparclinux=${tdir_elf32_sparc}aout
  454. tdir_sun4=sparc-sun-sunos4
  455. ;;
  456. -sparc*-*-linux-gnu*) targ_emul=elf32_sparc
  457. +sparc*-*-linux-gnu* | sparc*-*-linux-uclibc*) \
  458. + targ_emul=elf32_sparc
  459. targ_extra_emuls="sparclinux elf64_sparc sun4"
  460. targ_extra_libpath=elf64_sparc
  461. tdir_sparclinux=${targ_alias}aout
  462. @@ -128,7 +131,7 @@
  463. m68*-ericsson-ose) targ_emul=sun3 ;;
  464. m68*-apple-aux*) targ_emul=m68kaux ;;
  465. *-tandem-none) targ_emul=st2000 ;;
  466. -i370-*-elf* | i370-*-linux-gnu*) targ_emul=elf32i370 ;;
  467. +i370-*-elf* | i370-*-linux-gnu* | i370-*-linux-uclibc*) targ_emul=elf32i370 ;;
  468. i[3-7]86-*-nto-qnx*) targ_emul=i386nto ;;
  469. i[3-7]86-*-vsta) targ_emul=vsta ;;
  470. i[3-7]86-go32-rtems*) targ_emul=i386go32 ;;
  471. @@ -152,14 +155,16 @@
  472. tdir_elf_i386=`echo ${targ_alias} | sed -e 's/aout//'`
  473. ;;
  474. i[3-7]86-*-linux*oldld) targ_emul=i386linux; targ_extra_emuls=elf_i386 ;;
  475. -i[3-7]86-*-linux-gnu*) targ_emul=elf_i386
  476. +i[3-7]86-*-linux-gnu* | i[3-7]86-*-linux-uclibc*) \
  477. + targ_emul=elf_i386
  478. targ_extra_emuls=i386linux
  479. if test x${want64} = xtrue; then
  480. targ_extra_emuls="$targ_extra_emuls elf_x86_64"
  481. fi
  482. tdir_i386linux=${targ_alias}aout
  483. ;;
  484. -x86_64-*-linux-gnu*) targ_emul=elf_x86_64
  485. +x86_64-*-linux-gnu* | x86_64-*-linux-uclibc*) \
  486. + targ_emul=elf_x86_64
  487. targ_extra_emuls="elf_i386 i386linux"
  488. targ_extra_libpath=elf_i386
  489. tdir_i386linux=`echo ${targ_alias}aout | sed -e 's/x86_64/i386/'`
  490. @@ -259,10 +264,13 @@
  491. arm9e-*-elf) targ_emul=armelf ;;
  492. arm-*-oabi) targ_emul=armelf_oabi ;;
  493. arm*b-*-linux-gnu*) targ_emul=armelfb_linux; targ_extra_emuls=armelfb ;;
  494. +arm*b-*-linux-uclibc*) targ_emul=armelfb_linux; targ_extra_emuls=armelfb ;;
  495. arm*-*-linux-gnu*) targ_emul=armelf_linux; targ_extra_emuls=armelf ;;
  496. +arm*-*-linux-uclibc*) targ_emul=armelf_linux; targ_extra_emuls=armelf ;;
  497. arm*-*-uclinux*) targ_emul=armelf_linux; targ_extra_emuls=armelf ;;
  498. arm*-*-conix*) targ_emul=armelf ;;
  499. -thumb-*-linux-gnu* | thumb-*-uclinux*) targ_emul=armelf_linux; targ_extra_emuls=armelf ;;
  500. +thumb-*-linux-gnu* | thumb-*-linux-uclibc* | thumb-*-uclinux*) \
  501. + targ_emul=armelf_linux; targ_extra_emuls=armelf ;;
  502. strongarm-*-coff) targ_emul=armcoff ;;
  503. strongarm-*-elf) targ_emul=armelf ;;
  504. strongarm-*-kaos*) targ_emul=armelf ;;
  505. @@ -363,7 +371,8 @@
  506. targ_extra_emuls=m68kelf
  507. tdir_m68kelf=`echo ${targ_alias} | sed -e 's/aout//'`
  508. ;;
  509. -m68k-*-linux-gnu*) targ_emul=m68kelf
  510. +m68k-*-linux-gnu* | m68k-*-linux-uclibc*) \
  511. + targ_emul=m68kelf
  512. targ_extra_emuls=m68klinux
  513. tdir_m68klinux=`echo ${targ_alias} | sed -e 's/linux/linuxaout/'`
  514. ;;
  515. @@ -380,9 +389,9 @@
  516. m68*-*-psos*) targ_emul=m68kpsos ;;
  517. m68*-*-rtemscoff*) targ_emul=m68kcoff ;;
  518. m68*-*-rtems*) targ_emul=m68kelf ;;
  519. -hppa*64*-*-linux-gnu*) targ_emul=hppa64linux ;;
  520. +hppa*64*-*-linux-gnu* | hppa*64*-*-linux-uclibc*) targ_emul=hppa64linux ;;
  521. hppa*64*-*) targ_emul=elf64hppa ;;
  522. -hppa*-*-linux-gnu*) targ_emul=hppalinux ;;
  523. +hppa*-*-linux-gnu* | hppa*-*-linux-uclibc*) targ_emul=hppalinux ;;
  524. hppa*-*-*elf*) targ_emul=hppaelf ;;
  525. hppa*-*-lites*) targ_emul=hppaelf ;;
  526. hppa*-*-netbsd*) targ_emul=hppanbsd ;;
  527. @@ -429,16 +438,20 @@
  528. mips*-*-vxworks*) targ_emul=elf32ebmip
  529. targ_extra_emuls="elf32elmip" ;;
  530. mips*-*-windiss) targ_emul=elf32mipswindiss ;;
  531. -mips64*el-*-linux-gnu*) targ_emul=elf32ltsmipn32
  532. +mips64*el-*-linux-gnu* | mips64*el-*-linux-uclibc*) \
  533. + targ_emul=elf32ltsmipn32
  534. targ_extra_emuls="elf32btsmipn32 elf32ltsmip elf32btsmip elf64ltsmip elf64btsmip"
  535. ;;
  536. -mips64*-*-linux-gnu*) targ_emul=elf32btsmipn32
  537. +mips64*-*-linux-gnu* | mips64*-*-linux-uclibc*) \
  538. + targ_emul=elf32btsmipn32
  539. targ_extra_emuls="elf32ltsmipn32 elf32btsmip elf32ltsmip elf64btsmip elf64ltsmip"
  540. ;;
  541. -mips*el-*-linux-gnu*) targ_emul=elf32ltsmip
  542. +mips*el-*-linux-gnu* | mips*el-*-linux-uclibc*) \
  543. + targ_emul=elf32ltsmip
  544. targ_extra_emuls="elf32btsmip elf32ltsmipn32 elf64ltsmip elf32btsmipn32 elf64btsmip"
  545. ;;
  546. -mips*-*-linux-gnu*) targ_emul=elf32btsmip
  547. +mips*-*-linux-gnu* | mips*-*-linux-uclibc*) \
  548. + targ_emul=elf32btsmip
  549. targ_extra_emuls="elf32ltsmip elf32btsmipn32 elf64btsmip elf32ltsmipn32 elf64ltsmip"
  550. ;;
  551. mips*-*-lnews*) targ_emul=mipslnews ;;
  552. @@ -461,6 +474,10 @@
  553. alpha*-*-linux-gnu*) targ_emul=elf64alpha targ_extra_emuls=alpha
  554. tdir_alpha=`echo ${targ_alias} | sed -e 's/linux/linuxecoff/'`
  555. ;;
  556. +alpha*-*-linux-uclibc*) targ_emul=elf64alpha targ_extra_emuls=alpha
  557. + # The following needs to be checked...
  558. + tdir_alpha=`echo ${targ_alias} | sed -e 's/linux/linuxecoff/'`
  559. + ;;
  560. alpha*-*-osf*) targ_emul=alpha ;;
  561. alpha*-*-gnu*) targ_emul=elf64alpha ;;
  562. alpha*-*-netware*) targ_emul=alpha ;;
  563. diff -urN binutils-2.14.90.0.8-001-debian/libtool.m4 binutils-2.14.90.0.8/libtool.m4
  564. --- binutils-2.14.90.0.8-001-debian/libtool.m4 2003-05-05 16:46:46.000000000 -0500
  565. +++ binutils-2.14.90.0.8/libtool.m4 2004-02-12 14:09:10.000000000 -0600
  566. @@ -645,6 +645,11 @@
  567. lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  568. ;;
  569. +linux-uclibc*)
  570. + lt_cv_deplibs_check_method=pass_all
  571. + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
  572. + ;;
  573. +
  574. netbsd*)
  575. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  576. [lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$']
  577. diff -urN binutils-2.14.90.0.8-001-debian/ltconfig binutils-2.14.90.0.8/ltconfig
  578. --- binutils-2.14.90.0.8-001-debian/ltconfig 2004-01-14 15:07:42.000000000 -0600
  579. +++ binutils-2.14.90.0.8/ltconfig 2004-02-12 14:09:10.000000000 -0600
  580. @@ -603,6 +603,7 @@
  581. # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
  582. case $host_os in
  583. linux-gnu*) ;;
  584. +linux-uclibc*) ;;
  585. linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
  586. esac
  587. @@ -1259,6 +1260,24 @@
  588. dynamic_linker='GNU/Linux ld.so'
  589. ;;
  590. +linux-uclibc*)
  591. + version_type=linux
  592. + need_lib_prefix=no
  593. + need_version=no
  594. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  595. + soname_spec='${libname}${release}.so$major'
  596. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  597. + shlibpath_var=LD_LIBRARY_PATH
  598. + shlibpath_overrides_runpath=no
  599. + # This implies no fast_install, which is unacceptable.
  600. + # Some rework will be needed to allow for fast_install
  601. + # before this can be enabled.
  602. + # Note: copied from linux-gnu, and may not be appropriate.
  603. + hardcode_into_libs=yes
  604. + # Assume using the uClibc dynamic linker.
  605. + dynamic_linker="uClibc ld.so"
  606. + ;;
  607. +
  608. netbsd*)
  609. need_lib_prefix=no
  610. need_version=no