Applied Stephane Carrez <Stephane.Carrez@worldnet.fr> patches to add support
[deliverable/binutils-gdb.git] / ld / configure.tgt
index c85d834de8a649fb45b3340835bf48089ad78f48..7fa41b5f9dc3a5585e46a3c808b6fc69a3e6b330 100644 (file)
@@ -7,6 +7,7 @@
 # following shell variables:
 #  targ_emul           name of linker emulation to use
 #  targ_extra_emuls    additional linker emulations to provide
+#  targ_extra_libpath  additional linker emulations using LIB_PATH
 #  targ_extra_ofiles   additional objects needed by the emulation
 
 targ_extra_emuls=
@@ -15,9 +16,13 @@ targ_extra_ofiles=
 case "${targ}" in
 arm-epoc-pe)           targ_emul=arm_epoc_pe ;
                        targ_extra_ofiles="deffilep.o pe-dll.o" ;;
+arm-*-wince)           targ_emul=armpe ;
+                       targ_extra_ofiles="deffilep.o pe-dll.o" ;;
 arm-*-pe)              targ_emul=armpe ;
                        targ_extra_ofiles="deffilep.o pe-dll.o" ;;
 arc-*-elf*)            targ_emul=arcelf ;;
+avr-*-*)               targ_emul=avr85xx
+                       targ_extra_emuls="avr1200 avr23xx avr44x4 avr4433 avrmega603 avrmega103 avrmega161" ;;
 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" ;;
@@ -44,12 +49,28 @@ sparc64-*-linux-gnu*)       targ_emul=elf64_sparc
                        tdir_sun4=sparc-sun-sunos4
                        ;;
 sparc*-*-linux-gnu*)   targ_emul=elf32_sparc
-                       targ_extra_emuls="sparclinux sun4"
+                       targ_extra_emuls="sparclinux elf64_sparc sun4"
                        tdir_sparclinux=${targ_alias}aout
+                       tdir_elf64_sparc=`echo ${targ_alias} | sed -e 's/32//'`
                        tdir_sun4=sparc-sun-sunos4
                        ;;
 sparc*-*-lynxos*)      targ_emul=sparclynx ;;
+sparc64-*-netbsd*)     targ_emul=elf64_sparc ;;
+sparc*-*-netbsd*elf*)  targ_emul=elf32_sparc ;;
 sparc*-*-netbsd*)      targ_emul=sparcnbsd ;;
+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//'`
+                       ;;
 sparc*-*-solaris2*)    targ_emul=elf32_sparc ;;
 sparc*-wrs-vxworks*)   targ_emul=sparcaout ;;
 sparc*-*-rtems*)       targ_emul=sparcaout ;;
@@ -60,12 +81,20 @@ i960-*-coff)                targ_emul=gld960coff ;;
 i960-intel-nindy)      targ_emul=gld960 ;;
 i960-*-rtems*)         targ_emul=gld960coff ;;
 i960-*-elf*)           targ_emul=elf32_i960 ;;
+ia64-*-elf*)           targ_emul=elf64_ia64 ;;
+ia64-*-linux*)         targ_emul=elf64_ia64 ;;
 m32r-*-*)              targ_emul=m32relf ;;
+m68hc11-*-*|m6811-*-*) targ_emul=m68hc11elf 
+                       targ_extra_emuls="m68hc11elfb m68hc12elf m68hc12elfb" ;;
+m68hc12-*-*|m6812-*-*) targ_emul=m68hc12elf 
+                       targ_extra_emuls="m68hc12elfb m68hc11elf m68hc11elfb" ;;
 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 ;;
+i370-*-elf* | i370-*-linux-gnu*) targ_emul=elf32i370 ;;
+i370-*-mvs*)           targ_emul=mvs ;;
 i[3456]86-*-vsta)      targ_emul=vsta ;;
 i[3456]86-go32-rtems*) targ_emul=i386go32 ;;
 i[3456]86-*-go32)      targ_emul=i386go32 ;;
@@ -97,8 +126,9 @@ i[3456]86-*-solaris*)        targ_emul=elf_i386 ;;
 i[3456]86-*-netbsd*)   targ_emul=i386nbsd ;;
 i[3456]86-*-netware)   targ_emul=i386nw ;;
 i[3456]86-*-elf*)      targ_emul=elf_i386 ;;
-i[3456]86-*-freebsdelf*) targ_emul=elf_i386 ;;
-i[3456]86-*-freebsd*)  targ_emul=i386bsd ;;
+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 ;;
 i[3456]86-*-sysv*)     targ_emul=i386coff ;;
 i[3456]86-*-ptx*)      targ_emul=i386coff ;;
 i[3456]86-*-mach*)     targ_emul=i386mach ;;
@@ -113,8 +143,11 @@ 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" ;;
+i[3456]86-*-interix*)  targ_emul=i386pe_posix;
+                       targ_extra_ofiles="deffilep.o pe-dll.o" ;;
 i[3456]86-*-beospe*)    targ_emul=i386beos ;;
 i[3456]86-*-beos*)     targ_emul=elf_i386_be ;;
+i[3456]86-*-vxworks*)  targ_emul=i386aout ;;
 m8*-*-*)               targ_emul=m88kbcs ;;
 a29k-*-udi)            targ_emul=sa29200 ;;
 a29k-*-ebmon)          targ_emul=ebmon29k ;;
@@ -123,9 +156,13 @@ a29k-*-*)          targ_emul=a29k ;;
 arm-*-aout | armel-*-aout) targ_emul=armaoutl ;;
 armeb-*-aout)          targ_emul=armaoutb ;;
 arm-*-coff)            targ_emul=armcoff ;;
+arm-*-netbsd*)         targ_emul=armnbsd ;;
 arm-*-elf)             targ_emul=armelf ;;
-arm-*-oabi)             targ_emul=armelf_oabi ;;
-arm*-*-linux-gnu*)     targ_emul=armelf_linux; targ_extra_emuls="armelf_linux26 armelf";;
+arm-*-oabi)            targ_emul=armelf_oabi ;;
+arm*-*-linux-gnu*)     targ_emul=armelf_linux; targ_extra_emuls="armelf_linux26 armelf" ;;
+arm*-*-uclinux*)       targ_emul=armelf_linux; targ_extra_emuls=armelf ;;
+arm*-*-conix*)         targ_emul=armelf ;;
+thumb-*-linux-gnu* | thumb-*-uclinux*) targ_emul=armelf_linux; targ_extra_emuls=armelf ;;
 strongarm-*-coff)      targ_emul=armcoff ;;
 strongarm-*-elf)       targ_emul=armelf ;;
 thumb-*-coff)          targ_emul=armcoff ;;
@@ -146,6 +183,8 @@ sh-*-elf* | sh-*-rtemself*)
                        targ_emul=shelf
                        targ_extra_emuls="shlelf sh shl"
                        ;;
+sh-*-pe)               targ_emul=shpe ;
+                       targ_extra_ofiles="deffilep.o pe-dll.o" ;;
 sh-*-*|sh-*-rtems*)    targ_emul=sh; targ_extra_emuls=shl ;;
 m68k-sony-*)           targ_emul=news ;;
 m68k-hp-bsd*)          targ_emul=hp300bsd ;;
@@ -168,13 +207,20 @@ m68*-hp*-netbsd*) targ_emul=m68k4knbsd ;;
 m68*-*-netbsd*)                targ_emul=m68knbsd ;;
 m68*-*-psos*)          targ_emul=m68kpsos ;;
 m68*-*-rtems*)         targ_emul=m68kcoff ;;
+hppa*64*-*)            targ_emul=elf64hppa ;;
 hppa*-*-*elf*)         targ_emul=hppaelf ;;
+hppa*-*-linux-gnu*)    targ_emul=hppaelf ;;
 hppa*-*-lites*)                targ_emul=hppaelf ;;
 hppa*-*-rtems*)                targ_emul=hppaelf ;;
 vax-dec-ultrix* | vax-dec-bsd*) targ_emul=vax ;;
+mips*-*-pe)            targ_emul=mipspe ;
+                       targ_extra_ofiles="deffilep.o pe-dll.o" ;;
 mips*-dec-ultrix*)     targ_emul=mipslit ;;
 mips*-dec-osf*)                targ_emul=mipslit ;;
-mips*-sgi-irix[56]*)   targ_emul=elf32bsmip ;;
+mips*-sgi-irix5*)      targ_emul=elf32bsmip ;;
+mips*-sgi-irix6*)      targ_emul=elf32bmipn32
+                       targ_extra_emuls="elf32bsmip elf64bmip"
+                       ;;
 mips*-sgi-irix*)       targ_emul=mipsbig ;;
 mips*el-*-ecoff*)      targ_emul=mipsidtl ;;
 mips*-*-ecoff*)                targ_emul=mipsidt ;;
@@ -191,6 +237,7 @@ mips*el-*-elf*)             targ_emul=elf32elmip ;;
 mips*-*-elf*)          targ_emul=elf32ebmip ;;
 mips*el-*-rtems*)      targ_emul=elf32elmip ;;
 mips*-*-rtems*)                targ_emul=elf32ebmip ;;
+mips*el-*-vxworks*)    targ_emul=elf32elmip ;;
 mips*-*-vxworks*)      targ_emul=elf32ebmip ;;
 mips*el-*-linux-gnu*)  targ_emul=elf32lsmip
                        targ_extra_emuls="elf32bsmip mipslit mipsbig"
@@ -214,13 +261,17 @@ alpha*-*-netbsd*) targ_emul=elf64alpha ;;
 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 ;;
-powerpc-*-linux-gnu*)  targ_emul=elf32ppclinux; targ_extra_emuls=elf32ppc;;
+powerpc-*-linux-gnu*)  targ_emul=elf32ppclinux;
+                       targ_extra_emuls="elf32ppc elf32ppcsim";
+                       targ_extra_libpath=elf32ppc ;;
+pjl*-*-*)              targ_emul=pjlelf ; targ_extra_emuls="elf_i386" ;;
+pj*-*-*)               targ_emul=pjelf ;;
 powerpc-*-elf* | powerpc-*-eabi* | powerpc-*-sysv* \
   | powerpc-*-netbsd* | powerpc-*-vxworks*)
-       targ_emul=elf32ppc ;;
+       targ_emul=elf32ppc targ_extra_emuls="elf32ppclinux elf32ppcsim";;
 powerpcle-*-elf* | powerpcle-*-eabi* | powerpcle-*-solaris* \
   | powerpcle-*-sysv* | powerpcle-*-vxworks*)
-       targ_emul=elf32lppc ;;
+       targ_emul=elf32lppc targ_extra_emuls="elf32ppcsim";;
 powerpcle-*-rtems*)    targ_emul=elf32leppc ;;
 powerpc-*-rtems*)      targ_emul=elf32ppc ;;
 powerpc-*-macos*)      targ_emul=ppcmacos ;;
@@ -242,9 +293,6 @@ fr30-*-*)           targ_emul=elf32fr30 ;;
 mcore-*-pe)            targ_emul=mcorepe ;
                        targ_extra_ofiles="deffilep.o pe-dll.o" ;;
 mcore-*-elf)           targ_emul=elf32mcore ;;
-*-*-aout)              targ_emul=${target_cpu}-${target_vendor} ;;
-*-*-coff)              targ_emul=${target_cpu}-${target_vendor} ;;
-*-*-netware)           targ_emul=${target_cpu}-nw ;;
 *-*-ieee*)             targ_emul=vanilla ;;
 
 *)
This page took 0.025122 seconds and 4 git commands to generate.