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