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