sanitization fixes. (files not mentioned, fences misspelled)
[deliverable/binutils-gdb.git] / ld / configure.tgt
CommitLineData
673f5b9f
ILT
1# This is the linker target specific file. This is invoked by the
2# autoconf generated configure script. Putting it in a separate shell
3# file lets us skip running autoconf when modifying target specific
4# information.
5
6# This file switches on the shell variable ${targ}, and sets the
7# following shell variables:
8# targ_emul name of linker emulation to use
9# targ_extra_emuls additional linker emulations to provide
10
11targ_extra_emuls=
12
13case "${targ}" in
14arm-*-pe) targ_emul=armpe ;;
673f5b9f 15arc-*-elf*) targ_emul=arcelf ;;
31cadbf4 16d10v-*-*) targ_emul=d10velf ;;
2032ade9
ILT
17# start-sanitize-d30v
18d30v-*-*) targ_emul=d30velf ;;
19# end-sanitize-d30v
bacc1703 20sparc64-*-aout*) targ_emul=sparcaout ;;
40ab9bb9 21sparc64-*-elf*) targ_emul=elf64_sparc ;;
673f5b9f
ILT
22sparc-sun-sunos4*) targ_emul=sun4 ;;
23sparclite*-*-coff) targ_emul=coff_sparc ;;
bacc1703
DE
24sparclite*-fujitsu-*) targ_emul=sparcaout ;;
25sparc*-*-aout) targ_emul=sparcaout ;;
673f5b9f 26sparc*-*-coff) targ_emul=coff_sparc ;;
673f5b9f 27sparc*-*-elf) targ_emul=elf32_sparc ;;
73a66e7a 28sparc*-*-sysv4*) targ_emul=elf32_sparc ;;
a59a42ae
ILT
29sparc*-*-linux*aout*) targ_emul=sparclinux
30 targ_extra_emuls="elf32_sparc sun4"
31 tdir_elf32_sparc=`echo ${targ_alias} | sed -e 's/aout//'`
32 tdir_sun4=sparc-sun-sunos4
33 ;;
639da7eb
RH
34sparc64-*-linux*) targ_emul=elf64_sparc
35 targ_extra_emuls="elf32_sparc sparclinux sun4"
36 tdir_elf32_sparc=`echo ${targ_alias} | sed -e 's/64//'`
37 tdir_sparclinux=${tdir_elf32_sparc}aout
38 tdir_sun4=sparc-sun-sunos4
39 ;;
a59a42ae
ILT
40sparc*-*-linux*) targ_emul=elf32_sparc
41 targ_extra_emuls="sparclinux sun4"
42 tdir_sparclinux=${targ_alias}aout
43 tdir_sun4=sparc-sun-sunos4
44 ;;
673f5b9f
ILT
45sparc*-*-lynxos*) targ_emul=sparclynx ;;
46sparc*-*-netbsd*) targ_emul=sparcnbsd ;;
47sparc*-*-solaris2*) targ_emul=elf32_sparc ;;
bacc1703 48sparc*-wrs-vxworks*) targ_emul=sparcaout ;;
1ab4cd57 49sparc*-*-rtems*) targ_emul=sparcaout ;;
673f5b9f
ILT
50i960-wrs-vxworks5.0*) targ_emul=gld960 ;;
51i960-wrs-vxworks5*) targ_emul=gld960coff ;;
fc7b6582 52i960-wrs-vxworks*) targ_emul=gld960 ;;
673f5b9f 53i960-*-coff) targ_emul=gld960coff ;;
fc7b6582 54i960-intel-nindy) targ_emul=gld960 ;;
1ab4cd57 55i960-*-rtems*) targ_emul=gld960coff ;;
79e9dc20 56m32r-*-*) targ_emul=m32relf ;;
673f5b9f
ILT
57m68*-sun-sunos[34]*) targ_emul=sun3 ;;
58m68*-wrs-vxworks*) targ_emul=sun3 ;;
59m68*-ericsson-ose) targ_emul=sun3 ;;
40ab9bb9 60m68*-apple-aux*) targ_emul=m68kaux ;;
673f5b9f 61*-tandem-none) targ_emul=st2000 ;;
31cadbf4
ILT
62i[3456]86-*-vsta) targ_emul=vsta ;;
63i[3456]86-go32-rtems*) targ_emul=i386go32 ;;
64i[3456]86-*-go32) targ_emul=i386go32 ;;
0c0b16f9 65i[3456]86-*-msdosdjgpp*) targ_emul=i386go32 ;;
31cadbf4
ILT
66i[3456]86-*-aix*) targ_emul=i386coff ;;
67i[3456]86-*-sco*) targ_emul=i386coff ;;
68i[3456]86-*-isc*) targ_emul=i386coff ;;
69i[3456]86-*-lynxos*) targ_emul=i386lynx ;;
70i[3456]86-*-coff) targ_emul=i386coff ;;
71i[3456]86-*-rtems*) targ_emul=i386coff ;;
72i[3456]86-*-bsd) targ_emul=i386bsd ;;
73i[3456]86-*-bsd386) targ_emul=i386bsd ;;
74i[3456]86-*-bsdi*) targ_emul=i386bsd ;;
75i[3456]86-*-aout) targ_emul=i386aout ;;
a59a42ae 76i[3456]86-*-linux*aout*) targ_emul=i386linux
95d31c3c
ILT
77 targ_extra_emuls=elf_i386
78 tdir_elf_i386=`echo ${targ_alias} | sed -e 's/aout//'`
79 ;;
31cadbf4
ILT
80i[3456]86-*-linuxoldld) targ_emul=i386linux; targ_extra_emuls=elf_i386 ;;
81i[3456]86-*-linux*) targ_emul=elf_i386
95d31c3c
ILT
82 targ_extra_emuls=i386linux
83 tdir_i386linux=${targ_alias}aout
84 ;;
31cadbf4
ILT
85i[3456]86-*-sysv4*) targ_emul=elf_i386 ;;
86i[3456]86-*-unixware) targ_emul=elf_i386 ;;
87i[3456]86-*-netbsd*) targ_emul=i386nbsd ;;
88i[3456]86-*-netware) targ_emul=i386nw ;;
89i[3456]86-*-elf*) targ_emul=elf_i386 ;;
90i[3456]86-*-freebsdelf*) targ_emul=elf_i386 ;;
89b993af 91i[3456]86-*-freebsd*) targ_emul=i386bsd ;;
31cadbf4
ILT
92i[3456]86-*-sysv*) targ_emul=i386coff ;;
93i[3456]86-*-ptx*) targ_emul=i386coff ;;
94i[3456]86-*-mach*) targ_emul=i386mach ;;
d1ce2fc0 95i[3456]86-*-gnu*) targ_emul=elf_i386 ;;
31cadbf4
ILT
96i[3456]86-*-msdos*) targ_emul=i386msdos; targ_extra_emuls=i386aout ;;
97i[3456]86-*-moss*) targ_emul=i386moss; targ_extra_emuls=i386msdos ;;
98i[3456]86-*-winnt) targ_emul=i386pe ;;
99i[3456]86-*-pe) targ_emul=i386pe ;;
100i[3456]86-*-cygwin32) targ_emul=i386pe ;;
673f5b9f
ILT
101m8*-*-*) targ_emul=m88kbcs ;;
102a29k-*-udi) targ_emul=sa29200 ;;
103a29k-*-ebmon) targ_emul=ebmon29k ;;
104a29k-*-*) targ_emul=a29k ;;
105# arm-*-riscix*) targ_emul=riscix ;;
106arm-*-aout | armel-*-aout) targ_emul=armaoutl ;;
107armeb-*-aout) targ_emul=armaoutb ;;
d0ae7d95 108arm-*-coff) targ_emul=armcoff ;;
89b993af 109thumb-*-coff) targ_emul=armcoff ;;
cce8528d 110h8300-*-hms) targ_emul=h8300; targ_extra_emuls="h8300h h8300s"
539ae61d 111 ;;
673f5b9f
ILT
112h8500-*-hms) targ_emul=h8500
113 targ_extra_emuls="h8500s h8500b h8500m h8500c"
114 ;;
f38b4974 115sh-*-elf*|sh-*-rtems*) targ_emul=shelf
31cadbf4
ILT
116 targ_extra_emuls="shlelf sh shl"
117 ;;
673f5b9f 118sh-*-*) targ_emul=sh; targ_extra_emuls=shl ;;
673f5b9f
ILT
119m68k-sony-*) targ_emul=news ;;
120m68k-hp-bsd*) targ_emul=hp300bsd ;;
92188bd2 121m68*-motorola-sysv*) targ_emul=delta68 ;;
673f5b9f
ILT
122m68*-*-aout) targ_emul=m68kaout ;;
123m68*-*-coff) targ_emul=m68kcoff ;;
124m68*-*-elf) targ_emul=m68kelf ;;
125m68*-*-hpux*) targ_emul=hp3hpux ;;
a59a42ae 126m68k-*-linux*aout*) targ_emul=m68klinux
bacc1703
DE
127 targ_extra_emuls=m68kelf
128 tdir_m68kelf=`echo ${targ_alias} | sed -e 's/aout//'`
129 ;;
130m68k-*-linux*) targ_emul=m68kelf
131 targ_extra_emuls=m68klinux
132 tdir_m68klinux=`echo ${targ_alias} | sed -e 's/linux/linuxaout/'`
133 ;;
673f5b9f 134m68*-*-lynxos*) targ_emul=m68klynx ;;
d0ae7d95 135m68*-hp*-netbsd*) targ_emul=m68k4knbsd ;;
673f5b9f 136m68*-*-netbsd*) targ_emul=m68knbsd ;;
307585f1 137m68*-*-psos*) targ_emul=m68kpsos ;;
1ab4cd57 138m68*-*-rtems*) targ_emul=m68kcoff ;;
673f5b9f
ILT
139hppa*-*-*elf*) targ_emul=hppaelf ;;
140hppa*-*-lites*) targ_emul=hppaelf ;;
a59a42ae 141hppa*-*-rtems*) targ_emul=hppaelf ;;
673f5b9f
ILT
142vax-dec-ultrix* | vax-dec-bsd*) targ_emul=vax ;;
143mips*-dec-ultrix*) targ_emul=mipslit ;;
1ab4cd57 144mips*-dec-osf*) targ_emul=mipslit ;;
f38b4974 145mips*-sgi-irix[56]*) targ_emul=elf32bsmip ;;
673f5b9f
ILT
146mips*-sgi-irix*) targ_emul=mipsbig ;;
147mips*el-*-ecoff*) targ_emul=mipsidtl ;;
148mips*-*-ecoff*) targ_emul=mipsidt ;;
149mips*-dec-bsd*) targ_emul=mipsbsd ;;
d0ae7d95 150mips*-dec-netbsd*) targ_emul=elf32lmip ;;
d62ef165 151mips*-*-bsd*) targ_emul=mipsbig ;;
d0ae7d95
NH
152mips*vr4300el-*-elf*) targ_emul=elf32l4300 ;;
153mips*vr4300-*-elf*) targ_emul=elf32b4300 ;;
4864a04f
JSC
154mips*vr4100el-*-elf*) targ_emul=elf32l4300 ;;
155mips*vr4100-*-elf*) targ_emul=elf32b4300 ;;
79e9dc20
DE
156mips*vr5000el-*-elf*) targ_emul=elf32l4300 ;;
157mips*vr5000-*-elf*) targ_emul=elf32b4300 ;;
d020618a
GRK
158# start-sanitize-tx49
159mips*tx49el-*-elf*) targ_emul=elf32l4300 ;;
160mips*tx49-*-elf*) targ_emul=elf32b4300 ;;
161# end-sanitize-tx49
c6c7035c 162# start-sanitize-r5900
aac6f338 163mips*r5900*-*-elf*) targ_emul=elf32l4300 ;;
c6c7035c 164# end-sanitize-r5900
719de0ea
ILT
165mips*el-*-elf*) targ_emul=elf32elmip ;;
166mips*-*-elf*) targ_emul=elf32ebmip ;;
10e31c75 167mips*-*-rtems*) targ_emul=elf32ebmip ;;
f38b4974
RH
168mips*el-*-linux*) targ_emul=elf32lsmip
169 targ_extra_emuls="elf32bsmip mipslit mipsbig"
2032ade9 170 ;;
f38b4974
RH
171mips*-*-linux*) targ_emul=elf32bsmip
172 targ_extra_emuls="elf32lsmip mipsbig mipslit"
2032ade9
ILT
173 ;;
174mips*-*-lnews*) targ_emul=mipslnews ;;
10e31c75
JL
175mn10200-*-*) targ_emul=mn10200 ;;
176mn10300-*-*) targ_emul=mn10300 ;;
f38b4974 177alpha*-*-linuxecoff*) targ_emul=alpha targ_extra_emuls=elf64alpha
539ae61d
ILT
178 tdir_elf64alpha=`echo ${targ_alias} | sed -e 's/ecoff//'`
179 ;;
f38b4974 180alpha*-*-linux*) targ_emul=elf64alpha targ_extra_emuls=alpha
539ae61d
ILT
181 tdir_alpha=`echo ${targ_alias} | sed -e 's/linux/linuxecoff/'`
182 ;;
f38b4974
RH
183alpha*-*-osf*) targ_emul=alpha ;;
184alpha*-*-gnu*) targ_emul=elf64alpha ;;
185alpha*-*-netware*) targ_emul=alpha ;;
673f5b9f 186z8k-*-coff) targ_emul=z8002; targ_extra_emuls=z8001 ;;
1ab4cd57 187ns32k-pc532-mach* | ns32k-pc532-ux*) targ_emul=pc532macha ;;
673f5b9f 188ns32k-pc532-netbsd* | ns32k-pc532-lites*) targ_emul=ns32knbsd ;;
1ab4cd57
ILT
189powerpc-*-elf* | powerpc-*-eabi* | powerpc-*-linux* | powerpc-*-sysv*)
190 targ_emul=elf32ppc ;;
2e71dfc0 191powerpcle-*-elf* | powerpcle-*-eabi* | powerpcle-*-solaris* | powerpcle-*-sysv*) targ_emul=elf32lppc ;;
1ab4cd57 192powerpc-*-rtems*) targ_emul=elf32ppc ;;
40ab9bb9 193powerpc-*-macos*) targ_emul=ppcmacos ;;
673f5b9f 194powerpc-*-netware*) targ_emul=ppcnw ;;
40ab9bb9
ILT
195powerpcle-*-pe) targ_emul=ppcpe ;;
196powerpcle-*-winnt*) targ_emul=ppcpe ;;
307585f1 197powerpcle-*-cygwin32) targ_emul=ppcpe ;;
d0ae7d95 198powerpc-*-aix*) targ_emul=aixppc ;;
2032ade9 199powerpc-*-beos*) targ_emul=aixppc ;;
d0ae7d95 200rs6000-*-aix*) targ_emul=aixrs6 ;;
11effa69 201# start-sanitize-tic80
2032ade9 202tic80-*-*) targ_emul=tic80coff ;;
11effa69 203# end-sanitize-tic80
31cadbf4 204v850-*-*) targ_emul=v850 ;;
0c0b16f9
DE
205# start-sanitize-v850e
206v850e-*-*) targ_emul=v850 ;;
0c0b16f9 207v850eq-*-*) targ_emul=v850 ;;
aac6f338 208# end-sanitize-v850e
673f5b9f
ILT
209w65-*-*) targ_emul=w65 ;;
210*-*-aout) targ_emul=${target_cpu}-${target_vendor} ;;
211*-*-coff) targ_emul=${target_cpu}-${target_vendor} ;;
212*-*-netware) targ_emul=${target_cpu}-nw ;;
95d31c3c 213*-*-ieee*) targ_emul=vanilla ;;
673f5b9f
ILT
214
215*)
216 echo 2>&1 "*** ld does not support target ${targ}"
217 echo 2>&1 "*** see ld/configure.tgt for supported targets"
218 exit 1
219
220esac
This page took 0.095668 seconds and 4 git commands to generate.