1995-09-09 04:34:05 +08: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
|
|
|
|
|
|
|
|
targ_extra_emuls=
|
|
|
|
|
|
|
|
case "${targ}" in
|
|
|
|
arm-*-pe) targ_emul=armpe ;;
|
|
|
|
# start-sanitize-arc
|
|
|
|
arc-*-elf*) targ_emul=arcelf ;;
|
|
|
|
# end-sanitize-arc
|
1996-07-24 02:00:39 +08:00
|
|
|
# start-sanitize-d10v
|
1996-09-05 03:54:48 +08:00
|
|
|
d10v-*-*) targ_emul=d10velf ;;
|
1996-07-24 02:00:39 +08:00
|
|
|
# end-sanitize-d10v
|
1996-03-29 03:06:49 +08:00
|
|
|
sparc64-*-aout*) targ_emul=sparcaout ;;
|
1996-02-01 03:36:20 +08:00
|
|
|
sparc64-*-elf*) targ_emul=elf64_sparc ;;
|
1995-09-09 04:34:05 +08:00
|
|
|
sparc-sun-sunos4*) targ_emul=sun4 ;;
|
|
|
|
sparclite*-*-coff) targ_emul=coff_sparc ;;
|
1996-03-29 03:06:49 +08:00
|
|
|
sparclite*-fujitsu-*) targ_emul=sparcaout ;;
|
1996-10-01 03:16:26 +08:00
|
|
|
sparclet*-*-aout) targ_emul=sparcaout targ_extra_emuls=sparclaout ;;
|
1996-03-29 03:06:49 +08:00
|
|
|
sparc*-*-aout) targ_emul=sparcaout ;;
|
1995-09-09 04:34:05 +08:00
|
|
|
sparc*-*-coff) targ_emul=coff_sparc ;;
|
|
|
|
sparc*-*-elf) targ_emul=elf32_sparc ;;
|
1996-07-19 05:40:06 +08:00
|
|
|
sparc*-*-sysv4*) targ_emul=elf32_sparc ;;
|
1995-09-09 04:34:05 +08:00
|
|
|
sparc*-*-lynxos*) targ_emul=sparclynx ;;
|
|
|
|
sparc*-*-netbsd*) targ_emul=sparcnbsd ;;
|
|
|
|
sparc*-*-solaris2*) targ_emul=elf32_sparc ;;
|
1996-03-29 03:06:49 +08:00
|
|
|
sparc*-wrs-vxworks*) targ_emul=sparcaout ;;
|
1996-07-05 02:50:13 +08:00
|
|
|
sparc*-*-rtems*) targ_emul=sparcaout ;;
|
1995-09-09 04:34:05 +08:00
|
|
|
i960-wrs-vxworks5.0*) targ_emul=gld960 ;;
|
|
|
|
i960-wrs-vxworks5*) targ_emul=gld960coff ;;
|
1996-02-21 05:12:02 +08:00
|
|
|
i960-wrs-vxworks*) targ_emul=gld960 ;;
|
1995-09-09 04:34:05 +08:00
|
|
|
i960-*-coff) targ_emul=gld960coff ;;
|
1996-02-21 05:12:02 +08:00
|
|
|
i960-intel-nindy) targ_emul=gld960 ;;
|
1996-07-05 02:50:13 +08:00
|
|
|
i960-*-rtems*) targ_emul=gld960coff ;;
|
1996-10-01 03:16:26 +08:00
|
|
|
# start-sanitize-m32r
|
|
|
|
m32r-*-*) targ_emul=m32relf ;;
|
|
|
|
# end-sanitize-m32r
|
1995-09-09 04:34:05 +08:00
|
|
|
m68*-sun-sunos[34]*) targ_emul=sun3 ;;
|
|
|
|
m68*-wrs-vxworks*) targ_emul=sun3 ;;
|
|
|
|
m68*-ericsson-ose) targ_emul=sun3 ;;
|
1996-02-01 03:36:20 +08:00
|
|
|
m68*-apple-aux*) targ_emul=m68kaux ;;
|
1995-09-09 04:34:05 +08:00
|
|
|
*-tandem-none) targ_emul=st2000 ;;
|
1996-09-05 03:54:48 +08: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-*-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 ;;
|
|
|
|
i[3456]86-*-rtems*) targ_emul=i386coff ;;
|
|
|
|
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-*-linuxaout*) targ_emul=i386linux
|
1996-02-15 07:54:05 +08:00
|
|
|
targ_extra_emuls=elf_i386
|
|
|
|
tdir_elf_i386=`echo ${targ_alias} | sed -e 's/aout//'`
|
|
|
|
;;
|
1996-09-05 03:54:48 +08:00
|
|
|
i[3456]86-*-linuxoldld) targ_emul=i386linux; targ_extra_emuls=elf_i386 ;;
|
|
|
|
i[3456]86-*-linux*) targ_emul=elf_i386
|
1996-02-15 07:54:05 +08:00
|
|
|
targ_extra_emuls=i386linux
|
|
|
|
tdir_i386linux=${targ_alias}aout
|
|
|
|
;;
|
1996-09-05 03:54:48 +08:00
|
|
|
i[3456]86-*-sysv4*) targ_emul=elf_i386 ;;
|
|
|
|
i[3456]86-*-unixware) 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-*-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; targ_extra_emuls=i386mach ;;
|
|
|
|
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 ;;
|
1995-09-09 04:34:05 +08: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 ;;
|
* Makefile.in (ALL_EMULATIONS): Added support for the NetBSD
m68k4k arch.
(em68k4knbsd.c): New rule.
* configure.tgt: Added support for the NetBSD m68k4k arch.
* genscripts.sh, ldint.texinfo,
emulparams/{a29k,armaoutb,armaoutl,coff_sparc,ebmon29k,gld960,
gld960coff,go32,h8300,h8300h,h8500,h8500b,h8500c,h8500m,h8500s,
hp300bsd,hp3hpux,hppaelf.sh,i386aout,i386bsd,i386coff,i386go32,
i386linux,i386lynx,i386nbsd,lnk960,m68kaout,m68kcoff,m68klynx,
m88kbcs,mipsbig,mipsbsd,mipsidt,mipsidtl,mipslit,news,ns32knbsd,
pc532machaout,rce,riscix,sa29200,sh,shl,sparclynx,sparcnbsd,
st2000,sun3,sun4,vanilla,vax,vsta,w65,z8001,z8002}.sh: Changed
PAGE_SIZE to TARGET_PAGE_SIZE.
* emulparams/m68knbsd.h: Ditto.
(TEXT_START_ADDR, NONPAGED_TEXT_START_ADDR): We have 8K pagesize.
(EXECUTABLE_SYMBOLS): Hardcode __DYNAMIC to zero for the time
being.
* emulparams/m68k4knbsd.sh: New file.
* scripttempl/aout.sc: Expand EXECUTABLE_SYMBOLS if relocating.
1995-10-28 09:40:02 +08:00
|
|
|
arm-*-coff) targ_emul=armcoff ;;
|
1996-07-06 02:54:28 +08:00
|
|
|
h8300-*-hms) targ_emul=h8300; targ_extra_emuls="h8300h h8300s"
|
1996-06-22 01:10:14 +08:00
|
|
|
;;
|
1995-09-09 04:34:05 +08:00
|
|
|
h8500-*-hms) targ_emul=h8500
|
|
|
|
targ_extra_emuls="h8500s h8500b h8500m h8500c"
|
|
|
|
;;
|
1996-09-05 03:54:48 +08:00
|
|
|
sh-*-elf*) targ_emul=shelf
|
|
|
|
targ_extra_emuls="shlelf sh shl"
|
|
|
|
;;
|
1995-09-09 04:34:05 +08:00
|
|
|
sh-*-*) targ_emul=sh; targ_extra_emuls=shl ;;
|
|
|
|
m68k-sony-*) targ_emul=news ;;
|
|
|
|
m68k-hp-bsd*) targ_emul=hp300bsd ;;
|
1995-11-04 04:10:50 +08:00
|
|
|
m68*-motorola-sysv*) targ_emul=delta68 ;;
|
1995-09-09 04:34:05 +08:00
|
|
|
m68*-*-aout) targ_emul=m68kaout ;;
|
|
|
|
m68*-*-coff) targ_emul=m68kcoff ;;
|
|
|
|
m68*-*-elf) targ_emul=m68kelf ;;
|
|
|
|
m68*-*-hpux*) targ_emul=hp3hpux ;;
|
1996-03-29 03:06:49 +08:00
|
|
|
m68k-*-linuxaout*) targ_emul=m68klinux
|
|
|
|
targ_extra_emuls=m68kelf
|
|
|
|
tdir_m68kelf=`echo ${targ_alias} | sed -e 's/aout//'`
|
|
|
|
;;
|
|
|
|
m68k-*-linux*) targ_emul=m68kelf
|
|
|
|
targ_extra_emuls=m68klinux
|
|
|
|
tdir_m68klinux=`echo ${targ_alias} | sed -e 's/linux/linuxaout/'`
|
|
|
|
;;
|
1995-09-09 04:34:05 +08:00
|
|
|
m68*-*-lynxos*) targ_emul=m68klynx ;;
|
* Makefile.in (ALL_EMULATIONS): Added support for the NetBSD
m68k4k arch.
(em68k4knbsd.c): New rule.
* configure.tgt: Added support for the NetBSD m68k4k arch.
* genscripts.sh, ldint.texinfo,
emulparams/{a29k,armaoutb,armaoutl,coff_sparc,ebmon29k,gld960,
gld960coff,go32,h8300,h8300h,h8500,h8500b,h8500c,h8500m,h8500s,
hp300bsd,hp3hpux,hppaelf.sh,i386aout,i386bsd,i386coff,i386go32,
i386linux,i386lynx,i386nbsd,lnk960,m68kaout,m68kcoff,m68klynx,
m88kbcs,mipsbig,mipsbsd,mipsidt,mipsidtl,mipslit,news,ns32knbsd,
pc532machaout,rce,riscix,sa29200,sh,shl,sparclynx,sparcnbsd,
st2000,sun3,sun4,vanilla,vax,vsta,w65,z8001,z8002}.sh: Changed
PAGE_SIZE to TARGET_PAGE_SIZE.
* emulparams/m68knbsd.h: Ditto.
(TEXT_START_ADDR, NONPAGED_TEXT_START_ADDR): We have 8K pagesize.
(EXECUTABLE_SYMBOLS): Hardcode __DYNAMIC to zero for the time
being.
* emulparams/m68k4knbsd.sh: New file.
* scripttempl/aout.sc: Expand EXECUTABLE_SYMBOLS if relocating.
1995-10-28 09:40:02 +08:00
|
|
|
m68*-hp*-netbsd*) targ_emul=m68k4knbsd ;;
|
1995-09-09 04:34:05 +08:00
|
|
|
m68*-*-netbsd*) targ_emul=m68knbsd ;;
|
1996-02-15 05:43:54 +08:00
|
|
|
m68*-*-psos*) targ_emul=m68kpsos ;;
|
1996-07-05 02:50:13 +08:00
|
|
|
m68*-*-rtems*) targ_emul=m68kcoff ;;
|
1995-09-09 04:34:05 +08:00
|
|
|
hppa*-*-*elf*) targ_emul=hppaelf ;;
|
|
|
|
hppa*-*-lites*) targ_emul=hppaelf ;;
|
|
|
|
vax-dec-ultrix* | vax-dec-bsd*) targ_emul=vax ;;
|
|
|
|
mips*-dec-ultrix*) targ_emul=mipslit ;;
|
1996-07-05 02:50:13 +08:00
|
|
|
mips*-dec-osf*) targ_emul=mipslit ;;
|
1996-07-19 04:35:34 +08:00
|
|
|
mips*-sgi-irix[56]*) targ_emul=elf32bmip ;;
|
1995-09-09 04:34:05 +08:00
|
|
|
mips*-sgi-irix*) targ_emul=mipsbig ;;
|
|
|
|
mips*el-*-ecoff*) targ_emul=mipsidtl ;;
|
|
|
|
mips*-*-ecoff*) targ_emul=mipsidt ;;
|
|
|
|
mips*-dec-bsd*) targ_emul=mipsbsd ;;
|
* Makefile.in (ALL_EMULATIONS): Added support for the NetBSD
m68k4k arch.
(em68k4knbsd.c): New rule.
* configure.tgt: Added support for the NetBSD m68k4k arch.
* genscripts.sh, ldint.texinfo,
emulparams/{a29k,armaoutb,armaoutl,coff_sparc,ebmon29k,gld960,
gld960coff,go32,h8300,h8300h,h8500,h8500b,h8500c,h8500m,h8500s,
hp300bsd,hp3hpux,hppaelf.sh,i386aout,i386bsd,i386coff,i386go32,
i386linux,i386lynx,i386nbsd,lnk960,m68kaout,m68kcoff,m68klynx,
m88kbcs,mipsbig,mipsbsd,mipsidt,mipsidtl,mipslit,news,ns32knbsd,
pc532machaout,rce,riscix,sa29200,sh,shl,sparclynx,sparcnbsd,
st2000,sun3,sun4,vanilla,vax,vsta,w65,z8001,z8002}.sh: Changed
PAGE_SIZE to TARGET_PAGE_SIZE.
* emulparams/m68knbsd.h: Ditto.
(TEXT_START_ADDR, NONPAGED_TEXT_START_ADDR): We have 8K pagesize.
(EXECUTABLE_SYMBOLS): Hardcode __DYNAMIC to zero for the time
being.
* emulparams/m68k4knbsd.sh: New file.
* scripttempl/aout.sc: Expand EXECUTABLE_SYMBOLS if relocating.
1995-10-28 09:40:02 +08:00
|
|
|
mips*-dec-netbsd*) targ_emul=elf32lmip ;;
|
1995-09-09 04:46:44 +08:00
|
|
|
mips*-*-bsd*) targ_emul=mipsbig ;;
|
* Makefile.in (ALL_EMULATIONS): Added support for the NetBSD
m68k4k arch.
(em68k4knbsd.c): New rule.
* configure.tgt: Added support for the NetBSD m68k4k arch.
* genscripts.sh, ldint.texinfo,
emulparams/{a29k,armaoutb,armaoutl,coff_sparc,ebmon29k,gld960,
gld960coff,go32,h8300,h8300h,h8500,h8500b,h8500c,h8500m,h8500s,
hp300bsd,hp3hpux,hppaelf.sh,i386aout,i386bsd,i386coff,i386go32,
i386linux,i386lynx,i386nbsd,lnk960,m68kaout,m68kcoff,m68klynx,
m88kbcs,mipsbig,mipsbsd,mipsidt,mipsidtl,mipslit,news,ns32knbsd,
pc532machaout,rce,riscix,sa29200,sh,shl,sparclynx,sparcnbsd,
st2000,sun3,sun4,vanilla,vax,vsta,w65,z8001,z8002}.sh: Changed
PAGE_SIZE to TARGET_PAGE_SIZE.
* emulparams/m68knbsd.h: Ditto.
(TEXT_START_ADDR, NONPAGED_TEXT_START_ADDR): We have 8K pagesize.
(EXECUTABLE_SYMBOLS): Hardcode __DYNAMIC to zero for the time
being.
* emulparams/m68k4knbsd.sh: New file.
* scripttempl/aout.sc: Expand EXECUTABLE_SYMBOLS if relocating.
1995-10-28 09:40:02 +08:00
|
|
|
mips*vr4300el-*-elf*) targ_emul=elf32l4300 ;;
|
|
|
|
mips*vr4300-*-elf*) targ_emul=elf32b4300 ;;
|
1996-04-06 01:17:06 +08:00
|
|
|
mips*vr4100el-*-elf*) targ_emul=elf32l4300 ;;
|
|
|
|
mips*vr4100-*-elf*) targ_emul=elf32b4300 ;;
|
1996-10-01 03:16:26 +08:00
|
|
|
mips*vr5000el-*-elf*) targ_emul=elf32l4300 ;;
|
|
|
|
mips*vr5000-*-elf*) targ_emul=elf32b4300 ;;
|
1996-07-10 00:13:56 +08:00
|
|
|
mips*el-*-elf*) targ_emul=elf32elmip ;;
|
|
|
|
mips*-*-elf*) targ_emul=elf32ebmip ;;
|
1996-06-22 01:10:14 +08:00
|
|
|
alpha-*-linuxecoff*) targ_emul=alpha targ_extra_emuls=elf64alpha
|
|
|
|
tdir_elf64alpha=`echo ${targ_alias} | sed -e 's/ecoff//'`
|
|
|
|
;;
|
|
|
|
alpha-*-linux*) targ_emul=elf64alpha targ_extra_emuls=alpha
|
|
|
|
tdir_alpha=`echo ${targ_alias} | sed -e 's/linux/linuxecoff/'`
|
|
|
|
;;
|
1995-09-09 04:34:05 +08:00
|
|
|
alpha-*-osf*) targ_emul=alpha ;;
|
1996-09-05 03:54:48 +08:00
|
|
|
alpha-*-gnu*) targ_emul=elf64alpha ;;
|
1995-09-09 04:34:05 +08:00
|
|
|
alpha-*-netware*) targ_emul=alpha ;;
|
|
|
|
z8k-*-coff) targ_emul=z8002; targ_extra_emuls=z8001 ;;
|
1996-07-05 02:50:13 +08:00
|
|
|
ns32k-pc532-mach* | ns32k-pc532-ux*) targ_emul=pc532macha ;;
|
1995-09-09 04:34:05 +08:00
|
|
|
ns32k-pc532-netbsd* | ns32k-pc532-lites*) targ_emul=ns32knbsd ;;
|
1996-07-05 02:50:13 +08:00
|
|
|
powerpc-*-elf* | powerpc-*-eabi* | powerpc-*-linux* | powerpc-*-sysv*)
|
|
|
|
targ_emul=elf32ppc ;;
|
1996-06-19 05:58:52 +08:00
|
|
|
powerpcle-*-elf* | powerpcle-*-eabi* | powerpcle-*-solaris* | powerpcle-*-sysv*) targ_emul=elf32lppc ;;
|
1996-07-05 02:50:13 +08:00
|
|
|
powerpc-*-rtems*) targ_emul=elf32ppc ;;
|
1996-02-01 03:36:20 +08:00
|
|
|
powerpc-*-macos*) targ_emul=ppcmacos ;;
|
1995-09-09 04:34:05 +08:00
|
|
|
powerpc-*-netware*) targ_emul=ppcnw ;;
|
1996-02-01 03:36:20 +08:00
|
|
|
powerpcle-*-pe) targ_emul=ppcpe ;;
|
|
|
|
powerpcle-*-winnt*) targ_emul=ppcpe ;;
|
1996-02-15 05:43:54 +08:00
|
|
|
powerpcle-*-cygwin32) targ_emul=ppcpe ;;
|
* Makefile.in (ALL_EMULATIONS): Added support for the NetBSD
m68k4k arch.
(em68k4knbsd.c): New rule.
* configure.tgt: Added support for the NetBSD m68k4k arch.
* genscripts.sh, ldint.texinfo,
emulparams/{a29k,armaoutb,armaoutl,coff_sparc,ebmon29k,gld960,
gld960coff,go32,h8300,h8300h,h8500,h8500b,h8500c,h8500m,h8500s,
hp300bsd,hp3hpux,hppaelf.sh,i386aout,i386bsd,i386coff,i386go32,
i386linux,i386lynx,i386nbsd,lnk960,m68kaout,m68kcoff,m68klynx,
m88kbcs,mipsbig,mipsbsd,mipsidt,mipsidtl,mipslit,news,ns32knbsd,
pc532machaout,rce,riscix,sa29200,sh,shl,sparclynx,sparcnbsd,
st2000,sun3,sun4,vanilla,vax,vsta,w65,z8001,z8002}.sh: Changed
PAGE_SIZE to TARGET_PAGE_SIZE.
* emulparams/m68knbsd.h: Ditto.
(TEXT_START_ADDR, NONPAGED_TEXT_START_ADDR): We have 8K pagesize.
(EXECUTABLE_SYMBOLS): Hardcode __DYNAMIC to zero for the time
being.
* emulparams/m68k4knbsd.sh: New file.
* scripttempl/aout.sc: Expand EXECUTABLE_SYMBOLS if relocating.
1995-10-28 09:40:02 +08:00
|
|
|
powerpc-*-aix*) targ_emul=aixppc ;;
|
|
|
|
rs6000-*-aix*) targ_emul=aixrs6 ;;
|
1996-09-05 03:54:48 +08:00
|
|
|
# start-sanitize-v850
|
|
|
|
v850-*-*) targ_emul=v850 ;;
|
|
|
|
# end-sanitize-v850
|
1995-09-09 04:34:05 +08:00
|
|
|
w65-*-*) targ_emul=w65 ;;
|
|
|
|
*-*-aout) targ_emul=${target_cpu}-${target_vendor} ;;
|
|
|
|
*-*-coff) targ_emul=${target_cpu}-${target_vendor} ;;
|
|
|
|
*-*-netware) targ_emul=${target_cpu}-nw ;;
|
1996-02-15 07:54:05 +08:00
|
|
|
*-*-ieee*) targ_emul=vanilla ;;
|
1995-09-09 04:34:05 +08:00
|
|
|
|
|
|
|
*)
|
|
|
|
echo 2>&1 "*** ld does not support target ${targ}"
|
|
|
|
echo 2>&1 "*** see ld/configure.tgt for supported targets"
|
|
|
|
exit 1
|
|
|
|
|
|
|
|
esac
|