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
5 targ_defvec=ecoffalpha_little_vec
6 targ_selvecs=bfd_elf64_alpha_vec
8 - alpha*-*-linux-gnu* | alpha*-*-elf*)
9 + alpha*-*-linux-* | alpha*-*-elf*)
10 targ_defvec=bfd_elf64_alpha_vec
11 targ_selvecs=ecoffalpha_little_vec
15 targ_defvec=ecoffalpha_little_vec
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"
23 targ_defvec=bfd_elf32_littlearm_vec
24 targ_selvecs=bfd_elf32_bigarm_vec
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
32 targ_defvec=bfd_elf32_littlearm_vec
33 targ_selvecs=bfd_elf32_bigarm_vec
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 | \
39 targ_defvec=bfd_elf32_littlearm_vec
44 - hppa*64*-*-linux-gnu*)
46 targ_defvec=bfd_elf64_hppa_linux_vec
47 targ_selvecs=bfd_elf64_hppa_vec
55 targ_defvec=bfd_elf32_hppa_linux_vec
56 targ_selvecs=bfd_elf32_hppa_vec
59 targ_selvecs=bfd_elf32_i386_vec
62 - i[3-7]86-*-linux-gnu*)
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
68 targ_defvec=bfd_elf64_x86_64_vec
69 targ_selvecs="bfd_elf32_i386_vec i386netbsd_vec i386coff_vec bfd_efi_app_ia32_vec"
71 - x86_64-*-linux-gnu*)
73 targ_defvec=bfd_elf64_x86_64_vec
74 targ_selvecs="bfd_elf32_i386_vec i386linux_vec bfd_efi_app_ia32_vec"
77 targ_selvecs=bfd_elf32_m68k_vec
82 targ_defvec=bfd_elf32_m68k_vec
83 targ_selvecs=m68klinux_vec
88 powerpc-*-*bsd* | powerpc-*-elf* | powerpc-*-sysv4* | powerpc-*-eabi* | \
89 - powerpc-*-solaris2* | powerpc-*-linux-gnu* | powerpc-*-rtems* | \
90 + powerpc-*-solaris2* | powerpc-*-linux-* | powerpc-*-rtems* | \
91 powerpc-*-chorus* | powerpc-*-vxworks* | powerpc-*-windiss*)
92 targ_defvec=bfd_elf32_powerpc_vec
93 targ_selvecs="rs6000coff_vec bfd_elf32_powerpcle_vec ppcboot_vec"
95 targ_selvecs="rs6000coff_vec bfd_elf32_powerpc_vec ppcboot_vec"
97 powerpcle-*-elf* | powerpcle-*-sysv4* | powerpcle-*-eabi* | \
98 - powerpcle-*-solaris2* | powerpcle-*-linux-gnu* | powerpcle-*-vxworks* |\
99 + powerpcle-*-solaris2* | powerpcle-*-linux-* | powerpcle-*-vxworks* |\
101 targ_defvec=bfd_elf32_powerpcle_vec
102 targ_selvecs="rs6000coff_vec bfd_elf32_powerpc_vec ppcboot_vec"
103 @@ -1213,7 +1213,7 @@
104 targ_selvecs="bfd_elf32_sparc_vec sunos_big_vec"
107 - sparc-*-linux-gnu*)
109 targ_defvec=bfd_elf32_sparc_vec
110 targ_selvecs="sparclinux_vec bfd_elf64_sparc_vec sunos_big_vec"
112 @@ -1260,7 +1260,7 @@
113 targ_defvec=sunos_big_vec
116 - sparc64-*-linux-gnu*)
118 targ_defvec=bfd_elf64_sparc_vec
119 targ_selvecs="bfd_elf32_sparc_vec sparclinux_vec sunos_big_vec"
121 @@ -1329,7 +1329,7 @@
127 targ_defvec=bfd_elf32_vax_vec
130 diff -ur binutils-2.15.97.orig/bfd/configure binutils-2.15.97/bfd/configure
131 --- binutils-2.15.97.orig/bfd/configure 2005-04-29 20:48:14.000000000 -0400
132 +++ binutils-2.15.97/bfd/configure 2005-04-29 20:53:50.000000000 -0400
133 @@ -9918,7 +9918,7 @@
134 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
137 - alpha*-*-linux-gnu*)
139 COREFILE=trad-core.lo
140 TRAD_HEADER='"hosts/alphalinux.h"'
142 @@ -9982,7 +9982,7 @@
143 COREFILE=trad-core.lo
144 TRAD_HEADER='"hosts/i386mach3.h"'
146 - i[3-7]86-*-linux-gnu*)
147 + i[3-7]86-*-linux-*)
148 COREFILE=trad-core.lo
149 TRAD_HEADER='"hosts/i386linux.h"'
151 @@ -10020,7 +10020,7 @@
152 COREFILE=trad-core.lo
153 TRAD_HEADER='"hosts/hp300bsd.h"'
157 COREFILE=trad-core.lo
158 TRAD_HEADER='"hosts/m68klinux.h"'
160 @@ -10154,7 +10154,7 @@
161 COREFILE=trad-core.lo
162 TRAD_HEADER='"hosts/vaxult2.h"'
166 COREFILE=trad-core.lo
167 TRAD_HEADER='"hosts/vaxlinux.h"'
169 diff -ur binutils-2.15.97.orig/bfd/configure.in binutils-2.15.97/bfd/configure.in
170 --- binutils-2.15.97.orig/bfd/configure.in 2005-04-29 20:48:14.000000000 -0400
171 +++ binutils-2.15.97/bfd/configure.in 2005-04-29 20:53:50.000000000 -0400
173 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
176 - alpha*-*-linux-gnu*)
178 COREFILE=trad-core.lo
179 TRAD_HEADER='"hosts/alphalinux.h"'
182 TRAD_HEADER='"hosts/i386mach3.h"'
185 - i[3-7]86-*-linux-gnu*)
186 + i[3-7]86-*-linux-*)
188 COREFILE=trad-core.lo
189 TRAD_HEADER='"hosts/i386linux.h"'
191 COREFILE=trad-core.lo
192 TRAD_HEADER='"hosts/hp300bsd.h"'
196 COREFILE=trad-core.lo
197 TRAD_HEADER='"hosts/m68klinux.h"'
200 COREFILE=trad-core.lo
201 TRAD_HEADER='"hosts/vaxult2.h"'
205 COREFILE=trad-core.lo
206 TRAD_HEADER='"hosts/vaxlinux.h"'
208 diff -ur binutils-2.15.97.orig/gas/configure binutils-2.15.97/gas/configure
209 --- binutils-2.15.97.orig/gas/configure 2005-04-29 20:48:14.000000000 -0400
210 +++ binutils-2.15.97/gas/configure 2005-04-29 20:53:50.000000000 -0400
211 @@ -4462,7 +4462,7 @@
219 *) { { echo "$as_me:$LINENO: error: GNU/Linux must be configured big endian" >&5
220 diff -ur binutils-2.15.97.orig/gas/configure.in binutils-2.15.97/gas/configure.in
221 --- binutils-2.15.97.orig/gas/configure.in 2005-04-29 20:48:14.000000000 -0400
222 +++ binutils-2.15.97/gas/configure.in 2005-04-29 20:53:50.000000000 -0400
224 AC_DEFINE(AIX_WEAK_SUPPORT, 1,
225 [Define if using AIX 5.2 value for C_WEAKEXT.])
231 *) AC_MSG_ERROR(GNU/Linux must be configured big endian) ;;
232 diff -ur binutils-2.15.97.orig/gas/configure.tgt binutils-2.15.97/gas/configure.tgt
233 --- binutils-2.15.97.orig/gas/configure.tgt 2005-04-29 20:48:14.000000000 -0400
234 +++ binutils-2.15.97/gas/configure.tgt 2005-04-29 20:53:50.000000000 -0400
236 alpha-*-*vms*) fmt=evax ;;
237 alpha-*-osf*) fmt=ecoff ;;
238 alpha-*-linuxecoff*) fmt=ecoff ;;
239 - alpha-*-linux-gnu*) fmt=elf em=linux ;;
240 + alpha-*-linux-*) fmt=elf em=linux ;;
241 alpha-*-netbsd*) fmt=elf em=nbsd ;;
242 alpha-*-openbsd*) fmt=elf em=obsd ;;
245 arm-*-conix*) fmt=elf ;;
246 arm-*-linux*aout*) fmt=aout em=linux ;;
247 arm-*-linux-gnueabi*) fmt=elf em=armlinuxeabi ;;
248 - arm-*-linux-gnu*) fmt=elf em=linux ;;
249 + arm-*-linux-*) fmt=elf em=linux ;;
250 arm-*-uclinux*) fmt=elf em=linux ;;
251 arm-*-netbsdelf*) fmt=elf em=nbsd ;;
252 arm-*-*n*bsd*) fmt=aout em=nbsd ;;
257 - cris-*-linux-gnu* | crisv32-*-linux-gnu*)
258 + cris-*-linux-* | crisv32-*-linux-*)
259 fmt=multi bfd_gas=yes em=linux ;;
260 cris-*-* | crisv32-*-*) fmt=multi bfd_gas=yes ;;
263 i386-*-linux*aout*) fmt=aout em=linux ;;
264 i386-*-linux*oldld) fmt=aout em=linux ;;
265 i386-*-linux*coff*) fmt=coff em=linux ;;
266 - i386-*-linux-gnu*) fmt=elf em=linux ;;
267 + i386-*-linux-*) fmt=elf em=linux ;;
268 i386-*-lynxos*) fmt=elf em=lynx bfd_gas=yes ;;
269 i386-*-sysv[45]*) fmt=elf ;;
270 i386-*-solaris*) fmt=elf ;;
273 ia64-*-elf*) fmt=elf ;;
274 ia64-*-aix*) fmt=elf em=ia64aix ;;
275 - ia64-*-linux-gnu*) fmt=elf em=linux ;;
276 + ia64-*-linux-*) fmt=elf em=linux ;;
277 ia64-*-hpux*) fmt=elf em=hpux ;;
278 ia64-*-netbsd*) fmt=elf em=nbsd ;;
281 m68k-*-rtems*) fmt=elf ;;
282 m68k-*-hpux*) fmt=hp300 em=hp300 ;;
283 m68k-*-linux*aout*) fmt=aout em=linux ;;
284 - m68k-*-linux-gnu*) fmt=elf em=linux ;;
285 + m68k-*-linux-*) fmt=elf em=linux ;;
286 m68k-*-uclinux*) fmt=elf ;;
287 m68k-*-gnu*) fmt=elf ;;
288 m68k-*-netbsdelf*) fmt=elf em=nbsd ;;
290 ppc-*-beos*) fmt=coff ;;
291 ppc-*-*n*bsd* | ppc-*-elf*) fmt=elf ;;
292 ppc-*-eabi* | ppc-*-sysv4*) fmt=elf ;;
293 - ppc-*-linux-gnu*) fmt=elf em=linux ;;
294 + ppc-*-linux-*) fmt=elf em=linux ;;
295 ppc-*-solaris*) fmt=elf ;;
296 ppc-*-rtems*) fmt=elf ;;
297 ppc-*-macos*) fmt=coff em=macos ;;
299 ppc-*-kaos*) fmt=elf ;;
300 ppc-*-lynxos*) fmt=elf em=lynx bfd_gas=yes ;;
302 - s390-*-linux-gnu*) fmt=elf em=linux ;;
303 + s390-*-linux-*) fmt=elf em=linux ;;
304 s390-*-tpf*) fmt=elf ;;
306 sh*-*-linux*) fmt=elf em=linux
308 sparc-*-aout | sparc*-*-vxworks*) fmt=aout em=sparcaout ;;
309 sparc-*-coff) fmt=coff ;;
310 sparc-*-linux*aout*) fmt=aout em=linux ;;
311 - sparc-*-linux-gnu*) fmt=elf em=linux ;;
312 + sparc-*-linux-*) fmt=elf em=linux ;;
313 sparc-fujitsu-none) fmt=aout ;;
314 sparc-*-elf) fmt=elf ;;
315 sparc-*-sysv4*) fmt=elf ;;
317 vax-*-netbsdelf*) fmt=elf em=nbsd ;;
318 vax-*-netbsd*) fmt=aout em=nbsd ;;
319 vax-*-bsd* | vax-*-ultrix*) fmt=aout ;;
320 - vax-*-linux-gnu*) fmt=elf em=linux bfd_gas=yes ;;
321 + vax-*-linux-*) fmt=elf em=linux bfd_gas=yes ;;
325 diff -ur binutils-2.15.97.orig/ld/configure.host binutils-2.15.97/ld/configure.host
326 --- binutils-2.15.97.orig/ld/configure.host 2005-04-29 20:48:15.000000000 -0400
327 +++ binutils-2.15.97/ld/configure.host 2005-04-29 20:53:50.000000000 -0400
329 HOSTING_CRT0=`echo "$HOSTING_CRT0" | sed -e "s,ld\[^ \]\*,ld-linux,g"`
334 HOSTING_CRT0='-p '`echo "$HOSTING_CRT0" | sed -e "s,ld\[^ \]\*,ld-linux,g"`
338 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`'
343 HOSTING_CRT0=`echo "$HOSTING_CRT0" | sed -e "s,ld\[^ \]*\*,ld-linux-ia64,g"`
346 @@ -155,11 +155,11 @@
347 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'
352 HOSTING_CRT0=`echo "$HOSTING_CRT0" | sed -e "s,\\\`specs.*\"\\\`,/lib/ld.so.1,"`
357 HOSTING_CRT0=`echo "$HOSTING_CRT0" | sed -e "s,\\\`specs.*\"\\\`,/lib/ld.so.1,"`
360 @@ -183,19 +183,19 @@
361 HOSTING_LIBS="$HOSTING_LIBS"' `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o; else ${CC} -print-file-name=crtend.o; fi`'
364 -powerpc64*-*-linux-gnu*)
365 +powerpc64*-*-linux-*)
366 HOSTING_CRT0=`echo "$HOSTING_CRT0" | sed -e "s,\\\`specs.*\"\\\`,/lib64/ld64.so.1,"`
369 -powerpc*-*-linux-gnu*)
371 HOSTING_CRT0=`echo "$HOSTING_CRT0" | sed -e "s,\\\`specs.*\"\\\`,/lib/ld.so.1,"`
376 HOSTING_CRT0=`echo "$HOSTING_CRT0" | sed -e "s,\\\`specs.*\"\\\`,/lib/ld64.so.1,"`
381 HOSTING_CRT0=`echo "$HOSTING_CRT0" | sed -e "s,\\\`specs.*\"\\\`,/lib/ld.so.1,"`
384 @@ -209,15 +209,15 @@
385 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`'
390 HOSTING_CRT0=`echo "$HOSTING_CRT0" | sed -e "s,\\\`specs.*\"\\\`,/lib/ld-linux.so.2,"`
393 -sparc64-*-linux-gnu*)
395 HOSTING_CRT0=`echo "$HOSTING_CRT0" | sed -e "s,\\\`specs.*\"\\\`,/lib64/ld-linux.so.2,"`
398 -x86_64-*-linux-gnu*)
400 HOSTING_CRT0=`echo "$HOSTING_CRT0" | sed -e "s,\\\`specs.*\"\\\`,/lib64/ld-linux-x86-64.so.2,"`
403 diff -ur binutils-2.15.97.orig/ld/configure.tgt binutils-2.15.97/ld/configure.tgt
404 --- binutils-2.15.97.orig/ld/configure.tgt 2005-04-29 20:48:15.000000000 -0400
405 +++ binutils-2.15.97/ld/configure.tgt 2005-04-29 20:53:50.000000000 -0400
407 cris-*-*aout*) targ_emul=crisaout
408 targ_extra_emuls="criself crislinux"
409 targ_extra_libpath=$targ_extra_emuls ;;
410 -cris-*-linux-gnu* | cris-*-linux-gnu*)
411 +cris-*-linux-* | crisv32-*-linux-*)
412 targ_emul=crislinux ;;
413 cris-*-* | crisv32-*-*) targ_emul=criself
414 targ_extra_emuls="crisaout crislinux"
416 tdir_elf32_sparc=`echo ${targ_alias} | sed -e 's/aout//'`
417 tdir_sun4=sparc-sun-sunos4
419 -sparc64-*-linux-gnu*) targ_emul=elf64_sparc
420 +sparc64-*-linux-*) targ_emul=elf64_sparc
421 targ_extra_emuls="elf32_sparc sparclinux sun4"
422 targ_extra_libpath=elf32_sparc
423 tdir_elf32_sparc=`echo ${targ_alias} | sed -e 's/64//'`
424 tdir_sparclinux=${tdir_elf32_sparc}aout
425 tdir_sun4=sparc-sun-sunos4
427 -sparc*-*-linux-gnu*) targ_emul=elf32_sparc
428 +sparc*-*-linux-*) targ_emul=elf32_sparc
429 targ_extra_emuls="sparclinux elf64_sparc sun4"
430 targ_extra_libpath=elf64_sparc
431 tdir_sparclinux=${targ_alias}aout
433 ia64-*-aix*) targ_emul=elf64_aix ;;
434 m32r*le-*-elf*) targ_emul=m32rlelf ;;
435 m32r*-*-elf*) targ_emul=m32relf ;;
436 -m32r*le-*-linux-gnu*) targ_emul=m32rlelf_linux ;;
437 -m32r*-*-linux-gnu*) targ_emul=m32relf_linux ;;
438 +m32r*le-*-linux-*) targ_emul=m32rlelf_linux ;;
439 +m32r*-*-linux-*) targ_emul=m32relf_linux ;;
440 m68hc11-*-*|m6811-*-*) targ_emul=m68hc11elf
441 targ_extra_emuls="m68hc11elfb m68hc12elf m68hc12elfb" ;;
442 m68hc12-*-*|m6812-*-*) targ_emul=m68hc12elf
444 m68*-apple-aux*) targ_emul=m68kaux ;;
445 maxq-*-coff) targ_emul=maxqcoff;;
446 *-tandem-none) targ_emul=st2000 ;;
447 -i370-*-elf* | i370-*-linux-gnu*) targ_emul=elf32i370 ;;
448 +i370-*-elf* | i370-*-linux-*) targ_emul=elf32i370 ;;
449 i[3-7]86-*-nto-qnx*) targ_emul=i386nto ;;
450 i[3-7]86-*-vsta) targ_emul=vsta ;;
451 i[3-7]86-go32-rtems*) targ_emul=i386go32 ;;
452 @@ -155,14 +155,14 @@
453 tdir_elf_i386=`echo ${targ_alias} | sed -e 's/aout//'`
455 i[3-7]86-*-linux*oldld) targ_emul=i386linux; targ_extra_emuls=elf_i386 ;;
456 -i[3-7]86-*-linux-gnu*) targ_emul=elf_i386
457 +i[3-7]86-*-linux-*) targ_emul=elf_i386
458 targ_extra_emuls=i386linux
459 if test x${want64} = xtrue; then
460 targ_extra_emuls="$targ_extra_emuls elf_x86_64"
462 tdir_i386linux=${targ_alias}aout
464 -x86_64-*-linux-gnu*) targ_emul=elf_x86_64
465 +x86_64-*-linux-*) targ_emul=elf_x86_64
466 targ_extra_emuls="elf_i386 i386linux"
467 targ_extra_libpath=elf_i386
468 tdir_i386linux=`echo ${targ_alias}aout | sed -e 's/x86_64/i386/'`
469 @@ -262,13 +262,13 @@
470 arm-*-kaos*) targ_emul=armelf ;;
471 arm9e-*-elf) targ_emul=armelf ;;
472 arm*b-*-linux-gnueabi) targ_emul=armelfb_linux_eabi ;;
473 -arm*b-*-linux-gnu*) targ_emul=armelfb_linux; targ_extra_emuls=armelfb ;;
474 +arm*b-*-linux-*) targ_emul=armelfb_linux; targ_extra_emuls=armelfb ;;
475 arm*-*-linux-gnueabi) targ_emul=armelf_linux_eabi ;;
476 -arm*-*-linux-gnu*) targ_emul=armelf_linux; targ_extra_emuls=armelf ;;
477 +arm*-*-linux-*) targ_emul=armelf_linux; targ_extra_emuls=armelf ;;
478 arm*-*-uclinux*) targ_emul=armelf_linux; targ_extra_emuls=armelf ;;
479 arm-*-vxworks) targ_emul=armelf_vxworks ;;
480 arm*-*-conix*) targ_emul=armelf ;;
481 -thumb-*-linux-gnu* | thumb-*-uclinux*) targ_emul=armelf_linux; targ_extra_emuls=armelf ;;
482 +thumb-*-linux-* | thumb-*-uclinux*) targ_emul=armelf_linux; targ_extra_emuls=armelf ;;
483 strongarm-*-coff) targ_emul=armcoff ;;
484 strongarm-*-elf) targ_emul=armelf ;;
485 strongarm-*-kaos*) targ_emul=armelf ;;
487 targ_extra_emuls=m68kelf
488 tdir_m68kelf=`echo ${targ_alias} | sed -e 's/aout//'`
490 -m68k-*-linux-gnu*) targ_emul=m68kelf
491 +m68k-*-linux-*) targ_emul=m68kelf
492 targ_extra_emuls=m68klinux
493 tdir_m68klinux=`echo ${targ_alias} | sed -e 's/linux/linuxaout/'`
496 m68*-*-psos*) targ_emul=m68kpsos ;;
497 m68*-*-rtemscoff*) targ_emul=m68kcoff ;;
498 m68*-*-rtems*) targ_emul=m68kelf ;;
499 -hppa*64*-*-linux-gnu*) targ_emul=hppa64linux ;;
500 +hppa*64*-*-linux-*) targ_emul=hppa64linux ;;
501 hppa*64*-*) targ_emul=elf64hppa ;;
502 -hppa*-*-linux-gnu*) targ_emul=hppalinux ;;
503 +hppa*-*-linux-*) targ_emul=hppalinux ;;
504 hppa*-*-*elf*) targ_emul=hppaelf ;;
505 hppa*-*-lites*) targ_emul=hppaelf ;;
506 hppa*-*-netbsd*) targ_emul=hppanbsd ;;
508 vax-*-netbsdaout* | vax-*-netbsd*)
510 targ_extra_emuls=elf32vax ;;
511 -vax-*-linux-gnu*) targ_emul=elf32vax ;;
512 +vax-*-linux-*) targ_emul=elf32vax ;;
513 mips*-*-pe) targ_emul=mipspe ;
514 targ_extra_ofiles="deffilep.o pe-dll.o" ;;
515 mips*-dec-ultrix*) targ_emul=mipslit ;;
516 @@ -436,18 +436,18 @@
517 mips*-*-vxworks*) targ_emul=elf32ebmip
518 targ_extra_emuls="elf32elmip" ;;
519 mips*-*-windiss) targ_emul=elf32mipswindiss ;;
520 -mips64*el-*-linux-gnu*) targ_emul=elf32ltsmipn32
521 +mips64*el-*-linux-*) targ_emul=elf32ltsmipn32
522 targ_extra_emuls="elf32btsmipn32 elf32ltsmip elf32btsmip elf64ltsmip elf64btsmip"
523 targ_extra_libpath="elf32ltsmip elf64ltsmip"
525 -mips64*-*-linux-gnu*) targ_emul=elf32btsmipn32
526 +mips64*-*-linux-*) targ_emul=elf32btsmipn32
527 targ_extra_emuls="elf32ltsmipn32 elf32btsmip elf32ltsmip elf64btsmip elf64ltsmip"
528 targ_extra_libpath="elf32btsmip elf64btsmip"
530 -mips*el-*-linux-gnu*) targ_emul=elf32ltsmip
531 +mips*el-*-linux-*) targ_emul=elf32ltsmip
532 targ_extra_emuls="elf32btsmip elf32ltsmipn32 elf64ltsmip elf32btsmipn32 elf64btsmip"
534 -mips*-*-linux-gnu*) targ_emul=elf32btsmip
535 +mips*-*-linux-*) targ_emul=elf32btsmip
536 targ_extra_emuls="elf32ltsmip elf32btsmipn32 elf64btsmip elf32ltsmipn32 elf64ltsmip"
538 mips*-*-lnews*) targ_emul=mipslnews ;;
540 alpha*-*-linuxecoff*) targ_emul=alpha targ_extra_emuls=elf64alpha
541 tdir_elf64alpha=`echo ${targ_alias} | sed -e 's/ecoff//'`
543 -alpha*-*-linux-gnu*) targ_emul=elf64alpha targ_extra_emuls=alpha
544 +alpha*-*-linux-*) targ_emul=elf64alpha targ_extra_emuls=alpha
545 tdir_alpha=`echo ${targ_alias} | sed -e 's/linux/linuxecoff/'`
547 alpha*-*-osf*) targ_emul=alpha ;;
548 diff -ur binutils-2.15.97.orig/ld/emultempl/elf32.em binutils-2.15.97/ld/emultempl/elf32.em
549 --- binutils-2.15.97.orig/ld/emultempl/elf32.em 2005-04-29 20:48:15.000000000 -0400
550 +++ binutils-2.15.97/ld/emultempl/elf32.em 2005-04-29 20:53:50.000000000 -0400
553 if [ "x${USE_LIBPATH}" = xyes ] ; then
557 cat >>e${EMULATION_NAME}.c <<EOF
566 cat >>e${EMULATION_NAME}.c <<EOF
568 struct bfd_link_needed_list *l;
575 cat >>e${EMULATION_NAME}.c <<EOF
576 /* For a native linker, check the file /etc/ld.so.conf for directories
577 in which we may find shared libraries. /etc/ld.so.conf is really
580 if [ "x${USE_LIBPATH}" = xyes ] ; then
584 cat >>e${EMULATION_NAME}.c <<EOF
585 if (gld${EMULATION_NAME}_check_ld_so_conf (l->name, force))