Add support for h8300hn and h8300sn
[deliverable/binutils-gdb.git] / ld / configure.tgt
index 49619080d47ca2db571ac40b09a1a6aba512db94..66f2f5e7d8bda7f6653338ccb6ebe40600b894ed 100644 (file)
@@ -9,6 +9,8 @@
 #  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
+#  NATIVE_LIB_DIRS     library directories to search on this host
+#                      (if we are a native or sysrooted linker)
 
 targ_extra_emuls=
 targ_extra_ofiles=
@@ -33,6 +35,7 @@ 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" ;;
+dlx-*-elf*)            targ_emul=elf32_dlx ;;
 sparc64-*-aout*)       targ_emul=sparcaout ;;
 sparc64-*-elf*)                targ_emul=elf64_sparc ;;
 sparc-sun-sunos4*)     targ_emul=sun4 ;;
@@ -69,7 +72,8 @@ sparc*-*-linux-gnu*)  targ_emul=elf32_sparc
                        tdir_sun4=sparc-sun-sunos4
                        ;;
 sparc*-*-lynxos*)      targ_emul=sparclynx ;;
-sparc64-*-netbsd*)     targ_emul=elf64_sparc
+sparc64-*-netbsd* | sparc64-*-openbsd*)
+                       targ_emul=elf64_sparc
                        targ_extra_emuls="elf32_sparc"
                        ;;
 sparc*-*-netbsd*elf*)  targ_emul=elf32_sparc ;;
@@ -118,6 +122,7 @@ 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 ;;
+i[3456]86-*-nto-qnx*)  targ_emul=i386nto ;;
 i[3456]86-*-vsta)      targ_emul=vsta ;;
 i[3456]86-go32-rtems*) targ_emul=i386go32 ;;
 i[3456]86-*-go32)      targ_emul=i386go32 ;;
@@ -130,6 +135,7 @@ i[3456]86-*-coff)   targ_emul=i386coff ;;
 i[3456]86-*-rtemscoff*) targ_emul=i386coff ;;
 i[3456]86-*-rtemself*)  targ_emul=elf_i386 ;;
 i[3456]86-*-rtems*)     targ_emul=elf_i386 ;;
+i[3456]86-*-aros*)      targ_emul=elf_i386 ;;
 i[3456]86-*-bsd)       targ_emul=i386bsd ;;
 i[3456]86-*-bsd386)    targ_emul=i386bsd ;;
 i[3456]86-*-bsdi*)     targ_emul=i386bsd ;;
@@ -141,6 +147,9 @@ i[3456]86-*-linux*aout*)    targ_emul=i386linux
 i[3456]86-*-linux*oldld)       targ_emul=i386linux; targ_extra_emuls=elf_i386 ;;
 i[3456]86-*-linux-gnu*)        targ_emul=elf_i386
                        targ_extra_emuls=i386linux
+                       if test x${want64} = xtrue; then
+                         targ_extra_emuls="$targ_extra_emuls elf_x86_64"
+                       fi
                        tdir_i386linux=${targ_alias}aout
                        ;;
 x86_64-*-linux-gnu*)   targ_emul=elf_x86_64
@@ -160,6 +169,9 @@ i[3456]86-*-solaris*)   targ_emul=elf_i386_ldso
 i[3456]86-*-netbsdelf*)        targ_emul=elf_i386
                        targ_extra_emuls=i386nbsd
                        ;;
+i[3456]86-*-netbsdpe*) targ_emul=i386pe
+                       targ_extra_ofiles="deffilep.o pe-dll.o"
+                       ;;
 i[3456]86-*-netbsd*)   targ_emul=i386nbsd
                        targ_extra_emuls=elf_i386
                        ;;
@@ -177,6 +189,7 @@ x86_64-*-netbsd*)   targ_emul=elf_x86_64
                        ;;
 i[3456]86-*-netware)   targ_emul=i386nw ;;
 i[3456]86-*-elf*)      targ_emul=elf_i386 ;;
+i[3456]86-*-kaos*)     targ_emul=elf_i386 ;;
 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_fbsd
@@ -197,7 +210,8 @@ i[3456]86-*-winnt*) targ_emul=i386pe ;
 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" ;;
+                       targ_extra_ofiles="deffilep.o pe-dll.o"
+                       test "$targ" != "$host" && LIB_PATH='${tooldir}/lib/w32api' ;;
 i[3456]86-*-mingw32*)  targ_emul=i386pe ;
                        targ_extra_ofiles="deffilep.o pe-dll.o" ;;
 i[3456]86-*-interix*)  targ_emul=i386pe_posix;
@@ -223,9 +237,11 @@ arm-*-netbsdelf*)  targ_emul=armelf_nbsd;
                        targ_extra_emuls="armelfb_nbsd armelf armnbsd" ;;
 arm-*-netbsd*)         targ_emul=armnbsd;
                        targ_extra_emuls="armelf armelf_nbsd armelfb_nbsd"  ;;
+arm-*-nto*)            targ_emul=armnto ;;
 arm-*-openbsd*)                targ_emul=armnbsd ;;
 arm-*-rtems*)          targ_emul=armelf ;;
 arm-*-elf)             targ_emul=armelf ;;
+arm-*-kaos*)           targ_emul=armelf ;;
 arm9e-*-elf)           targ_emul=armelf ;;
 arm-*-oabi)            targ_emul=armelf_oabi ;;
 arm*-*-linux-gnu*)     targ_emul=armelf_linux; targ_extra_emuls=armelf ;;
@@ -234,6 +250,7 @@ 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 ;;
+strongarm-*-kaos*)     targ_emul=armelf ;;
 thumb-*-coff)          targ_emul=armcoff ;;
 thumb-*-elf)           targ_emul=armelf ;;
 thumb-*-oabi)           targ_emul=armelf_oabi ;;
@@ -244,13 +261,13 @@ thumb-*-pe)               targ_emul=armpe ;
 xscale-*-coff)         targ_emul=armcoff ;;
 xscale-*-elf)          targ_emul=armelf ;;
 h8300-*-hms* | h8300-*-coff* | h8300-*-rtems*)
-                       targ_emul=h8300; targ_extra_emuls="h8300h h8300s"
+                       targ_emul=h8300; targ_extra_emuls="h8300h h8300s h8300hn h8300sn"
                        ;;
 h8300-*-elf*)
                        targ_emul=h8300elf;
-                       targ_extra_emuls="h8300helf h8300self"
+                       targ_extra_emuls="h8300helf h8300self h8300hnelf h8300snelf"
                        ;;
-h8500-*-hms* | h8500-*-coff*)
+h8500-*-hms* | h8500-*-coff* | h8500-*-rtems*)
                        targ_emul=h8500
                        targ_extra_emuls="h8500s h8500b h8500m h8500c"
                        ;;
@@ -259,12 +276,35 @@ sh-*-linux*)
                        targ_extra_emuls=shelf_linux
                        targ_extra_libpath=shelf_linux
                        ;;
+sh64eb-*-linux*)       targ_emul=shelf32_linux
+                       targ_extra_emuls="shlelf32_linux"
+                       ;;
+sh64-*-linux*)         targ_emul=shlelf32_linux
+                       targ_extra_emuls="shelf32_linux"
+                       targ_extra_libpath=shelf32_linux
+                       ;;
 sh*eb-*-linux*)
                        targ_emul=shelf_linux
                        ;;
 sh*-*-linux*)
                        targ_emul=shlelf_linux
                        ;;
+sh5le-*-netbsd*)
+                       targ_emul=shlelf32_nbsd
+                       targ_extra_emuls="shelf32_nbsd shelf64_nbsd shlelf64_nbsd shelf_nbsd shlelf_nbsd"
+                       ;;
+sh5-*-netbsd*)
+                       targ_emul=shelf32_nbsd
+                       targ_extra_emuls="shlelf32_nbsd shelf64_nbsd shlelf64_nbsd shelf_nbsd shlelf_nbsd"
+                       ;;
+sh64le-*-netbsd*)
+                       targ_emul=shlelf64_nbsd
+                       targ_extra_emuls="shelf64_nbsd shelf32_nbsd shlelf32_nbsd shelf_nbsd shlelf_nbsd"
+                       ;;
+sh64-*-netbsd*)
+                       targ_emul=shelf64_nbsd
+                       targ_extra_emuls="shlelf64_nbsd shelf32_nbsd shlelf32_nbsd shelf_nbsd shlelf_nbsd"
+                       ;;
 sh*le-*-netbsdelf*)
                        targ_emul=shlelf_nbsd
                        targ_extra_emuls=shelf_nbsd
@@ -273,13 +313,25 @@ sh*-*-netbsdelf*)
                        targ_emul=shelf_nbsd
                        targ_extra_emuls=shlelf_nbsd
                        ;;
-sh-*-elf* | sh-*-rtemself*)
+shle*-*-elf* | sh[1234]*le*-*-elf | shle*-*-kaos*)
+                       targ_emul=shlelf
+                       targ_extra_emuls="shelf shl sh"
+                       ;;
+sh-*-elf* | sh[1234]*-*-elf | sh-*-rtemself* | sh-*-kaos*)
                        targ_emul=shelf
                        targ_extra_emuls="shlelf sh shl"
                        ;;
+sh-*-nto*)             targ_emul=shelf_nto
+                       targ_extra_emuls=shlelf_nto
+                       ;;
 sh-*-pe)               targ_emul=shpe ;
                        targ_extra_ofiles="deffilep.o pe-dll.o" ;;
 sh-*-*|sh-*-rtems*)    targ_emul=sh; targ_extra_emuls=shl ;;
+sh64le-*-elf*)
+                       targ_emul=shlelf
+                       targ_extra_emuls="shelf shlelf32 shelf32 shlelf64 shelf64"
+                       targ_extra_libpath=$targ_extra_emuls
+                       ;;
 sh64-*-elf*)
                        targ_emul=shelf
                        targ_extra_emuls="shlelf shelf32 shlelf32 shelf64 shlelf64"
@@ -318,8 +370,14 @@ hppa*-*-linux-gnu*)        targ_emul=hppalinux ;;
 hppa*-*-*elf*)         targ_emul=hppaelf ;;
 hppa*-*-lites*)                targ_emul=hppaelf ;;
 hppa*-*-netbsd*)       targ_emul=hppanbsd ;;
+hppa*-*-openbsd*)      targ_emul=hppaobsd ;;
 hppa*-*-rtems*)                targ_emul=hppaelf ;;
 vax-dec-ultrix* | vax-dec-bsd*) targ_emul=vax ;;
+vax-*-netbsdelf*)      targ_emul=elf32vax
+                       targ_extra_emuls=vaxnbsd ;;
+vax-*-netbsdaout* | vax-*-netbsd*)
+                       targ_emul=vaxnbsd
+                       targ_extra_emuls=elf32vax ;;
 mips*-*-pe)            targ_emul=mipspe ;
                        targ_extra_ofiles="deffilep.o pe-dll.o" ;;
 mips*-dec-ultrix*)     targ_emul=mipslit ;;
@@ -351,11 +409,17 @@ mips*el-*-rtems*) targ_emul=elf32elmip ;;
 mips*-*-rtems*)                targ_emul=elf32ebmip ;;
 mips*el-*-vxworks*)    targ_emul=elf32elmip ;;
 mips*-*-vxworks*)      targ_emul=elf32ebmip ;;
+mips64*el-*-linux-gnu*)        targ_emul=elf32ltsmipn32
+                       targ_extra_emuls="elf32btsmipn32 elf32ltsmip elf32btsmip elf64ltsmip elf64btsmip"
+                       ;;
+mips64*-*-linux-gnu*)  targ_emul=elf32btsmipn32
+                       targ_extra_emuls="elf32ltsmipn32 elf32btsmip elf32ltsmip elf64btsmip elf64ltsmip"
+                       ;;
 mips*el-*-linux-gnu*)  targ_emul=elf32ltsmip
-                       targ_extra_emuls="elf32btsmip elf64ltsmip elf64btsmip"
+                       targ_extra_emuls="elf32btsmip elf32ltsmipn32 elf64ltsmip elf32btsmipn32 elf64btsmip"
                        ;;
 mips*-*-linux-gnu*)    targ_emul=elf32btsmip
-                       targ_extra_emuls="elf32ltsmip elf64btsmip elf64ltsmip"
+                       targ_extra_emuls="elf32ltsmip elf32btsmipn32 elf64btsmip elf32ltsmipn32 elf64ltsmip"
                        ;;
 mips*-*-lnews*)                targ_emul=mipslnews ;;
 mips*-*-sysv4*)         targ_emul=elf32btsmip ;;
@@ -364,6 +428,8 @@ mmix-*-*)           targ_emul=mmo
                        ;;
 mn10200-*-*)           targ_emul=mn10200 ;;
 mn10300-*-*)           targ_emul=mn10300 ;;
+msp430-*-*)             targ_emul=msp430x149
+                        targ_extra_emuls="msp430x148 msp430x147 msp430x133 msp430x135 msp430x110 msp430x112 msp430x122 msp430x123 msp430x412 msp430x413 msp430x311 msp430x312 msp430x313 msp430x314 msp430x315 msp430x323 msp430x325 msp430x336 msp430x337 msp430x1101 msp430x1111 msp430x1121 msp430x1331 msp430x1351 msp430x435 msp430x436 msp430x437 msp430x447 msp430x448 msp430x449 msp430x1222 msp430x1232 msp430x169 msp430x168 msp430x167 msp430x155  msp430x156 msp430x157 msp430x1122 msp430x1132" ;;
 alpha*-*-freebsd*)     targ_emul=elf64alpha_fbsd
                        targ_extra_emuls="elf64alpha alpha"
                        tdir_alpha=`echo ${targ_alias} | sed -e 's/freebsd/freebsdecoff/'`
@@ -378,9 +444,10 @@ alpha*-*-osf*)             targ_emul=alpha ;;
 alpha*-*-gnu*)         targ_emul=elf64alpha ;;
 alpha*-*-netware*)     targ_emul=alpha ;;
 alpha*-*-netbsd*)      targ_emul=elf64alpha_nbsd ;;
+alpha*-*-openbsd*)     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 ;;
+ns32k-*-netbsd* | ns32k-pc532-lites*) targ_emul=ns32knbsd ;;
 openrisc-*-*)          targ_emul=elf32openrisc ;;
 or32-*-coff)           targ_emul=or32 ;;
 or32-*-elf)            targ_emul=or32elf ;;
@@ -396,27 +463,43 @@ powerpc-*-freebsd*)       targ_emul=elf32ppc_fbsd;
 powerpc*-*-linux*)
        case "${targ}" in
        *64*)   targ_emul=elf64ppc
-               targ_extra_emuls="elf32ppclinux elf32ppc elf32ppcsim" ;;
+               targ_extra_emuls="elf32ppclinux elf32ppc elf32ppcsim"
+               targ_extra_libpath="elf32ppclinux elf32ppc"
+               tdir_elf32ppc=`echo "${targ_alias}" | sed -e 's/64//'`
+               tdir_elf32ppclinux=$tdir_elf32ppc
+               tdir_elf32ppcsim=$tdir_elf32ppc ;;
        *)      targ_emul=elf32ppclinux
                targ_extra_emuls="elf32ppc elf32ppcsim"
-               targ_extra_libpath=elf32ppc ;;
+               targ_extra_libpath=elf32ppc
+               if test "${want64}" = "true"; then
+                 targ_extra_emuls="$targ_extra_emuls elf64ppc"
+                 targ_extra_libpath="$targ_extra_libpath elf64ppc"
+               fi
+               ;;
        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_extra_emuls="elf32lppc elf32lppcsim"
+               tdir_elf32lppc=`echo "${targ_alias}" | sed -e 's/64//'`
+               tdir_elf32lppcsim=$tdir_elf32lppc ;;
        *)      targ_emul=elf32lppc
                targ_extra_emuls="elf32ppcsim" ;;
        esac ;;
 powerpc*-*-elf* | powerpc*-*-eabi* | powerpc*-*-sysv* \
-  | powerpc*-*-netbsd* | powerpc*-*-vxworks*)
+  | powerpc*-*-netbsd* | powerpc-*-openbsd* | powerpc*-*-vxworks* | powerpc*-*-kaos*)
        case "${targ}" in
        *64*)   targ_emul=elf64ppc
-               targ_extra_emuls="elf32ppc elf32ppclinux elf32ppcsim" ;;
+               targ_extra_emuls="elf32ppc elf32ppclinux elf32ppcsim"
+               tdir_elf32ppc=`echo "${targ_alias}" | sed -e 's/64//'`
+               tdir_elf32ppclinux=$tdir_elf32ppc
+               tdir_elf32ppcsim=$tdir_elf32ppc ;;
        *)      targ_emul=elf32ppc
                targ_extra_emuls="elf32ppclinux elf32ppcsim" ;;
        esac ;;
+powerpc-*-nto*)         targ_emul=elf32ppcnto ;;
+powerpcle-*-nto*)       targ_emul=elf32lppcnto ;;
 powerpcle-*-rtems*)    targ_emul=elf32leppc ;;
 powerpc-*-rtems*)      targ_emul=elf32ppc ;;
 powerpc-*-macos*)      targ_emul=ppcmacos ;;
@@ -432,20 +515,33 @@ rs6000-*-aix5*)           targ_emul=aix5rs6 ;;
 rs6000-*-aix*)         targ_emul=aixrs6 ;;
 tic30-*-*aout*)                targ_emul=tic30aout ;;
 tic30-*-*coff*)                targ_emul=tic30coff ;;
+tic4x-*-* | c4x-*-*)    targ_emul=tic4xcoff ; targ_extra_emuls="tic3xcoff tic3xcoff_onchip" ;;
 tic54x-*-* | c54x*-*-*)        targ_emul=tic54xcoff ;;
 tic80-*-*)             targ_emul=tic80coff ;;
 v850-*-*)              targ_emul=v850 ;;
 v850e-*-*)             targ_emul=v850 ;;
 v850ea-*-*)            targ_emul=v850 ;;
+iq2000-*-elf)           targ_emul=elf32iq2000 ; targ_extra_emuls="elf32iq10" ;;
+frv-*-*)               targ_emul=elf32frv ;;
 w65-*-*)               targ_emul=w65 ;;
 xstormy16-*-*)         targ_emul=elf32xstormy16 ;;
+xtensa-*-*)            targ_emul=elf32xtensa;;
 fr30-*-*)              targ_emul=elf32fr30 ;;
 mcore-*-pe)            targ_emul=mcorepe ;
                        targ_extra_ofiles="deffilep.o pe-dll.o" ;;
 mcore-*-elf)           targ_emul=elf32mcore ;;
-s390x-*-linux*)         targ_emul=elf64_s390 ;;
-s390-*-linux*)          targ_emul=elf_s390 ;;
+s390x-*-linux*)         targ_emul=elf64_s390
+                       targ_extra_emuls=elf_s390
+                       targ_extra_libpath=$targ_extra_emuls
+                       tdir_elf_s390=`echo ${targ_alias} | sed -e 's/s390x/s390/'` ;;
+s390-*-linux*)          targ_emul=elf_s390
+                       if test "${want64}" = "true"; then
+                         targ_extra_emuls=elf64_s390
+                         targ_extra_libpath=$targ_extra_emuls
+                         tdir_elf64_s390=`echo ${targ_alias} | sed -e 's/s390/s390x/'`
+                       fi ;;
 *-*-ieee*)             targ_emul=vanilla ;;
+ip2k-*-elf)            targ_emul=elf32ip2k ;;
 
 *)
   echo 2>&1 "*** ld does not support target ${targ}"
@@ -453,3 +549,53 @@ s390-*-linux*)          targ_emul=elf_s390 ;;
   exit 1
 
 esac
+
+NATIVE_LIB_DIRS='/usr/local/lib /lib /usr/lib'
+case "${target}" in
+
+*-*-freebsd*)
+  NATIVE_LIB_DIRS='/lib /usr/lib /usr/local/lib'
+  ;;
+
+hppa*64*-*-hpux11*)
+  NATIVE_LIB_DIRS=/usr/lib/pa20_64
+  ;;
+
+i[3456]86-*-sysv4*)
+  NATIVE_LIB_DIRS='/usr/local/lib /usr/ccs/lib /lib /usr/lib'
+  ;;
+
+i[3456]86-*-solaris*)
+  NATIVE_LIB_DIRS='/usr/local/lib /usr/ccs/lib /lib /usr/lib'
+  ;;
+
+i[3456]86-pc-interix*)
+  NATIVE_LIB_DIRS='/usr/local/lib $$INTERIX_ROOT/usr/lib /lib /usr/lib'
+  ;;
+
+ia64-*-aix*)
+  NATIVE_LIB_DIRS='/usr/local/lib /usr/lib/ia64l64 /lib /usr/lib'
+  ;;
+
+sparc*-*-solaris2*)
+  NATIVE_LIB_DIRS='/usr/local/lib /usr/ccs/lib /lib /usr/lib'
+  ;;
+
+i[03-9x]86-*-cygwin*)
+  NATIVE_LIB_DIRS='/usr/lib /usr/lib/w32api'
+  ;;
+
+*-*-linux*)
+  ;;
+
+*-*-freebsd*)
+  ;;
+
+*-*-netbsd*)
+  ;;
+
+alpha*-*-*)
+  NATIVE_LIB_DIRS='/usr/local/lib /usr/ccs/lib /lib /usr/lib'
+  ;;
+
+esac
This page took 0.027334 seconds and 4 git commands to generate.