2009-08-10 Tristan Gingold <gingold@adacore.com>
[deliverable/binutils-gdb.git] / bfd / config.bfd
CommitLineData
252b5132
RH
1# config.bfd
2# Convert a canonical host type into a BFD host type.
3# Set shell variable targ to canonical target name, and run
4# using ``. config.bfd''.
5# Sets the following shell variables:
6# targ_defvec Default vector for this target
7# targ_selvecs Vectors to build for this target
e9e69f5a
AM
8# targ64_selvecs Vectors to build if --enable-64-bit-bfd is given
9# or if host is 64 bit.
252b5132
RH
10# targ_archs Architectures for this target
11# targ_cflags $(CFLAGS) for this target (FIXME: pretty bogus)
12# targ_underscore Whether underscores are used: yes or no
13
14# Part of this file is processed by targmatch.sed to generate the
15# targmatch.h file. The #ifdef and #endif lines that appear below are
16# copied directly into targmatch.h.
17
18# The binutils c++filt program wants to know whether underscores are
19# stripped or not. That is why we set targ_underscore. c++filt uses
20# this information to choose a default. This information is
21# duplicated in the symbol_leading_char field of the BFD target
22# vector, but c++filt does not deal with object files and is not
23# linked against libbfd.a. It is not terribly important that c++filt
24# get this right; it is just convenient.
25
26targ_defvec=
27targ_selvecs=
e9e69f5a 28targ64_selvecs=
252b5132
RH
29targ_cflags=
30targ_underscore=no
31
91fb2a9d
NC
32# Catch obsolete configurations.
33case $targ in
0285182b 34 maxq-*-coff | \
b2d65c0b 35 null)
91fb2a9d
NC
36 if test "x$enable_obsolete" != xyes; then
37 echo "*** Configuration $targ is obsolete." >&2
38 echo "*** Specify --enable-obsolete to build it anyway." >&2
39 echo "*** Support will be REMOVED in the next major release of BINUTILS," >&2
40 echo "*** unless a maintainer comes forward." >&2
41 exit 1
42 fi;;
43esac
44
7f266840 45case $targ in
0285182b
NC
46 m68*-apple-aux* | \
47 m68*-apollo-* | \
48 m68*-bull-sysv* | \
49 m68*-*-rtemscoff* | \
50 i960-*-rtems* | \
51 or32-*-rtems* | \
d6486796
NC
52 m68*-*-lynxos* | \
53 sparc-*-lynxos* | \
54 vax-*-vms* | \
7f266840
DJ
55 arm-*-oabi | \
56 thumb-*-oabi | \
c17ae8a2 57 a29k-* | \
7e4e2059
NC
58 hppa*-*-rtems* | \
59 *-go32-rtems* | \
60 i[3-7]86*-*-rtemscoff* | \
61 mips*el-*-rtems* | \
62 powerpcle-*-rtems* | \
63 sparc*-*-rtemsaout* | \
7f266840
DJ
64 null)
65 echo "*** Configuration $targ is obsolete." >&2
66 echo "*** Support has been REMOVED." >&2
67 exit 1
68 ;;
69esac
91fb2a9d 70
252b5132
RH
71targ_cpu=`echo $targ | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
72case "${targ_cpu}" in
7d3f158f 73alpha*) targ_archs=bfd_alpha_arch ;;
bfff1642 74am34*|am33_2.0*) targ_archs=bfd_mn10300_arch ;;
7d3f158f 75arm*) targ_archs=bfd_arm_arch ;;
0f64bb02 76bfin*) targ_archs=bfd_bfin_arch ;;
7d3f158f
AM
77c30*) targ_archs=bfd_tic30_arch ;;
78c4x*) targ_archs=bfd_tic4x_arch ;;
79c54x*) targ_archs=bfd_tic54x_arch ;;
3d3d428f 80cr16*) targ_archs=bfd_cr16_arch ;;
bac23f82 81crisv32) targ_archs=bfd_cris_arch ;;
7d3f158f 82crx*) targ_archs=bfd_crx_arch ;;
d172d4ba 83dlx*) targ_archs=bfd_dlx_arch ;;
ebff6cd5 84fido*) targ_archs=bfd_m68k_arch ;;
7d3f158f
AM
85hppa*) targ_archs=bfd_hppa_arch ;;
86i[3-7]86) targ_archs=bfd_i386_arch ;;
87i370) targ_archs=bfd_i370_arch ;;
84e94c90 88lm32) targ_archs=bfd_lm32_arch ;;
60bcf0fa
NC
89m6811*|m68hc11*) targ_archs="bfd_m68hc11_arch bfd_m68hc12_arch" ;;
90m6812*|m68hc12*) targ_archs="bfd_m68hc12_arch bfd_m68hc11_arch" ;;
7d3f158f
AM
91m68*) targ_archs=bfd_m68k_arch ;;
92m88*) targ_archs=bfd_m88k_arch ;;
7499d566 93maxq*) targ_archs=bfd_maxq_arch ;;
7ba29e2a 94microblaze*) targ_archs=bfd_microblaze_arch ;;
7d3f158f 95mips*) targ_archs=bfd_mips_arch ;;
3b16e843 96or32*) targ_archs=bfd_or32_arch ;;
7d3f158f
AM
97pdp11*) targ_archs=bfd_pdp11_arch ;;
98pj*) targ_archs="bfd_pj_arch bfd_i386_arch";;
99powerpc*) targ_archs="bfd_rs6000_arch bfd_powerpc_arch" ;;
100rs6000) targ_archs="bfd_rs6000_arch bfd_powerpc_arch" ;;
101s390*) targ_archs=bfd_s390_arch ;;
102sh*) targ_archs=bfd_sh_arch ;;
103sparc*) targ_archs=bfd_sparc_arch ;;
e9f53129 104spu*) targ_archs=bfd_spu_arch ;;
7d3f158f
AM
105strongarm*) targ_archs=bfd_arm_arch ;;
106thumb*) targ_archs=bfd_arm_arch ;;
107v850*) targ_archs=bfd_v850_arch ;;
99ad8390 108x86_64*) targ_archs=bfd_i386_arch ;;
7d3f158f
AM
109xscale*) targ_archs=bfd_arm_arch ;;
110xtensa*) targ_archs=bfd_xtensa_arch ;;
3c9b82ba 111z80|r800) targ_archs=bfd_z80_arch ;;
7d3f158f 112z8k*) targ_archs=bfd_z8k_arch ;;
7d3f158f 113*) targ_archs=bfd_${targ_cpu}_arch ;;
252b5132
RH
114esac
115
116
117# WHEN ADDING ENTRIES TO THIS MATRIX:
118# Make sure that the left side always has two dashes. Otherwise you
119# can get spurious matches. Even for unambiguous cases, do this as a
120# convention, else the table becomes a real mess to understand and maintain.
f15398ef
DJ
121#
122# Keep obsolete entries above the START comment, to keep them out of
123# targmatch.h.
252b5132
RH
124
125case "${targ}" in
f15398ef 126 mips*-dec-bsd*)
279500de
TS
127 echo "This target is obsolete and has been removed."
128 exit 1
129 ;;
130
131 mips*-*-mach3*)
132 echo "This target is obsolete and has been removed."
f15398ef
DJ
133 exit 1
134 ;;
135
136 mips*-*-pe*)
279500de 137 echo "This target is obsolete and has been removed."
f15398ef
DJ
138 exit 1
139 ;;
140
ce3c775b
NC
141 plugin)
142 targ_defvec=plugin_vec
143 targ_selvecs="plugin_vec"
144 ;;
145
252b5132
RH
146# START OF targmatch.h
147#ifdef BFD64
13dfd2d0 148 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
4ada7262 149 targ_defvec=bfd_elf64_alpha_freebsd_vec
13285a1b 150 targ_selvecs="bfd_elf64_alpha_vec ecoffalpha_little_vec"
314e9a4e 151 want64=true
4ada7262
DB
152 # FreeBSD <= 4.0 supports only the old nonstandard way of ABI labelling.
153 case "${targ}" in
154 alpha*-*-freebsd3* | alpha*-*-freebsd4 | alpha*-*-freebsd4.0*)
155 targ_cflags=-DOLD_FREEBSD_ABI_LABEL ;;
156 esac
157 ;;
158 alpha*-*-netbsd* | alpha*-*-openbsd*)
252b5132
RH
159 targ_defvec=bfd_elf64_alpha_vec
160 targ_selvecs=ecoffalpha_little_vec
314e9a4e 161 want64=true
252b5132
RH
162 ;;
163 alpha*-*-netware*)
164 targ_defvec=ecoffalpha_little_vec
165 targ_selvecs=nlm32_alpha_vec
314e9a4e 166 want64=true
252b5132
RH
167 ;;
168 alpha*-*-linuxecoff*)
169 targ_defvec=ecoffalpha_little_vec
170 targ_selvecs=bfd_elf64_alpha_vec
314e9a4e 171 want64=true
252b5132 172 ;;
ed84e695 173 alpha*-*-linux-* | alpha*-*-elf*)
252b5132
RH
174 targ_defvec=bfd_elf64_alpha_vec
175 targ_selvecs=ecoffalpha_little_vec
314e9a4e 176 want64=true
252b5132
RH
177 ;;
178 alpha*-*-*vms*)
179 targ_defvec=vms_alpha_vec
314e9a4e 180 want64=true
252b5132
RH
181 ;;
182 alpha*-*-*)
183 targ_defvec=ecoffalpha_little_vec
314e9a4e 184 want64=true
252b5132 185 ;;
ed84e695 186 ia64*-*-freebsd* | ia64*-*-netbsd* | ia64*-*-linux-* | ia64*-*-elf* | ia64*-*-kfreebsd*-gnu)
800eeca4 187 targ_defvec=bfd_elf64_ia64_little_vec
92dd4511 188 targ_selvecs="bfd_elf64_ia64_big_vec bfd_pei_ia64_vec"
314e9a4e 189 want64=true
800eeca4 190 ;;
bbe66d08 191 ia64*-*-hpux*)
fcf12726
AM
192 targ_defvec=bfd_elf32_ia64_hpux_big_vec
193 targ_selvecs="bfd_elf64_ia64_hpux_big_vec"
314e9a4e 194 want64=true
bbe66d08 195 ;;
01e1a5bc
NC
196 ia64*-*-*vms*)
197 targ_defvec=bfd_elf64_ia64_vms_vec
198 want64=true
199 ;;
71a75f6f
MF
200 sparc64-*-freebsd* | sparc64-*-kfreebsd*-gnu)
201 targ_defvec=bfd_elf64_sparc_freebsd_vec
13285a1b 202 targ_selvecs="bfd_elf64_sparc_vec bfd_elf32_sparc_vec sunos_big_vec"
71a75f6f
MF
203 ;;
204 sparc64-*-netbsd* | sparc64-*-openbsd*)
bc11ab2b
JL
205 targ_defvec=bfd_elf64_sparc_vec
206 targ_selvecs="bfd_elf32_sparc_vec sunos_big_vec"
314e9a4e 207 want64=true
bc11ab2b 208 ;;
252b5132
RH
209#endif /* BFD64 */
210
bfff1642 211 am34-*-linux* | am33_2.0-*-linux*)
73c3cd1c
AO
212 targ_defvec=bfd_elf32_am33lin_vec
213 ;;
bfff1642 214
252b5132
RH
215 arc-*-elf*)
216 targ_defvec=bfd_elf32_littlearc_vec
217 targ_selvecs=bfd_elf32_bigarc_vec
218 ;;
219
658f2588
JT
220 armeb-*-netbsdelf*)
221 targ_defvec=bfd_elf32_bigarm_vec
222 targ_selvecs="bfd_elf32_littlearm_vec armnetbsd_vec"
223 ;;
61d0bc33
AM
224 arm-*-netbsdelf*)
225 targ_defvec=bfd_elf32_littlearm_vec
226 targ_selvecs="bfd_elf32_bigarm_vec armnetbsd_vec"
227 ;;
056a1d49 228 arm-*-netbsd* | arm-*-openbsd*)
021e3cc0 229 targ_defvec=armnetbsd_vec
4a253e81 230 targ_selvecs="bfd_elf32_littlearm_vec bfd_elf32_bigarm_vec"
021e3cc0 231 targ_underscore=yes
d0facd1b 232 targ_cflags=-D__QNXTARGET__
021e3cc0 233 ;;
7e392df6 234 arm-*-nto* | nto*arm*)
b6821651
AM
235 targ_defvec=bfd_elf32_littlearm_vec
236 targ_selvecs=bfd_elf32_bigarm_vec
7e392df6 237 ;;
252b5132
RH
238 arm-*-riscix*)
239 targ_defvec=riscix_vec
240 ;;
241 arm-epoc-pe*)
242 targ_defvec=arm_epoc_pe_little_vec
243 targ_selvecs="arm_epoc_pe_little_vec arm_epoc_pe_big_vec arm_epoc_pei_little_vec arm_epoc_pei_big_vec"
244 targ_underscore=no
d8adc60f 245 targ_cflags=-DARM_COFF_BUGFIX
252b5132 246 ;;
361dff73 247 arm-wince-pe | arm-*-wince | arm*-*-mingw32ce* | arm*-*-cegcc*)
7148cc28
NC
248 targ_defvec=arm_wince_pe_little_vec
249 targ_selvecs="arm_wince_pe_little_vec arm_wince_pe_big_vec arm_wince_pei_little_vec arm_wince_pei_big_vec"
17505c5c 250 targ_underscore=no
ac4b3dd8 251 targ_cflags="-DARM_WINCE -DARM_COFF_BUGFIX"
17505c5c 252 ;;
252b5132
RH
253 arm-*-pe*)
254 targ_defvec=armpe_little_vec
255 targ_selvecs="armpe_little_vec armpe_big_vec armpei_little_vec armpei_big_vec"
256 targ_underscore=yes
257 ;;
60bcf0fa 258 arm-*-aout | armel-*-aout)
252b5132
RH
259 targ_defvec=aout_arm_little_vec
260 targ_selvecs=aout_arm_big_vec
261 ;;
262 armeb-*-aout)
263 targ_defvec=aout_arm_big_vec
264 targ_selvecs=aout_arm_little_vec
265 ;;
266 arm-*-coff)
267 targ_defvec=armcoff_little_vec
268 targ_selvecs=armcoff_big_vec
269 targ_underscore=yes
270 ;;
ddcfc5fc
NC
271 arm-*-rtems*)
272 targ_defvec=bfd_elf32_littlearm_vec
273 targ_selvecs=bfd_elf32_bigarm_vec
274 ;;
ed84e695 275 armeb-*-elf | arm*b-*-linux-*)
1bde2d57
PB
276 targ_defvec=bfd_elf32_bigarm_vec
277 targ_selvecs=bfd_elf32_littlearm_vec
278 ;;
42b5d0ea
NC
279 arm-*-kaos* | strongarm-*-kaos*)
280 targ_defvec=bfd_elf32_littlearm_vec
281 targ_selvecs=bfd_elf32_bigarm_vec
282 ;;
ed84e695 283 arm-*-elf | arm-*-freebsd* | arm*-*-linux-* | arm*-*-conix* | \
4e7fd91e 284 arm*-*-uclinux* | arm-*-kfreebsd*-gnu | \
e5a52504 285 arm*-*-eabi* )
252b5132
RH
286 targ_defvec=bfd_elf32_littlearm_vec
287 targ_selvecs=bfd_elf32_bigarm_vec
288 ;;
4e7fd91e
PB
289 arm*-*-vxworks | arm*-*-windiss)
290 targ_defvec=bfd_elf32_littlearm_vxworks_vec
291 targ_selvecs=bfd_elf32_bigarm_vxworks_vec
292 ;;
e5a52504
MM
293 arm*-*-symbianelf*)
294 targ_defvec=bfd_elf32_littlearm_symbian_vec
295 targ_selvecs=bfd_elf32_bigarm_symbian_vec
296 ;;
24c603fa
AH
297 arm9e-*-elf)
298 targ_defvec=bfd_elf32_littlearm_vec
299 targ_selvecs=bfd_elf32_bigarm_vec
300 ;;
252b5132
RH
301
302 thumb-*-coff)
303 targ_defvec=armcoff_little_vec
304 targ_selvecs=armcoff_big_vec
305 targ_underscore=yes
306 ;;
252b5132
RH
307 thumb-*-elf)
308 targ_defvec=bfd_elf32_littlearm_vec
309 targ_selvecs=bfd_elf32_bigarm_vec
310 ;;
311 thumb-epoc-pe*)
312 targ_defvec=arm_epoc_pe_little_vec
313 targ_selvecs="arm_epoc_pe_little_vec arm_epoc_pe_big_vec arm_epoc_pei_little_vec arm_epoc_pei_big_vec"
314 targ_underscore=no
315 ;;
316 thumb-*-pe*)
317 targ_defvec=armpe_little_vec
318 targ_selvecs="armpe_little_vec armpe_big_vec armpei_little_vec armpei_big_vec"
319 targ_underscore=yes
320 ;;
321 strongarm-*-elf)
322 targ_defvec=bfd_elf32_littlearm_vec
323 targ_selvecs=bfd_elf32_bigarm_vec
324 ;;
325 strongarm-*-coff)
326 targ_defvec=armcoff_little_vec
327 targ_selvecs=armcoff_big_vec
328 targ_underscore=yes
329 ;;
077b8428
NC
330 xscale-*-elf)
331 targ_defvec=bfd_elf32_littlearm_vec
332 targ_selvecs=bfd_elf32_bigarm_vec
333 ;;
334 xscale-*-coff)
335 targ_defvec=armcoff_little_vec
336 targ_selvecs=armcoff_big_vec
337 targ_underscore=yes
338 ;;
252b5132 339
adde6300
AM
340 avr-*-*)
341 targ_defvec=bfd_elf32_avr_vec
342 ;;
343
0f64bb02
CM
344 bfin-*-*)
345 targ_defvec=bfd_elf32_bfin_vec
48d502e1
BS
346 targ_selvecs=bfd_elf32_bfinfdpic_vec
347 targ_underscore=yes
0f64bb02
CM
348 ;;
349
252b5132
RH
350 c30-*-*aout* | tic30-*-*aout*)
351 targ_defvec=tic30_aout_vec
352 ;;
353 c30-*-*coff* | tic30-*-*coff*)
354 targ_defvec=tic30_coff_vec
355 ;;
356
efbc813e 357 c4x-*-*coff* | tic4x-*-*coff* | tic4x-*-rtems*)
026df7c5
NC
358 targ_defvec=tic4x_coff1_vec
359 targ_selvecs="tic4x_coff1_beh_vec tic4x_coff2_vec tic4x_coff2_beh_vec tic4x_coff0_vec tic4x_coff0_beh_vec"
360 targ_underscore=yes
361 ;;
362
81635ce4
TW
363 c54x*-*-*coff* | tic54x-*-*coff*)
364 targ_defvec=tic54x_coff1_vec
365 targ_selvecs="tic54x_coff1_beh_vec tic54x_coff2_vec tic54x_coff2_beh_vec tic54x_coff0_vec tic54x_coff0_beh_vec"
366 targ_underscore=yes
367 ;;
368
3d3d428f
NC
369 cr16-*-elf*)
370 targ_defvec=bfd_elf32_cr16_vec
371 targ_underscore=yes
372 ;;
373
0949843d
NC
374 cr16c-*-elf*)
375 targ_defvec=bfd_elf32_cr16c_vec
376 targ_underscore=yes
377 ;;
378
bac23f82 379 cris-*-* | crisv32-*-*)
06c15ad7 380 targ_defvec=cris_aout_vec
4da81684
HPN
381 targ_selvecs="bfd_elf32_us_cris_vec bfd_elf32_cris_vec ieee_vec"
382 targ_underscore=yes # Note: not true for bfd_elf32_cris_vec.
06c15ad7
HPN
383 ;;
384
1fe1f39c
NC
385 crx-*-elf*)
386 targ_defvec=bfd_elf32_crx_vec
387 targ_underscore=yes
388 ;;
389
252b5132
RH
390 d10v-*-*)
391 targ_defvec=bfd_elf32_d10v_vec
392 ;;
393
d172d4ba
NC
394 dlx-*-elf*)
395 targ_defvec=bfd_elf32_dlx_big_vec
396 targ_selvecs="bfd_elf32_dlx_big_vec"
397 ;;
398
252b5132
RH
399 d30v-*-*)
400 targ_defvec=bfd_elf32_d30v_vec
401 ;;
402
ebff6cd5
KH
403 fido-*-elf* )
404 targ_defvec=bfd_elf32_m68k_vec
405 targ_selvecs="m68kcoff_vec ieee_vec"
406 ;;
407
252b5132
RH
408 fr30-*-elf)
409 targ_defvec=bfd_elf32_fr30_vec
410 ;;
411
43850d5b 412 frv-*-elf)
4e5ba5b7 413 targ_defvec=bfd_elf32_frv_vec
43850d5b 414 targ_selvecs=bfd_elf32_frvfdpic_vec
4e5ba5b7
DB
415 ;;
416
43850d5b
AO
417 frv-*-*linux*)
418 targ_defvec=bfd_elf32_frvfdpic_vec
419 targ_selvecs=bfd_elf32_frv_vec
420 ;;
252b5132 421
5d8d4872 422 moxie-*-elf | moxie-*-uclinux)
20135e4c
NC
423 targ_defvec=bfd_elf32_moxie_vec
424 ;;
425
9a813b7a
DJ
426 h8300*-*-rtemscoff*)
427 targ_defvec=h8300coff_vec
428 targ_underscore=yes
429 ;;
430
431 h8300*-*-elf | h8300*-*-rtems*)
e01b0e69
JR
432 targ_defvec=bfd_elf32_h8300_vec
433 targ_underscore=yes
434 ;;
435
252b5132
RH
436 h8300*-*-*)
437 targ_defvec=h8300coff_vec
438 targ_underscore=yes
439 ;;
440
441 h8500-*-*)
442 targ_defvec=h8500coff_vec
443 targ_underscore=yes
444 ;;
445
60bcf0fa 446#ifdef BFD64
ed84e695 447 hppa*64*-*-linux-*)
d952f17a
AM
448 targ_defvec=bfd_elf64_hppa_linux_vec
449 targ_selvecs=bfd_elf64_hppa_vec
314e9a4e 450 want64=true
edd21aca 451 ;;
d1dab720 452 hppa*64*-*-hpux11*)
e59db122 453 targ_defvec=bfd_elf64_hppa_vec
d952f17a 454 targ_selvecs=bfd_elf64_hppa_linux_vec
e59db122 455 targ_cflags=-DHPUX_LARGE_AR_IDS
314e9a4e 456 want64=true
e59db122
JL
457 ;;
458#endif
edd21aca 459
ed84e695 460 hppa*-*-linux-*)
d952f17a
AM
461 targ_defvec=bfd_elf32_hppa_linux_vec
462 targ_selvecs=bfd_elf32_hppa_vec
463 ;;
e7fbc2bf
JT
464 hppa*-*-netbsd*)
465 targ_defvec=bfd_elf32_hppa_nbsd_vec
466 targ_selvecs="bfd_elf32_hppa_vec bfd_elf32_hppa_linux_vec"
467 ;;
7e4e2059 468 hppa*-*-*elf* | hppa*-*-lites* | hppa*-*-sysv4* | hppa*-*-openbsd*)
edd21aca 469 targ_defvec=bfd_elf32_hppa_vec
d952f17a 470 targ_selvecs=bfd_elf32_hppa_linux_vec
edd21aca
AM
471 ;;
472
252b5132
RH
473#if defined (HOST_HPPAHPUX) || defined (HOST_HPPABSD) || defined (HOST_HPPAOSF) || defined (HOST_HPPAMPEIX)
474 hppa*-*-bsd*)
475 targ_defvec=som_vec
476 targ_selvecs=bfd_elf32_hppa_vec
e59db122 477 ;;
252b5132
RH
478 hppa*-*-hpux* | hppa*-*-hiux* | hppa*-*-mpeix*)
479 targ_defvec=som_vec
480 ;;
481 hppa*-*-osf*)
482 targ_defvec=som_vec
483 targ_selvecs=bfd_elf32_hppa_vec
e59db122 484 ;;
252b5132
RH
485#endif /* defined (HOST_HPPAHPUX) || defined (HOST_HPPABSD) || defined (HOST_HPPAOSF) */
486
7d3f158f 487 i370-*-*)
5b93d8bb
AM
488 targ_defvec=bfd_elf32_i370_vec
489 targ_selvecs="bfd_elf32_i370_vec"
490 ;;
80c7c40a 491 i[3-7]86-*-sco3.2v5*coff)
252b5132
RH
492 targ_defvec=i386coff_vec
493 targ_selvecs=bfd_elf32_i386_vec
494 ;;
d2b2c203 495 i[3-7]86-*-sysv4* | i[3-7]86-*-unixware* | \
80c7c40a
NC
496 i[3-7]86-*-elf | i[3-7]86-*-sco3.2v5* | \
497 i[3-7]86-*-dgux* | i[3-7]86-*-sysv5*)
252b5132
RH
498 targ_defvec=bfd_elf32_i386_vec
499 targ_selvecs=i386coff_vec
500 ;;
d2b2c203
DJ
501 i[3-7]86-*-solaris2*)
502 targ_defvec=bfd_elf32_i386_vec
503 targ_selvecs=i386coff_vec
8a9036a4 504 targ64_selvecs="bfd_elf64_x86_64_vec bfd_elf64_l1om_vec"
d2b2c203
DJ
505 want64=true
506 ;;
00b2bfc1
NC
507#ifdef BFD64
508 x86_64-*-solaris2*)
509 targ_defvec=bfd_elf32_i386_vec
8a9036a4 510 targ_selvecs="bfd_elf64_x86_64_vec bfd_elf64_l1om_vec i386coff_vec"
00b2bfc1
NC
511 want64=true
512 ;;
513#endif
80c7c40a 514 i[3-7]86-*-kaos*)
42b5d0ea
NC
515 targ_defvec=bfd_elf32_i386_vec
516 targ_selvecs=bfd_elf32_i386_vec
517 ;;
80c7c40a 518 i[3-7]86-*-nto*)
b6821651 519 targ_defvec=bfd_elf32_i386_vec
caf47ea6
AM
520 targ_selvecs=i386coff_vec
521 ;;
80c7c40a 522 i[3-7]86-*-aros*)
da896d3f
NC
523 targ_defvec=bfd_elf32_i386_vec
524 ;;
80c7c40a 525 i[3-7]86-*-chorus*)
8848a8d0
CF
526 targ_defvec=bfd_elf32_i386_vec
527 ;;
18c1668c
PA
528 i[3-7]86-*-dicos*)
529 targ_defvec=bfd_elf32_i386_vec
8a9036a4 530 targ64_selvecs="bfd_elf64_x86_64_vec bfd_elf64_l1om_vec"
18c1668c 531 ;;
7e4e2059 532 *-*-msdosdjgpp* | *-*-go32* )
252b5132
RH
533 targ_defvec=go32coff_vec
534 targ_selvecs="go32stubbedcoff_vec i386aout_vec"
535 ;;
80c7c40a
NC
536 i[3-7]86-*-sysv* | i[3-7]86-*-isc* | i[3-7]86-*-sco* | i[3-7]86-*-coff | \
537 i[3-7]86-*-aix*)
2e9a84c8
RH
538 targ_defvec=i386coff_vec
539 ;;
9f971fcb 540 i[3-7]86-*-rtems*)
d43ded80
PB
541 targ_defvec=bfd_elf32_i386_vec
542 targ_selvecs="i386coff_vec i386aout_vec"
543 ;;
80c7c40a 544 i[3-7]86-*-darwin* | i[3-7]86-*-macos10* | i[3-7]86-*-rhapsody*)
154a1ee5
TG
545 targ_defvec=mach_o_i386_vec
546 targ_selvecs="mach_o_i386_vec mach_o_le_vec mach_o_be_vec mach_o_fat_vec pef_vec pef_xlib_vec sym_vec"
b1c58715
AM
547 targ_archs="bfd_i386_arch bfd_powerpc_arch bfd_rs6000_arch"
548 ;;
80c7c40a 549 i[3-7]86-sequent-bsd*)
252b5132
RH
550 targ_defvec=i386dynix_vec
551 targ_underscore=yes
552 ;;
80c7c40a 553 i[3-7]86-*-bsd*)
252b5132
RH
554 targ_defvec=i386bsd_vec
555 targ_underscore=yes
556 ;;
80c7c40a
NC
557 i[3-7]86-*-freebsdaout* | i[3-7]86-*-freebsd[12].* | \
558 i[3-7]86-*-freebsd[12])
252b5132
RH
559 targ_defvec=i386freebsd_vec
560 targ_selvecs=i386bsd_vec
561 targ_underscore=yes
562 ;;
0b3e17e9 563 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
4ada7262 564 targ_defvec=bfd_elf32_i386_freebsd_vec
92dd4511 565 targ_selvecs="bfd_elf32_i386_vec i386pei_vec i386coff_vec"
8a9036a4 566 targ64_selvecs="bfd_elf64_x86_64_freebsd_vec bfd_elf64_x86_64_vec x86_64pei_vec bfd_elf64_l1om_vec bfd_elf64_l1om_freebsd_vec"
4ada7262
DB
567 # FreeBSD <= 4.0 supports only the old nonstandard way of ABI labelling.
568 case "${targ}" in
80c7c40a 569 i[3-7]86-*-freebsd3* | i[3-7]86-*-freebsd4 | i[3-7]86-*-freebsd4.0*)
4ada7262
DB
570 targ_cflags=-DOLD_FREEBSD_ABI_LABEL ;;
571 esac
7a50d4ac 572 ;;
4615568e 573 i[3-7]86-*-netbsdelf* | i[3-7]86-*-netbsd*-gnu* | i[3-7]86-*-knetbsd*-gnu)
0af288f3
C
574 targ_defvec=bfd_elf32_i386_vec
575 targ_selvecs=i386netbsd_vec
8a9036a4 576 targ64_selvecs="bfd_elf64_x86_64_vec bfd_elf64_l1om_vec"
0af288f3 577 ;;
80c7c40a 578 i[3-7]86-*-netbsdpe*)
436e8db0
NC
579 targ_defvec=i386pe_vec
580 targ_selvecs="i386pe_vec i386pei_vec bfd_elf32_i386_vec"
581 ;;
7d1ebfb2
NC
582 i[3-7]86-*-netbsdaout* | i[3-7]86-*-netbsd* | \
583 i[3-7]86-*-openbsd[0-2].* | i[3-7]86-*-openbsd3.[0-3])
252b5132 584 targ_defvec=i386netbsd_vec
0af288f3 585 targ_selvecs="bfd_elf32_i386_vec i386bsd_vec"
252b5132
RH
586 targ_underscore=yes
587 ;;
7d3f158f 588 i[3-7]86-*-openbsd*)
7d1ebfb2
NC
589 targ_defvec=bfd_elf32_i386_vec
590 targ_selvecs=i386netbsd_vec
591 ;;
80c7c40a 592 i[3-7]86-*-netware*)
252b5132
RH
593 targ_defvec=bfd_elf32_i386_vec
594 targ_selvecs="nlm32_i386_vec i386coff_vec i386aout_vec"
595 ;;
80c7c40a 596 i[3-7]86-*-linux*aout*)
252b5132
RH
597 targ_defvec=i386linux_vec
598 targ_selvecs=bfd_elf32_i386_vec
599 targ_underscore=yes
600 ;;
ed84e695 601 i[3-7]86-*-linux-*)
252b5132 602 targ_defvec=bfd_elf32_i386_vec
92dd4511 603 targ_selvecs="i386linux_vec i386pei_vec"
8a9036a4 604 targ64_selvecs="bfd_elf64_x86_64_vec bfd_elf64_l1om_vec"
252b5132 605 ;;
956cd1d6 606#ifdef BFD64
f96fc22a
TG
607 x86_64-*-darwin*)
608 targ_defvec=mach_o_le_vec
609 targ_selvecs="mach_o_le_vec mach_o_be_vec mach_o_fat_vec pef_vec pef_xlib_vec sym_vec"
610 targ_archs="bfd_i386_arch bfd_powerpc_arch bfd_rs6000_arch"
611 want64=true
612 ;;
18c1668c
PA
613 x86_64-*-dicos*)
614 targ_defvec=bfd_elf64_x86_64_vec
8a9036a4 615 targ_selvecs="bfd_elf32_i386_vec bfd_elf64_l1om_vec"
18c1668c
PA
616 want64=true
617 ;;
34723071
NC
618 x86_64-*-elf*)
619 targ_defvec=bfd_elf64_x86_64_vec
8a9036a4 620 targ_selvecs="bfd_elf32_i386_vec bfd_elf64_l1om_vec i386coff_vec"
314e9a4e 621 want64=true
34723071 622 ;;
13dfd2d0 623 x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
9d7cbccd 624 targ_defvec=bfd_elf64_x86_64_freebsd_vec
8a9036a4 625 targ_selvecs="bfd_elf32_i386_freebsd_vec i386coff_vec i386pei_vec x86_64pei_vec bfd_elf32_i386_vec bfd_elf64_x86_64_vec bfd_elf64_l1om_vec bfd_elf64_l1om_freebsd_vec"
314e9a4e 626 want64=true
8a8b2d4b 627 ;;
85cfd8d3 628 x86_64-*-netbsd* | x86_64-*-openbsd*)
8a8b2d4b 629 targ_defvec=bfd_elf64_x86_64_vec
8a9036a4 630 targ_selvecs="bfd_elf32_i386_vec i386netbsd_vec i386coff_vec i386pei_vec x86_64pei_vec bfd_elf64_l1om_vec"
314e9a4e 631 want64=true
d4af9775 632 ;;
ed84e695 633 x86_64-*-linux-*)
8d88c4ca 634 targ_defvec=bfd_elf64_x86_64_vec
8a9036a4 635 targ_selvecs="bfd_elf32_i386_vec i386linux_vec i386pei_vec x86_64pei_vec bfd_elf64_l1om_vec"
314e9a4e 636 want64=true
8d88c4ca 637 ;;
42037fe5 638 x86_64-*-mingw*)
99ad8390 639 targ_defvec=x86_64pe_vec
8a9036a4 640 targ_selvecs="x86_64pe_vec x86_64pei_vec bfd_elf64_x86_64_vec bfd_elf64_l1om_vec"
99ad8390
NC
641 want64=true
642 targ_underscore=yes
643 ;;
8d88c4ca 644#endif
80c7c40a 645 i[3-7]86-*-lynxos*)
b2d65c0b
NC
646 targ_defvec=bfd_elf32_i386_vec
647 targ_selvecs="i386lynx_coff_vec i386lynx_aout_vec"
252b5132 648 ;;
80c7c40a 649 i[3-7]86-*-gnu*)
252b5132
RH
650 targ_defvec=bfd_elf32_i386_vec
651 ;;
80c7c40a 652 i[3-7]86-*-mach* | i[3-7]86-*-osf1mk*)
252b5132
RH
653 targ_defvec=i386mach3_vec
654 targ_cflags=-DSTAT_FOR_EXEC
655 targ_underscore=yes
656 ;;
80c7c40a 657 i[3-7]86-*-os9k)
252b5132
RH
658 targ_defvec=i386os9k_vec
659 ;;
80c7c40a 660 i[3-7]86-*-msdos*)
252b5132
RH
661 targ_defvec=i386aout_vec
662 targ_selvecs=i386msdos_vec
663 ;;
80c7c40a 664 i[3-7]86-*-moss*)
252b5132
RH
665 targ_defvec=bfd_elf32_i386_vec
666 targ_selvecs="i386msdos_vec i386aout_vec"
667 ;;
80c7c40a 668 i[3-7]86-*-beospe*)
252b5132
RH
669 targ_defvec=i386pe_vec
670 targ_selvecs="i386pe_vec i386pei_vec"
671 ;;
80c7c40a 672 i[3-7]86-*-beoself* | i[3-7]86-*-beos*)
252b5132
RH
673 targ_defvec=bfd_elf32_i386_vec
674 targ_selvecs="i386pe_vec i386pei_vec"
675 ;;
80c7c40a 676 i[3-7]86-*-interix*)
7d923127
ILT
677 targ_defvec=i386pei_vec
678 targ_selvecs="i386pe_vec"
0717ebb7
ILT
679 # FIXME: This should eventually be checked at runtime.
680 targ_cflags=-DSTRICT_PE_FORMAT
7d923127 681 ;;
b59bea8a
NC
682 i[3-7]86-*-rdos*)
683 targ_defvec=bfd_elf32_i386_vec
684 targ_selvecs=i386coff_vec
685 ;;
80c7c40a 686 i[3-7]86-*-mingw32* | i[3-7]86-*-cygwin* | i[3-7]86-*-winnt | i[3-7]86-*-pe)
252b5132 687 targ_defvec=i386pe_vec
16e9c715 688 targ_selvecs="i386pe_vec i386pei_vec bfd_elf32_i386_vec"
db3d41a8 689 targ_underscore=yes
252b5132 690 ;;
80c7c40a 691 i[3-7]86-none-*)
252b5132
RH
692 targ_defvec=i386coff_vec
693 ;;
80c7c40a 694 i[3-7]86-*-aout* | i[3-7]86*-*-vsta*)
252b5132
RH
695 targ_defvec=i386aout_vec
696 ;;
e26f8bd9 697 i[3-7]86-*-vxworks*)
eac338cf 698 targ_defvec=bfd_elf32_i386_vxworks_vec
957ccf44 699 targ_underscore=yes
ac352105 700 ;;
80c7c40a 701 i[3-7]86-*-chaos)
59ff2774
NC
702 targ_defvec=bfd_elf32_i386_vec
703 targ_selfvecs=i386chaos_vec
704 ;;
252b5132
RH
705
706 i860-*-mach3* | i860-*-osf1* | i860-*-coff*)
707 targ_defvec=i860coff_vec
708 ;;
9d751335
JE
709 i860-stardent-sysv4* | i860-stardent-elf*)
710 targ_defvec=bfd_elf32_i860_little_vec
711 targ_selvecs="bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
712 ;;
252b5132
RH
713 i860-*-sysv4* | i860-*-elf*)
714 targ_defvec=bfd_elf32_i860_vec
715 ;;
716
717 i960-*-vxworks4* | i960-*-vxworks5.0)
718 targ_defvec=b_out_vec_little_host
719 targ_selvecs="b_out_vec_big_host icoff_little_vec icoff_big_vec ieee_vec"
720 targ_underscore=yes
721 ;;
0285182b 722 i960-*-vxworks5.* | i960-*-coff* | i960-*-sysv*)
252b5132
RH
723 targ_defvec=icoff_little_vec
724 targ_selvecs="icoff_big_vec b_out_vec_little_host b_out_vec_big_host ieee_vec"
725 targ_underscore=yes
726 ;;
727 i960-*-vxworks* | i960-*-aout* | i960-*-bout* | i960-*-nindy*)
728 targ_defvec=b_out_vec_little_host
729 targ_selvecs="b_out_vec_big_host icoff_little_vec icoff_big_vec ieee_vec"
730 targ_underscore=yes
731 ;;
b2ef150d
ILT
732 i960-*-elf*)
733 targ_defvec=bfd_elf32_i960_vec
734 targ_selvecs="icoff_little_vec icoff_big_vec"
735 ;;
252b5132 736
cf88bb9f
NC
737 ip2k-*-elf)
738 targ_defvec=bfd_elf32_ip2k_vec
739 ;;
740
a75473eb
SC
741 iq2000-*-elf)
742 targ_defvec=bfd_elf32_iq2000_vec
743 ;;
744
3baa454d 745 lm32-*-elf | lm32-*-rtems*)
84e94c90
NC
746 targ_defvec=bfd_elf32_lm32_vec
747 targ_selvecs=bfd_elf32_lm32fdpic_vec
748 ;;
749
750 lm32-*-*linux*)
751 targ_defvec=bfd_elf32_lm32fdpic_vec
752 targ_selvecs=bfd_elf32_lm32_vec
753 ;;
754
8a2a2dbb 755 m32c-*-elf | m32c-*-rtems*)
e729279b
NC
756 targ_defvec=bfd_elf32_m32c_vec
757 ;;
758
6edf0760
NC
759 m32r*le-*-linux*)
760 targ_defvec=bfd_elf32_m32rlelin_vec
761 targ_selvecs="bfd_elf32_m32rlin_vec bfd_elf32_m32rlelin_vec"
762 ;;
6edf0760
NC
763 m32r*-*-linux*)
764 targ_defvec=bfd_elf32_m32rlin_vec
765 targ_selvecs="bfd_elf32_m32rlin_vec bfd_elf32_m32rlelin_vec"
766 ;;
6edf0760
NC
767 m32r*le-*-*)
768 targ_defvec=bfd_elf32_m32rle_vec
769 targ_selvecs="bfd_elf32_m32r_vec bfd_elf32_m32rle_vec"
770 ;;
252b5132
RH
771 m32r-*-*)
772 targ_defvec=bfd_elf32_m32r_vec
773 ;;
774
60bcf0fa
NC
775 m68hc11-*-* | m6811-*-*)
776 targ_defvec=bfd_elf32_m68hc11_vec
777 targ_selvecs="bfd_elf32_m68hc11_vec bfd_elf32_m68hc12_vec"
778 ;;
779 m68hc12-*-* | m6812-*-*)
780 targ_defvec=bfd_elf32_m68hc12_vec
781 targ_selvecs="bfd_elf32_m68hc11_vec bfd_elf32_m68hc12_vec"
782 ;;
783
252b5132
RH
784 m68*-motorola-sysv*)
785 targ_defvec=m68ksysvcoff_vec
786 ;;
787 m68*-hp-bsd*)
788 targ_defvec=hp300bsd_vec
789 targ_underscore=yes
790 ;;
791 m68*-*-aout*)
792 targ_defvec=aout0_big_vec
f4bda984 793 # We include cisco_core_big_vec here, rather than making a separate cisco
252b5132
RH
794 # configuration, so that cisco-core.c gets routinely tested at
795 # least for compilation.
f4bda984 796 targ_selvecs="cisco_core_big_vec ieee_vec"
252b5132
RH
797 targ_underscore=yes
798 ;;
b50c15dc 799 m68*-*-elf* | m68*-*-sysv4* | m68*-*-uclinux*)
252b5132
RH
800 targ_defvec=bfd_elf32_m68k_vec
801 targ_selvecs="m68kcoff_vec ieee_vec"
802 ;;
2e9a84c8 803 m68*-*-rtems*)
d43ded80 804 targ_defvec=bfd_elf32_m68k_vec
2e9a84c8
RH
805 targ_selvecs="m68kcoff_vec versados_vec ieee_vec aout0_big_vec"
806 ;;
807 m68*-*-coff* | m68*-*-sysv*)
252b5132
RH
808 targ_defvec=m68kcoff_vec
809 targ_selvecs="m68kcoff_vec versados_vec ieee_vec"
810 ;;
811 m68*-*-hpux*)
812 targ_defvec=hp300hpux_vec
813 targ_underscore=yes
814 ;;
815 m68*-*-linux*aout*)
816 targ_defvec=m68klinux_vec
817 targ_selvecs=bfd_elf32_m68k_vec
818 targ_underscore=yes
819 ;;
ed84e695 820 m68*-*-linux-*)
252b5132
RH
821 targ_defvec=bfd_elf32_m68k_vec
822 targ_selvecs=m68klinux_vec
823 ;;
824 m68*-*-gnu*)
825 targ_defvec=bfd_elf32_m68k_vec
826 # targ_selvecs=m68kmach3_vec
827 # targ_cflags=-DSTAT_FOR_EXEC
828 ;;
252b5132
RH
829 m68*-hp*-netbsd*)
830 targ_defvec=m68k4knetbsd_vec
831 targ_selvecs="m68knetbsd_vec hp300bsd_vec sunos_big_vec"
832 targ_underscore=yes
833 ;;
7d3f158f 834 m68*-*-netbsdelf*)
0b69cd08
MG
835 targ_defvec=bfd_elf32_m68k_vec
836 targ_selvecs="m68knetbsd_vec m68k4knetbsd_vec hp300bsd_vec sunos_big_vec"
837 ;;
838 m68*-*-netbsdaout* | m68*-*-netbsd*)
839 targ_defvec=m68knetbsd_vec
840 targ_selvecs="m68k4knetbsd_vec bfd_elf32_m68k_vec hp300bsd_vec sunos_big_vec"
841 targ_underscore=yes
842 ;;
843 m68*-*-openbsd*)
252b5132
RH
844 targ_defvec=m68knetbsd_vec
845 targ_selvecs="m68k4knetbsd_vec hp300bsd_vec sunos_big_vec"
846 targ_underscore=yes
847 ;;
848 m68*-*-sunos* | m68*-*-os68k* | m68*-*-vxworks* | m68*-netx-* | \
849 m68*-*-bsd* | m68*-*-vsta*)
850 targ_defvec=sunos_big_vec
851 targ_underscore=yes
852 ;;
853 m68*-ericsson-*)
854 targ_defvec=sunos_big_vec
855 targ_selvecs="m68kcoff_vec versados_vec tekhex_vec"
856 targ_underscore=yes
857 ;;
858 m68*-cbm-*)
859 targ_defvec=bfd_elf32_m68k_vec
860 targ_selvecs=m68kcoff_vec
861 ;;
252b5132
RH
862 m68*-*-psos*)
863 targ_defvec=bfd_elf32_m68k_vec
864 targ_selvecs=ieee_vec
865 targ_underscore=yes
866 ;;
867
868 m88*-harris-cxux* | m88*-*-dgux* | m88*-*-sysv4*)
869 targ_defvec=bfd_elf32_m88k_vec
870 targ_selvecs=m88kbcs_vec
871 ;;
872 m88*-*-mach3*)
873 targ_defvec=m88kmach3_vec
874 targ_cflags=-DSTAT_FOR_EXEC
875 ;;
a5fd0812 876 m88*-*-openbsd*)
c6f8758f
NC
877 targ_defvec=m88kopenbsd_vec
878 targ_underscore=yes
879 ;;
252b5132
RH
880 m88*-*-*)
881 targ_defvec=m88kbcs_vec
882 targ_underscore=yes
883 ;;
884
7499d566
NC
885 maxq-*-coff)
886 targ_defvec=maxqcoff_vec
887 ;;
888
252b5132
RH
889 mcore-*-elf)
890 targ_defvec=bfd_elf32_mcore_big_vec
891 targ_selvecs="bfd_elf32_mcore_big_vec bfd_elf32_mcore_little_vec"
892 ;;
893 mcore-*-pe)
894 targ_defvec=mcore_pe_big_vec
895 targ_selvecs="mcore_pe_big_vec mcore_pe_little_vec mcore_pei_big_vec mcore_pei_little_vec"
896 ;;
897
d9352518
DB
898 mep-*-elf)
899 targ_defvec=bfd_elf32_mep_vec
900 targ_selvecs=bfd_elf32_mep_little_vec
901 ;;
902
7ba29e2a
NC
903 microblaze*-*)
904 targ_defvec=bfd_elf32_microblaze_vec
905 ;;
906
252b5132
RH
907 mips*-big-*)
908 targ_defvec=ecoff_big_vec
909 targ_selvecs=ecoff_little_vec
910 ;;
3cb60568 911 mips*el-*-netbsd*)
aaa2ab3d
NH
912 targ_defvec=bfd_elf32_tradlittlemips_vec
913 targ_selvecs="bfd_elf32_tradbigmips_vec bfd_elf64_tradbigmips_vec bfd_elf64_tradlittlemips_vec ecoff_little_vec ecoff_big_vec"
252b5132 914 ;;
102ab332 915 mips*-*-netbsd*)
aaa2ab3d
NH
916 targ_defvec=bfd_elf32_tradbigmips_vec
917 targ_selvecs="bfd_elf32_tradlittlemips_vec bfd_elf64_tradbigmips_vec bfd_elf64_tradlittlemips_vec ecoff_big_vec ecoff_little_vec"
252b5132 918 ;;
252b5132
RH
919 mips*-dec-* | mips*el-*-ecoff*)
920 targ_defvec=ecoff_little_vec
921 targ_selvecs=ecoff_big_vec
922 ;;
923 mips*-*-ecoff*)
924 targ_defvec=ecoff_big_vec
925 targ_selvecs=ecoff_little_vec
926 ;;
36b45482 927#ifdef BFD64
252b5132 928 mips*-*-irix6*)
28b94e7c
KB
929 targ_defvec=bfd_elf32_nbigmips_vec
930 targ_selvecs="bfd_elf32_nlittlemips_vec bfd_elf32_bigmips_vec bfd_elf32_littlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec"
314e9a4e 931 want64=true
252b5132 932 ;;
36b45482 933#endif
252b5132
RH
934 mips*-*-irix5*)
935 targ_defvec=bfd_elf32_bigmips_vec
936 targ_selvecs="bfd_elf32_littlemips_vec ecoff_big_vec ecoff_little_vec"
937 ;;
938 mips*-sgi-* | mips*-*-bsd*)
939 targ_defvec=ecoff_big_vec
940 targ_selvecs=ecoff_little_vec
941 ;;
942 mips*-*-lnews*)
943 targ_defvec=ecoff_biglittle_vec
944 targ_selvecs="ecoff_little_vec ecoff_big_vec"
945 ;;
252b5132 946 mips*-*-sysv4*)
dd745cfa
UC
947 targ_defvec=bfd_elf32_tradbigmips_vec
948 targ_selvecs="bfd_elf32_tradlittlemips_vec ecoff_big_vec ecoff_little_vec"
252b5132
RH
949 ;;
950 mips*-*-sysv* | mips*-*-riscos*)
951 targ_defvec=ecoff_big_vec
952 targ_selvecs=ecoff_little_vec
953 ;;
0a44bf69
RS
954#ifdef BFD64
955 mips*el-*-vxworks*)
956 targ_defvec=bfd_elf32_littlemips_vxworks_vec
957 targ_selvecs="bfd_elf32_littlemips_vec bfd_elf32_bigmips_vxworks_vec bfd_elf32_bigmips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec"
314e9a4e 958 want64=true
0a44bf69
RS
959 ;;
960 mips*-*-vxworks*)
961 targ_defvec=bfd_elf32_bigmips_vxworks_vec
962 targ_selvecs="bfd_elf32_bigmips_vec bfd_elf32_littlemips_vxworks_vec bfd_elf32_bigmips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec"
314e9a4e 963 want64=true
0a44bf69
RS
964 ;;
965#endif
4be041b2
TS
966 mips*el-sde-elf*)
967 targ_defvec=bfd_elf32_tradlittlemips_vec
73ca2500 968 targ_selvecs="bfd_elf32_tradbigmips_vec bfd_elf32_ntradbigmips_vec bfd_elf32_ntradlittlemips_vec bfd_elf64_tradbigmips_vec bfd_elf64_tradlittlemips_vec"
4be041b2
TS
969 want64=true
970 ;;
971 mips*-sde-elf*)
972 targ_defvec=bfd_elf32_tradbigmips_vec
73ca2500 973 targ_selvecs="bfd_elf32_tradlittlemips_vec bfd_elf32_ntradbigmips_vec bfd_elf32_ntradlittlemips_vec bfd_elf64_tradbigmips_vec bfd_elf64_tradlittlemips_vec"
4be041b2
TS
974 want64=true
975 ;;
7e4e2059 976 mips*el-*-elf* | mips*el-*-vxworks* | mips*-*-chorus*)
252b5132
RH
977 targ_defvec=bfd_elf32_littlemips_vec
978 targ_selvecs="bfd_elf32_bigmips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec"
979 ;;
257e20bc 980 mips*-*-elf* | mips*-*-rtems* | mips*-*-vxworks | mips*-*-windiss)
252b5132
RH
981 targ_defvec=bfd_elf32_bigmips_vec
982 targ_selvecs="bfd_elf32_littlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec"
983 ;;
984 mips*-*-none)
985 targ_defvec=bfd_elf32_bigmips_vec
986 targ_selvecs="bfd_elf32_littlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec"
987 ;;
5f417ca3
MK
988#ifdef BFD64
989 mips64*-*-openbsd*)
990 targ_defvec=bfd_elf64_tradbigmips_vec
991 targ_selvecs="bfd_elf32_ntradlittlemips_vec bfd_elf32_ntradbigmips_vec bfd_elf32_tradlittlemips_vec bfd_elf32_tradbigmips_vec bfd_elf64_tradlittlemips_vec"
314e9a4e 992 want64=true
5f417ca3
MK
993 ;;
994#endif
4008bd9b 995 mips*el-*-openbsd*)
252b5132
RH
996 targ_defvec=bfd_elf32_littlemips_vec
997 targ_selvecs="bfd_elf32_bigmips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec ecoff_little_vec ecoff_big_vec"
998 ;;
fdbafa10 999 mips*-*-openbsd*)
252b5132
RH
1000 targ_defvec=bfd_elf32_bigmips_vec
1001 targ_selvecs="bfd_elf32_littlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec ecoff_big_vec ecoff_little_vec"
1002 ;;
36b45482 1003#ifdef BFD64
4008bd9b 1004 mips64*el-*-linux*)
8a397dad
TS
1005 targ_defvec=bfd_elf32_ntradlittlemips_vec
1006 targ_selvecs="bfd_elf32_ntradbigmips_vec bfd_elf32_tradlittlemips_vec bfd_elf32_tradbigmips_vec bfd_elf64_tradlittlemips_vec bfd_elf64_tradbigmips_vec"
314e9a4e 1007 want64=true
4008bd9b 1008 ;;
4008bd9b 1009 mips64*-*-linux*)
8a397dad
TS
1010 targ_defvec=bfd_elf32_ntradbigmips_vec
1011 targ_selvecs="bfd_elf32_ntradlittlemips_vec bfd_elf32_tradbigmips_vec bfd_elf32_tradlittlemips_vec bfd_elf64_tradbigmips_vec bfd_elf64_tradlittlemips_vec"
314e9a4e 1012 want64=true
4008bd9b 1013 ;;
36b45482
TS
1014#endif
1015 mips*el-*-linux*)
1016 targ_defvec=bfd_elf32_tradlittlemips_vec
e9229007 1017 targ_selvecs="bfd_elf32_tradbigmips_vec ecoff_little_vec ecoff_big_vec bfd_elf32_ntradlittlemips_vec bfd_elf64_tradlittlemips_vec bfd_elf32_ntradbigmips_vec bfd_elf64_tradbigmips_vec"
691120ec 1018 want64=true
36b45482 1019 ;;
4008bd9b 1020 mips*-*-linux*)
fdbafa10 1021 targ_defvec=bfd_elf32_tradbigmips_vec
e9229007 1022 targ_selvecs="bfd_elf32_tradlittlemips_vec ecoff_big_vec ecoff_little_vec bfd_elf32_ntradbigmips_vec bfd_elf64_tradbigmips_vec bfd_elf32_ntradlittlemips_vec bfd_elf64_tradlittlemips_vec"
691120ec 1023 want64=true
fdbafa10 1024 ;;
3c3bdf30
NC
1025#ifdef BFD64
1026 mmix-*-*)
1027 targ_defvec=bfd_elf64_mmix_vec
1028 targ_selvecs=bfd_mmo_vec
314e9a4e 1029 want64=true
3c3bdf30
NC
1030 ;;
1031#endif
252b5132
RH
1032 mn10200-*-*)
1033 targ_defvec=bfd_elf32_mn10200_vec
1034 ;;
1035
1036 mn10300-*-*)
1037 targ_defvec=bfd_elf32_mn10300_vec
73c3cd1c 1038 targ_underscore=yes
252b5132
RH
1039 ;;
1040
4970f871 1041 mt-*-elf)
d031aafb 1042 targ_defvec=bfd_elf32_mt_vec
de33e640
AH
1043 ;;
1044
2469cfa2
NC
1045 msp430-*-*)
1046 targ_defvec=bfd_elf32_msp430_vec
1047 ;;
1048
252b5132
RH
1049 ns32k-pc532-mach* | ns32k-pc532-ux*)
1050 targ_defvec=pc532machaout_vec
1051 targ_underscore=yes
1052 ;;
1053 ns32k-*-netbsd* | ns32k-*-lites* | ns32k-*-openbsd*)
1054 targ_defvec=pc532netbsd_vec
1055 targ_underscore=yes
1056 ;;
1057
b3baf5d0
NC
1058 openrisc-*-elf)
1059 targ_defvec=bfd_elf32_openrisc_vec
1060 ;;
1061
0285182b 1062 or32-*-coff)
3b16e843
NC
1063 targ_defvec=or32coff_big_vec
1064 targ_underscore=yes
1065 ;;
1066
7e4e2059 1067 or32-*-elf)
3b16e843
NC
1068 targ_defvec=bfd_elf32_or32_big_vec
1069 ;;
1070
e135f41b
NC
1071 pdp11-*-*)
1072 targ_defvec=pdp11_aout_vec
1073 targ_underscore=yes
1074 ;;
1075
0bcb993b
ILT
1076 pj-*-*)
1077 targ_defvec=bfd_elf32_pj_vec
1078 targ_selvecs="bfd_elf32_pj_vec bfd_elf32_pjl_vec"
1079 ;;
1080
1081 pjl-*-*)
1082 targ_defvec=bfd_elf32_pjl_vec
1083 targ_selvecs="bfd_elf32_pjl_vec bfd_elf32_pj_vec bfd_elf32_i386_vec"
1084 ;;
1085
f8fc3443
NC
1086 powerpc-*-aix5.[01])
1087 targ_defvec=rs6000coff_vec
1088 targ_selvecs="aix5coff64_vec"
1089 want64=true
1090 ;;
1091#ifdef BFD64
1092 powerpc64-*-aix5.[01])
1093 targ_defvec=aix5coff64_vec
1094 targ_selvecs="rs6000coff_vec"
1095 want64=true
1096 ;;
1097#endif
e5231592 1098 powerpc-*-aix[5-9]*)
f8fc3443 1099 targ_cflags=-DAIX_WEAK_SUPPORT
eb1e0e80
NC
1100 targ_defvec=rs6000coff_vec
1101 targ_selvecs="aix5coff64_vec"
1102 want64=true
1103 ;;
8f28b845 1104#ifdef BFD64
e5231592 1105 powerpc64-*-aix[5-9]*)
f8fc3443 1106 targ_cflags=-DAIX_WEAK_SUPPORT
eb1e0e80
NC
1107 targ_defvec=aix5coff64_vec
1108 targ_selvecs="rs6000coff_vec"
1109 want64=true
1110 ;;
680f9d5c 1111#endif
eb1e0e80 1112
4603e845 1113 powerpc-*-aix* | powerpc-*-beos* | rs6000-*-*)
252b5132 1114 targ_defvec=rs6000coff_vec
102ab332
AM
1115 targ64_selvecs=rs6000coff64_vec
1116 case "${targ}" in
7d3f158f 1117 *-*-aix4.[3456789]* | *-*-aix[56789]*)
102ab332 1118 want64=true;;
3e36d993
TR
1119 *)
1120 targ_cflags=-DSMALL_ARCHIVE;;
102ab332 1121 esac
252b5132 1122 ;;
a5ac692b 1123#ifdef BFD64
beb1bf64
TR
1124 powerpc64-*-aix*)
1125 targ_defvec=rs6000coff64_vec
102ab332 1126 targ_selvecs=rs6000coff_vec
314e9a4e 1127 want64=true
beb1bf64 1128 ;;
db4ed121
NC
1129 powerpc64-*-elf* | powerpc-*-elf64* | powerpc64-*-linux* | \
1130 powerpc64-*-*bsd*)
5bd4f169
AM
1131 targ_defvec=bfd_elf64_powerpc_vec
1132 targ_selvecs="bfd_elf64_powerpcle_vec bfd_elf32_powerpc_vec bfd_elf32_powerpcle_vec rs6000coff_vec rs6000coff64_vec"
314e9a4e 1133 want64=true
5bd4f169
AM
1134 ;;
1135 powerpc64le-*-elf* | powerpcle-*-elf64*)
1136 targ_defvec=bfd_elf64_powerpcle_vec
1137 targ_selvecs="bfd_elf64_powerpc_vec bfd_elf32_powerpcle_vec bfd_elf32_powerpc_vec rs6000coff_vec rs6000coff64_vec"
314e9a4e 1138 want64=true
5bd4f169 1139 ;;
a5ac692b 1140#endif
252b5132 1141 powerpc-*-*bsd* | powerpc-*-elf* | powerpc-*-sysv4* | powerpc-*-eabi* | \
ed84e695 1142 powerpc-*-solaris2* | powerpc-*-linux-* | powerpc-*-rtems* | \
9d8504b1 1143 powerpc-*-chorus*)
252b5132
RH
1144 targ_defvec=bfd_elf32_powerpc_vec
1145 targ_selvecs="rs6000coff_vec bfd_elf32_powerpcle_vec ppcboot_vec"
5bd4f169 1146 targ64_selvecs="bfd_elf64_powerpc_vec bfd_elf64_powerpcle_vec"
252b5132 1147 ;;
42b5d0ea
NC
1148 powerpc-*-kaos*)
1149 targ_defvec=bfd_elf32_powerpc_vec
1150 targ_selvecs="bfd_elf32_powerpcle_vec ppcboot_vec"
1151 targ64_selvecs="bfd_elf64_powerpc_vec bfd_elf64_powerpcle_vec"
1152 ;;
b1c58715
AM
1153 powerpc-*-darwin* | powerpc-*-macos10* | powerpc-*-rhapsody*)
1154 targ_defvec=mach_o_be_vec
1155 targ_selvecs="mach_o_be_vec mach_o_le_vec mach_o_fat_vec pef_vec pef_xlib_vec sym_vec"
1156 targ_archs="bfd_powerpc_arch bfd_rs6000_arch bfd_i386_arch"
1157 ;;
14bde378 1158 powerpc-*-macos*)
252b5132
RH
1159 targ_defvec=pmac_xcoff_vec
1160 ;;
b2d65c0b
NC
1161 powerpc-*-lynxos*)
1162 targ_defvec=bfd_elf32_powerpc_vec
1163 targ_selvecs="rs6000coff_vec"
1164 targ_cflags=-DSMALL_ARCHIVE
7d3f158f 1165 ;;
252b5132
RH
1166 powerpc-*-netware*)
1167 targ_defvec=bfd_elf32_powerpc_vec
1168 targ_selvecs="nlm32_powerpc_vec rs6000coff_vec"
1169 ;;
59bc061d 1170 powerpc-*-nto*)
b6821651
AM
1171 targ_defvec=bfd_elf32_powerpc_vec
1172 targ_selvecs="rs6000coff_vec bfd_elf32_powerpcle_vec ppcboot_vec"
59bc061d 1173 ;;
9d8504b1
PB
1174 powerpc-*-vxworks* | powerpc-*-windiss*)
1175 targ_defvec=bfd_elf32_powerpc_vxworks_vec
1176 targ_selvecs="rs6000coff_vec bfd_elf32_powerpc_vec bfd_elf32_powerpcle_vec ppcboot_vec"
1177 targ64_selvecs="bfd_elf64_powerpc_vec bfd_elf64_powerpcle_vec"
1178 ;;
59bc061d 1179 powerpcle-*-nto*)
b6821651
AM
1180 targ_defvec=bfd_elf32_powerpcle_vec
1181 targ_selvecs="rs6000coff_vec bfd_elf32_powerpc_vec ppcboot_vec"
59bc061d 1182 ;;
252b5132 1183 powerpcle-*-elf* | powerpcle-*-sysv4* | powerpcle-*-eabi* | \
7e4e2059 1184 powerpcle-*-solaris2* | powerpcle-*-linux-* | powerpcle-*-vxworks*)
252b5132
RH
1185 targ_defvec=bfd_elf32_powerpcle_vec
1186 targ_selvecs="rs6000coff_vec bfd_elf32_powerpc_vec ppcboot_vec"
5bd4f169 1187 targ64_selvecs="bfd_elf64_powerpc_vec bfd_elf64_powerpcle_vec"
252b5132 1188 ;;
252b5132
RH
1189 powerpcle-*-pe | powerpcle-*-winnt* | powerpcle-*-cygwin*)
1190 targ_defvec=bfd_powerpcle_pe_vec
1191 targ_selvecs="bfd_powerpcle_pei_vec bfd_powerpc_pei_vec bfd_powerpcle_pe_vec bfd_powerpc_pe_vec"
1192 ;;
1193
a85d7ed0
NC
1194 s390-*-linux*)
1195 targ_defvec=bfd_elf32_s390_vec
f52d1d64 1196 targ64_selvecs=bfd_elf64_s390_vec
06f2f6af 1197 want64=true
a85d7ed0
NC
1198 ;;
1199#ifdef BFD64
1200 s390x-*-linux*)
1201 targ_defvec=bfd_elf64_s390_vec
f52d1d64 1202 targ_selvecs=bfd_elf32_s390_vec
314e9a4e 1203 want64=true
a85d7ed0 1204 ;;
2fbd2a87
NC
1205 s390x-*-tpf*)
1206 targ_defvec=bfd_elf64_s390_vec
314e9a4e 1207 want64=true
2fbd2a87 1208 ;;
a85d7ed0 1209
1c0d3aa6
NC
1210 score*-*-elf*)
1211 targ_defvec=bfd_elf32_bigscore_vec
1212 targ_selvecs=bfd_elf32_littlescore_vec
1213 ;;
1214
7a33bc10
JR
1215 sh64l*-*-elf*)
1216 targ_defvec=bfd_elf32_sh64l_vec
1217 targ_selvecs="bfd_elf32_sh64_vec bfd_elf64_sh64l_vec bfd_elf64_sh64_vec bfd_elf32_shl_vec bfd_elf32_sh_vec"
1218 targ_underscore=yes
314e9a4e 1219 want64=true
7a33bc10 1220 ;;
fbca6ad9
AO
1221 sh64-*-elf*)
1222 targ_defvec=bfd_elf32_sh64_vec
1223 targ_selvecs="bfd_elf32_sh64l_vec bfd_elf64_sh64_vec bfd_elf64_sh64l_vec bfd_elf32_sh_vec bfd_elf32_shl_vec"
1224 targ_underscore=yes
314e9a4e 1225 want64=true
fbca6ad9 1226 ;;
629936c5 1227 sh64eb-*-linux*)
efacd36e
SC
1228 targ_defvec=bfd_elf32_sh64blin_vec
1229 targ_selvecs="bfd_elf32_sh64lin_vec bfd_elf64_sh64blin_vec bfd_elf64_sh64lin_vec bfd_elf32_shblin_vec bfd_elf32_shlin_vec"
314e9a4e 1230 want64=true
629936c5
NC
1231 ;;
1232 sh64-*-linux*)
efacd36e
SC
1233 targ_defvec=bfd_elf32_sh64lin_vec
1234 targ_selvecs="bfd_elf32_sh64blin_vec bfd_elf64_sh64lin_vec bfd_elf64_sh64blin_vec bfd_elf32_shlin_vec bfd_elf32_shblin_vec"
314e9a4e 1235 want64=true
629936c5 1236 ;;
b129bfef
AO
1237 sh-*-linux*)
1238 targ_defvec=bfd_elf32_shblin_vec
6566b43c
L
1239 targ_selvecs="bfd_elf32_shlin_vec bfd_elf32_sh64lin_vec bfd_elf32_sh64blin_vec bfd_elf64_sh64lin_vec bfd_elf64_sh64blin_vec"
1240 want64=true
b129bfef 1241 ;;
6566b43c
L
1242#endif /* BFD64 */
1243
7649aa50
NC
1244 sh*eb-*-linux*)
1245 targ_defvec=bfd_elf32_shblin_vec
019dca2b 1246 targ_selvecs=bfd_elf32_shlin_vec
7649aa50
NC
1247 ;;
1248 sh*-*-linux*)
1249 targ_defvec=bfd_elf32_shlin_vec
019dca2b 1250 targ_selvecs=bfd_elf32_shblin_vec
7649aa50 1251 ;;
b129bfef 1252
ed6ba298
NS
1253 sh-*-uclinux* | sh[12]-*-uclinux*)
1254 targ_defvec=bfd_elf32_sh_vec
1255 targ_selvecs="bfd_elf32_shblin_vec bfd_elf32_shlin_vec"
1256#ifdef BFD64
1257 targ_selvecs="${targ_selvecs} bfd_elf32_sh64lin_vec bfd_elf32_sh64blin_vec bfd_elf64_sh64lin_vec bfd_elf64_sh64blin_vec"
1258#endif
1259 ;;
1260
5b0e55b6
JT
1261#ifdef BFD64
1262 sh5le-*-netbsd*)
1263 targ_defvec=bfd_elf32_sh64lnbsd_vec
1cddf136 1264 targ_selvecs="bfd_elf32_sh64nbsd_vec bfd_elf64_sh64lnbsd_vec bfd_elf64_sh64nbsd_vec bfd_elf32_shnbsd_vec bfd_elf32_shlnbsd_vec"
314e9a4e 1265 want64=true
5b0e55b6
JT
1266 ;;
1267 sh5-*-netbsd*)
1268 targ_defvec=bfd_elf32_sh64nbsd_vec
1cddf136 1269 targ_selvecs="bfd_elf32_sh64lnbsd_vec bfd_elf64_sh64lnbsd_vec bfd_elf64_sh64nbsd_vec bfd_elf32_shnbsd_vec bfd_elf32_shlnbsd_vec"
314e9a4e 1270 want64=true
5b0e55b6
JT
1271 ;;
1272
1273 sh64le-*-netbsd*)
1274 targ_defvec=bfd_elf64_sh64lnbsd_vec
1cddf136 1275 targ_selvecs="bfd_elf64_sh64nbsd_vec bfd_elf32_sh64lnbsd_vec bfd_elf32_sh64nbsd_vec bfd_elf32_shnbsd_vec bfd_elf32_shlnbsd_vec"
314e9a4e 1276 want64=true
5b0e55b6
JT
1277 ;;
1278 sh64-*-netbsd*)
1279 targ_defvec=bfd_elf64_sh64nbsd_vec
1cddf136 1280 targ_selvecs="bfd_elf64_sh64lnbsd_vec bfd_elf32_sh64lnbsd_vec bfd_elf32_sh64nbsd_vec bfd_elf32_shnbsd_vec bfd_elf32_shlnbsd_vec"
314e9a4e 1281 want64=true
5b0e55b6 1282 ;;
5b0e55b6 1283
cea3d58d 1284 sh*l*-*-netbsdelf*)
2051e1b5 1285 targ_defvec=bfd_elf32_shlnbsd_vec
6566b43c
L
1286 targ_selvecs="bfd_elf32_shnbsd_vec shcoff_vec shlcoff_vec bfd_elf32_sh64lnbsd_vec bfd_elf32_sh64nbsd_vec bfd_elf64_sh64lnbsd_vec bfd_elf64_sh64nbsd_vec"
1287 want64=true
2051e1b5 1288 ;;
e58ee0cd
HPN
1289 sh-*-netbsdelf*)
1290 targ_defvec=bfd_elf32_shnbsd_vec
6566b43c
L
1291 targ_selvecs="bfd_elf32_shlnbsd_vec shcoff_vec shlcoff_vec bfd_elf32_sh64lnbsd_vec bfd_elf32_sh64nbsd_vec bfd_elf64_sh64lnbsd_vec bfd_elf64_sh64nbsd_vec"
1292 want64=true
e58ee0cd 1293 ;;
6566b43c
L
1294#endif
1295
8d05742f
JT
1296 sh*-*-netbsdelf*)
1297 targ_defvec=bfd_elf32_shnbsd_vec
1298 targ_selvecs="bfd_elf32_shlnbsd_vec shcoff_vec shlcoff_vec"
1299 ;;
1a320fbb 1300 sh*-*-symbianelf*)
85fbca6a
NC
1301 targ_defvec=bfd_elf32_shl_symbian_vec
1302 targ_selvecs="shlcoff_vec shlcoff_small_vec"
1303 targ_underscore=yes
7d3f158f 1304 ;;
6566b43c
L
1305
1306#ifdef BFD64
42b5d0ea 1307 shl*-*-elf* | sh[1234]l*-*-elf* | sh3el*-*-elf* | shl*-*-kaos*)
7a33bc10 1308 targ_defvec=bfd_elf32_shl_vec
6566b43c 1309 targ_selvecs="bfd_elf32_sh_vec shlcoff_vec shcoff_vec shlcoff_small_vec shcoff_small_vec bfd_elf32_sh64_vec bfd_elf32_sh64l_vec bfd_elf64_sh64_vec bfd_elf64_sh64l_vec"
7a33bc10 1310 targ_underscore=yes
6566b43c 1311 want64=true
7a33bc10 1312 ;;
6566b43c
L
1313#endif
1314
9183ed4b
AM
1315 sh-*-rtemscoff*)
1316 targ_defvec=shcoff_vec
1317 targ_selvecs="shcoff_vec shlcoff_vec shcoff_small_vec shlcoff_small_vec"
1318 targ_underscore=yes
1319 ;;
6566b43c
L
1320
1321#ifdef BFD64
9183ed4b 1322 sh-*-elf* | sh[1234]*-elf* | sh-*-rtems* | sh-*-kaos*)
252b5132 1323 targ_defvec=bfd_elf32_sh_vec
6566b43c 1324 targ_selvecs="bfd_elf32_shl_vec shcoff_vec shlcoff_vec shcoff_small_vec shlcoff_small_vec bfd_elf32_sh64_vec bfd_elf32_sh64l_vec bfd_elf64_sh64_vec bfd_elf64_sh64l_vec"
252b5132 1325 targ_underscore=yes
6566b43c 1326 want64=true
252b5132 1327 ;;
6566b43c
L
1328#endif
1329
ed71e111 1330 sh-*-nto*)
b6821651
AM
1331 targ_defvec=bfd_elf32_sh_vec
1332 targ_selvecs="bfd_elf32_shl_vec shcoff_vec shlcoff_vec shcoff_small_vec shlcoff_small_vec"
ed71e111
NC
1333 targ_underscore=yes
1334 ;;
a38b2659
MK
1335 sh*-*-openbsd*)
1336 targ_defvec=bfd_elf32_shlnbsd_vec
1337 targ_selvecs="bfd_elf32_shnbsd_vec shcoff_vec shlcoff_vec"
1338 ;;
17505c5c
NC
1339 sh-*-pe)
1340 targ_defvec=shlpe_vec
1341 targ_selvecs="shlpe_vec shlpei_vec"
1342 targ_underscore=yes
1343 ;;
257e20bc 1344 sh-*-vxworks)
55e6e397
RS
1345 targ_defvec=bfd_elf32_shvxworks_vec
1346 targ_selvecs="bfd_elf32_shlvxworks_vec"
257e20bc
NC
1347 # FIXME None of the following are actually used on this target, but
1348 # they're necessary for coff-sh.c (which is unconditionally used) to be
1349 # compiled correctly.
1350 targ_selvecs="$targ_selvecs shcoff_vec shlcoff_vec shcoff_small_vec shlcoff_small_vec"
2f964f43 1351 targ_underscore=yes
257e20bc 1352 ;;
9183ed4b 1353 sh-*-*)
252b5132
RH
1354 targ_defvec=shcoff_vec
1355 targ_selvecs="shcoff_vec shlcoff_vec shcoff_small_vec shlcoff_small_vec"
1356 targ_underscore=yes
1357 ;;
1358
1359 sparclet-*-aout*)
1360 targ_defvec=sunos_big_vec
1361 targ_selvecs=sparcle_aout_vec
1362 targ_underscore=yes
1363 ;;
1364 sparc86x-*-aout*)
1365 targ_defvec=sunos_big_vec
1366 targ_underscore=yes
1367 ;;
1368 sparclite-*-elf* | sparc86x-*-elf*)
1369 targ_defvec=bfd_elf32_sparc_vec
1370 ;;
8848a8d0
CF
1371 sparc*-*-chorus*)
1372 targ_defvec=bfd_elf32_sparc_vec
1373 ;;
252b5132
RH
1374 sparc-*-linux*aout*)
1375 targ_defvec=sparclinux_vec
1376 targ_selvecs="bfd_elf32_sparc_vec sunos_big_vec"
1377 targ_underscore=yes
1378 ;;
7e976ae4 1379 sparc-*-linux-* | sparcv*-*-linux-*)
252b5132 1380 targ_defvec=bfd_elf32_sparc_vec
9d23b7fe 1381 targ_selvecs="sparclinux_vec bfd_elf64_sparc_vec sunos_big_vec"
252b5132 1382 ;;
93be3c4b
AC
1383 sparc-*-netbsdelf*)
1384 targ_defvec=bfd_elf32_sparc_vec
1385 targ_selvecs=sparcnetbsd_vec
1386 ;;
1387 sparc-*-netbsdaout* | sparc-*-netbsd*)
1388 targ_defvec=sparcnetbsd_vec
1389 targ_selvecs=bfd_elf32_sparc_vec
1390 targ_underscore=yes
1391 ;;
49ba19a4 1392 sparc-*-openbsd[0-2].* | sparc-*-openbsd3.[0-1])
252b5132
RH
1393 targ_defvec=sparcnetbsd_vec
1394 targ_underscore=yes
1395 ;;
49ba19a4
NC
1396 sparc-*-openbsd*)
1397 targ_defvec=bfd_elf32_sparc_vec
1398 targ_selvecs=sparcnetbsd_vec
1399 ;;
246c6687 1400 sparc-*-elf* | sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
252b5132
RH
1401 targ_defvec=bfd_elf32_sparc_vec
1402 targ_selvecs=sunos_big_vec
1403 ;;
246c6687
AO
1404#ifdef BFD64
1405 sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*)
1406 targ_defvec=bfd_elf32_sparc_vec
1407 targ_selvecs="bfd_elf64_sparc_vec sunos_big_vec"
314e9a4e 1408 want64=true
246c6687
AO
1409 ;;
1410#endif
252b5132
RH
1411 sparc-*-sysv4*)
1412 targ_defvec=bfd_elf32_sparc_vec
1413 ;;
910600e9
RS
1414 sparc-*-vxworks*)
1415 targ_defvec=bfd_elf32_sparc_vxworks_vec
1416 targ_selvecs="bfd_elf32_sparc_vec sunos_big_vec"
1417 ;;
252b5132
RH
1418 sparc-*-netware*)
1419 targ_defvec=bfd_elf32_sparc_vec
1420 targ_selvecs="nlm32_sparc_vec sunos_big_vec"
1421 ;;
1422#ifdef BFD64
1423 sparc64-*-aout*)
1424 targ_defvec=sunos_big_vec
1425 targ_underscore=yes
314e9a4e 1426 want64=true
252b5132 1427 ;;
7e976ae4 1428 sparc64*-*-linux-*)
252b5132
RH
1429 targ_defvec=bfd_elf64_sparc_vec
1430 targ_selvecs="bfd_elf32_sparc_vec sparclinux_vec sunos_big_vec"
314e9a4e 1431 want64=true
252b5132
RH
1432 ;;
1433 sparc64-*-elf*)
1434 targ_defvec=bfd_elf64_sparc_vec
1435 targ_selvecs=bfd_elf32_sparc_vec
314e9a4e 1436 want64=true
60bcf0fa 1437 ;;
252b5132
RH
1438#endif /* BFD64 */
1439 sparc*-*-coff*)
1440 targ_defvec=sparccoff_vec
1441 ;;
9f971fcb 1442 sparc*-*-rtems*)
ddcfc5fc
NC
1443 targ_defvec=bfd_elf32_sparc_vec
1444 targ_selvecs="sunos_big_vec sparccoff_vec"
1445 ;;
9f971fcb 1446 sparc*-*-*)
252b5132
RH
1447 targ_defvec=sunos_big_vec
1448 targ_underscore=yes
1449 ;;
1450
e9f53129
AM
1451 spu-*-elf)
1452 targ_defvec=bfd_elf32_spu_vec
78b8434d 1453 want64=true
e9f53129
AM
1454 ;;
1455
252b5132
RH
1456#if HAVE_host_aout_vec
1457 tahoe-*-*)
1458 targ_defvec=host_aout_vec
1459 targ_underscore=yes
1460 ;;
1461#endif
1462
1463 tic80*-*-*)
1464 targ_defvec=tic80coff_vec
1465 targ_underscore=yes
1466 ;;
1467
252b5132
RH
1468 v850-*-*)
1469 targ_defvec=bfd_elf32_v850_vec
1470 ;;
1471 v850e-*-*)
1472 targ_defvec=bfd_elf32_v850_vec
1473 ;;
1474 v850ea-*-*)
1475 targ_defvec=bfd_elf32_v850_vec
1476 ;;
252b5132 1477
90ace9e9
JT
1478 vax-*-netbsdelf*)
1479 targ_defvec=bfd_elf32_vax_vec
3c2bfad6 1480 targ_selvecs="vaxnetbsd_vec vax1knetbsd_vec"
90ace9e9
JT
1481 ;;
1482
1483 vax-*-netbsdaout* | vax-*-netbsd*)
1484 targ_defvec=vaxnetbsd_vec
3c2bfad6 1485 targ_selvecs="bfd_elf32_vax_vec vax1knetbsd_vec"
90ace9e9
JT
1486 targ_underscore=yes
1487 ;;
1488
ba26fd96
AM
1489 vax-*-bsd* | vax-*-ultrix*)
1490 targ_defvec=vaxbsd_vec
1491 targ_underscore=yes
1492 ;;
1493
7d1ebfb2
NC
1494 vax-*-openbsd*)
1495 targ_defvec=vaxnetbsd_vec
1496 targ_underscore=yes
1497 ;;
1498
ed84e695 1499 vax-*-linux-*)
f8fc3443
NC
1500 targ_defvec=bfd_elf32_vax_vec
1501 ;;
1502
252b5132
RH
1503 vax*-*-*vms*)
1504 targ_defvec=vms_vax_vec
1505 ;;
1506
1507 we32k-*-*)
1508 targ_defvec=we32kcoff_vec
1509 ;;
1510
1511 w65-*-*)
1512 targ_defvec=w65_vec
1513 ;;
1514
93fbbb04
GK
1515 xstormy16-*-elf)
1516 targ_defvec=bfd_elf32_xstormy16_vec
1517 ;;
1518
f8a52b59 1519 xtensa*-*-*)
e0001a05
NC
1520 targ_defvec=bfd_elf32_xtensa_le_vec
1521 targ_selvecs=bfd_elf32_xtensa_be_vec
1522 ;;
d70c5fc7
NC
1523 xc16x-*-elf)
1524 targ_defvec=bfd_elf32_xc16x_vec
1525 ;;
1526
3c9b82ba
NC
1527 z80-*-*)
1528 targ_defvec=z80coff_vec
1529 targ_underscore=no
1530 ;;
1531
252b5132
RH
1532 z8k*-*-*)
1533 targ_defvec=z8kcoff_vec
1534 targ_underscore=yes
1535 ;;
1536
1537 *-*-ieee*)
1538 targ_defvec=ieee_vec
1539 ;;
1540
1541 *-adobe-*)
1542 targ_defvec=a_out_adobe_vec
1543 targ_underscore=yes
1544 ;;
1545
1546 *-sony-*)
1547 targ_defvec=newsos3_vec
1548 targ_underscore=yes
1549 ;;
1550
1551 *-tandem-*)
1552 targ_defvec=m68kcoff_vec
1553 targ_selvecs=ieee_vec
1554 ;;
1555# END OF targmatch.h
1556 *)
1557 echo 1>&2 "*** BFD does not support target ${targ}."
1558 echo 1>&2 "*** Look in bfd/config.bfd for supported targets."
1559 exit 1
1560 ;;
1561esac
1562
e9e69f5a
AM
1563case "${host64}${want64}" in
1564 *true*)
1565 targ_selvecs="${targ_selvecs} ${targ64_selvecs}"
1566 ;;
1567esac
1568
252b5132
RH
1569# If we support any ELF target, then automatically add support for the
1570# generic ELF targets. This permits an objdump with some ELF support
1571# to be used on an arbitrary ELF file for anything other than
1572# relocation information.
1573case "${targ_defvec} ${targ_selvecs}" in
8a397dad 1574 *bfd_elf64* | *bfd_elf32_n*mips*)
252b5132
RH
1575 targ_selvecs="${targ_selvecs} bfd_elf64_little_generic_vec bfd_elf64_big_generic_vec bfd_elf32_little_generic_vec bfd_elf32_big_generic_vec"
1576 ;;
1577 *bfd_elf32*)
1578 targ_selvecs="${targ_selvecs} bfd_elf32_little_generic_vec bfd_elf32_big_generic_vec"
1579 ;;
1580esac
8a9036a4
L
1581
1582# If we support Intel L1OM target, then add support for bfd_l1om_arch.
1583case "${targ_defvec} ${targ_selvecs}" in
1584 *bfd_elf64_l1om_vec*)
1585 targ_archs="$targ_archs bfd_l1om_arch"
1586 ;;
1587esac
This page took 0.564611 seconds and 4 git commands to generate.