100-uclibc-conf.patch 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586
  1. diff -ur binutils-2.15.97.orig/bfd/config.bfd binutils-2.15.97/bfd/config.bfd
  2. --- binutils-2.15.97.orig/bfd/config.bfd 2005-04-29 20:48:14.000000000 -0400
  3. +++ binutils-2.15.97/bfd/config.bfd 2005-04-29 20:53:50.000000000 -0400
  4. @@ -140,7 +140,7 @@
  5. targ_defvec=ecoffalpha_little_vec
  6. targ_selvecs=bfd_elf64_alpha_vec
  7. ;;
  8. - alpha*-*-linux-gnu* | alpha*-*-elf*)
  9. + alpha*-*-linux-* | alpha*-*-elf*)
  10. targ_defvec=bfd_elf64_alpha_vec
  11. targ_selvecs=ecoffalpha_little_vec
  12. ;;
  13. @@ -150,7 +150,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-* | 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. @@ -227,7 +227,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-*)
  28. targ_defvec=bfd_elf32_bigarm_vec
  29. targ_selvecs=bfd_elf32_littlearm_vec
  30. ;;
  31. @@ -235,7 +235,7 @@
  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-*-elf | arm-*-freebsd* | arm*-*-linux-* | arm*-*-conix* | \
  37. arm*-*-uclinux* | arm-*-kfreebsd*-gnu | \
  38. arm*-*-eabi* )
  39. targ_defvec=bfd_elf32_littlearm_vec
  40. @@ -385,7 +385,7 @@
  41. ;;
  42. #ifdef BFD64
  43. - hppa*64*-*-linux-gnu*)
  44. + hppa*64*-*-linux-*)
  45. targ_defvec=bfd_elf64_hppa_linux_vec
  46. targ_selvecs=bfd_elf64_hppa_vec
  47. ;;
  48. @@ -396,7 +396,7 @@
  49. ;;
  50. #endif
  51. - hppa*-*-linux-gnu*)
  52. + hppa*-*-linux-*)
  53. targ_defvec=bfd_elf32_hppa_linux_vec
  54. targ_selvecs=bfd_elf32_hppa_vec
  55. ;;
  56. @@ -529,7 +529,7 @@
  57. targ_selvecs=bfd_elf32_i386_vec
  58. targ_underscore=yes
  59. ;;
  60. - i[3-7]86-*-linux-gnu*)
  61. + i[3-7]86-*-linux-*)
  62. targ_defvec=bfd_elf32_i386_vec
  63. targ_selvecs="i386linux_vec bfd_efi_app_ia32_vec"
  64. targ64_selvecs=bfd_elf64_x86_64_vec
  65. @@ -543,7 +543,7 @@
  66. targ_defvec=bfd_elf64_x86_64_vec
  67. targ_selvecs="bfd_elf32_i386_vec i386netbsd_vec i386coff_vec bfd_efi_app_ia32_vec"
  68. ;;
  69. - x86_64-*-linux-gnu*)
  70. + x86_64-*-linux-*)
  71. targ_defvec=bfd_elf64_x86_64_vec
  72. targ_selvecs="bfd_elf32_i386_vec i386linux_vec bfd_efi_app_ia32_vec"
  73. ;;
  74. @@ -719,7 +719,7 @@
  75. targ_selvecs=bfd_elf32_m68k_vec
  76. targ_underscore=yes
  77. ;;
  78. - m68*-*-linux-gnu*)
  79. + m68*-*-linux-*)
  80. targ_defvec=bfd_elf32_m68k_vec
  81. targ_selvecs=m68klinux_vec
  82. ;;
  83. @@ -1005,7 +1005,7 @@
  84. ;;
  85. #endif
  86. powerpc-*-*bsd* | powerpc-*-elf* | powerpc-*-sysv4* | powerpc-*-eabi* | \
  87. - powerpc-*-solaris2* | powerpc-*-linux-gnu* | powerpc-*-rtems* | \
  88. + powerpc-*-solaris2* | powerpc-*-linux-* | powerpc-*-rtems* | \
  89. powerpc-*-chorus* | powerpc-*-vxworks* | powerpc-*-windiss*)
  90. targ_defvec=bfd_elf32_powerpc_vec
  91. targ_selvecs="rs6000coff_vec bfd_elf32_powerpcle_vec ppcboot_vec"
  92. @@ -1042,7 +1042,7 @@
  93. targ_selvecs="rs6000coff_vec bfd_elf32_powerpc_vec ppcboot_vec"
  94. ;;
  95. powerpcle-*-elf* | powerpcle-*-sysv4* | powerpcle-*-eabi* | \
  96. - powerpcle-*-solaris2* | powerpcle-*-linux-gnu* | powerpcle-*-vxworks* |\
  97. + powerpcle-*-solaris2* | powerpcle-*-linux-* | powerpcle-*-vxworks* |\
  98. powerpcle-*-rtems*)
  99. targ_defvec=bfd_elf32_powerpcle_vec
  100. targ_selvecs="rs6000coff_vec bfd_elf32_powerpc_vec ppcboot_vec"
  101. @@ -1213,7 +1213,7 @@
  102. targ_selvecs="bfd_elf32_sparc_vec sunos_big_vec"
  103. targ_underscore=yes
  104. ;;
  105. - sparc-*-linux-gnu*)
  106. + sparc-*-linux-*)
  107. targ_defvec=bfd_elf32_sparc_vec
  108. targ_selvecs="sparclinux_vec bfd_elf64_sparc_vec sunos_big_vec"
  109. ;;
  110. @@ -1260,7 +1260,7 @@
  111. targ_defvec=sunos_big_vec
  112. targ_underscore=yes
  113. ;;
  114. - sparc64-*-linux-gnu*)
  115. + sparc64-*-linux-*)
  116. targ_defvec=bfd_elf64_sparc_vec
  117. targ_selvecs="bfd_elf32_sparc_vec sparclinux_vec sunos_big_vec"
  118. ;;
  119. @@ -1329,7 +1329,7 @@
  120. targ_underscore=yes
  121. ;;
  122. - vax-*-linux-gnu*)
  123. + vax-*-linux-*)
  124. targ_defvec=bfd_elf32_vax_vec
  125. ;;
  126. diff -ur binutils-2.15.97.orig/bfd/configure binutils-2.15.97/bfd/configure
  127. --- binutils-2.15.97.orig/bfd/configure 2005-04-29 20:48:14.000000000 -0400
  128. +++ binutils-2.15.97/bfd/configure 2005-04-29 20:53:50.000000000 -0400
  129. @@ -9918,7 +9918,7 @@
  130. alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
  131. COREFILE=''
  132. ;;
  133. - alpha*-*-linux-gnu*)
  134. + alpha*-*-linux-*)
  135. COREFILE=trad-core.lo
  136. TRAD_HEADER='"hosts/alphalinux.h"'
  137. ;;
  138. @@ -9982,7 +9982,7 @@
  139. COREFILE=trad-core.lo
  140. TRAD_HEADER='"hosts/i386mach3.h"'
  141. ;;
  142. - i[3-7]86-*-linux-gnu*)
  143. + i[3-7]86-*-linux-*)
  144. COREFILE=trad-core.lo
  145. TRAD_HEADER='"hosts/i386linux.h"'
  146. ;;
  147. @@ -10020,7 +10020,7 @@
  148. COREFILE=trad-core.lo
  149. TRAD_HEADER='"hosts/hp300bsd.h"'
  150. ;;
  151. - m68*-*-linux-gnu*)
  152. + m68*-*-linux-*)
  153. COREFILE=trad-core.lo
  154. TRAD_HEADER='"hosts/m68klinux.h"'
  155. ;;
  156. @@ -10154,7 +10154,7 @@
  157. COREFILE=trad-core.lo
  158. TRAD_HEADER='"hosts/vaxult2.h"'
  159. ;;
  160. - vax-*-linux-gnu*)
  161. + vax-*-linux-*)
  162. COREFILE=trad-core.lo
  163. TRAD_HEADER='"hosts/vaxlinux.h"'
  164. ;;
  165. diff -ur binutils-2.15.97.orig/bfd/configure.in binutils-2.15.97/bfd/configure.in
  166. --- binutils-2.15.97.orig/bfd/configure.in 2005-04-29 20:48:14.000000000 -0400
  167. +++ binutils-2.15.97/bfd/configure.in 2005-04-29 20:53:50.000000000 -0400
  168. @@ -163,7 +163,7 @@
  169. alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
  170. COREFILE=''
  171. ;;
  172. - alpha*-*-linux-gnu*)
  173. + alpha*-*-linux-*)
  174. COREFILE=trad-core.lo
  175. TRAD_HEADER='"hosts/alphalinux.h"'
  176. ;;
  177. @@ -248,7 +248,7 @@
  178. TRAD_HEADER='"hosts/i386mach3.h"'
  179. ;;
  180. changequote(,)dnl
  181. - i[3-7]86-*-linux-gnu*)
  182. + i[3-7]86-*-linux-*)
  183. changequote([,])dnl
  184. COREFILE=trad-core.lo
  185. TRAD_HEADER='"hosts/i386linux.h"'
  186. @@ -289,7 +289,7 @@
  187. COREFILE=trad-core.lo
  188. TRAD_HEADER='"hosts/hp300bsd.h"'
  189. ;;
  190. - m68*-*-linux-gnu*)
  191. + m68*-*-linux-*)
  192. COREFILE=trad-core.lo
  193. TRAD_HEADER='"hosts/m68klinux.h"'
  194. ;;
  195. @@ -375,7 +375,7 @@
  196. COREFILE=trad-core.lo
  197. TRAD_HEADER='"hosts/vaxult2.h"'
  198. ;;
  199. - vax-*-linux-gnu*)
  200. + vax-*-linux-*)
  201. COREFILE=trad-core.lo
  202. TRAD_HEADER='"hosts/vaxlinux.h"'
  203. ;;
  204. diff -ur binutils-2.15.97.orig/gas/configure binutils-2.15.97/gas/configure
  205. --- binutils-2.15.97.orig/gas/configure 2005-04-29 20:48:14.000000000 -0400
  206. +++ binutils-2.15.97/gas/configure 2005-04-29 20:53:50.000000000 -0400
  207. @@ -4462,7 +4462,7 @@
  208. _ACEOF
  209. ;;
  210. - ppc-*-linux-gnu*)
  211. + ppc-*-linux-*)
  212. case "$endian" in
  213. big) ;;
  214. *) { { echo "$as_me:$LINENO: error: GNU/Linux must be configured big endian" >&5
  215. diff -ur binutils-2.15.97.orig/gas/configure.in binutils-2.15.97/gas/configure.in
  216. --- binutils-2.15.97.orig/gas/configure.in 2005-04-29 20:48:14.000000000 -0400
  217. +++ binutils-2.15.97/gas/configure.in 2005-04-29 20:53:50.000000000 -0400
  218. @@ -161,7 +161,7 @@
  219. AC_DEFINE(AIX_WEAK_SUPPORT, 1,
  220. [Define if using AIX 5.2 value for C_WEAKEXT.])
  221. ;;
  222. - ppc-*-linux-gnu*)
  223. + ppc-*-linux-*)
  224. case "$endian" in
  225. big) ;;
  226. *) AC_MSG_ERROR(GNU/Linux must be configured big endian) ;;
  227. diff -ur binutils-2.15.97.orig/gas/configure.tgt binutils-2.15.97/gas/configure.tgt
  228. --- binutils-2.15.97.orig/gas/configure.tgt 2005-04-29 20:48:14.000000000 -0400
  229. +++ binutils-2.15.97/gas/configure.tgt 2005-04-29 20:53:50.000000000 -0400
  230. @@ -100,7 +100,7 @@
  231. alpha-*-*vms*) fmt=evax ;;
  232. alpha-*-osf*) fmt=ecoff ;;
  233. alpha-*-linuxecoff*) fmt=ecoff ;;
  234. - alpha-*-linux-gnu*) fmt=elf em=linux ;;
  235. + alpha-*-linux-*) fmt=elf em=linux ;;
  236. alpha-*-netbsd*) fmt=elf em=nbsd ;;
  237. alpha-*-openbsd*) fmt=elf em=obsd ;;
  238. @@ -116,7 +116,7 @@
  239. arm-*-conix*) fmt=elf ;;
  240. arm-*-linux*aout*) fmt=aout em=linux ;;
  241. arm-*-linux-gnueabi*) fmt=elf em=armlinuxeabi ;;
  242. - arm-*-linux-gnu*) fmt=elf em=linux ;;
  243. + arm-*-linux-*) fmt=elf em=linux ;;
  244. arm-*-uclinux*) fmt=elf em=linux ;;
  245. arm-*-netbsdelf*) fmt=elf em=nbsd ;;
  246. arm-*-*n*bsd*) fmt=aout em=nbsd ;;
  247. @@ -128,7 +128,7 @@
  248. avr-*-*) fmt=elf ;;
  249. - cris-*-linux-gnu* | crisv32-*-linux-gnu*)
  250. + cris-*-linux-* | crisv32-*-linux-*)
  251. fmt=multi bfd_gas=yes em=linux ;;
  252. cris-*-* | crisv32-*-*) fmt=multi bfd_gas=yes ;;
  253. @@ -192,7 +192,7 @@
  254. i386-*-linux*aout*) fmt=aout em=linux ;;
  255. i386-*-linux*oldld) fmt=aout em=linux ;;
  256. i386-*-linux*coff*) fmt=coff em=linux ;;
  257. - i386-*-linux-gnu*) fmt=elf em=linux ;;
  258. + i386-*-linux-*) fmt=elf em=linux ;;
  259. i386-*-lynxos*) fmt=elf em=lynx bfd_gas=yes ;;
  260. i386-*-sysv[45]*) fmt=elf ;;
  261. i386-*-solaris*) fmt=elf ;;
  262. @@ -238,7 +238,7 @@
  263. ia64-*-elf*) fmt=elf ;;
  264. ia64-*-aix*) fmt=elf em=ia64aix ;;
  265. - ia64-*-linux-gnu*) fmt=elf em=linux ;;
  266. + ia64-*-linux-*) fmt=elf em=linux ;;
  267. ia64-*-hpux*) fmt=elf em=hpux ;;
  268. ia64-*-netbsd*) fmt=elf em=nbsd ;;
  269. @@ -265,7 +265,7 @@
  270. m68k-*-rtems*) fmt=elf ;;
  271. m68k-*-hpux*) fmt=hp300 em=hp300 ;;
  272. m68k-*-linux*aout*) fmt=aout em=linux ;;
  273. - m68k-*-linux-gnu*) fmt=elf em=linux ;;
  274. + m68k-*-linux-*) fmt=elf em=linux ;;
  275. m68k-*-uclinux*) fmt=elf ;;
  276. m68k-*-gnu*) fmt=elf ;;
  277. m68k-*-netbsdelf*) fmt=elf em=nbsd ;;
  278. @@ -332,7 +332,7 @@
  279. ppc-*-beos*) fmt=coff ;;
  280. ppc-*-*n*bsd* | ppc-*-elf*) fmt=elf ;;
  281. ppc-*-eabi* | ppc-*-sysv4*) fmt=elf ;;
  282. - ppc-*-linux-gnu*) fmt=elf em=linux ;;
  283. + ppc-*-linux-*) fmt=elf em=linux ;;
  284. ppc-*-solaris*) fmt=elf ;;
  285. ppc-*-rtems*) fmt=elf ;;
  286. ppc-*-macos*) fmt=coff em=macos ;;
  287. @@ -340,7 +340,7 @@
  288. ppc-*-kaos*) fmt=elf ;;
  289. ppc-*-lynxos*) fmt=elf em=lynx bfd_gas=yes ;;
  290. - s390-*-linux-gnu*) fmt=elf em=linux ;;
  291. + s390-*-linux-*) fmt=elf em=linux ;;
  292. s390-*-tpf*) fmt=elf ;;
  293. sh*-*-linux*) fmt=elf em=linux
  294. @@ -369,7 +369,7 @@
  295. sparc-*-aout | sparc*-*-vxworks*) fmt=aout em=sparcaout ;;
  296. sparc-*-coff) fmt=coff ;;
  297. sparc-*-linux*aout*) fmt=aout em=linux ;;
  298. - sparc-*-linux-gnu*) fmt=elf em=linux ;;
  299. + sparc-*-linux-*) fmt=elf em=linux ;;
  300. sparc-fujitsu-none) fmt=aout ;;
  301. sparc-*-elf) fmt=elf ;;
  302. sparc-*-sysv4*) fmt=elf ;;
  303. @@ -398,7 +398,7 @@
  304. vax-*-netbsdelf*) fmt=elf em=nbsd ;;
  305. vax-*-netbsd*) fmt=aout em=nbsd ;;
  306. vax-*-bsd* | vax-*-ultrix*) fmt=aout ;;
  307. - vax-*-linux-gnu*) fmt=elf em=linux bfd_gas=yes ;;
  308. + vax-*-linux-*) fmt=elf em=linux bfd_gas=yes ;;
  309. w65-*-*) fmt=coff ;;
  310. diff -ur binutils-2.15.97.orig/ld/configure.host binutils-2.15.97/ld/configure.host
  311. --- binutils-2.15.97.orig/ld/configure.host 2005-04-29 20:48:15.000000000 -0400
  312. +++ binutils-2.15.97/ld/configure.host 2005-04-29 20:53:50.000000000 -0400
  313. @@ -83,7 +83,7 @@
  314. HOSTING_CRT0=`echo "$HOSTING_CRT0" | sed -e "s,ld\[^ \]\*,ld-linux,g"`
  315. ;;
  316. -arm*-*-linux-gnu*)
  317. +arm*-*-linux-*)
  318. HOSTING_CRT0='-p '`echo "$HOSTING_CRT0" | sed -e "s,ld\[^ \]\*,ld-linux,g"`
  319. ;;
  320. @@ -141,7 +141,7 @@
  321. HOSTING_LIBS="$HOSTING_LIBS"' -lcygwin -L/usr/lib/w32api -luser32 -lkernel32 -ladvapi32 -lshell32 `if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi`'
  322. ;;
  323. -ia64-*-linux-gnu*)
  324. +ia64-*-linux-*)
  325. HOSTING_CRT0=`echo "$HOSTING_CRT0" | sed -e "s,ld\[^ \]*\*,ld-linux-ia64,g"`
  326. ;;
  327. @@ -155,11 +155,11 @@
  328. HOSTING_LIBS='-L/usr/lib32 '"$HOSTING_LIBS"' `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o ; else ${CC} -print-file-name=crtend.o; fi` /usr/lib32/crtn.o -init __do_global_ctors -fini __do_global_dtors'
  329. ;;
  330. -mips*-*-linux-gnu*)
  331. +mips*-*-linux-*)
  332. HOSTING_CRT0=`echo "$HOSTING_CRT0" | sed -e "s,\\\`specs.*\"\\\`,/lib/ld.so.1,"`
  333. ;;
  334. -m68*-*-linux-gnu*)
  335. +m68*-*-linux-*)
  336. HOSTING_CRT0=`echo "$HOSTING_CRT0" | sed -e "s,\\\`specs.*\"\\\`,/lib/ld.so.1,"`
  337. ;;
  338. @@ -183,19 +183,19 @@
  339. HOSTING_LIBS="$HOSTING_LIBS"' `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; else ${CC} -print-file-name=crtend.o; fi`'
  340. ;;
  341. -powerpc64*-*-linux-gnu*)
  342. +powerpc64*-*-linux-*)
  343. HOSTING_CRT0=`echo "$HOSTING_CRT0" | sed -e "s,\\\`specs.*\"\\\`,/lib64/ld64.so.1,"`
  344. ;;
  345. -powerpc*-*-linux-gnu*)
  346. +powerpc*-*-linux-*)
  347. HOSTING_CRT0=`echo "$HOSTING_CRT0" | sed -e "s,\\\`specs.*\"\\\`,/lib/ld.so.1,"`
  348. ;;
  349. -s390x-*-linux-gnu*)
  350. +s390x-*-linux-*)
  351. HOSTING_CRT0=`echo "$HOSTING_CRT0" | sed -e "s,\\\`specs.*\"\\\`,/lib/ld64.so.1,"`
  352. ;;
  353. -s390-*-linux-gnu*)
  354. +s390-*-linux-*)
  355. HOSTING_CRT0=`echo "$HOSTING_CRT0" | sed -e "s,\\\`specs.*\"\\\`,/lib/ld.so.1,"`
  356. ;;
  357. @@ -209,15 +209,15 @@
  358. HOSTING_LIBS="$HOSTING_LIBS"' `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; else ${CC} -print-file-name=crtend.o; fi` `if [ -f ../gcc/crtn.o ]; then echo ../gcc/crtn.o; else ${CC} -print-file-name=crtn.o; fi`'
  359. ;;
  360. -sparc-*-linux-gnu*)
  361. +sparc-*-linux-*)
  362. HOSTING_CRT0=`echo "$HOSTING_CRT0" | sed -e "s,\\\`specs.*\"\\\`,/lib/ld-linux.so.2,"`
  363. ;;
  364. -sparc64-*-linux-gnu*)
  365. +sparc64-*-linux-*)
  366. HOSTING_CRT0=`echo "$HOSTING_CRT0" | sed -e "s,\\\`specs.*\"\\\`,/lib64/ld-linux.so.2,"`
  367. ;;
  368. -x86_64-*-linux-gnu*)
  369. +x86_64-*-linux-*)
  370. HOSTING_CRT0=`echo "$HOSTING_CRT0" | sed -e "s,\\\`specs.*\"\\\`,/lib64/ld-linux-x86-64.so.2,"`
  371. ;;
  372. diff -ur binutils-2.15.97.orig/ld/configure.tgt binutils-2.15.97/ld/configure.tgt
  373. --- binutils-2.15.97.orig/ld/configure.tgt 2005-04-29 20:48:15.000000000 -0400
  374. +++ binutils-2.15.97/ld/configure.tgt 2005-04-29 20:53:50.000000000 -0400
  375. @@ -30,7 +30,7 @@
  376. cris-*-*aout*) targ_emul=crisaout
  377. targ_extra_emuls="criself crislinux"
  378. targ_extra_libpath=$targ_extra_emuls ;;
  379. -cris-*-linux-gnu* | cris-*-linux-gnu*)
  380. +cris-*-linux-* | crisv32-*-linux-*)
  381. targ_emul=crislinux ;;
  382. cris-*-* | crisv32-*-*) targ_emul=criself
  383. targ_extra_emuls="crisaout crislinux"
  384. @@ -62,14 +62,14 @@
  385. tdir_elf32_sparc=`echo ${targ_alias} | sed -e 's/aout//'`
  386. tdir_sun4=sparc-sun-sunos4
  387. ;;
  388. -sparc64-*-linux-gnu*) targ_emul=elf64_sparc
  389. +sparc64-*-linux-*) targ_emul=elf64_sparc
  390. targ_extra_emuls="elf32_sparc sparclinux sun4"
  391. targ_extra_libpath=elf32_sparc
  392. tdir_elf32_sparc=`echo ${targ_alias} | sed -e 's/64//'`
  393. tdir_sparclinux=${tdir_elf32_sparc}aout
  394. tdir_sun4=sparc-sun-sunos4
  395. ;;
  396. -sparc*-*-linux-gnu*) targ_emul=elf32_sparc
  397. +sparc*-*-linux-*) targ_emul=elf32_sparc
  398. targ_extra_emuls="sparclinux elf64_sparc sun4"
  399. targ_extra_libpath=elf64_sparc
  400. tdir_sparclinux=${targ_alias}aout
  401. @@ -119,8 +119,8 @@
  402. ia64-*-aix*) targ_emul=elf64_aix ;;
  403. m32r*le-*-elf*) targ_emul=m32rlelf ;;
  404. m32r*-*-elf*) targ_emul=m32relf ;;
  405. -m32r*le-*-linux-gnu*) targ_emul=m32rlelf_linux ;;
  406. -m32r*-*-linux-gnu*) targ_emul=m32relf_linux ;;
  407. +m32r*le-*-linux-*) targ_emul=m32rlelf_linux ;;
  408. +m32r*-*-linux-*) targ_emul=m32relf_linux ;;
  409. m68hc11-*-*|m6811-*-*) targ_emul=m68hc11elf
  410. targ_extra_emuls="m68hc11elfb m68hc12elf m68hc12elfb" ;;
  411. m68hc12-*-*|m6812-*-*) targ_emul=m68hc12elf
  412. @@ -131,7 +131,7 @@
  413. m68*-apple-aux*) targ_emul=m68kaux ;;
  414. maxq-*-coff) targ_emul=maxqcoff;;
  415. *-tandem-none) targ_emul=st2000 ;;
  416. -i370-*-elf* | i370-*-linux-gnu*) targ_emul=elf32i370 ;;
  417. +i370-*-elf* | i370-*-linux-*) targ_emul=elf32i370 ;;
  418. i[3-7]86-*-nto-qnx*) targ_emul=i386nto ;;
  419. i[3-7]86-*-vsta) targ_emul=vsta ;;
  420. i[3-7]86-go32-rtems*) targ_emul=i386go32 ;;
  421. @@ -155,14 +155,14 @@
  422. tdir_elf_i386=`echo ${targ_alias} | sed -e 's/aout//'`
  423. ;;
  424. i[3-7]86-*-linux*oldld) targ_emul=i386linux; targ_extra_emuls=elf_i386 ;;
  425. -i[3-7]86-*-linux-gnu*) targ_emul=elf_i386
  426. +i[3-7]86-*-linux-*) targ_emul=elf_i386
  427. targ_extra_emuls=i386linux
  428. if test x${want64} = xtrue; then
  429. targ_extra_emuls="$targ_extra_emuls elf_x86_64"
  430. fi
  431. tdir_i386linux=${targ_alias}aout
  432. ;;
  433. -x86_64-*-linux-gnu*) targ_emul=elf_x86_64
  434. +x86_64-*-linux-*) targ_emul=elf_x86_64
  435. targ_extra_emuls="elf_i386 i386linux"
  436. targ_extra_libpath=elf_i386
  437. tdir_i386linux=`echo ${targ_alias}aout | sed -e 's/x86_64/i386/'`
  438. @@ -262,13 +262,13 @@
  439. arm-*-kaos*) targ_emul=armelf ;;
  440. arm9e-*-elf) targ_emul=armelf ;;
  441. arm*b-*-linux-gnueabi) targ_emul=armelfb_linux_eabi ;;
  442. -arm*b-*-linux-gnu*) targ_emul=armelfb_linux; targ_extra_emuls=armelfb ;;
  443. +arm*b-*-linux-*) targ_emul=armelfb_linux; targ_extra_emuls=armelfb ;;
  444. arm*-*-linux-gnueabi) targ_emul=armelf_linux_eabi ;;
  445. -arm*-*-linux-gnu*) targ_emul=armelf_linux; targ_extra_emuls=armelf ;;
  446. +arm*-*-linux-*) targ_emul=armelf_linux; targ_extra_emuls=armelf ;;
  447. arm*-*-uclinux*) targ_emul=armelf_linux; targ_extra_emuls=armelf ;;
  448. arm-*-vxworks) targ_emul=armelf_vxworks ;;
  449. arm*-*-conix*) targ_emul=armelf ;;
  450. -thumb-*-linux-gnu* | thumb-*-uclinux*) targ_emul=armelf_linux; targ_extra_emuls=armelf ;;
  451. +thumb-*-linux-* | thumb-*-uclinux*) targ_emul=armelf_linux; targ_extra_emuls=armelf ;;
  452. strongarm-*-coff) targ_emul=armcoff ;;
  453. strongarm-*-elf) targ_emul=armelf ;;
  454. strongarm-*-kaos*) targ_emul=armelf ;;
  455. @@ -372,7 +372,7 @@
  456. targ_extra_emuls=m68kelf
  457. tdir_m68kelf=`echo ${targ_alias} | sed -e 's/aout//'`
  458. ;;
  459. -m68k-*-linux-gnu*) targ_emul=m68kelf
  460. +m68k-*-linux-*) targ_emul=m68kelf
  461. targ_extra_emuls=m68klinux
  462. tdir_m68klinux=`echo ${targ_alias} | sed -e 's/linux/linuxaout/'`
  463. ;;
  464. @@ -388,9 +388,9 @@
  465. m68*-*-psos*) targ_emul=m68kpsos ;;
  466. m68*-*-rtemscoff*) targ_emul=m68kcoff ;;
  467. m68*-*-rtems*) targ_emul=m68kelf ;;
  468. -hppa*64*-*-linux-gnu*) targ_emul=hppa64linux ;;
  469. +hppa*64*-*-linux-*) targ_emul=hppa64linux ;;
  470. hppa*64*-*) targ_emul=elf64hppa ;;
  471. -hppa*-*-linux-gnu*) targ_emul=hppalinux ;;
  472. +hppa*-*-linux-*) targ_emul=hppalinux ;;
  473. hppa*-*-*elf*) targ_emul=hppaelf ;;
  474. hppa*-*-lites*) targ_emul=hppaelf ;;
  475. hppa*-*-netbsd*) targ_emul=hppanbsd ;;
  476. @@ -402,7 +402,7 @@
  477. vax-*-netbsdaout* | vax-*-netbsd*)
  478. targ_emul=vaxnbsd
  479. targ_extra_emuls=elf32vax ;;
  480. -vax-*-linux-gnu*) targ_emul=elf32vax ;;
  481. +vax-*-linux-*) targ_emul=elf32vax ;;
  482. mips*-*-pe) targ_emul=mipspe ;
  483. targ_extra_ofiles="deffilep.o pe-dll.o" ;;
  484. mips*-dec-ultrix*) targ_emul=mipslit ;;
  485. @@ -436,18 +436,18 @@
  486. mips*-*-vxworks*) targ_emul=elf32ebmip
  487. targ_extra_emuls="elf32elmip" ;;
  488. mips*-*-windiss) targ_emul=elf32mipswindiss ;;
  489. -mips64*el-*-linux-gnu*) targ_emul=elf32ltsmipn32
  490. +mips64*el-*-linux-*) targ_emul=elf32ltsmipn32
  491. targ_extra_emuls="elf32btsmipn32 elf32ltsmip elf32btsmip elf64ltsmip elf64btsmip"
  492. targ_extra_libpath="elf32ltsmip elf64ltsmip"
  493. ;;
  494. -mips64*-*-linux-gnu*) targ_emul=elf32btsmipn32
  495. +mips64*-*-linux-*) targ_emul=elf32btsmipn32
  496. targ_extra_emuls="elf32ltsmipn32 elf32btsmip elf32ltsmip elf64btsmip elf64ltsmip"
  497. targ_extra_libpath="elf32btsmip elf64btsmip"
  498. ;;
  499. -mips*el-*-linux-gnu*) targ_emul=elf32ltsmip
  500. +mips*el-*-linux-*) targ_emul=elf32ltsmip
  501. targ_extra_emuls="elf32btsmip elf32ltsmipn32 elf64ltsmip elf32btsmipn32 elf64btsmip"
  502. ;;
  503. -mips*-*-linux-gnu*) targ_emul=elf32btsmip
  504. +mips*-*-linux-*) targ_emul=elf32btsmip
  505. targ_extra_emuls="elf32ltsmip elf32btsmipn32 elf64btsmip elf32ltsmipn32 elf64ltsmip"
  506. ;;
  507. mips*-*-lnews*) targ_emul=mipslnews ;;
  508. @@ -467,7 +467,7 @@
  509. alpha*-*-linuxecoff*) targ_emul=alpha targ_extra_emuls=elf64alpha
  510. tdir_elf64alpha=`echo ${targ_alias} | sed -e 's/ecoff//'`
  511. ;;
  512. -alpha*-*-linux-gnu*) targ_emul=elf64alpha targ_extra_emuls=alpha
  513. +alpha*-*-linux-*) targ_emul=elf64alpha targ_extra_emuls=alpha
  514. tdir_alpha=`echo ${targ_alias} | sed -e 's/linux/linuxecoff/'`
  515. ;;
  516. alpha*-*-osf*) targ_emul=alpha ;;
  517. diff -ur binutils-2.15.97.orig/ld/emultempl/elf32.em binutils-2.15.97/ld/emultempl/elf32.em
  518. --- binutils-2.15.97.orig/ld/emultempl/elf32.em 2005-04-29 20:48:15.000000000 -0400
  519. +++ binutils-2.15.97/ld/emultempl/elf32.em 2005-04-29 20:53:50.000000000 -0400
  520. @@ -65,7 +65,7 @@
  521. if [ "x${USE_LIBPATH}" = xyes ] ; then
  522. case ${target} in
  523. - *-*-linux-gnu*)
  524. + *-*-linux-*)
  525. cat >>e${EMULATION_NAME}.c <<EOF
  526. #ifdef HAVE_GLOB
  527. #include <glob.h>
  528. @@ -350,7 +350,7 @@
  529. EOF
  530. case ${target} in
  531. - *-*-linux-gnu*)
  532. + *-*-linux-*)
  533. cat >>e${EMULATION_NAME}.c <<EOF
  534. {
  535. struct bfd_link_needed_list *l;
  536. @@ -522,7 +522,7 @@
  537. EOF
  538. case ${target} in
  539. - *-*-linux-gnu*)
  540. + *-*-linux-*)
  541. cat >>e${EMULATION_NAME}.c <<EOF
  542. /* For a native linker, check the file /etc/ld.so.conf for directories
  543. in which we may find shared libraries. /etc/ld.so.conf is really
  544. @@ -932,7 +932,7 @@
  545. EOF
  546. if [ "x${USE_LIBPATH}" = xyes ] ; then
  547. case ${target} in
  548. - *-*-linux-gnu*)
  549. + *-*-linux-*)
  550. cat >>e${EMULATION_NAME}.c <<EOF
  551. if (gld${EMULATION_NAME}_check_ld_so_conf (l->name, force))
  552. break;