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