* configure.in: Move code that provides the --enable-gdbtk option
[deliverable/binutils-gdb.git] / ld / configure.tgt
CommitLineData
252b5132
RH
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
3336653a 10# targ_extra_libpath additional linker emulations using LIB_PATH
252b5132
RH
11# targ_extra_ofiles additional objects needed by the emulation
12
13targ_extra_emuls=
14targ_extra_ofiles=
15
16case "${targ}" in
17arm-epoc-pe) targ_emul=arm_epoc_pe ;
18 targ_extra_ofiles="deffilep.o pe-dll.o" ;;
344a211f
NC
19arm-*-wince) targ_emul=armpe ;
20 targ_extra_ofiles="deffilep.o pe-dll.o" ;;
252b5132
RH
21arm-*-pe) targ_emul=armpe ;
22 targ_extra_ofiles="deffilep.o pe-dll.o" ;;
23arc-*-elf*) targ_emul=arcelf ;;
adde6300 24avr-*-*) targ_emul=avr85xx
fae1e84f 25 targ_extra_emuls="avr1200 avr23xx avr44x4 avr4433 avrmega603 avrmega103 avrmega161 avr1 avr2 avr3 avr4 avr5" ;;
1268a053 26cris-*-*aout*) targ_emul=crisaout
9d06555c
HPN
27 targ_extra_emuls="criself crislinux"
28 targ_extra_libpath=$targ_extra_emuls ;;
1268a053
HPN
29cris-*-*) targ_emul=criself
30 targ_extra_emuls="crisaout crislinux"
31 targ_extra_libpath=$targ_extra_emuls ;;
252b5132
RH
32d10v-*-*) targ_emul=d10velf ;;
33d30v-*-*ext*) targ_emul=d30v_e; targ_extra_emuls="d30velf d30v_o" ;;
34d30v-*-*onchip*) targ_emul=d30v_o; targ_extra_emuls="d30velf d30v_e" ;;
35d30v-*-*) targ_emul=d30velf; targ_extra_emuls="d30v_e d30v_o" ;;
d172d4ba 36dlx-*-elf*) targ_emul=elf32_dlx ;;
252b5132
RH
37sparc64-*-aout*) targ_emul=sparcaout ;;
38sparc64-*-elf*) targ_emul=elf64_sparc ;;
39sparc-sun-sunos4*) targ_emul=sun4 ;;
40sparclite*-*-elf) targ_emul=elf32_sparc ;;
41sparclite*-*-coff) targ_emul=coff_sparc ;;
42sparclite*-fujitsu-*) targ_emul=sparcaout ;;
43sparc*-*-aout) targ_emul=sparcaout ;;
44sparc*-*-coff) targ_emul=coff_sparc ;;
45sparc*-*-elf) targ_emul=elf32_sparc ;;
46sparc*-*-sysv4*) targ_emul=elf32_sparc ;;
fb33b906 47sparc64-*-freebsd* | sparcv9-*-freebsd*)
ac3e50bf
DB
48 targ_emul=elf64_sparc_fbsd
49 targ_extra_emuls="elf64_sparc elf32_sparc"
fb33b906
DB
50 targ_extra_libpath=$targ_extra_emuls
51 tdir_elf32_sparc=`echo ${targ_alias} | sed -e 's/64//'`
52 ;;
252b5132
RH
53sparc*-*-linux*aout*) targ_emul=sparclinux
54 targ_extra_emuls="elf32_sparc sun4"
55 tdir_elf32_sparc=`echo ${targ_alias} | sed -e 's/aout//'`
56 tdir_sun4=sparc-sun-sunos4
57 ;;
58sparc64-*-linux-gnu*) targ_emul=elf64_sparc
59 targ_extra_emuls="elf32_sparc sparclinux sun4"
780248c4 60 targ_extra_libpath=elf32_sparc
252b5132
RH
61 tdir_elf32_sparc=`echo ${targ_alias} | sed -e 's/64//'`
62 tdir_sparclinux=${tdir_elf32_sparc}aout
63 tdir_sun4=sparc-sun-sunos4
64 ;;
65sparc*-*-linux-gnu*) targ_emul=elf32_sparc
ad51fb57 66 targ_extra_emuls="sparclinux elf64_sparc sun4"
780248c4 67 targ_extra_libpath=elf64_sparc
252b5132 68 tdir_sparclinux=${targ_alias}aout
ad51fb57 69 tdir_elf64_sparc=`echo ${targ_alias} | sed -e 's/32//'`
252b5132
RH
70 tdir_sun4=sparc-sun-sunos4
71 ;;
72sparc*-*-lynxos*) targ_emul=sparclynx ;;
c29ef4b5
AM
73sparc64-*-netbsd* | sparc64-*-openbsd*)
74 targ_emul=elf64_sparc
cf86e6df
AM
75 targ_extra_emuls="elf32_sparc"
76 ;;
d8475ff6 77sparc*-*-netbsd*elf*) targ_emul=elf32_sparc ;;
252b5132 78sparc*-*-netbsd*) targ_emul=sparcnbsd ;;
a1836d49
AO
79sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
80 targ_emul=elf32_sparc ;;
81sparc-*-solaris2*) targ_emul=elf32_sparc
82 targ_extra_emuls="elf64_sparc"
83 targ_extra_libpath=$targ_extra_emuls
84 tdir_elf64_sparc=`echo ${targ_alias} | sed -e 's/32//'`
85 ;;
86sparcv9-*-solaris2* | sparc64-*-solaris2*)
87 targ_emul=elf64_sparc
88 targ_extra_emuls="elf32_sparc"
89 targ_extra_libpath=$targ_extra_emuls
90 tdir_elf32_sparc=`echo ${targ_alias} | sed -e 's/64//'`
91 ;;
252b5132
RH
92sparc*-*-solaris2*) targ_emul=elf32_sparc ;;
93sparc*-wrs-vxworks*) targ_emul=sparcaout ;;
24f6971a
NC
94sparc*-*-rtemsaout*) targ_emul=sparcaout ;;
95sparc*-*-rtemself*) targ_emul=elf32_sparc ;;
96sparc*-*-rtems*) targ_emul=elf32_sparc ;;
165589e4
JE
97i860-stardent-sysv4* | i860-stardent-elf*)
98 targ_emul=elf32_i860 ;;
252b5132
RH
99i960-wrs-vxworks5.0*) targ_emul=gld960 ;;
100i960-wrs-vxworks5*) targ_emul=gld960coff ;;
101i960-wrs-vxworks*) targ_emul=gld960 ;;
102i960-*-coff) targ_emul=gld960coff ;;
103i960-intel-nindy) targ_emul=gld960 ;;
104i960-*-rtems*) targ_emul=gld960coff ;;
0ccf812a 105i960-*-elf*) targ_emul=elf32_i960 ;;
800eeca4 106ia64-*-elf*) targ_emul=elf64_ia64 ;;
ac3e50bf
DB
107ia64-*-freebsd*) targ_emul=elf64_ia64_fbsd
108 targ_extra_emuls="elf64_ia64" ;;
9596feea 109ia64-*-netbsd*) targ_emul=elf64_ia64 ;;
800eeca4 110ia64-*-linux*) targ_emul=elf64_ia64 ;;
41c49998 111ia64-*-aix*) targ_emul=elf64_aix ;;
252b5132 112m32r-*-*) targ_emul=m32relf ;;
60bcf0fa
NC
113m68hc11-*-*|m6811-*-*) targ_emul=m68hc11elf
114 targ_extra_emuls="m68hc11elfb m68hc12elf m68hc12elfb" ;;
115m68hc12-*-*|m6812-*-*) targ_emul=m68hc12elf
116 targ_extra_emuls="m68hc12elfb m68hc11elf m68hc11elfb" ;;
252b5132
RH
117m68*-sun-sunos[34]*) targ_emul=sun3 ;;
118m68*-wrs-vxworks*) targ_emul=sun3 ;;
119m68*-ericsson-ose) targ_emul=sun3 ;;
120m68*-apple-aux*) targ_emul=m68kaux ;;
121*-tandem-none) targ_emul=st2000 ;;
5b93d8bb 122i370-*-elf* | i370-*-linux-gnu*) targ_emul=elf32i370 ;;
a0cb91c6 123i[3456]86-*-nto-qnx*) targ_emul=i386nto ;;
252b5132
RH
124i[3456]86-*-vsta) targ_emul=vsta ;;
125i[3456]86-go32-rtems*) targ_emul=i386go32 ;;
126i[3456]86-*-go32) targ_emul=i386go32 ;;
127i[3456]86-*-msdosdjgpp*) targ_emul=i386go32 ;;
128i[3456]86-*-aix*) targ_emul=i386coff ;;
129i[3456]86-*-sco*) targ_emul=i386coff ;;
130i[3456]86-*-isc*) targ_emul=i386coff ;;
131i[3456]86-*-lynxos*) targ_emul=i386lynx ;;
132i[3456]86-*-coff) targ_emul=i386coff ;;
d43ded80 133i[3456]86-*-rtemscoff*) targ_emul=i386coff ;;
de24ad21 134i[3456]86-*-rtemself*) targ_emul=elf_i386 ;;
d43ded80 135i[3456]86-*-rtems*) targ_emul=elf_i386 ;;
252b5132
RH
136i[3456]86-*-bsd) targ_emul=i386bsd ;;
137i[3456]86-*-bsd386) targ_emul=i386bsd ;;
138i[3456]86-*-bsdi*) targ_emul=i386bsd ;;
139i[3456]86-*-aout) targ_emul=i386aout ;;
140i[3456]86-*-linux*aout*) targ_emul=i386linux
141 targ_extra_emuls=elf_i386
142 tdir_elf_i386=`echo ${targ_alias} | sed -e 's/aout//'`
143 ;;
c709b096 144i[3456]86-*-linux*oldld) targ_emul=i386linux; targ_extra_emuls=elf_i386 ;;
252b5132
RH
145i[3456]86-*-linux-gnu*) targ_emul=elf_i386
146 targ_extra_emuls=i386linux
39a2a3eb
L
147 if test x${want64} = xtrue; then
148 targ_extra_emuls="$targ_extra_emuls elf_x86_64"
149 fi
252b5132
RH
150 tdir_i386linux=${targ_alias}aout
151 ;;
2be3aa03
NC
152x86_64-*-linux-gnu*) targ_emul=elf_x86_64
153 targ_extra_emuls="elf_i386 i386linux"
beb43bb9
JH
154 targ_extra_libpath=elf_i386
155 tdir_i386linux=`echo ${targ_alias}aout | sed -e 's/x86_64/i386/'`
156 tdir_elf_i386=`echo ${targ_alias} | sed -e 's/x86_64/i386/'`
2be3aa03 157 ;;
28423a68 158i[3456]86-*-sysv[45]*) targ_emul=elf_i386 ;;
506eee22
NC
159i[3456]86-*-solaris2*) targ_emul=elf_i386_ldso
160 targ_extra_emuls="elf_i386"
161 ;;
252b5132 162i[3456]86-*-unixware) targ_emul=elf_i386 ;;
506eee22
NC
163i[3456]86-*-solaris*) targ_emul=elf_i386_ldso
164 targ_extra_emuls="elf_i386"
165 ;;
9ffecff1
MG
166i[3456]86-*-netbsdelf*) targ_emul=elf_i386
167 targ_extra_emuls=i386nbsd
168 ;;
436e8db0
NC
169i[3456]86-*-netbsdpe*) targ_emul=i386pe
170 targ_extra_ofiles="deffilep.o pe-dll.o"
171 ;;
9ffecff1
MG
172i[3456]86-*-netbsd*) targ_emul=i386nbsd
173 targ_extra_emuls=elf_i386
174 ;;
8a8b2d4b
AJ
175x86_64-*-netbsd*) targ_emul=elf_x86_64
176 targ_extra_emuls="elf_i386 i386nbsd"
177 tdir_elf_i386=`echo ${targ_alias} | \
178 sed -e 's/x86_64/i386/'`
179 case "${tdir_elf_i386}" in
180 *-netbsdelf*) ;;
181 *)
182 tdir_elf_i386=`echo ${tdir_elf_i386} | \
183 sed -e 's/netbsd/netbsdelf/'`
184 ;;
185 esac
186 ;;
252b5132
RH
187i[3456]86-*-netware) targ_emul=i386nw ;;
188i[3456]86-*-elf*) targ_emul=elf_i386 ;;
2641b0c9
ILT
189i[3456]86-*-freebsdaout* | i[3456]86-*-freebsd[12].* | i[3456]86-*-freebsd[12])
190 targ_emul=i386bsd ;;
ac3e50bf
DB
191i[3456]86-*-freebsd*) targ_emul=elf_i386_fbsd
192 targ_extra_emuls="elf_i386 i386bsd" ;;
193x86_64-*-freebsd*) targ_emul=elf_x86_64_fbsd
194 targ_extra_emuls="elf_i386_fbsd elf_x86_64 elf_i386"
195 tdir_elf_i386=`echo ${targ_alias} \
196 | sed -e 's/x86_64/i386/'`
fb33b906 197 ;;
252b5132
RH
198i[3456]86-*-sysv*) targ_emul=i386coff ;;
199i[3456]86-*-ptx*) targ_emul=i386coff ;;
200i[3456]86-*-mach*) targ_emul=i386mach ;;
201i[3456]86-*-gnu*) targ_emul=elf_i386 ;;
202i[3456]86-*-msdos*) targ_emul=i386msdos; targ_extra_emuls=i386aout ;;
203i[3456]86-*-moss*) targ_emul=i386moss; targ_extra_emuls=i386msdos ;;
204i[3456]86-*-winnt*) targ_emul=i386pe ;
205 targ_extra_ofiles="deffilep.o pe-dll.o" ;;
206i[3456]86-*-pe) targ_emul=i386pe ;
207 targ_extra_ofiles="deffilep.o pe-dll.o" ;;
208i[3456]86-*-cygwin*) targ_emul=i386pe ;
f8b0dbb8
CF
209 targ_extra_ofiles="deffilep.o pe-dll.o"
210 test "$targ" != "$host" && LIB_PATH='${tooldir}/lib/w32api' ;;
252b5132
RH
211i[3456]86-*-mingw32*) targ_emul=i386pe ;
212 targ_extra_ofiles="deffilep.o pe-dll.o" ;;
a7e78dae
ILT
213i[3456]86-*-interix*) targ_emul=i386pe_posix;
214 targ_extra_ofiles="deffilep.o pe-dll.o" ;;
252b5132
RH
215i[3456]86-*-beospe*) targ_emul=i386beos ;;
216i[3456]86-*-beos*) targ_emul=elf_i386_be ;;
41d390a7 217i[3456]86-*-vxworks*) targ_emul=i386aout ;;
59ff2774 218i[3456]86-*-chaos) targ_emul=elf_i386_chaos ;;
252b5132
RH
219m8*-*-*) targ_emul=m88kbcs ;;
220a29k-*-udi) targ_emul=sa29200 ;;
221a29k-*-ebmon) targ_emul=ebmon29k ;;
222a29k-*-*) targ_emul=a29k ;;
223# arm-*-riscix*) targ_emul=riscix ;;
224arm-*-aout | armel-*-aout) targ_emul=armaoutl ;;
225armeb-*-aout) targ_emul=armaoutb ;;
226arm-*-coff) targ_emul=armcoff ;;
87748b32 227arm-*-vxworks) targ_emul=armcoff ;;
ac3e50bf
DB
228arm-*-freebsd*) targ_emul=armelf_fbsd
229 targ_extra_emuls="armelf" ;;
658f2588
JT
230armeb-*-netbsdelf*) targ_emul=armelfb_nbsd;
231 targ_extra_emuls="armelf_nbsd armelf armnbsd" ;;
3695c299 232arm-*-netbsdelf*) targ_emul=armelf_nbsd;
658f2588 233 targ_extra_emuls="armelfb_nbsd armelf armnbsd" ;;
3695c299 234arm-*-netbsd*) targ_emul=armnbsd;
658f2588 235 targ_extra_emuls="armelf armelf_nbsd armelfb_nbsd" ;;
ed71e111 236arm-*-nto*) targ_emul=armnto ;;
056a1d49 237arm-*-openbsd*) targ_emul=armnbsd ;;
24f6971a 238arm-*-rtems*) targ_emul=armelf ;;
252b5132 239arm-*-elf) targ_emul=armelf ;;
45cf6f3e 240arm9e-*-elf) targ_emul=armelf ;;
5fa803d3 241arm-*-oabi) targ_emul=armelf_oabi ;;
69f03d65 242arm*-*-linux-gnu*) targ_emul=armelf_linux; targ_extra_emuls=armelf ;;
5fa803d3 243arm*-*-uclinux*) targ_emul=armelf_linux; targ_extra_emuls=armelf ;;
0decc840 244arm*-*-conix*) targ_emul=armelf ;;
5fa803d3 245thumb-*-linux-gnu* | thumb-*-uclinux*) targ_emul=armelf_linux; targ_extra_emuls=armelf ;;
252b5132
RH
246strongarm-*-coff) targ_emul=armcoff ;;
247strongarm-*-elf) targ_emul=armelf ;;
248thumb-*-coff) targ_emul=armcoff ;;
249thumb-*-elf) targ_emul=armelf ;;
250thumb-*-oabi) targ_emul=armelf_oabi ;;
251thumb-epoc-pe) targ_emul=arm_epoc_pe ;
252 targ_extra_ofiles="deffilep.o pe-dll.o" ;;
253thumb-*-pe) targ_emul=armpe ;
254 targ_extra_ofiles="deffilep.o pe-dll.o" ;;
077b8428
NC
255xscale-*-coff) targ_emul=armcoff ;;
256xscale-*-elf) targ_emul=armelf ;;
0b3a6a28 257h8300-*-hms* | h8300-*-coff* | h8300-*-rtems*)
252b5132
RH
258 targ_emul=h8300; targ_extra_emuls="h8300h h8300s"
259 ;;
8af6dd41
JR
260h8300-*-elf*)
261 targ_emul=h8300elf;
262 targ_extra_emuls="h8300helf h8300self"
263 ;;
0b3a6a28 264h8500-*-hms* | h8500-*-coff* | h8500-*-rtems*)
252b5132
RH
265 targ_emul=h8500
266 targ_extra_emuls="h8500s h8500b h8500m h8500c"
267 ;;
4a428502 268sh-*-linux*)
3a9091c4
NC
269 targ_emul=shlelf_linux
270 targ_extra_emuls=shelf_linux
7649aa50
NC
271 targ_extra_libpath=shelf_linux
272 ;;
a2b3c630
SC
273sh64eb-*-linux*) targ_emul=shelf32_linux
274 targ_extra_emuls="shlelf32_linux"
275 ;;
276sh64-*-linux*) targ_emul=shlelf32_linux
277 targ_extra_emuls="shelf32_linux"
278 targ_extra_libpath=shelf32_linux
279 ;;
7649aa50
NC
280sh*eb-*-linux*)
281 targ_emul=shelf_linux
282 ;;
283sh*-*-linux*)
284 targ_emul=shlelf_linux
4a428502 285 ;;
5b0e55b6
JT
286sh5le-*-netbsd*)
287 targ_emul=shlelf32_nbsd
288 targ_extra_emuls="shelf32_nbsd shelf64_nbsd shlelf64_nbsd shelf_nbsd shlelf_nbsd"
289 ;;
290sh5-*-netbsd*)
291 targ_emul=shelf32_nbsd
292 targ_extra_emuls="shlelf32_nbsd shelf64_nbsd shlelf64_nbsd shelf_nbsd shlelf_nbsd"
293 ;;
294sh64le-*-netbsd*)
295 targ_emul=shlelf64_nbsd
296 targ_extra_emuls="shelf64_nbsd shelf32_nbsd shlelf32_nbsd shelf_nbsd shlelf_nbsd"
297 ;;
298sh64-*-netbsd*)
299 targ_emul=shelf64_nbsd
300 targ_extra_emuls="shlelf64_nbsd shelf32_nbsd shlelf32_nbsd shelf_nbsd shlelf_nbsd"
301 ;;
8d05742f
JT
302sh*le-*-netbsdelf*)
303 targ_emul=shlelf_nbsd
304 targ_extra_emuls=shelf_nbsd
305 ;;
306sh*-*-netbsdelf*)
307 targ_emul=shelf_nbsd
308 targ_extra_emuls=shlelf_nbsd
309 ;;
5d9b5481 310shle*-*-elf* | sh[1234]*le*-*-elf)
7a33bc10
JR
311 targ_emul=shlelf
312 targ_extra_emuls="shelf shl sh"
313 ;;
5d9b5481 314sh-*-elf* | sh[1234]*-*-elf | sh-*-rtemself*)
de24ad21 315 targ_emul=shelf
252b5132
RH
316 targ_extra_emuls="shlelf sh shl"
317 ;;
ed71e111
NC
318sh-*-nto*) targ_emul=shelf_nto
319 targ_extra_emuls=shlelf_nto
320 ;;
344a211f
NC
321sh-*-pe) targ_emul=shpe ;
322 targ_extra_ofiles="deffilep.o pe-dll.o" ;;
252b5132 323sh-*-*|sh-*-rtems*) targ_emul=sh; targ_extra_emuls=shl ;;
7a33bc10
JR
324sh64le-*-elf*)
325 targ_emul=shlelf
326 targ_extra_emuls="shelf shlelf32 shelf32 shlelf64 shelf64"
327 targ_extra_libpath=$targ_extra_emuls
328 ;;
2d92cb7d
AO
329sh64-*-elf*)
330 targ_emul=shelf
331 targ_extra_emuls="shlelf shelf32 shlelf32 shelf64 shlelf64"
332 targ_extra_libpath=$targ_extra_emuls
333 ;;
252b5132
RH
334m68k-sony-*) targ_emul=news ;;
335m68k-hp-bsd*) targ_emul=hp300bsd ;;
336m68*-motorola-sysv*) targ_emul=delta68 ;;
337m68*-*-aout) targ_emul=m68kaout ;;
338m68*-*-coff) targ_emul=m68kcoff ;;
339m68*-*-elf) targ_emul=m68kelf ;;
340m68*-*-hpux*) targ_emul=hp3hpux ;;
341m68k-*-linux*aout*) targ_emul=m68klinux
342 targ_extra_emuls=m68kelf
343 tdir_m68kelf=`echo ${targ_alias} | sed -e 's/aout//'`
344 ;;
345m68k-*-linux-gnu*) targ_emul=m68kelf
346 targ_extra_emuls=m68klinux
347 tdir_m68klinux=`echo ${targ_alias} | sed -e 's/linux/linuxaout/'`
348 ;;
349m68*-*-gnu*) targ_emul=m68kelf ;;
350m68*-*-lynxos*) targ_emul=m68klynx ;;
0b69cd08
MG
351m68*-*-netbsd*4k*) targ_emul=m68k4knbsd
352 targ_extra_emuls="m68knbsd m68kelfnbsd" ;;
353m68*-*-netbsdelf*) targ_emul=m68kelfnbsd
354 targ_extra_emuls="m68knbsd m68k4knbsd" ;;
355m68*-*-netbsdaout* | m68*-*-netbsd*)
356 targ_emul=m68knbsd
357 targ_extra_emuls="m68kelfnbsd m68k4knbsd" ;;
252b5132 358m68*-*-psos*) targ_emul=m68kpsos ;;
d43ded80
PB
359m68*-*-rtemscoff*) targ_emul=m68kcoff ;;
360m68*-*-rtems*) targ_emul=m68kelf ;;
9f22353f 361hppa*64*-*-linux-gnu*) targ_emul=hppa64linux ;;
0b76fe77 362hppa*64*-*) targ_emul=elf64hppa ;;
4900fc06 363hppa*-*-linux-gnu*) targ_emul=hppalinux ;;
252b5132
RH
364hppa*-*-*elf*) targ_emul=hppaelf ;;
365hppa*-*-lites*) targ_emul=hppaelf ;;
006336b8 366hppa*-*-netbsd*) targ_emul=hppanbsd ;;
c29ef4b5 367hppa*-*-openbsd*) targ_emul=hppaobsd ;;
252b5132
RH
368hppa*-*-rtems*) targ_emul=hppaelf ;;
369vax-dec-ultrix* | vax-dec-bsd*) targ_emul=vax ;;
ab68f3e0
JT
370vax-*-netbsdelf*) targ_emul=elf32vax
371 targ_extra_emuls=vaxnbsd ;;
372vax-*-netbsdaout* | vax-*-netbsd*)
373 targ_emul=vaxnbsd
374 targ_extra_emuls=elf32vax ;;
344a211f
NC
375mips*-*-pe) targ_emul=mipspe ;
376 targ_extra_ofiles="deffilep.o pe-dll.o" ;;
252b5132
RH
377mips*-dec-ultrix*) targ_emul=mipslit ;;
378mips*-dec-osf*) targ_emul=mipslit ;;
dc831978
MM
379mips*-sgi-irix5*) targ_emul=elf32bsmip ;;
380mips*-sgi-irix6*) targ_emul=elf32bmipn32
22c675a7 381 targ_extra_emuls="elf32bsmip elf64bmip"
dc831978 382 ;;
252b5132
RH
383mips*-sgi-irix*) targ_emul=mipsbig ;;
384mips*el-*-ecoff*) targ_emul=mipsidtl ;;
385mips*-*-ecoff*) targ_emul=mipsidt ;;
386mips*-dec-bsd*) targ_emul=mipsbsd ;;
cf86e6df 387mips*el-*-netbsd*) targ_emul=elf32lmip
9fb9af6e
CD
388 targ_extra_emuls="elf32bmip"
389 ;;
390mips*-*-netbsd*) targ_emul=elf32bmip
391 targ_extra_emuls="elf32lmip"
392 ;;
252b5132
RH
393mips*-*-bsd*) targ_emul=mipsbig ;;
394mips*vr4300el-*-elf*) targ_emul=elf32l4300 ;;
395mips*vr4300-*-elf*) targ_emul=elf32b4300 ;;
396mips*vr4100el-*-elf*) targ_emul=elf32l4300 ;;
397mips*vr4100-*-elf*) targ_emul=elf32b4300 ;;
398mips*vr5000el-*-elf*) targ_emul=elf32l4300 ;;
399mips*vr5000-*-elf*) targ_emul=elf32b4300 ;;
400mips*el-*-elf*) targ_emul=elf32elmip ;;
401mips*-*-elf*) targ_emul=elf32ebmip ;;
de24ad21 402mips*el-*-rtems*) targ_emul=elf32elmip ;;
252b5132 403mips*-*-rtems*) targ_emul=elf32ebmip ;;
41d390a7 404mips*el-*-vxworks*) targ_emul=elf32elmip ;;
252b5132 405mips*-*-vxworks*) targ_emul=elf32ebmip ;;
7808a785
TS
406mips64*el-*-linux-gnu*) targ_emul=elf32ltsmipn32
407 targ_extra_emuls="elf32btsmipn32 elf32ltsmip elf32btsmip elf64ltsmip elf64btsmip"
408 ;;
409mips64*-*-linux-gnu*) targ_emul=elf32btsmipn32
410 targ_extra_emuls="elf32ltsmipn32 elf32btsmip elf32ltsmip elf64btsmip elf64ltsmip"
411 ;;
fdec3cfc 412mips*el-*-linux-gnu*) targ_emul=elf32ltsmip
e9229007 413 targ_extra_emuls="elf32btsmip elf32ltsmipn32 elf64ltsmip elf32btsmipn32 elf64btsmip"
252b5132 414 ;;
fdec3cfc 415mips*-*-linux-gnu*) targ_emul=elf32btsmip
e9229007 416 targ_extra_emuls="elf32ltsmip elf32btsmipn32 elf64btsmip elf32ltsmipn32 elf64ltsmip"
252b5132
RH
417 ;;
418mips*-*-lnews*) targ_emul=mipslnews ;;
3548145d 419mips*-*-sysv4*) targ_emul=elf32btsmip ;;
3c3bdf30
NC
420mmix-*-*) targ_emul=mmo
421 targ_extra_emuls=elf64mmix
422 ;;
252b5132
RH
423mn10200-*-*) targ_emul=mn10200 ;;
424mn10300-*-*) targ_emul=mn10300 ;;
2469cfa2
NC
425msp430-*-*) targ_emul=msp430x149
426 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" ;;
ac3e50bf
DB
427alpha*-*-freebsd*) targ_emul=elf64alpha_fbsd
428 targ_extra_emuls="elf64alpha alpha"
fb33b906
DB
429 tdir_alpha=`echo ${targ_alias} | sed -e 's/freebsd/freebsdecoff/'`
430 ;;
252b5132
RH
431alpha*-*-linuxecoff*) targ_emul=alpha targ_extra_emuls=elf64alpha
432 tdir_elf64alpha=`echo ${targ_alias} | sed -e 's/ecoff//'`
433 ;;
434alpha*-*-linux-gnu*) targ_emul=elf64alpha targ_extra_emuls=alpha
435 tdir_alpha=`echo ${targ_alias} | sed -e 's/linux/linuxecoff/'`
436 ;;
437alpha*-*-osf*) targ_emul=alpha ;;
438alpha*-*-gnu*) targ_emul=elf64alpha ;;
439alpha*-*-netware*) targ_emul=alpha ;;
fc18a3f3 440alpha*-*-netbsd*) targ_emul=elf64alpha_nbsd ;;
c29ef4b5 441alpha*-*-openbsd*) targ_emul=elf64alpha ;;
252b5132
RH
442z8k-*-coff) targ_emul=z8002; targ_extra_emuls=z8001 ;;
443ns32k-pc532-mach* | ns32k-pc532-ux*) targ_emul=pc532macha ;;
aa501e5c 444ns32k-*-netbsd* | ns32k-pc532-lites*) targ_emul=ns32knbsd ;;
c7e40348 445openrisc-*-*) targ_emul=elf32openrisc ;;
3b16e843
NC
446or32-*-coff) targ_emul=or32 ;;
447or32-*-elf) targ_emul=or32elf ;;
5e37cc46 448or32-*-rtems) targ_emul=or32 ;;
5c67d4bb
AM
449pdp11-*-*) targ_emul=pdp11 ;;
450pjl*-*-*) targ_emul=pjlelf ; targ_extra_emuls="elf_i386" ;;
451pj*-*-*) targ_emul=pjelf ;;
ac3e50bf
DB
452powerpc-*-freebsd*) targ_emul=elf32ppc_fbsd;
453 targ_extra_emuls="elf32ppc elf32ppcsim";
fb33b906
DB
454 targ_extra_libpath=elf32ppc;
455 tdir_elf32ppcsim=`echo ${targ_alias} | sed -e 's/ppc/ppcsim/'`
456 ;;
5c67d4bb
AM
457powerpc*-*-linux*)
458 case "${targ}" in
459 *64*) targ_emul=elf64ppc
eb3d6bb8
AM
460 targ_extra_emuls="elf32ppclinux elf32ppc elf32ppcsim"
461 targ_extra_libpath=elf32ppclinux
462 tdir_elf32ppc=`echo "${targ_alias}" | sed -e 's/64//'`
463 tdir_elf32ppclinux=$tdir_elf32ppc
464 tdir_elf32ppcsim=$tdir_elf32ppc ;;
5c67d4bb
AM
465 *) targ_emul=elf32ppclinux
466 targ_extra_emuls="elf32ppc elf32ppcsim"
ebc6e014
L
467 targ_extra_libpath=elf32ppc
468 if test "${want64}" = "true"; then
469 targ_extra_emuls="$targ_extra_emuls elf64ppc"
470 fi
471 ;;
5c67d4bb
AM
472 esac ;;
473powerpc*le-*-elf* | powerpc*le-*-eabi* | powerpc*le-*-solaris* \
474 | powerpc*le-*-sysv* | powerpc*le-*-vxworks*)
475 case "${targ}" in
476 *64*) targ_emul=elf64lppc
eb3d6bb8
AM
477 targ_extra_emuls="elf32lppc elf32lppcsim"
478 tdir_elf32lppc=`echo "${targ_alias}" | sed -e 's/64//'`
479 tdir_elf32lppcsim=$tdir_elf32lppc ;;
5c67d4bb
AM
480 *) targ_emul=elf32lppc
481 targ_extra_emuls="elf32ppcsim" ;;
482 esac ;;
483powerpc*-*-elf* | powerpc*-*-eabi* | powerpc*-*-sysv* \
c29ef4b5 484 | powerpc*-*-netbsd* | powerpc-*-openbsd* | powerpc*-*-vxworks*)
5c67d4bb
AM
485 case "${targ}" in
486 *64*) targ_emul=elf64ppc
eb3d6bb8
AM
487 targ_extra_emuls="elf32ppc elf32ppclinux elf32ppcsim"
488 tdir_elf32ppc=`echo "${targ_alias}" | sed -e 's/64//'`
489 tdir_elf32ppclinux=$tdir_elf32ppc
490 tdir_elf32ppcsim=$tdir_elf32ppc ;;
5c67d4bb
AM
491 *) targ_emul=elf32ppc
492 targ_extra_emuls="elf32ppclinux elf32ppcsim" ;;
493 esac ;;
59bc061d
NC
494powerpc-*-nto*) targ_emul=elf32ppcnto ;;
495powerpcle-*-nto*) targ_emul=elf32lppcnto ;;
de24ad21 496powerpcle-*-rtems*) targ_emul=elf32leppc ;;
252b5132
RH
497powerpc-*-rtems*) targ_emul=elf32ppc ;;
498powerpc-*-macos*) targ_emul=ppcmacos ;;
499powerpc-*-netware*) targ_emul=ppcnw ;;
500powerpcle-*-pe) targ_emul=ppcpe ;;
501powerpcle-*-winnt*) targ_emul=ppcpe ;;
3b1b01cf 502powerpcle-*-cygwin*) targ_emul=ppcpe ;;
eb1e0e80 503powerpc-*-aix5*) targ_emul=aix5ppc ;;
742aeb63 504powerpc-*-aix*) targ_emul=aixppc ;;
252b5132 505powerpc-*-beos*) targ_emul=aixppc ;;
94349e12 506powerpc-*-windiss*) targ_emul=elf32ppcwindiss ;;
eb1e0e80 507rs6000-*-aix5*) targ_emul=aix5rs6 ;;
252b5132
RH
508rs6000-*-aix*) targ_emul=aixrs6 ;;
509tic30-*-*aout*) targ_emul=tic30aout ;;
510tic30-*-*coff*) targ_emul=tic30coff ;;
026df7c5 511tic4x-*-* | c4x-*-*) targ_emul=tic4xcoff ;;
74459f0e 512tic54x-*-* | c54x*-*-*) targ_emul=tic54xcoff ;;
252b5132
RH
513tic80-*-*) targ_emul=tic80coff ;;
514v850-*-*) targ_emul=v850 ;;
515v850e-*-*) targ_emul=v850 ;;
516v850ea-*-*) targ_emul=v850 ;;
7d553a40 517frv-*-*) targ_emul=elf32frv ;;
252b5132 518w65-*-*) targ_emul=w65 ;;
93fbbb04 519xstormy16-*-*) targ_emul=elf32xstormy16 ;;
252b5132 520fr30-*-*) targ_emul=elf32fr30 ;;
71acc4e8
NC
521mcore-*-pe) targ_emul=mcorepe ;
522 targ_extra_ofiles="deffilep.o pe-dll.o" ;;
523mcore-*-elf) targ_emul=elf32mcore ;;
f52d1d64
JJ
524s390x-*-linux*) targ_emul=elf64_s390
525 targ_extra_emuls=elf_s390
526 targ_extra_libpath=$targ_extra_emuls
527 tdir_elf_s390=`echo ${targ_alias} | sed -e 's/s390x/s390/'` ;;
528s390-*-linux*) targ_emul=elf_s390
529 if test "${want64}" = "true"; then
530 targ_extra_emuls=elf64_s390
531 targ_extra_libpath=$targ_extra_emuls
532 tdir_elf64_s390=`echo ${targ_alias} | sed -e 's/s390/s390x/'`
533 fi ;;
252b5132 534*-*-ieee*) targ_emul=vanilla ;;
cf88bb9f 535ip2k-*-elf) targ_emul=elf32ip2k ;;
252b5132
RH
536
537*)
538 echo 2>&1 "*** ld does not support target ${targ}"
539 echo 2>&1 "*** see ld/configure.tgt for supported targets"
540 exit 1
541
542esac
This page took 0.202342 seconds and 4 git commands to generate.