1999-05-03 09:29:11 +02:00
|
|
|
# This is the linker target specific file. This is invoked by the
|
|
|
|
# autoconf generated configure script. Putting it in a separate shell
|
|
|
|
# file lets us skip running autoconf when modifying target specific
|
|
|
|
# information.
|
|
|
|
|
|
|
|
# This file switches on the shell variable ${targ}, and sets the
|
|
|
|
# following shell variables:
|
|
|
|
# targ_emul name of linker emulation to use
|
|
|
|
# targ_extra_emuls additional linker emulations to provide
|
1999-06-18 17:25:45 +02:00
|
|
|
# targ_extra_libpath additional linker emulations using LIB_PATH
|
1999-05-03 09:29:11 +02:00
|
|
|
# targ_extra_ofiles additional objects needed by the emulation
|
|
|
|
|
|
|
|
targ_extra_emuls=
|
|
|
|
targ_extra_ofiles=
|
|
|
|
|
|
|
|
case "${targ}" in
|
|
|
|
arm-epoc-pe) targ_emul=arm_epoc_pe ;
|
|
|
|
targ_extra_ofiles="deffilep.o pe-dll.o" ;;
|
2000-02-24 18:53:12 +01:00
|
|
|
arm-*-wince) targ_emul=armpe ;
|
|
|
|
targ_extra_ofiles="deffilep.o pe-dll.o" ;;
|
1999-05-03 09:29:11 +02:00
|
|
|
arm-*-pe) targ_emul=armpe ;
|
|
|
|
targ_extra_ofiles="deffilep.o pe-dll.o" ;;
|
|
|
|
arc-*-elf*) targ_emul=arcelf ;;
|
2000-03-27 10:39:14 +02:00
|
|
|
avr-*-*) targ_emul=avr85xx
|
|
|
|
targ_extra_emuls="avr1200 avr23xx avr44x4 avr4433 avrmega603 avrmega103 avrmega161" ;;
|
2001-03-27 04:37:41 +02:00
|
|
|
cris-*-*aout*) targ_emul=crisaout
|
2000-07-20 19:16:06 +02:00
|
|
|
targ_extra_emuls="criself crislinux"
|
|
|
|
targ_extra_libpath=$targ_extra_emuls ;;
|
2001-03-27 04:37:41 +02:00
|
|
|
cris-*-*) targ_emul=criself
|
|
|
|
targ_extra_emuls="crisaout crislinux"
|
|
|
|
targ_extra_libpath=$targ_extra_emuls ;;
|
1999-05-03 09:29:11 +02:00
|
|
|
d10v-*-*) targ_emul=d10velf ;;
|
|
|
|
d30v-*-*ext*) targ_emul=d30v_e; targ_extra_emuls="d30velf d30v_o" ;;
|
|
|
|
d30v-*-*onchip*) targ_emul=d30v_o; targ_extra_emuls="d30velf d30v_e" ;;
|
|
|
|
d30v-*-*) targ_emul=d30velf; targ_extra_emuls="d30v_e d30v_o" ;;
|
|
|
|
sparc64-*-aout*) targ_emul=sparcaout ;;
|
|
|
|
sparc64-*-elf*) targ_emul=elf64_sparc ;;
|
|
|
|
sparc-sun-sunos4*) targ_emul=sun4 ;;
|
|
|
|
sparclite*-*-elf) targ_emul=elf32_sparc ;;
|
|
|
|
sparclite*-*-coff) targ_emul=coff_sparc ;;
|
|
|
|
sparclite*-fujitsu-*) targ_emul=sparcaout ;;
|
|
|
|
sparc*-*-aout) targ_emul=sparcaout ;;
|
|
|
|
sparc*-*-coff) targ_emul=coff_sparc ;;
|
|
|
|
sparc*-*-elf) targ_emul=elf32_sparc ;;
|
|
|
|
sparc*-*-sysv4*) targ_emul=elf32_sparc ;;
|
2001-02-19 07:51:51 +01:00
|
|
|
sparc64-*-freebsd* | sparcv9-*-freebsd*)
|
|
|
|
targ_emul=elf64_sparc
|
|
|
|
targ_extra_emuls="elf32_sparc"
|
|
|
|
targ_extra_libpath=$targ_extra_emuls
|
|
|
|
tdir_elf32_sparc=`echo ${targ_alias} | sed -e 's/64//'`
|
|
|
|
;;
|
1999-05-03 09:29:11 +02:00
|
|
|
sparc*-*-linux*aout*) targ_emul=sparclinux
|
|
|
|
targ_extra_emuls="elf32_sparc sun4"
|
|
|
|
tdir_elf32_sparc=`echo ${targ_alias} | sed -e 's/aout//'`
|
|
|
|
tdir_sun4=sparc-sun-sunos4
|
|
|
|
;;
|
|
|
|
sparc64-*-linux-gnu*) targ_emul=elf64_sparc
|
|
|
|
targ_extra_emuls="elf32_sparc sparclinux sun4"
|
2001-02-09 16:55:14 +01:00
|
|
|
targ_extra_libpath=elf32_sparc
|
1999-05-03 09:29:11 +02:00
|
|
|
tdir_elf32_sparc=`echo ${targ_alias} | sed -e 's/64//'`
|
|
|
|
tdir_sparclinux=${tdir_elf32_sparc}aout
|
|
|
|
tdir_sun4=sparc-sun-sunos4
|
|
|
|
;;
|
|
|
|
sparc*-*-linux-gnu*) targ_emul=elf32_sparc
|
2000-02-25 20:43:12 +01:00
|
|
|
targ_extra_emuls="sparclinux elf64_sparc sun4"
|
2001-02-09 16:55:14 +01:00
|
|
|
targ_extra_libpath=elf64_sparc
|
1999-05-03 09:29:11 +02:00
|
|
|
tdir_sparclinux=${targ_alias}aout
|
2000-02-25 20:43:12 +01:00
|
|
|
tdir_elf64_sparc=`echo ${targ_alias} | sed -e 's/32//'`
|
1999-05-03 09:29:11 +02:00
|
|
|
tdir_sun4=sparc-sun-sunos4
|
|
|
|
;;
|
|
|
|
sparc*-*-lynxos*) targ_emul=sparclynx ;;
|
2000-04-21 23:52:48 +02:00
|
|
|
sparc64-*-netbsd*) targ_emul=elf64_sparc ;;
|
|
|
|
sparc*-*-netbsd*elf*) targ_emul=elf32_sparc ;;
|
1999-05-03 09:29:11 +02:00
|
|
|
sparc*-*-netbsd*) targ_emul=sparcnbsd ;;
|
2000-02-25 20:30:22 +01:00
|
|
|
sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
|
|
|
|
targ_emul=elf32_sparc ;;
|
|
|
|
sparc-*-solaris2*) targ_emul=elf32_sparc
|
|
|
|
targ_extra_emuls="elf64_sparc"
|
|
|
|
targ_extra_libpath=$targ_extra_emuls
|
|
|
|
tdir_elf64_sparc=`echo ${targ_alias} | sed -e 's/32//'`
|
|
|
|
;;
|
|
|
|
sparcv9-*-solaris2* | sparc64-*-solaris2*)
|
|
|
|
targ_emul=elf64_sparc
|
|
|
|
targ_extra_emuls="elf32_sparc"
|
|
|
|
targ_extra_libpath=$targ_extra_emuls
|
|
|
|
tdir_elf32_sparc=`echo ${targ_alias} | sed -e 's/64//'`
|
|
|
|
;;
|
1999-05-03 09:29:11 +02:00
|
|
|
sparc*-*-solaris2*) targ_emul=elf32_sparc ;;
|
|
|
|
sparc*-wrs-vxworks*) targ_emul=sparcaout ;;
|
2000-12-01 19:28:58 +01:00
|
|
|
sparc*-*-rtemsaout*) targ_emul=sparcaout ;;
|
|
|
|
sparc*-*-rtemself*) targ_emul=elf32_sparc ;;
|
|
|
|
sparc*-*-rtems*) targ_emul=elf32_sparc ;;
|
2000-08-10 22:40:39 +02:00
|
|
|
i860-stardent-sysv4* | i860-stardent-elf*)
|
|
|
|
targ_emul=elf32_i860 ;;
|
1999-05-03 09:29:11 +02:00
|
|
|
i960-wrs-vxworks5.0*) targ_emul=gld960 ;;
|
|
|
|
i960-wrs-vxworks5*) targ_emul=gld960coff ;;
|
|
|
|
i960-wrs-vxworks*) targ_emul=gld960 ;;
|
|
|
|
i960-*-coff) targ_emul=gld960coff ;;
|
|
|
|
i960-intel-nindy) targ_emul=gld960 ;;
|
|
|
|
i960-*-rtems*) targ_emul=gld960coff ;;
|
1999-05-27 23:49:21 +02:00
|
|
|
i960-*-elf*) targ_emul=elf32_i960 ;;
|
2000-04-21 22:22:24 +02:00
|
|
|
ia64-*-elf*) targ_emul=elf64_ia64 ;;
|
2001-02-19 07:51:51 +01:00
|
|
|
ia64-*-freebsd*) targ_emul=elf64_ia64 ;;
|
2000-04-21 22:22:24 +02:00
|
|
|
ia64-*-linux*) targ_emul=elf64_ia64 ;;
|
2001-02-22 18:24:33 +01:00
|
|
|
ia64-*-aix*) targ_emul=elf64_aix ;;
|
1999-05-03 09:29:11 +02:00
|
|
|
m32r-*-*) targ_emul=m32relf ;;
|
2000-06-19 03:22:44 +02:00
|
|
|
m68hc11-*-*|m6811-*-*) targ_emul=m68hc11elf
|
|
|
|
targ_extra_emuls="m68hc11elfb m68hc12elf m68hc12elfb" ;;
|
|
|
|
m68hc12-*-*|m6812-*-*) targ_emul=m68hc12elf
|
|
|
|
targ_extra_emuls="m68hc12elfb m68hc11elf m68hc11elfb" ;;
|
1999-05-03 09:29:11 +02:00
|
|
|
m68*-sun-sunos[34]*) targ_emul=sun3 ;;
|
|
|
|
m68*-wrs-vxworks*) targ_emul=sun3 ;;
|
|
|
|
m68*-ericsson-ose) targ_emul=sun3 ;;
|
|
|
|
m68*-apple-aux*) targ_emul=m68kaux ;;
|
|
|
|
*-tandem-none) targ_emul=st2000 ;;
|
2000-02-23 14:52:23 +01:00
|
|
|
i370-*-elf* | i370-*-linux-gnu*) targ_emul=elf32i370 ;;
|
1999-05-03 09:29:11 +02:00
|
|
|
i[3456]86-*-vsta) targ_emul=vsta ;;
|
|
|
|
i[3456]86-go32-rtems*) targ_emul=i386go32 ;;
|
|
|
|
i[3456]86-*-go32) targ_emul=i386go32 ;;
|
|
|
|
i[3456]86-*-msdosdjgpp*) targ_emul=i386go32 ;;
|
|
|
|
i[3456]86-*-aix*) targ_emul=i386coff ;;
|
|
|
|
i[3456]86-*-sco*) targ_emul=i386coff ;;
|
|
|
|
i[3456]86-*-isc*) targ_emul=i386coff ;;
|
|
|
|
i[3456]86-*-lynxos*) targ_emul=i386lynx ;;
|
|
|
|
i[3456]86-*-coff) targ_emul=i386coff ;;
|
2001-08-29 20:47:28 +02:00
|
|
|
i[3456]86-*-rtemscoff*) targ_emul=i386coff ;;
|
1999-05-13 11:49:48 +02:00
|
|
|
i[3456]86-*-rtemself*) targ_emul=elf_i386 ;;
|
2001-08-29 20:47:28 +02:00
|
|
|
i[3456]86-*-rtems*) targ_emul=elf_i386 ;;
|
1999-05-03 09:29:11 +02:00
|
|
|
i[3456]86-*-bsd) targ_emul=i386bsd ;;
|
|
|
|
i[3456]86-*-bsd386) targ_emul=i386bsd ;;
|
|
|
|
i[3456]86-*-bsdi*) targ_emul=i386bsd ;;
|
|
|
|
i[3456]86-*-aout) targ_emul=i386aout ;;
|
|
|
|
i[3456]86-*-linux*aout*) targ_emul=i386linux
|
|
|
|
targ_extra_emuls=elf_i386
|
|
|
|
tdir_elf_i386=`echo ${targ_alias} | sed -e 's/aout//'`
|
|
|
|
;;
|
2001-05-25 09:21:01 +02:00
|
|
|
i[3456]86-*-linux*oldld) targ_emul=i386linux; targ_extra_emuls=elf_i386 ;;
|
1999-05-03 09:29:11 +02:00
|
|
|
i[3456]86-*-linux-gnu*) targ_emul=elf_i386
|
|
|
|
targ_extra_emuls=i386linux
|
|
|
|
tdir_i386linux=${targ_alias}aout
|
|
|
|
;;
|
2000-11-30 20:30:33 +01:00
|
|
|
x86_64-*-linux-gnu*) targ_emul=elf_x86_64
|
|
|
|
targ_extra_emuls="elf_i386 i386linux"
|
|
|
|
tdir_i386linux=${targ_alias}aout
|
|
|
|
;;
|
2000-08-03 03:01:05 +02:00
|
|
|
i[3456]86-*-sysv[45]*) targ_emul=elf_i386 ;;
|
2001-05-22 16:00:18 +02:00
|
|
|
i[3456]86-*-solaris2*) targ_emul=elf_i386_ldso
|
|
|
|
targ_extra_emuls="elf_i386"
|
|
|
|
;;
|
1999-05-03 09:29:11 +02:00
|
|
|
i[3456]86-*-unixware) targ_emul=elf_i386 ;;
|
2001-05-22 16:00:18 +02:00
|
|
|
i[3456]86-*-solaris*) targ_emul=elf_i386_ldso
|
|
|
|
targ_extra_emuls="elf_i386"
|
|
|
|
;;
|
2001-07-14 16:45:42 +02:00
|
|
|
i[3456]86-*-netbsdelf*) targ_emul=elf_i386
|
|
|
|
targ_extra_emuls=i386nbsd
|
|
|
|
;;
|
|
|
|
i[3456]86-*-netbsd*) targ_emul=i386nbsd
|
|
|
|
targ_extra_emuls=elf_i386
|
|
|
|
;;
|
1999-05-03 09:29:11 +02:00
|
|
|
i[3456]86-*-netware) targ_emul=i386nw ;;
|
|
|
|
i[3456]86-*-elf*) targ_emul=elf_i386 ;;
|
1999-06-12 15:18:26 +02:00
|
|
|
i[3456]86-*-freebsdaout* | i[3456]86-*-freebsd[12].* | i[3456]86-*-freebsd[12])
|
|
|
|
targ_emul=i386bsd ;;
|
|
|
|
i[3456]86-*-freebsd*) targ_emul=elf_i386 ;;
|
2001-02-19 07:51:51 +01:00
|
|
|
x86_64-*-freebsd*) targ_emul=elf_x86_64
|
|
|
|
targ_extra_emuls=elf_i386
|
|
|
|
tdir_elf_i386=`echo ${targ_alias} | sed -e 's/x86_64/i386/'`
|
|
|
|
;;
|
1999-05-03 09:29:11 +02:00
|
|
|
i[3456]86-*-sysv*) targ_emul=i386coff ;;
|
|
|
|
i[3456]86-*-ptx*) targ_emul=i386coff ;;
|
|
|
|
i[3456]86-*-mach*) targ_emul=i386mach ;;
|
|
|
|
i[3456]86-*-gnu*) targ_emul=elf_i386 ;;
|
|
|
|
i[3456]86-*-msdos*) targ_emul=i386msdos; targ_extra_emuls=i386aout ;;
|
|
|
|
i[3456]86-*-moss*) targ_emul=i386moss; targ_extra_emuls=i386msdos ;;
|
|
|
|
i[3456]86-*-winnt*) targ_emul=i386pe ;
|
|
|
|
targ_extra_ofiles="deffilep.o pe-dll.o" ;;
|
|
|
|
i[3456]86-*-pe) targ_emul=i386pe ;
|
|
|
|
targ_extra_ofiles="deffilep.o pe-dll.o" ;;
|
|
|
|
i[3456]86-*-cygwin*) targ_emul=i386pe ;
|
|
|
|
targ_extra_ofiles="deffilep.o pe-dll.o" ;;
|
|
|
|
i[3456]86-*-mingw32*) targ_emul=i386pe ;
|
|
|
|
targ_extra_ofiles="deffilep.o pe-dll.o" ;;
|
1999-08-05 18:03:56 +02:00
|
|
|
i[3456]86-*-interix*) targ_emul=i386pe_posix;
|
|
|
|
targ_extra_ofiles="deffilep.o pe-dll.o" ;;
|
1999-05-03 09:29:11 +02:00
|
|
|
i[3456]86-*-beospe*) targ_emul=i386beos ;;
|
|
|
|
i[3456]86-*-beos*) targ_emul=elf_i386_be ;;
|
1999-07-22 02:49:09 +02:00
|
|
|
i[3456]86-*-vxworks*) targ_emul=i386aout ;;
|
2000-11-03 00:03:24 +01:00
|
|
|
i[3456]86-*-chaos) targ_emul=elf_i386_chaos ;;
|
1999-05-03 09:29:11 +02:00
|
|
|
m8*-*-*) targ_emul=m88kbcs ;;
|
|
|
|
a29k-*-udi) targ_emul=sa29200 ;;
|
|
|
|
a29k-*-ebmon) targ_emul=ebmon29k ;;
|
|
|
|
a29k-*-*) targ_emul=a29k ;;
|
|
|
|
# arm-*-riscix*) targ_emul=riscix ;;
|
|
|
|
arm-*-aout | armel-*-aout) targ_emul=armaoutl ;;
|
|
|
|
armeb-*-aout) targ_emul=armaoutb ;;
|
|
|
|
arm-*-coff) targ_emul=armcoff ;;
|
2001-04-27 19:12:18 +02:00
|
|
|
arm-*-vxworks) targ_emul=armcoff ;;
|
2001-02-19 07:51:51 +01:00
|
|
|
arm-*-freebsd*) targ_emul=armelf ;;
|
1999-08-24 17:17:23 +02:00
|
|
|
arm-*-netbsd*) targ_emul=armnbsd ;;
|
2001-09-14 13:46:40 +02:00
|
|
|
arm-*-openbsd*) targ_emul=armnbsd ;;
|
2000-12-01 19:28:58 +01:00
|
|
|
arm-*-rtems*) targ_emul=armelf ;;
|
1999-05-03 09:29:11 +02:00
|
|
|
arm-*-elf) targ_emul=armelf ;;
|
2001-10-08 20:54:13 +02:00
|
|
|
arm9e-*-elf) targ_emul=armelf ;;
|
1999-07-22 14:51:45 +02:00
|
|
|
arm-*-oabi) targ_emul=armelf_oabi ;;
|
2001-02-15 18:18:35 +01:00
|
|
|
arm*-*-linux-gnu*) targ_emul=armelf_linux; targ_extra_emuls=armelf ;;
|
1999-07-22 14:51:45 +02:00
|
|
|
arm*-*-uclinux*) targ_emul=armelf_linux; targ_extra_emuls=armelf ;;
|
2000-01-10 20:48:27 +01:00
|
|
|
arm*-*-conix*) targ_emul=armelf ;;
|
1999-07-22 14:51:45 +02:00
|
|
|
thumb-*-linux-gnu* | thumb-*-uclinux*) targ_emul=armelf_linux; targ_extra_emuls=armelf ;;
|
1999-05-03 09:29:11 +02:00
|
|
|
strongarm-*-coff) targ_emul=armcoff ;;
|
|
|
|
strongarm-*-elf) targ_emul=armelf ;;
|
|
|
|
thumb-*-coff) targ_emul=armcoff ;;
|
|
|
|
thumb-*-elf) targ_emul=armelf ;;
|
|
|
|
thumb-*-oabi) targ_emul=armelf_oabi ;;
|
|
|
|
thumb-epoc-pe) targ_emul=arm_epoc_pe ;
|
|
|
|
targ_extra_ofiles="deffilep.o pe-dll.o" ;;
|
|
|
|
thumb-*-pe) targ_emul=armpe ;
|
|
|
|
targ_extra_ofiles="deffilep.o pe-dll.o" ;;
|
2000-11-25 01:21:40 +01:00
|
|
|
xscale-*-coff) targ_emul=armcoff ;;
|
|
|
|
xscale-*-elf) targ_emul=armelf ;;
|
2000-12-01 19:28:58 +01:00
|
|
|
h8300-*-hms* | h8300-*-coff* | h8300-*-rtems*)
|
1999-05-03 09:29:11 +02:00
|
|
|
targ_emul=h8300; targ_extra_emuls="h8300h h8300s"
|
|
|
|
;;
|
2001-08-29 14:51:26 +02:00
|
|
|
h8300-*-elf*)
|
|
|
|
targ_emul=h8300elf;
|
|
|
|
targ_extra_emuls="h8300helf h8300self"
|
|
|
|
;;
|
1999-05-03 09:29:11 +02:00
|
|
|
h8500-*-hms* | h8500-*-coff*)
|
|
|
|
targ_emul=h8500
|
|
|
|
targ_extra_emuls="h8500s h8500b h8500m h8500c"
|
|
|
|
;;
|
2000-09-07 06:32:05 +02:00
|
|
|
sh-*-linux*)
|
2001-11-02 17:58:18 +01:00
|
|
|
targ_emul=shlelf_linux
|
|
|
|
targ_extra_emuls=shelf_linux
|
2001-10-31 10:50:09 +01:00
|
|
|
targ_extra_libpath=shelf_linux
|
|
|
|
;;
|
|
|
|
sh*eb-*-linux*)
|
|
|
|
targ_emul=shelf_linux
|
|
|
|
;;
|
|
|
|
sh*-*-linux*)
|
|
|
|
targ_emul=shlelf_linux
|
2000-09-07 06:32:05 +02:00
|
|
|
;;
|
1999-05-13 11:49:48 +02:00
|
|
|
sh-*-elf* | sh-*-rtemself*)
|
|
|
|
targ_emul=shelf
|
1999-05-03 09:29:11 +02:00
|
|
|
targ_extra_emuls="shlelf sh shl"
|
|
|
|
;;
|
2000-02-24 18:53:12 +01:00
|
|
|
sh-*-pe) targ_emul=shpe ;
|
|
|
|
targ_extra_ofiles="deffilep.o pe-dll.o" ;;
|
1999-05-03 09:29:11 +02:00
|
|
|
sh-*-*|sh-*-rtems*) targ_emul=sh; targ_extra_emuls=shl ;;
|
|
|
|
m68k-sony-*) targ_emul=news ;;
|
|
|
|
m68k-hp-bsd*) targ_emul=hp300bsd ;;
|
|
|
|
m68*-motorola-sysv*) targ_emul=delta68 ;;
|
|
|
|
m68*-*-aout) targ_emul=m68kaout ;;
|
|
|
|
m68*-*-coff) targ_emul=m68kcoff ;;
|
|
|
|
m68*-*-elf) targ_emul=m68kelf ;;
|
|
|
|
m68*-*-hpux*) targ_emul=hp3hpux ;;
|
|
|
|
m68k-*-linux*aout*) targ_emul=m68klinux
|
|
|
|
targ_extra_emuls=m68kelf
|
|
|
|
tdir_m68kelf=`echo ${targ_alias} | sed -e 's/aout//'`
|
|
|
|
;;
|
|
|
|
m68k-*-linux-gnu*) targ_emul=m68kelf
|
|
|
|
targ_extra_emuls=m68klinux
|
|
|
|
tdir_m68klinux=`echo ${targ_alias} | sed -e 's/linux/linuxaout/'`
|
|
|
|
;;
|
|
|
|
m68*-*-gnu*) targ_emul=m68kelf ;;
|
|
|
|
m68*-*-lynxos*) targ_emul=m68klynx ;;
|
2001-12-18 14:26:26 +01:00
|
|
|
m68*-*-netbsd*4k*) targ_emul=m68k4knbsd
|
|
|
|
targ_extra_emuls="m68knbsd m68kelfnbsd" ;;
|
|
|
|
m68*-*-netbsdelf*) targ_emul=m68kelfnbsd
|
|
|
|
targ_extra_emuls="m68knbsd m68k4knbsd" ;;
|
|
|
|
m68*-*-netbsdaout* | m68*-*-netbsd*)
|
|
|
|
targ_emul=m68knbsd
|
|
|
|
targ_extra_emuls="m68kelfnbsd m68k4knbsd" ;;
|
1999-05-03 09:29:11 +02:00
|
|
|
m68*-*-psos*) targ_emul=m68kpsos ;;
|
2001-08-29 20:47:28 +02:00
|
|
|
m68*-*-rtemscoff*) targ_emul=m68kcoff ;;
|
|
|
|
m68*-*-rtems*) targ_emul=m68kelf ;;
|
2001-06-27 10:42:29 +02:00
|
|
|
hppa*64*-*-linux-gnu*) targ_emul=hppa64linux ;;
|
2000-05-18 18:48:14 +02:00
|
|
|
hppa*64*-*) targ_emul=elf64hppa ;;
|
2000-07-09 10:45:29 +02:00
|
|
|
hppa*-*-linux-gnu*) targ_emul=hppalinux ;;
|
1999-05-03 09:29:11 +02:00
|
|
|
hppa*-*-*elf*) targ_emul=hppaelf ;;
|
|
|
|
hppa*-*-lites*) targ_emul=hppaelf ;;
|
|
|
|
hppa*-*-rtems*) targ_emul=hppaelf ;;
|
|
|
|
vax-dec-ultrix* | vax-dec-bsd*) targ_emul=vax ;;
|
2000-02-24 18:53:12 +01:00
|
|
|
mips*-*-pe) targ_emul=mipspe ;
|
|
|
|
targ_extra_ofiles="deffilep.o pe-dll.o" ;;
|
1999-05-03 09:29:11 +02:00
|
|
|
mips*-dec-ultrix*) targ_emul=mipslit ;;
|
|
|
|
mips*-dec-osf*) targ_emul=mipslit ;;
|
1999-06-30 23:00:10 +02:00
|
|
|
mips*-sgi-irix5*) targ_emul=elf32bsmip ;;
|
|
|
|
mips*-sgi-irix6*) targ_emul=elf32bmipn32
|
1999-07-08 02:22:51 +02:00
|
|
|
targ_extra_emuls="elf32bsmip elf64bmip"
|
1999-06-30 23:00:10 +02:00
|
|
|
;;
|
1999-05-03 09:29:11 +02:00
|
|
|
mips*-sgi-irix*) targ_emul=mipsbig ;;
|
|
|
|
mips*el-*-ecoff*) targ_emul=mipsidtl ;;
|
|
|
|
mips*-*-ecoff*) targ_emul=mipsidt ;;
|
|
|
|
mips*-dec-bsd*) targ_emul=mipsbsd ;;
|
2001-11-04 20:06:38 +01:00
|
|
|
mips*-dec-netbsd* | mips*el-*-netbsd*)
|
|
|
|
targ_emul=elf32lmip
|
|
|
|
targ_extra_emuls="elf32bmip"
|
|
|
|
;;
|
|
|
|
mips*-*-netbsd*) targ_emul=elf32bmip
|
|
|
|
targ_extra_emuls="elf32lmip"
|
|
|
|
;;
|
1999-05-03 09:29:11 +02:00
|
|
|
mips*-*-bsd*) targ_emul=mipsbig ;;
|
|
|
|
mips*vr4300el-*-elf*) targ_emul=elf32l4300 ;;
|
|
|
|
mips*vr4300-*-elf*) targ_emul=elf32b4300 ;;
|
|
|
|
mips*vr4100el-*-elf*) targ_emul=elf32l4300 ;;
|
|
|
|
mips*vr4100-*-elf*) targ_emul=elf32b4300 ;;
|
|
|
|
mips*vr5000el-*-elf*) targ_emul=elf32l4300 ;;
|
|
|
|
mips*vr5000-*-elf*) targ_emul=elf32b4300 ;;
|
|
|
|
mips*el-*-elf*) targ_emul=elf32elmip ;;
|
|
|
|
mips*-*-elf*) targ_emul=elf32ebmip ;;
|
1999-05-13 11:49:48 +02:00
|
|
|
mips*el-*-rtems*) targ_emul=elf32elmip ;;
|
1999-05-03 09:29:11 +02:00
|
|
|
mips*-*-rtems*) targ_emul=elf32ebmip ;;
|
1999-07-22 02:49:09 +02:00
|
|
|
mips*el-*-vxworks*) targ_emul=elf32elmip ;;
|
1999-05-03 09:29:11 +02:00
|
|
|
mips*-*-vxworks*) targ_emul=elf32ebmip ;;
|
2001-04-08 07:13:57 +02:00
|
|
|
mips*el-*-linux-gnu*) targ_emul=elf32ltsmip
|
|
|
|
targ_extra_emuls="elf32btsmip elf64ltsmip elf64btsmip"
|
1999-05-03 09:29:11 +02:00
|
|
|
;;
|
2001-04-08 07:13:57 +02:00
|
|
|
mips*-*-linux-gnu*) targ_emul=elf32btsmip
|
|
|
|
targ_extra_emuls="elf32ltsmip elf64btsmip elf64ltsmip"
|
1999-05-03 09:29:11 +02:00
|
|
|
;;
|
|
|
|
mips*-*-lnews*) targ_emul=mipslnews ;;
|
2000-07-02 03:15:56 +02:00
|
|
|
mips*-*-sysv4*) targ_emul=elf32btsmip ;;
|
2001-10-30 16:20:14 +01:00
|
|
|
mmix-*-*) targ_emul=mmo
|
|
|
|
targ_extra_emuls=elf64mmix
|
|
|
|
;;
|
1999-05-03 09:29:11 +02:00
|
|
|
mn10200-*-*) targ_emul=mn10200 ;;
|
|
|
|
mn10300-*-*) targ_emul=mn10300 ;;
|
2001-02-19 07:51:51 +01:00
|
|
|
alpha*-*-freebsd*) targ_emul=elf64alpha
|
|
|
|
targ_extra_emuls=alpha
|
|
|
|
tdir_alpha=`echo ${targ_alias} | sed -e 's/freebsd/freebsdecoff/'`
|
|
|
|
;;
|
1999-05-03 09:29:11 +02:00
|
|
|
alpha*-*-linuxecoff*) targ_emul=alpha targ_extra_emuls=elf64alpha
|
|
|
|
tdir_elf64alpha=`echo ${targ_alias} | sed -e 's/ecoff//'`
|
|
|
|
;;
|
|
|
|
alpha*-*-linux-gnu*) targ_emul=elf64alpha targ_extra_emuls=alpha
|
|
|
|
tdir_alpha=`echo ${targ_alias} | sed -e 's/linux/linuxecoff/'`
|
|
|
|
;;
|
|
|
|
alpha*-*-osf*) targ_emul=alpha ;;
|
|
|
|
alpha*-*-gnu*) targ_emul=elf64alpha ;;
|
|
|
|
alpha*-*-netware*) targ_emul=alpha ;;
|
2001-12-18 00:54:58 +01:00
|
|
|
alpha*-*-netbsd*) targ_emul=elf64alpha_nbsd ;;
|
1999-05-03 09:29:11 +02:00
|
|
|
z8k-*-coff) targ_emul=z8002; targ_extra_emuls=z8001 ;;
|
|
|
|
ns32k-pc532-mach* | ns32k-pc532-ux*) targ_emul=pc532macha ;;
|
|
|
|
ns32k-pc532-netbsd* | ns32k-pc532-lites*) targ_emul=ns32knbsd ;;
|
2001-05-02 20:14:31 +02:00
|
|
|
openrisc-*-*) targ_emul=elf32openrisc ;;
|
2001-08-27 12:45:55 +02:00
|
|
|
pdp11-*-*) targ_emul=pdp11 ;;
|
|
|
|
pjl*-*-*) targ_emul=pjlelf ; targ_extra_emuls="elf_i386" ;;
|
|
|
|
pj*-*-*) targ_emul=pjelf ;;
|
2001-02-19 07:51:51 +01:00
|
|
|
powerpc-*-freebsd*) targ_emul=elf32ppc;
|
|
|
|
targ_extra_emuls=elf32ppcsim;
|
|
|
|
targ_extra_libpath=elf32ppc;
|
|
|
|
tdir_elf32ppcsim=`echo ${targ_alias} | sed -e 's/ppc/ppcsim/'`
|
|
|
|
;;
|
2001-08-27 12:45:55 +02:00
|
|
|
powerpc*-*-linux*)
|
|
|
|
case "${targ}" in
|
|
|
|
*64*) targ_emul=elf64ppc
|
|
|
|
targ_extra_emuls="elf32ppclinux elf32ppc elf32ppcsim" ;;
|
|
|
|
*) targ_emul=elf32ppclinux
|
|
|
|
targ_extra_emuls="elf32ppc elf32ppcsim"
|
|
|
|
targ_extra_libpath=elf32ppc ;;
|
|
|
|
esac ;;
|
|
|
|
powerpc*le-*-elf* | powerpc*le-*-eabi* | powerpc*le-*-solaris* \
|
|
|
|
| powerpc*le-*-sysv* | powerpc*le-*-vxworks*)
|
|
|
|
case "${targ}" in
|
|
|
|
*64*) targ_emul=elf64lppc
|
|
|
|
targ_extra_emuls="elf32lppc elf32ppcsim" ;;
|
|
|
|
*) targ_emul=elf32lppc
|
|
|
|
targ_extra_emuls="elf32ppcsim" ;;
|
|
|
|
esac ;;
|
|
|
|
powerpc*-*-elf* | powerpc*-*-eabi* | powerpc*-*-sysv* \
|
|
|
|
| powerpc*-*-netbsd* | powerpc*-*-vxworks*)
|
|
|
|
case "${targ}" in
|
|
|
|
*64*) targ_emul=elf64ppc
|
|
|
|
targ_extra_emuls="elf32ppc elf32ppclinux elf32ppcsim" ;;
|
|
|
|
*) targ_emul=elf32ppc
|
|
|
|
targ_extra_emuls="elf32ppclinux elf32ppcsim" ;;
|
|
|
|
esac ;;
|
1999-05-13 11:49:48 +02:00
|
|
|
powerpcle-*-rtems*) targ_emul=elf32leppc ;;
|
1999-05-03 09:29:11 +02:00
|
|
|
powerpc-*-rtems*) targ_emul=elf32ppc ;;
|
|
|
|
powerpc-*-macos*) targ_emul=ppcmacos ;;
|
|
|
|
powerpc-*-netware*) targ_emul=ppcnw ;;
|
|
|
|
powerpcle-*-pe) targ_emul=ppcpe ;;
|
|
|
|
powerpcle-*-winnt*) targ_emul=ppcpe ;;
|
2001-05-24 22:59:23 +02:00
|
|
|
powerpcle-*-cygwin*) targ_emul=ppcpe ;;
|
2001-12-04 00:15:28 +01:00
|
|
|
powerpc-*-aix*) targ_emul=aixppc ;;
|
1999-05-03 09:29:11 +02:00
|
|
|
powerpc-*-beos*) targ_emul=aixppc ;;
|
|
|
|
rs6000-*-aix*) targ_emul=aixrs6 ;;
|
|
|
|
tic30-*-*aout*) targ_emul=tic30aout ;;
|
|
|
|
tic30-*-*coff*) targ_emul=tic30coff ;;
|
2000-06-20 15:29:07 +02:00
|
|
|
tic54x-*-* | c54x*-*-*) targ_emul=tic54xcoff ;;
|
1999-05-03 09:29:11 +02:00
|
|
|
tic80-*-*) targ_emul=tic80coff ;;
|
|
|
|
v850-*-*) targ_emul=v850 ;;
|
|
|
|
v850e-*-*) targ_emul=v850 ;;
|
|
|
|
v850ea-*-*) targ_emul=v850 ;;
|
|
|
|
w65-*-*) targ_emul=w65 ;;
|
2001-12-08 04:46:03 +01:00
|
|
|
xstormy16-*-*) targ_emul=elf32xstormy16 ;;
|
1999-05-03 09:29:11 +02:00
|
|
|
fr30-*-*) targ_emul=elf32fr30 ;;
|
1999-05-07 09:40:05 +02:00
|
|
|
mcore-*-pe) targ_emul=mcorepe ;
|
|
|
|
targ_extra_ofiles="deffilep.o pe-dll.o" ;;
|
|
|
|
mcore-*-elf) targ_emul=elf32mcore ;;
|
2001-02-10 01:58:38 +01:00
|
|
|
s390x-*-linux*) targ_emul=elf64_s390 ;;
|
|
|
|
s390-*-linux*) targ_emul=elf_s390 ;;
|
1999-05-03 09:29:11 +02:00
|
|
|
*-*-ieee*) targ_emul=vanilla ;;
|
|
|
|
|
|
|
|
*)
|
|
|
|
echo 2>&1 "*** ld does not support target ${targ}"
|
|
|
|
echo 2>&1 "*** see ld/configure.tgt for supported targets"
|
|
|
|
exit 1
|
|
|
|
|
|
|
|
esac
|