mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
Merge in revs 1.2 and 1.3 (FreeBSD configuration support)
Add preliminary sparc, strongarm, PPC FreeBSD support.
This commit is contained in:
parent
83e6e888b1
commit
76d24f9bde
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=60522
@ -1,3 +1,5 @@
|
||||
# $FreeBSD$
|
||||
|
||||
# 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
|
||||
@ -7,13 +9,26 @@
|
||||
# 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=
|
||||
targ_extra_ofiles=
|
||||
|
||||
case "${targ}" in
|
||||
arm-*-pe) targ_emul=armpe ;;
|
||||
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" ;;
|
||||
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 ;;
|
||||
@ -22,6 +37,7 @@ sparclite*-*-coff) targ_emul=coff_sparc ;;
|
||||
sparclite*-fujitsu-*) targ_emul=sparcaout ;;
|
||||
sparc*-*-aout) targ_emul=sparcaout ;;
|
||||
sparc*-*-coff) targ_emul=coff_sparc ;;
|
||||
sparc*-*-freebsd*) targ_emul=sparcfreebsd ;;
|
||||
sparc*-*-elf) targ_emul=elf32_sparc ;;
|
||||
sparc*-*-sysv4*) targ_emul=elf32_sparc ;;
|
||||
sparc*-*-linux*aout*) targ_emul=sparclinux
|
||||
@ -36,12 +52,26 @@ 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 ;;
|
||||
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 ;;
|
||||
@ -51,12 +81,15 @@ i960-wrs-vxworks*) targ_emul=gld960 ;;
|
||||
i960-*-coff) targ_emul=gld960coff ;;
|
||||
i960-intel-nindy) targ_emul=gld960 ;;
|
||||
i960-*-rtems*) targ_emul=gld960coff ;;
|
||||
i960-*-elf*) targ_emul=elf32_i960 ;;
|
||||
m32r-*-*) targ_emul=m32relf ;;
|
||||
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 ;;
|
||||
@ -66,6 +99,7 @@ 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 ;;
|
||||
i[3456]86-*-rtemself*) targ_emul=elf_i386 ;;
|
||||
i[3456]86-*-rtems*) targ_emul=i386coff ;;
|
||||
i[3456]86-*-bsd) targ_emul=i386bsd ;;
|
||||
i[3456]86-*-bsd386) targ_emul=i386bsd ;;
|
||||
@ -81,22 +115,34 @@ i[3456]86-*-linux-gnu*) targ_emul=elf_i386
|
||||
tdir_i386linux=${targ_alias}aout
|
||||
;;
|
||||
i[3456]86-*-sysv4*) targ_emul=elf_i386 ;;
|
||||
i[3456]86-*-solaris2*) targ_emul=elf_i386 ;;
|
||||
i[3456]86-*-unixware) targ_emul=elf_i386 ;;
|
||||
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=i386freebsd ;;
|
||||
i[3456]86-*-freebsdaout* | i[3456]86-*-freebsd[12].* | i[3456]86-*-freebsd[12])
|
||||
targ_emul=i386bsd ;;
|
||||
i[3456]86-*-freebsd*) targ_emul=i386freebsd ;;
|
||||
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 ;;
|
||||
i[3456]86-*-pe) targ_emul=i386pe ;;
|
||||
i[3456]86-*-cygwin32*) targ_emul=i386pe ;;
|
||||
i[3456]86-*-mingw32*) targ_emul=i386pe ;;
|
||||
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" ;;
|
||||
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 ;;
|
||||
@ -105,16 +151,36 @@ 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*-*-freebsd*) targ_emul=armfreebsd ;;
|
||||
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 ;;
|
||||
thumb-*-pe) targ_emul=armpe ;;
|
||||
h8300-*-hms) targ_emul=h8300; targ_extra_emuls="h8300h h8300s"
|
||||
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" ;;
|
||||
h8300-*-hms* | h8300-*-coff*)
|
||||
targ_emul=h8300; targ_extra_emuls="h8300h h8300s"
|
||||
;;
|
||||
h8500-*-hms) targ_emul=h8500
|
||||
h8500-*-hms* | h8500-*-coff*)
|
||||
targ_emul=h8500
|
||||
targ_extra_emuls="h8500s h8500b h8500m h8500c"
|
||||
;;
|
||||
sh-*-elf*) targ_emul=shelf
|
||||
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 ;;
|
||||
@ -131,18 +197,26 @@ 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 ;;
|
||||
m68*-hp*-netbsd*) targ_emul=m68k4knbsd ;;
|
||||
m68*-*-netbsd*) targ_emul=m68knbsd ;;
|
||||
m68*-*-psos*) targ_emul=m68kpsos ;;
|
||||
m68*-*-rtems*) targ_emul=m68kcoff ;;
|
||||
hppa*w*-*) 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 ;;
|
||||
@ -157,7 +231,10 @@ mips*vr5000el-*-elf*) targ_emul=elf32l4300 ;;
|
||||
mips*vr5000-*-elf*) targ_emul=elf32b4300 ;;
|
||||
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"
|
||||
;;
|
||||
@ -181,26 +258,38 @@ 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-*-elf* | powerpc-*-eabi* | powerpc-*-linux-gnu* | powerpc-*-sysv* \
|
||||
| powerpc-*-netbsd*)
|
||||
powerpc-*-linux-gnu*) targ_emul=elf32ppclinux; targ_extra_emuls=elf32ppc;
|
||||
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 ;;
|
||||
powerpcle-*-elf* | powerpcle-*-eabi* | powerpcle-*-solaris* | powerpcle-*-sysv*) targ_emul=elf32lppc ;;
|
||||
powerpcle-*-elf* | powerpcle-*-eabi* | powerpcle-*-solaris* \
|
||||
| powerpcle-*-sysv* | powerpcle-*-vxworks*)
|
||||
targ_emul=elf32lppc ;;
|
||||
powerpcle-*-rtems*) targ_emul=elf32leppc ;;
|
||||
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 ;;
|
||||
powerpcle-*-cygwin32) targ_emul=ppcpe ;;
|
||||
powerpcle-*-cygwin*) targ_emul=ppcpe ;;
|
||||
powerpc-*-aix*) targ_emul=aixppc ;;
|
||||
powerpc-*-beos*) targ_emul=aixppc ;;
|
||||
powerpc*-*-freebsd*) targ_emul=ppcfreebsd ;;
|
||||
rs6000-*-aix*) targ_emul=aixrs6 ;;
|
||||
tic30-*-*aout*) targ_emul=tic30aout ;;
|
||||
tic30-*-*coff*) targ_emul=tic30coff ;;
|
||||
tic80-*-*) targ_emul=tic80coff ;;
|
||||
v850-*-*) targ_emul=v850 ;;
|
||||
v850e-*-*) targ_emul=v850 ;;
|
||||
v850ea-*-*) targ_emul=v850 ;;
|
||||
w65-*-*) targ_emul=w65 ;;
|
||||
*-*-aout) targ_emul=${target_cpu}-${target_vendor} ;;
|
||||
*-*-coff) targ_emul=${target_cpu}-${target_vendor} ;;
|
||||
*-*-netware) targ_emul=${target_cpu}-nw ;;
|
||||
fr30-*-*) targ_emul=elf32fr30 ;;
|
||||
mcore-*-pe) targ_emul=mcorepe ;
|
||||
targ_extra_ofiles="deffilep.o pe-dll.o" ;;
|
||||
mcore-*-elf) targ_emul=elf32mcore ;;
|
||||
*-*-ieee*) targ_emul=vanilla ;;
|
||||
|
||||
*)
|
||||
|
Loading…
Reference in New Issue
Block a user