3 # Copyright (C) 2012-2015 Free Software Foundation, Inc.
5 # This file is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3 of the License, or
8 # (at your option) any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; see the file COPYING3. If not see
17 # <http://www.gnu.org/licenses/>.
19 # Convert a canonical host type into a BFD host type.
20 # Set shell variable targ to canonical target name, and run
21 # using ``. config.bfd''.
22 # Sets the following shell variables:
23 # targ_defvec Default vector for this target
24 # targ_selvecs Vectors to build for this target
25 # targ64_selvecs Vectors to build if --enable-64-bit-bfd is given
26 # or if host is 64 bit.
27 # targ_archs Architectures for this target
28 # targ_cflags $(CFLAGS) for this target (FIXME: pretty bogus)
29 # targ_underscore Whether underscores are used: yes or no
31 # Part of this file is processed by targmatch.sed to generate the
32 # targmatch.h file. The #ifdef and #endif lines that appear below are
33 # copied directly into targmatch.h.
35 # The binutils c++filt program wants to know whether underscores are
36 # stripped or not. That is why we set targ_underscore. c++filt uses
37 # this information to choose a default. This information is
38 # duplicated in the symbol_leading_char field of the BFD target
39 # vector, but c++filt does not deal with object files and is not
40 # linked against libbfd.a. It is not terribly important that c++filt
41 # get this right; it is just convenient.
49 # Catch obsolete configurations.
51 openrisc-*-* | or32-*-*)
52 echo "*** Configuration $targ is obsolete." >&2
53 echo "*** Use or1k-*-elf or or1k-*-linux as the target instead" >&2
57 if test "x$enable_obsolete" != xyes; then
58 echo "*** Configuration $targ is obsolete." >&2
59 echo "*** Specify --enable-obsolete to build it anyway." >&2
60 echo "*** Support will be REMOVED in the next major release of BINUTILS," >&2
61 echo "*** unless a maintainer comes forward." >&2
72 i[3-7]86*-*-rtemscoff* | \
80 powerpcle-*-rtems* | \
81 sparc*-*-rtemsaout* | \
85 echo "*** Configuration $targ is obsolete." >&2
86 echo "*** Support has been REMOVED." >&2
91 targ_cpu=`echo $targ | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
93 aarch64*) targ_archs="bfd_aarch64_arch bfd_arm_arch";;
94 alpha*) targ_archs=bfd_alpha_arch ;;
95 am34*|am33_2.0*) targ_archs=bfd_mn10300_arch ;;
96 arm*) targ_archs=bfd_arm_arch ;;
97 bfin*) targ_archs=bfd_bfin_arch ;;
98 c30*) targ_archs=bfd_tic30_arch ;;
99 c4x*) targ_archs=bfd_tic4x_arch ;;
100 c54x*) targ_archs=bfd_tic54x_arch ;;
101 cr16*) targ_archs=bfd_cr16_arch ;;
102 crisv32) targ_archs=bfd_cris_arch ;;
103 crx*) targ_archs=bfd_crx_arch ;;
104 dlx*) targ_archs=bfd_dlx_arch ;;
105 fido*) targ_archs=bfd_m68k_arch ;;
106 hppa*) targ_archs=bfd_hppa_arch ;;
107 i[3-7]86) targ_archs=bfd_i386_arch ;;
108 i370) targ_archs=bfd_i370_arch ;;
109 lm32) targ_archs=bfd_lm32_arch ;;
110 m6811*|m68hc11*) targ_archs="bfd_m68hc11_arch bfd_m68hc12_arch bfd_m9s12x_arch bfd_m9s12xg_arch" ;;
111 m6812*|m68hc12*) targ_archs="bfd_m68hc12_arch bfd_m68hc11_arch bfd_m9s12x_arch bfd_m9s12xg_arch" ;;
112 m68*) targ_archs=bfd_m68k_arch ;;
113 m88*) targ_archs=bfd_m88k_arch ;;
114 microblaze*) targ_archs=bfd_microblaze_arch ;;
115 mips*) targ_archs=bfd_mips_arch ;;
116 nds32*) targ_archs=bfd_nds32_arch ;;
117 nios2*) targ_archs=bfd_nios2_arch ;;
118 or1k*|or1knd*) targ_archs=bfd_or1k_arch ;;
119 pdp11*) targ_archs=bfd_pdp11_arch ;;
120 pj*) targ_archs="bfd_pj_arch bfd_i386_arch";;
121 powerpc*) targ_archs="bfd_rs6000_arch bfd_powerpc_arch" ;;
122 rs6000) targ_archs="bfd_rs6000_arch bfd_powerpc_arch" ;;
123 s390*) targ_archs=bfd_s390_arch ;;
124 sh*) targ_archs=bfd_sh_arch ;;
125 sparc*) targ_archs=bfd_sparc_arch ;;
126 spu*) targ_archs=bfd_spu_arch ;;
127 tilegx*) targ_archs=bfd_tilegx_arch ;;
128 tilepro*) targ_archs=bfd_tilepro_arch ;;
129 v850*) targ_archs="bfd_v850_arch bfd_v850_rh850_arch" ;;
130 visium*) targ_archs=bfd_visium_arch ;;
131 x86_64*) targ_archs=bfd_i386_arch ;;
132 xtensa*) targ_archs=bfd_xtensa_arch ;;
133 xgate) targ_archs=bfd_xgate_arch ;;
134 z80|r800) targ_archs=bfd_z80_arch ;;
135 z8k*) targ_archs=bfd_z8k_arch ;;
136 *) targ_archs=bfd_${targ_cpu}_arch ;;
140 # WHEN ADDING ENTRIES TO THIS MATRIX:
141 # Make sure that the left side always has two dashes. Otherwise you
142 # can get spurious matches. Even for unambiguous cases, do this as a
143 # convention, else the table becomes a real mess to understand and maintain.
145 # Keep obsolete entries above the START comment, to keep them out of
150 echo "This target is obsolete and has been removed."
155 echo "This target is obsolete and has been removed."
160 echo "This target is obsolete and has been removed."
165 targ_defvec=plugin_vec
166 targ_selvecs="plugin_vec"
169 # START OF targmatch.h
172 targ_defvec=aarch64_elf64_le_vec
173 targ_selvecs="aarch64_elf64_be_vec aarch64_elf32_le_vec aarch64_elf32_be_vec arm_elf32_le_vec arm_elf32_be_vec"
177 targ_defvec=aarch64_elf64_be_vec
178 targ_selvecs="aarch64_elf64_le_vec aarch64_elf32_le_vec aarch64_elf32_be_vec arm_elf32_be_vec arm_elf32_le_vec"
182 targ_defvec=aarch64_elf64_le_vec
183 targ_selvecs="aarch64_elf64_be_vec aarch64_elf32_le_vec aarch64_elf32_be_vec arm_elf32_le_vec arm_elf32_be_vec"
187 targ_defvec=aarch64_elf64_be_vec
188 targ_selvecs="aarch64_elf64_le_vec aarch64_elf32_le_vec aarch64_elf32_be_vec arm_elf32_be_vec arm_elf32_le_vec"
191 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
192 targ_defvec=alpha_elf64_fbsd_vec
193 targ_selvecs="alpha_elf64_vec alpha_ecoff_le_vec"
195 # FreeBSD <= 4.0 supports only the old nonstandard way of ABI labelling.
197 alpha*-*-freebsd3* | alpha*-*-freebsd4 | alpha*-*-freebsd4.0*)
198 targ_cflags=-DOLD_FREEBSD_ABI_LABEL ;;
201 alpha*-*-netbsd* | alpha*-*-openbsd*)
202 targ_defvec=alpha_elf64_vec
203 targ_selvecs=alpha_ecoff_le_vec
207 targ_defvec=alpha_ecoff_le_vec
208 targ_selvecs=alpha_nlm32_vec
211 alpha*-*-linux*ecoff*)
212 targ_defvec=alpha_ecoff_le_vec
213 targ_selvecs=alpha_elf64_vec
216 alpha*-*-linux-* | alpha*-*-elf*)
217 targ_defvec=alpha_elf64_vec
218 targ_selvecs=alpha_ecoff_le_vec
222 targ_defvec=alpha_vms_vec
223 targ_selvecs=alpha_vms_lib_txt_vec
227 targ_defvec=alpha_ecoff_le_vec
230 ia64*-*-freebsd* | ia64*-*-netbsd* | ia64*-*-linux-* | ia64*-*-elf* | ia64*-*-kfreebsd*-gnu)
231 targ_defvec=ia64_elf64_le_vec
232 targ_selvecs="ia64_elf64_be_vec ia64_pei_vec"
236 targ_defvec=ia64_elf32_hpux_be_vec
237 targ_selvecs="ia64_elf64_hpux_be_vec"
241 targ_defvec=ia64_elf64_vms_vec
242 targ_selvecs=alpha_vms_lib_txt_vec
245 sparc64-*-freebsd* | sparc64-*-kfreebsd*-gnu)
246 targ_defvec=sparc_elf64_fbsd_vec
247 targ_selvecs="sparc_elf64_vec sparc_elf32_vec sparc_aout_sunos_be_vec"
249 sparc64-*-netbsd* | sparc64-*-openbsd*)
250 targ_defvec=sparc_elf64_vec
251 targ_selvecs="sparc_elf32_vec sparc_aout_sunos_be_vec"
256 am34-*-linux* | am33_2.0-*-linux*)
257 targ_defvec=am33_elf32_linux_vec
261 targ_defvec=arc_elf32_le_vec
262 targ_selvecs=arc_elf32_be_vec
266 targ_defvec=arm_elf32_nacl_le_vec
267 targ_selvecs="arm_elf32_nacl_be_vec i386_elf32_nacl_vec"
268 targ64_selvecs="x86_64_elf32_nacl_vec x86_64_elf64_nacl_vec"
269 targ_archs="$targ_archs bfd_i386_arch"
272 targ_defvec=arm_elf32_nacl_be_vec
273 targ_selvecs="arm_elf32_nacl_le_vec i386_elf32_nacl_vec"
274 targ64_selvecs="x86_64_elf32_nacl_vec x86_64_elf64_nacl_vec"
275 targ_archs="$targ_archs bfd_i386_arch"
278 targ_defvec=arm_elf32_be_vec
279 targ_selvecs="arm_elf32_le_vec arm_aout_nbsd_vec"
282 targ_defvec=arm_elf32_le_vec
283 targ_selvecs="arm_elf32_be_vec arm_aout_nbsd_vec"
285 arm-*-netbsd* | arm-*-openbsd*)
286 targ_defvec=arm_aout_nbsd_vec
287 targ_selvecs="arm_elf32_le_vec arm_elf32_be_vec"
290 arm-*-nto* | nto*arm*)
291 targ_defvec=arm_elf32_le_vec
292 targ_selvecs=arm_elf32_be_vec
293 targ_cflags=-D__QNXTARGET__
296 targ_defvec=arm_aout_riscix_vec
299 targ_defvec=arm_pe_epoc_le_vec
300 targ_selvecs="arm_pe_epoc_le_vec arm_pe_epoc_be_vec arm_pei_epoc_le_vec arm_pei_epoc_be_vec"
302 targ_cflags=-DARM_COFF_BUGFIX
304 arm-wince-pe | arm-*-wince | arm*-*-mingw32ce* | arm*-*-cegcc*)
305 targ_defvec=arm_pe_wince_le_vec
306 targ_selvecs="arm_pe_wince_le_vec arm_pe_wince_be_vec arm_pei_wince_le_vec arm_pei_wince_be_vec"
308 targ_cflags="-DARM_WINCE -DARM_COFF_BUGFIX"
311 targ_defvec=arm_pe_le_vec
312 targ_selvecs="arm_pe_le_vec arm_pe_be_vec arm_pei_le_vec arm_pei_be_vec"
315 arm-*-aout | armel-*-aout)
316 targ_defvec=arm_aout_le_vec
317 targ_selvecs=arm_aout_be_vec
320 targ_defvec=arm_aout_be_vec
321 targ_selvecs=arm_aout_le_vec
324 targ_defvec=arm_coff_le_vec
325 targ_selvecs=arm_coff_be_vec
329 targ_defvec=arm_elf32_le_vec
330 targ_selvecs=arm_elf32_be_vec
332 armeb-*-elf | arm*b-*-freebsd* | arm*b-*-linux-* | armeb-*-eabi*)
333 targ_defvec=arm_elf32_be_vec
334 targ_selvecs=arm_elf32_le_vec
337 targ_defvec=arm_elf32_le_vec
338 targ_selvecs=arm_elf32_be_vec
340 arm-*-elf | arm*-*-freebsd* | arm*-*-linux-* | arm*-*-conix* | \
341 arm*-*-uclinux* | arm-*-kfreebsd*-gnu | \
343 targ_defvec=arm_elf32_le_vec
344 targ_selvecs=arm_elf32_be_vec
346 arm*-*-vxworks | arm*-*-windiss)
347 targ_defvec=arm_elf32_vxworks_le_vec
348 targ_selvecs=arm_elf32_vxworks_be_vec
351 targ_defvec=arm_elf32_symbian_le_vec
352 targ_selvecs=arm_elf32_symbian_be_vec
355 targ_defvec=arm_elf32_le_vec
356 targ_selvecs=arm_elf32_be_vec
360 targ_defvec=avr_elf32_vec
364 targ_defvec=bfin_elf32_vec
365 targ_selvecs=bfin_elf32_fdpic_vec
369 c30-*-*aout* | tic30-*-*aout*)
370 targ_defvec=tic30_aout_vec
372 c30-*-*coff* | tic30-*-*coff*)
373 targ_defvec=tic30_coff_vec
376 c4x-*-*coff* | tic4x-*-*coff* | tic4x-*-rtems*)
377 targ_defvec=tic4x_coff1_vec
378 targ_selvecs="tic4x_coff1_beh_vec tic4x_coff2_vec tic4x_coff2_beh_vec tic4x_coff0_vec tic4x_coff0_beh_vec"
382 c54x*-*-*coff* | tic54x-*-*coff*)
383 targ_defvec=tic54x_coff1_vec
384 targ_selvecs="tic54x_coff1_beh_vec tic54x_coff2_vec tic54x_coff2_beh_vec tic54x_coff0_vec tic54x_coff0_beh_vec"
388 cr16-*-elf* | cr16*-*-uclinux*)
389 targ_defvec=cr16_elf32_vec
394 targ_defvec=cr16c_elf32_vec
398 cris-*-* | crisv32-*-*)
399 targ_defvec=cris_aout_vec
400 targ_selvecs="cris_elf32_us_vec cris_elf32_vec ieee_vec"
401 targ_underscore=yes # Note: not true for cris_elf32_vec.
405 targ_defvec=crx_elf32_vec
410 targ_defvec=d10v_elf32_vec
414 targ_defvec=dlx_elf32_be_vec
415 targ_selvecs="dlx_elf32_be_vec"
419 targ_defvec=d30v_elf32_vec
423 targ_defvec=epiphany_elf32_vec
427 targ_defvec=m68k_elf32_vec
428 targ_selvecs="m68k_coff_vec ieee_vec"
432 targ_defvec=fr30_elf32_vec
436 targ_defvec=frv_elf32_vec
437 targ_selvecs=frv_elf32_fdpic_vec
441 targ_defvec=frv_elf32_fdpic_vec
442 targ_selvecs=frv_elf32_vec
445 moxie-*-elf | moxie-*-rtems* | moxie-*-uclinux)
446 targ_defvec=moxie_elf32_be_vec
447 targ_selvecs=moxie_elf32_le_vec
451 targ_defvec=moxie_elf32_le_vec
455 targ_defvec=h8300_coff_vec
459 h8300*-*-elf | h8300*-*-rtems*)
460 targ_defvec=h8300_elf32_vec
465 targ_defvec=h8300_elf32_linux_vec
469 targ_defvec=h8300_coff_vec
474 targ_defvec=h8500_coff_vec
480 targ_defvec=hppa_elf64_linux_vec
481 targ_selvecs=hppa_elf64_vec
485 targ_defvec=hppa_elf64_vec
486 targ_selvecs=hppa_elf64_linux_vec
487 targ_cflags=-DHPUX_LARGE_AR_IDS
493 targ_defvec=hppa_elf32_linux_vec
494 targ_selvecs=hppa_elf32_vec
497 targ_defvec=hppa_elf32_nbsd_vec
498 targ_selvecs="hppa_elf32_vec hppa_elf32_linux_vec"
500 hppa*-*-*elf* | hppa*-*-lites* | hppa*-*-sysv4* | hppa*-*-openbsd*)
501 targ_defvec=hppa_elf32_vec
502 targ_selvecs=hppa_elf32_linux_vec
506 targ_defvec=hppa_som_vec
507 targ_selvecs=hppa_elf32_vec
509 hppa*-*-hpux* | hppa*-*-hiux* | hppa*-*-mpeix*)
510 targ_defvec=hppa_som_vec
513 targ_defvec=hppa_som_vec
514 targ_selvecs=hppa_elf32_vec
518 targ_defvec=i370_elf32_vec
519 targ_selvecs="i370_elf32_vec"
521 i[3-7]86-*-sco3.2v5*coff)
522 targ_defvec=i386_coff_vec
523 targ_selvecs=i386_elf32_vec
525 i[3-7]86-*-sysv4* | i[3-7]86-*-unixware* | \
526 i[3-7]86-*-elf | i[3-7]86-*-sco3.2v5* | \
527 i[3-7]86-*-dgux* | i[3-7]86-*-sysv5*)
528 targ_defvec=i386_elf32_vec
529 targ_selvecs=i386_coff_vec
531 i[3-7]86-*-solaris2*)
532 targ_defvec=i386_elf32_sol2_vec
533 targ_selvecs="i386_coff_vec"
534 targ64_selvecs="x86_64_elf64_sol2_vec l1om_elf64_vec k1om_elf64_vec"
539 targ_defvec=i386_elf32_sol2_vec
540 targ_selvecs="x86_64_elf64_sol2_vec l1om_elf64_vec k1om_elf64_vec i386_coff_vec"
545 targ_defvec=i386_elf32_vec
546 targ_selvecs=i386_elf32_vec
549 targ_defvec=i386_elf32_vec
550 targ_selvecs=i386_coff_vec
553 targ_defvec=i386_elf32_vec
556 targ_defvec=i386_elf32_vec
559 targ_defvec=i386_elf32_vec
560 targ64_selvecs="x86_64_elf64_vec l1om_elf64_vec k1om_elf64_vec"
562 *-*-msdosdjgpp* | *-*-go32* )
563 targ_defvec=i386_coff_go32_vec
564 targ_selvecs="i386_coff_go32stubbed_vec i386_aout_vec"
566 i[3-7]86-*-sysv* | i[3-7]86-*-isc* | i[3-7]86-*-sco* | i[3-7]86-*-coff | \
568 targ_defvec=i386_coff_vec
571 targ_defvec=i386_elf32_vec
572 targ_selvecs="i386_coff_vec i386_aout_vec"
574 i[3-7]86-*-darwin* | i[3-7]86-*-macos10* | i[3-7]86-*-rhapsody*)
575 targ_defvec=i386_mach_o_vec
576 targ_selvecs="mach_o_le_vec mach_o_be_vec mach_o_fat_vec pef_vec pef_xlib_vec sym_vec"
577 targ64_selvecs=x86_64_mach_o_vec
578 targ_archs="$targ_archs bfd_powerpc_arch bfd_rs6000_arch"
580 i[3-7]86-sequent-bsd*)
581 targ_defvec=i386_aout_dynix_vec
585 targ_defvec=i386_aout_bsd_vec
588 i[3-7]86-*-dragonfly*)
589 targ_defvec=i386_elf32_vec
590 targ64_selvecs="x86_64_elf64_vec l1om_elf64_vec k1om_elf64_vec"
592 i[3-7]86-*-freebsdaout* | i[3-7]86-*-freebsd[12].* | \
593 i[3-7]86-*-freebsd[12])
594 targ_defvec=i386_aout_fbsd_vec
595 targ_selvecs=i386_aout_bsd_vec
598 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
599 targ_defvec=i386_elf32_fbsd_vec
600 targ_selvecs="i386_elf32_vec i386_pei_vec i386_coff_vec"
601 targ64_selvecs="x86_64_elf64_fbsd_vec x86_64_elf64_vec x86_64_pei_vec l1om_elf64_vec l1om_elf64_fbsd_vec k1om_elf64_vec k1om_elf64_fbsd_vec"
602 # FreeBSD <= 4.0 supports only the old nonstandard way of ABI labelling.
604 i[3-7]86-*-freebsd3* | i[3-7]86-*-freebsd4 | i[3-7]86-*-freebsd4.0*)
605 targ_cflags=-DOLD_FREEBSD_ABI_LABEL ;;
608 i[3-7]86-*-netbsdelf* | i[3-7]86-*-netbsd*-gnu* | i[3-7]86-*-knetbsd*-gnu)
609 targ_defvec=i386_elf32_vec
610 targ_selvecs=i386_aout_nbsd_vec
611 targ64_selvecs="x86_64_elf64_vec l1om_elf64_vec k1om_elf64_vec"
613 i[3-7]86-*-netbsdpe*)
614 targ_defvec=i386_pe_vec
615 targ_selvecs="i386_pe_vec i386_pei_vec i386_elf32_vec"
617 i[3-7]86-*-netbsdaout* | i[3-7]86-*-netbsd* | \
618 i[3-7]86-*-openbsd[0-2].* | i[3-7]86-*-openbsd3.[0-3])
619 targ_defvec=i386_aout_nbsd_vec
620 targ_selvecs="i386_elf32_vec i386_aout_bsd_vec"
624 targ_defvec=i386_elf32_vec
625 targ_selvecs=i386_aout_nbsd_vec
628 targ_defvec=i386_elf32_vec
629 targ_selvecs="i386_nlm32_vec i386_coff_vec i386_aout_vec"
631 i[3-7]86-*-linux*aout*)
632 targ_defvec=i386_aout_linux_vec
633 targ_selvecs=i386_elf32_vec
637 targ_defvec=i386_elf32_vec
638 targ_selvecs="i386_aout_linux_vec i386_pei_vec"
639 targ64_selvecs="x86_64_elf64_vec x86_64_elf32_vec x86_64_pei_vec l1om_elf64_vec k1om_elf64_vec"
642 targ_defvec=i386_elf32_nacl_vec
643 targ_selvecs="arm_elf32_nacl_be_vec arm_elf32_nacl_le_vec"
644 targ64_selvecs="x86_64_elf64_nacl_vec x86_64_elf32_nacl_vec"
645 targ_archs="$targ_archs bfd_arm_arch"
649 targ_defvec=x86_64_elf64_cloudabi_vec
653 targ_defvec=x86_64_mach_o_vec
654 targ_selvecs="i386_mach_o_vec mach_o_le_vec mach_o_be_vec mach_o_fat_vec pef_vec pef_xlib_vec sym_vec"
655 targ_archs="$targ_archs bfd_powerpc_arch bfd_rs6000_arch"
659 targ_defvec=x86_64_elf64_vec
660 targ_selvecs="i386_elf32_vec l1om_elf64_vec k1om_elf64_vec"
664 targ_defvec=x86_64_elf64_vec
665 targ_selvecs="i386_elf32_vec x86_64_elf32_vec l1om_elf64_vec k1om_elf64_vec"
669 targ_defvec=x86_64_elf64_vec
670 targ_selvecs="i386_elf32_vec l1om_elf64_vec k1om_elf64_vec"
673 x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
674 targ_defvec=x86_64_elf64_fbsd_vec
675 targ_selvecs="i386_elf32_fbsd_vec i386_coff_vec i386_pei_vec x86_64_pei_vec i386_elf32_vec x86_64_elf64_vec l1om_elf64_vec l1om_elf64_fbsd_vec k1om_elf64_vec k1om_elf64_fbsd_vec"
678 x86_64-*-netbsd* | x86_64-*-openbsd*)
679 targ_defvec=x86_64_elf64_vec
680 targ_selvecs="i386_elf32_vec i386_aout_nbsd_vec i386_coff_vec i386_pei_vec x86_64_pei_vec l1om_elf64_vec k1om_elf64_vec"
684 targ_defvec=x86_64_elf64_vec
685 targ_selvecs="i386_elf32_vec x86_64_elf32_vec i386_aout_linux_vec i386_pei_vec x86_64_pei_vec l1om_elf64_vec k1om_elf64_vec"
689 targ_defvec=x86_64_elf32_nacl_vec
690 targ_selvecs="i386_elf32_nacl_vec x86_64_elf64_nacl_vec arm_elf32_nacl_be_vec arm_elf32_nacl_le_vec"
691 targ_archs="$targ_archs bfd_arm_arch"
694 x86_64-*-mingw* | x86_64-*-pe | x86_64-*-pep | x86_64-*-cygwin)
695 targ_defvec=x86_64_pe_vec
696 targ_selvecs="x86_64_pe_vec x86_64_pei_vec x86_64_pe_be_vec x86_64_elf64_vec l1om_elf64_vec k1om_elf64_vec i386_pe_vec i386_pei_vec i386_elf32_vec"
701 targ_defvec=x86_64_elf64_vec
706 targ_defvec=i386_elf32_vec
707 targ_selvecs="i386_coff_lynx_vec i386_aout_lynx_vec"
710 targ_defvec=i386_elf32_vec
712 i[3-7]86-*-mach* | i[3-7]86-*-osf1mk*)
713 targ_defvec=i386_aout_mach3_vec
714 targ_cflags=-DSTAT_FOR_EXEC
718 targ_defvec=i386_aout_os9k_vec
721 targ_defvec=i386_aout_vec
722 targ_selvecs=i386_msdos_vec
725 targ_defvec=i386_elf32_vec
726 targ_selvecs="i386_msdos_vec i386_aout_vec"
729 targ_defvec=i386_pe_vec
730 targ_selvecs="i386_pe_vec i386_pei_vec"
732 i[3-7]86-*-beoself* | i[3-7]86-*-beos*)
733 targ_defvec=i386_elf32_vec
734 targ_selvecs="i386_pe_vec i386_pei_vec"
737 targ_defvec=i386_pei_vec
738 targ_selvecs="i386_pe_vec"
739 # FIXME: This should eventually be checked at runtime.
740 targ_cflags=-DSTRICT_PE_FORMAT
743 targ_defvec=i386_elf32_vec
744 targ_selvecs=i386_coff_vec
746 i[3-7]86-*-mingw32* | i[3-7]86-*-cygwin* | i[3-7]86-*-winnt | i[3-7]86-*-pe)
747 targ_defvec=i386_pe_vec
748 targ_selvecs="i386_pe_vec i386_pei_vec i386_elf32_vec"
752 targ_defvec=i386_coff_vec
754 i[3-7]86-*-aout* | i[3-7]86*-*-vsta*)
755 targ_defvec=i386_aout_vec
758 targ_defvec=i386_elf32_vxworks_vec
762 targ_defvec=i386_elf32_vec
763 targ_selfvecs=i386chaos_vec
766 i860-*-mach3* | i860-*-osf1* | i860-*-coff*)
767 targ_defvec=i860_coff_vec
769 i860-stardent-sysv4* | i860-stardent-elf*)
770 targ_defvec=i860_elf32_le_vec
771 targ_selvecs="i860_elf32_vec i860_elf32_le_vec"
773 i860-*-sysv4* | i860-*-elf*)
774 targ_defvec=i860_elf32_vec
777 i960-*-vxworks4* | i960-*-vxworks5.0)
778 targ_defvec=bout_le_vec
779 targ_selvecs="bout_be_vec icoff_le_vec icoff_be_vec ieee_vec"
782 i960-*-vxworks5.* | i960-*-coff* | i960-*-sysv*)
783 targ_defvec=icoff_le_vec
784 targ_selvecs="icoff_be_vec bout_le_vec bout_be_vec ieee_vec"
787 i960-*-vxworks* | i960-*-aout* | i960-*-bout* | i960-*-nindy*)
788 targ_defvec=bout_le_vec
789 targ_selvecs="bout_be_vec icoff_le_vec icoff_be_vec ieee_vec"
793 targ_defvec=i960_elf32_vec
794 targ_selvecs="icoff_le_vec icoff_be_vec"
798 targ_defvec=ip2k_elf32_vec
802 targ_defvec=iq2000_elf32_vec
805 lm32-*-elf | lm32-*-rtems*)
806 targ_defvec=lm32_elf32_vec
807 targ_selvecs=lm32_elf32_fdpic_vec
811 targ_defvec=lm32_elf32_fdpic_vec
812 targ_selvecs=lm32_elf32_vec
815 m32c-*-elf | m32c-*-rtems*)
816 targ_defvec=m32c_elf32_vec
820 targ_defvec=m32r_elf32_linux_le_vec
821 targ_selvecs="m32r_elf32_linux_vec m32r_elf32_linux_le_vec"
824 targ_defvec=m32r_elf32_linux_vec
825 targ_selvecs="m32r_elf32_linux_vec m32r_elf32_linux_le_vec"
828 targ_defvec=m32r_elf32_le_vec
829 targ_selvecs="m32r_elf32_vec m32r_elf32_le_vec"
832 targ_defvec=m32r_elf32_vec
835 m68hc11-*-* | m6811-*-*)
836 targ_defvec=m68hc11_elf32_vec
837 targ_selvecs="m68hc11_elf32_vec m68hc12_elf32_vec"
839 m68hc12-*-* | m6812-*-*)
840 targ_defvec=m68hc12_elf32_vec
841 targ_selvecs="m68hc11_elf32_vec m68hc12_elf32_vec"
845 targ_defvec=m68k_coff_sysv_vec
848 targ_defvec=m68k_aout_hp300bsd_vec
852 targ_defvec=aout0_be_vec
853 # We include core_cisco_be_vec here, rather than making a separate cisco
854 # configuration, so that cisco-core.c gets routinely tested at
855 # least for compilation.
856 targ_selvecs="core_cisco_be_vec ieee_vec"
859 m68*-*-elf* | m68*-*-sysv4* | m68*-*-uclinux*)
860 targ_defvec=m68k_elf32_vec
861 targ_selvecs="m68k_coff_vec ieee_vec"
864 targ_defvec=m68k_elf32_vec
865 targ_selvecs="m68k_coff_vec m68k_versados_vec ieee_vec aout0_be_vec"
867 m68*-*-coff* | m68*-*-sysv*)
868 targ_defvec=m68k_coff_vec
869 targ_selvecs="m68k_coff_vec m68k_versados_vec ieee_vec"
872 targ_defvec=m68k_aout_hp300hpux_vec
876 targ_defvec=m68k_aout_linux_vec
877 targ_selvecs=m68k_elf32_vec
881 targ_defvec=m68k_elf32_vec
882 targ_selvecs=m68k_aout_linux_vec
885 targ_defvec=m68k_elf32_vec
886 # targ_selvecs=m68kmach3_vec
887 # targ_cflags=-DSTAT_FOR_EXEC
890 targ_defvec=m68k_aout_4knbsd_vec
891 targ_selvecs="m68k_aout_nbsd_vec m68k_aout_hp300bsd_vec sparc_aout_sunos_be_vec"
895 targ_defvec=m68k_elf32_vec
896 targ_selvecs="m68k_aout_nbsd_vec m68k_aout_4knbsd_vec m68k_aout_hp300bsd_vec sparc_aout_sunos_be_vec"
898 m68*-*-netbsdaout* | m68*-*-netbsd*)
899 targ_defvec=m68k_aout_nbsd_vec
900 targ_selvecs="m68k_aout_4knbsd_vec m68k_elf32_vec m68k_aout_hp300bsd_vec sparc_aout_sunos_be_vec"
904 targ_defvec=m68k_aout_nbsd_vec
905 targ_selvecs="m68k_aout_4knbsd_vec m68k_aout_hp300bsd_vec sparc_aout_sunos_be_vec"
908 m68*-*-sunos* | m68*-*-os68k* | m68*-*-vxworks* | m68*-netx-* | \
909 m68*-*-bsd* | m68*-*-vsta*)
910 targ_defvec=sparc_aout_sunos_be_vec
914 targ_defvec=sparc_aout_sunos_be_vec
915 targ_selvecs="m68k_coff_vec m68k_versados_vec tekhex_vec"
919 targ_defvec=m68k_elf32_vec
920 targ_selvecs=m68k_coff_vec
923 targ_defvec=m68k_elf32_vec
924 targ_selvecs=ieee_vec
928 m88*-harris-cxux* | m88*-*-dgux* | m88*-*-sysv4*)
929 targ_defvec=m88k_elf32_vec
930 targ_selvecs=m88k_coff_bcs_vec
933 targ_defvec=m88k_aout_mach3_vec
934 targ_cflags=-DSTAT_FOR_EXEC
937 targ_defvec=m88k_aout_obsd_vec
941 targ_defvec=m88k_coff_bcs_vec
946 targ_defvec=mcore_elf32_be_vec
947 targ_selvecs="mcore_elf32_be_vec mcore_elf32_le_vec"
950 targ_defvec=mcore_pe_be_vec
951 targ_selvecs="mcore_pe_be_vec mcore_pe_le_vec mcore_pei_be_vec mcore_pei_le_vec"
955 targ_defvec=mep_elf32_vec
956 targ_selvecs=mep_elf32_le_vec
960 targ_defvec=metag_elf32_vec
965 targ_defvec=microblaze_elf32_le_vec
966 targ_selvecs=microblaze_elf32_vec
970 targ_defvec=microblaze_elf32_vec
971 targ_selvecs=microblaze_elf32_le_vec
975 targ_defvec=mips_ecoff_be_vec
976 targ_selvecs=mips_ecoff_le_vec
980 targ_defvec=mips_elf32_trad_le_vec
981 targ_selvecs="mips_elf32_trad_be_vec mips_elf64_trad_be_vec mips_elf64_trad_le_vec mips_ecoff_le_vec mips_ecoff_be_vec"
984 targ_defvec=mips_elf32_trad_be_vec
985 targ_selvecs="mips_elf32_trad_le_vec mips_elf64_trad_be_vec mips_elf64_trad_le_vec mips_ecoff_be_vec mips_ecoff_le_vec"
988 mips*-dec-* | mips*el-*-ecoff*)
989 targ_defvec=mips_ecoff_le_vec
990 targ_selvecs=mips_ecoff_be_vec
993 targ_defvec=mips_ecoff_be_vec
994 targ_selvecs=mips_ecoff_le_vec
998 targ_defvec=mips_elf32_n_be_vec
999 targ_selvecs="mips_elf32_n_le_vec mips_elf32_be_vec mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec"
1002 targ_defvec=mips_elf32_n_le_vec
1003 targ_selvecs="mips_elf32_n_le_vec mips_elf32_n_be_vec mips_elf32_be_vec mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec"
1006 targ_defvec=mips_elf32_le_vec
1007 targ_selvecs="mips_elf32_be_vec mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec"
1010 targ_defvec=mips_elf32_be_vec
1011 targ_selvecs="mips_elf32_le_vec mips_ecoff_be_vec mips_ecoff_le_vec"
1014 mips*-sgi-* | mips*-*-bsd*)
1015 targ_defvec=mips_ecoff_be_vec
1016 targ_selvecs=mips_ecoff_le_vec
1019 targ_defvec=mips_ecoff_bele_vec
1020 targ_selvecs="mips_ecoff_le_vec mips_ecoff_be_vec"
1024 targ_defvec=mips_elf32_trad_be_vec
1025 targ_selvecs="mips_elf32_trad_le_vec mips_ecoff_be_vec mips_ecoff_le_vec"
1028 mips*-*-sysv* | mips*-*-riscos*)
1029 targ_defvec=mips_ecoff_be_vec
1030 targ_selvecs=mips_ecoff_le_vec
1034 targ_defvec=mips_elf32_vxworks_le_vec
1035 targ_selvecs="mips_elf32_le_vec mips_elf32_vxworks_be_vec mips_elf32_be_vec mips_elf64_be_vec mips_elf64_le_vec"
1038 targ_defvec=mips_elf32_vxworks_be_vec
1039 targ_selvecs="mips_elf32_be_vec mips_elf32_vxworks_le_vec mips_elf32_be_vec mips_elf64_be_vec mips_elf64_le_vec"
1042 targ_defvec=mips_elf32_trad_le_vec
1043 targ_selvecs="mips_elf32_trad_be_vec mips_elf32_ntrad_be_vec mips_elf32_ntrad_le_vec mips_elf64_trad_be_vec mips_elf64_trad_le_vec"
1045 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
1046 targ_defvec=mips_elf32_trad_be_vec
1047 targ_selvecs="mips_elf32_trad_le_vec mips_elf32_ntrad_be_vec mips_elf32_ntrad_le_vec mips_elf64_trad_be_vec mips_elf64_trad_le_vec"
1049 mips*el-*-elf* | mips*el-*-vxworks* | mips*-*-chorus*)
1050 targ_defvec=mips_elf32_le_vec
1051 targ_selvecs="mips_elf32_be_vec mips_elf64_be_vec mips_elf64_le_vec"
1053 mips*-*-elf* | mips*-*-rtems* | mips*-*-vxworks | mips*-*-windiss)
1054 targ_defvec=mips_elf32_be_vec
1055 targ_selvecs="mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec"
1058 targ_defvec=mips_elf32_be_vec
1059 targ_selvecs="mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec"
1062 targ_defvec=mips_elf64_trad_be_vec
1063 targ_selvecs="mips_elf32_ntrad_le_vec mips_elf32_ntrad_be_vec mips_elf32_trad_le_vec mips_elf32_trad_be_vec mips_elf64_trad_le_vec"
1066 targ_defvec=mips_elf32_le_vec
1067 targ_selvecs="mips_elf32_be_vec mips_elf64_be_vec mips_elf64_le_vec mips_ecoff_le_vec mips_ecoff_be_vec"
1070 targ_defvec=mips_elf32_be_vec
1071 targ_selvecs="mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec mips_ecoff_be_vec mips_ecoff_le_vec"
1074 targ_defvec=mips_elf32_ntrad_le_vec
1075 targ_selvecs="mips_elf32_ntrad_be_vec mips_elf32_trad_le_vec mips_elf32_trad_be_vec mips_elf64_trad_le_vec mips_elf64_trad_be_vec"
1078 targ_defvec=mips_elf32_ntrad_be_vec
1079 targ_selvecs="mips_elf32_ntrad_le_vec mips_elf32_trad_be_vec mips_elf32_trad_le_vec mips_elf64_trad_be_vec mips_elf64_trad_le_vec"
1082 targ_defvec=mips_elf32_trad_le_vec
1083 targ_selvecs="mips_elf32_trad_be_vec mips_ecoff_le_vec mips_ecoff_be_vec mips_elf32_ntrad_le_vec mips_elf64_trad_le_vec mips_elf32_ntrad_be_vec mips_elf64_trad_be_vec"
1086 targ_defvec=mips_elf32_trad_be_vec
1087 targ_selvecs="mips_elf32_trad_le_vec mips_ecoff_be_vec mips_ecoff_le_vec mips_elf32_ntrad_be_vec mips_elf64_trad_be_vec mips_elf32_ntrad_le_vec mips_elf64_trad_le_vec"
1089 mips64*el-*-freebsd* | mips64*el-*-kfreebsd*-gnu)
1091 targ_defvec=mips_elf32_ntradfbsd_le_vec
1092 targ_selvecs="mips_elf32_ntradfbsd_be_vec mips_elf32_tradfbsd_le_vec mips_elf32_tradfbsd_be_vec mips_elf64_tradfbsd_le_vec mips_elf64_tradfbsd_be_vec"
1094 targ_selvecs="${targ_selvecs} mips_elf32_ntrad_le_vec mips_elf32_ntrad_be_vec mips_elf32_trad_le_vec mips_elf32_trad_be_vec mips_elf64_trad_le_vec mips_elf64_trad_be_vec"
1096 mips64*-*-freebsd* | mips64*-*-kfreebsd*-gnu)
1098 targ_defvec=mips_elf32_ntradfbsd_be_vec
1099 targ_selvecs="mips_elf32_ntradfbsd_le_vec mips_elf32_tradfbsd_be_vec mips_elf32_tradfbsd_le_vec mips_elf64_tradfbsd_be_vec mips_elf64_tradfbsd_le_vec"
1101 targ_selvecs="${targ_selvecs} mips_elf32_ntrad_be_vec mips_elf32_ntrad_le_vec mips_elf32_trad_be_vec mips_elf32_trad_le_vec mips_elf64_trad_be_vec mips_elf64_trad_le_vec"
1103 mips*el-*-freebsd* | mips*el-*-kfreebsd*-gnu)
1105 targ_defvec=mips_elf32_tradfbsd_le_vec
1106 targ_selvecs="mips_elf32_tradfbsd_be_vec mips_elf32_ntradfbsd_le_vec mips_elf64_tradfbsd_le_vec mips_elf32_ntradfbsd_be_vec mips_elf64_tradfbsd_be_vec"
1108 targ_selvecs="${targ_selvecs} mips_elf32_trad_le_vec mips_elf32_trad_be_vec mips_elf32_ntrad_le_vec mips_elf64_trad_le_vec mips_elf32_ntrad_be_vec mips_elf64_trad_be_vec"
1110 mips*-*-freebsd* | mips*-*-kfreebsd*-gnu)
1112 targ_defvec=mips_elf32_tradfbsd_be_vec
1113 targ_selvecs="mips_elf32_tradfbsd_le_vec mips_elf32_ntradfbsd_be_vec mips_elf64_tradfbsd_be_vec mips_elf32_ntradfbsd_le_vec mips_elf64_tradfbsd_le_vec"
1115 targ_selvecs="${targ_selvecs} mips_elf32_trad_be_vec mips_elf32_trad_le_vec mips_elf32_ntrad_be_vec mips_elf64_trad_be_vec mips_elf32_ntrad_le_vec mips_elf64_trad_le_vec"
1118 targ_defvec=mmix_elf64_vec
1119 targ_selvecs=mmix_mmo_vec
1124 targ_defvec=mn10200_elf32_vec
1128 targ_defvec=mn10300_elf32_vec
1133 targ_defvec=mt_elf32_vec
1137 targ_defvec=msp430_elf32_vec
1138 targ_selvecs=msp430_elf32_ti_vec
1142 targ_defvec=nds32_elf32_linux_le_vec
1143 targ_selvecs=nds32_elf32_linux_be_vec
1147 targ_defvec=nds32_elf32_linux_be_vec
1148 targ_selvecs=nds32_elf32_linux_le_vec
1152 targ_defvec=nds32_elf32_le_vec
1153 targ_selvecs=nds32_elf32_be_vec
1157 targ_defvec=nds32_elf32_be_vec
1158 targ_selvecs=nds32_elf32_le_vec
1161 ns32k-pc532-mach* | ns32k-pc532-ux*)
1162 targ_defvec=ns32k_aout_pc532mach_vec
1165 ns32k-*-netbsd* | ns32k-*-lites* | ns32k-*-openbsd*)
1166 targ_defvec=ns32k_aout_pc532nbsd_vec
1171 targ_defvec=nios2_elf32_be_vec
1172 targ_selvecs=nios2_elf32_le_vec
1176 targ_defvec=nios2_elf32_le_vec
1177 targ_selvecs=nios2_elf32_be_vec
1181 targ_defvec=nios2_elf32_le_vec
1182 targ_selvecs=nios2_elf32_be_vec
1185 or1k-*-elf | or1k-*-linux* | or1k-*-rtems*)
1186 targ_defvec=or1k_elf32_vec
1189 or1knd-*-elf | or1knd-*-linux* | or1knd-*-rtems*)
1190 targ_defvec=or1k_elf32_vec
1194 targ_defvec=pdp11_aout_vec
1199 targ_defvec=pj_elf32_vec
1200 targ_selvecs="pj_elf32_vec pj_elf32_le_vec"
1204 targ_defvec=pj_elf32_le_vec
1205 targ_selvecs="pj_elf32_le_vec pj_elf32_vec i386_elf32_vec"
1208 powerpc-*-aix5.[01] | rs6000-*-aix5.[01])
1209 targ_defvec=rs6000_xcoff_vec
1210 targ_selvecs="rs6000_xcoff64_aix_vec"
1214 powerpc64-*-aix5.[01] | rs6000-*-aix5.[01])
1215 targ_defvec=rs6000_xcoff64_aix_vec
1216 targ_selvecs="rs6000_xcoff_vec"
1220 powerpc-*-aix[5-9]* | rs6000-*-aix[5-9]*)
1221 targ_cflags=-DAIX_WEAK_SUPPORT
1222 targ_defvec=rs6000_xcoff_vec
1223 targ_selvecs="rs6000_xcoff64_aix_vec"
1227 powerpc64-*-aix[5-9]* | rs6000-*-aix[5-9]*)
1228 targ_cflags=-DAIX_WEAK_SUPPORT
1229 targ_defvec=rs6000_xcoff64_aix_vec
1230 targ_selvecs="rs6000_xcoff_vec"
1235 powerpc-*-aix* | powerpc-*-beos* | rs6000-*-*)
1236 targ_defvec=rs6000_xcoff_vec
1237 targ64_selvecs=rs6000_xcoff64_vec
1239 *-*-aix4.[3456789]* | *-*-aix[56789]*)
1242 targ_cflags=-DSMALL_ARCHIVE;;
1247 targ_defvec=rs6000_xcoff64_vec
1248 targ_selvecs=rs6000_xcoff_vec
1251 powerpc64-*-freebsd*)
1252 targ_defvec=powerpc_elf64_fbsd_vec
1253 targ_selvecs="powerpc_elf64_vec powerpc_elf32_vec powerpc_elf32_fbsd_vec powerpc_elf32_le_vec rs6000_xcoff_vec rs6000_xcoff64_vec rs6000_xcoff64_aix_vec"
1256 powerpc64-*-elf* | powerpc-*-elf64* | powerpc64-*-linux* | \
1258 targ_defvec=powerpc_elf64_vec
1259 targ_selvecs="powerpc_elf64_le_vec powerpc_elf32_vec powerpc_elf32_le_vec rs6000_xcoff_vec rs6000_xcoff64_vec rs6000_xcoff64_aix_vec"
1262 powerpc64le-*-elf* | powerpcle-*-elf64* | powerpc64le-*-linux* | \
1263 powerpc64le-*-*bsd*)
1264 targ_defvec=powerpc_elf64_le_vec
1265 targ_selvecs="powerpc_elf64_vec powerpc_elf32_le_vec powerpc_elf32_vec rs6000_xcoff_vec rs6000_xcoff64_vec rs6000_xcoff64_aix_vec"
1269 powerpc-*-*freebsd*)
1270 targ_defvec=powerpc_elf32_fbsd_vec
1271 targ_selvecs="rs6000_xcoff_vec powerpc_elf32_vec powerpc_elf32_le_vec powerpc_boot_vec"
1272 targ64_selvecs="powerpc_elf64_vec powerpc_elf64_le_vec powerpc_elf64_fbsd_vec"
1274 powerpc-*-*bsd* | powerpc-*-elf* | powerpc-*-sysv4* | powerpc-*-eabi* | \
1275 powerpc-*-solaris2* | powerpc-*-linux-* | powerpc-*-rtems* | \
1277 targ_defvec=powerpc_elf32_vec
1278 targ_selvecs="rs6000_xcoff_vec powerpc_elf32_le_vec powerpc_boot_vec"
1279 targ64_selvecs="powerpc_elf64_vec powerpc_elf64_le_vec"
1282 targ_defvec=powerpc_elf32_vec
1283 targ_selvecs="powerpc_elf32_le_vec powerpc_boot_vec"
1284 targ64_selvecs="powerpc_elf64_vec powerpc_elf64_le_vec"
1286 powerpc-*-darwin* | powerpc-*-macos10* | powerpc-*-rhapsody*)
1287 targ_defvec=mach_o_be_vec
1288 targ_selvecs="mach_o_be_vec mach_o_le_vec mach_o_fat_vec pef_vec pef_xlib_vec sym_vec"
1289 targ_archs="$targ_archs bfd_i386_arch"
1292 targ_defvec=powerpc_xcoff_vec
1295 targ_defvec=powerpc_elf32_vec
1296 targ_selvecs="rs6000_xcoff_vec"
1297 targ_cflags=-DSMALL_ARCHIVE
1300 targ_defvec=powerpc_elf32_vec
1301 targ_selvecs="powerpc_nlm32_vec rs6000_xcoff_vec"
1304 targ_defvec=powerpc_elf32_vec
1305 targ_selvecs="rs6000_xcoff_vec powerpc_elf32_le_vec powerpc_boot_vec"
1307 powerpc-*-vxworks* | powerpc-*-windiss*)
1308 targ_defvec=powerpc_elf32_vxworks_vec
1309 targ_selvecs="rs6000_xcoff_vec powerpc_elf32_vec powerpc_elf32_le_vec powerpc_boot_vec"
1310 targ64_selvecs="powerpc_elf64_vec powerpc_elf64_le_vec"
1313 targ_defvec=powerpc_elf32_le_vec
1314 targ_selvecs="rs6000_xcoff_vec powerpc_elf32_vec powerpc_boot_vec"
1316 powerpcle-*-elf* | powerpcle-*-sysv4* | powerpcle-*-eabi* | \
1317 powerpcle-*-solaris2* | powerpcle-*-linux-* | powerpcle-*-vxworks*)
1318 targ_defvec=powerpc_elf32_le_vec
1319 targ_selvecs="rs6000_xcoff_vec powerpc_elf32_vec powerpc_boot_vec"
1320 targ64_selvecs="powerpc_elf64_vec powerpc_elf64_le_vec"
1322 powerpcle-*-pe | powerpcle-*-winnt* | powerpcle-*-cygwin*)
1323 targ_defvec=powerpc_pe_le_vec
1324 targ_selvecs="powerpc_pei_le_vec powerpc_pei_vec powerpc_pe_le_vec powerpc_pe_vec"
1328 targ_defvec=rl78_elf32_vec
1332 targ_defvec=rx_elf32_le_vec
1333 targ_selvecs="rx_elf32_be_vec rx_elf32_le_vec rx_elf32_be_ns_vec"
1337 targ_defvec=s390_elf32_vec
1338 targ64_selvecs=s390_elf64_vec
1343 targ_defvec=s390_elf64_vec
1344 targ_selvecs=s390_elf32_vec
1348 targ_defvec=s390_elf64_vec
1353 targ_defvec=score_elf32_be_vec
1354 targ_selvecs=score_elf32_le_vec
1358 targ_defvec=sh64_elf32_le_vec
1359 targ_selvecs="sh64_elf32_vec sh64_elf64_le_vec sh64_elf64_vec sh_elf32_le_vec sh_elf32_vec"
1364 targ_defvec=sh64_elf32_vec
1365 targ_selvecs="sh64_elf32_le_vec sh64_elf64_vec sh64_elf64_le_vec sh_elf32_vec sh_elf32_le_vec"
1370 targ_defvec=sh64_elf32_linux_be_vec
1371 targ_selvecs="sh64_elf32_linux_vec sh64_elf64_linux_be_vec sh64_elf64_linux_vec sh_elf32_linux_be_vec sh_elf32_linux_vec"
1375 targ_defvec=sh64_elf32_linux_vec
1376 targ_selvecs="sh64_elf32_linux_be_vec sh64_elf64_linux_vec sh64_elf64_linux_be_vec sh_elf32_linux_vec sh_elf32_linux_be_vec"
1380 targ_defvec=sh_elf32_linux_be_vec
1381 targ_selvecs="sh_elf32_linux_vec sh64_elf32_linux_vec sh64_elf32_linux_be_vec sh64_elf64_linux_vec sh64_elf64_linux_be_vec"
1387 targ_defvec=sh_elf32_linux_be_vec
1388 targ_selvecs=sh_elf32_linux_vec
1391 targ_defvec=sh_elf32_linux_vec
1392 targ_selvecs=sh_elf32_linux_be_vec
1395 sh-*-uclinux* | sh[12]-*-uclinux*)
1396 targ_defvec=sh_elf32_vec
1397 targ_selvecs="sh_elf32_le_vec sh_elf32_linux_be_vec sh_elf32_linux_vec sh_elf32_fdpic_le_vec sh_elf32_fdpic_be_vec"
1399 targ_selvecs="${targ_selvecs} sh64_elf32_linux_vec sh64_elf32_linux_be_vec sh64_elf64_linux_vec sh64_elf64_linux_be_vec"
1405 targ_defvec=sh64_elf32_nbsd_le_vec
1406 targ_selvecs="sh64_elf32_nbsd_vec sh64_elf64_nbsd_le_vec sh64_elf64_nbsd_vec sh_elf32_nbsd_vec sh_elf32_nbsd_le_vec"
1410 targ_defvec=sh64_elf32_nbsd_vec
1411 targ_selvecs="sh64_elf32_nbsd_le_vec sh64_elf64_nbsd_le_vec sh64_elf64_nbsd_vec sh_elf32_nbsd_vec sh_elf32_nbsd_le_vec"
1416 targ_defvec=sh64_elf64_nbsd_le_vec
1417 targ_selvecs="sh64_elf64_nbsd_vec sh64_elf32_nbsd_le_vec sh64_elf32_nbsd_vec sh_elf32_nbsd_vec sh_elf32_nbsd_le_vec"
1421 targ_defvec=sh64_elf64_nbsd_vec
1422 targ_selvecs="sh64_elf64_nbsd_le_vec sh64_elf32_nbsd_le_vec sh64_elf32_nbsd_vec sh_elf32_nbsd_vec sh_elf32_nbsd_le_vec"
1427 targ_defvec=sh_elf32_nbsd_le_vec
1428 targ_selvecs="sh_elf32_nbsd_vec sh_coff_vec sh_coff_le_vec sh64_elf32_nbsd_le_vec sh64_elf32_nbsd_vec sh64_elf64_nbsd_le_vec sh64_elf64_nbsd_vec"
1432 targ_defvec=sh_elf32_nbsd_vec
1433 targ_selvecs="sh_elf32_nbsd_le_vec sh_coff_vec sh_coff_le_vec sh64_elf32_nbsd_le_vec sh64_elf32_nbsd_vec sh64_elf64_nbsd_le_vec sh64_elf64_nbsd_vec"
1439 targ_defvec=sh_elf32_nbsd_vec
1440 targ_selvecs="sh_elf32_nbsd_le_vec sh_coff_vec sh_coff_le_vec"
1443 targ_defvec=sh_elf32_symbian_le_vec
1444 targ_selvecs="sh_coff_le_vec sh_coff_small_le_vec"
1449 shl*-*-elf* | sh[1234]l*-*-elf* | sh3el*-*-elf* | shl*-*-kaos*)
1450 targ_defvec=sh_elf32_le_vec
1451 targ_selvecs="sh_elf32_vec sh_coff_le_vec sh_coff_vec sh_coff_small_le_vec sh_coff_small_vec sh64_elf32_vec sh64_elf32_le_vec sh64_elf64_vec sh64_elf64_le_vec"
1458 targ_defvec=sh_coff_vec
1459 targ_selvecs="sh_coff_vec sh_coff_le_vec sh_coff_small_vec sh_coff_small_le_vec"
1464 sh-*-elf* | sh[1234]*-elf* | sh-*-rtems* | sh-*-kaos*)
1465 targ_defvec=sh_elf32_vec
1466 targ_selvecs="sh_elf32_le_vec sh_coff_vec sh_coff_le_vec sh_coff_small_vec sh_coff_small_le_vec sh64_elf32_vec sh64_elf32_le_vec sh64_elf64_vec sh64_elf64_le_vec"
1473 targ_defvec=sh_elf32_vec
1474 targ_selvecs="sh_elf32_le_vec sh_coff_vec sh_coff_le_vec sh_coff_small_vec sh_coff_small_le_vec"
1478 targ_defvec=sh_elf32_nbsd_le_vec
1479 targ_selvecs="sh_elf32_nbsd_vec sh_coff_vec sh_coff_le_vec"
1482 targ_defvec=sh_pe_le_vec
1483 targ_selvecs="sh_pe_le_vec sh_pei_le_vec"
1487 targ_defvec=sh_elf32_vxworks_vec
1488 targ_selvecs="sh_elf32_vxworks_le_vec"
1489 # FIXME None of the following are actually used on this target, but
1490 # they're necessary for coff-sh.c (which is unconditionally used) to be
1491 # compiled correctly.
1492 targ_selvecs="$targ_selvecs sh_coff_vec sh_coff_le_vec sh_coff_small_vec sh_coff_small_le_vec"
1496 targ_defvec=sh_coff_vec
1497 targ_selvecs="sh_coff_vec sh_coff_le_vec sh_coff_small_vec sh_coff_small_le_vec"
1502 targ_defvec=sparc_aout_sunos_be_vec
1503 targ_selvecs=sparc_aout_le_vec
1507 targ_defvec=sparc_aout_sunos_be_vec
1510 sparclite-*-elf* | sparc86x-*-elf*)
1511 targ_defvec=sparc_elf32_vec
1514 targ_defvec=sparc_elf32_vec
1516 sparc-*-linux*aout*)
1517 targ_defvec=sparc_aout_linux_vec
1518 targ_selvecs="sparc_elf32_vec sparc_aout_sunos_be_vec"
1521 sparc-*-linux-* | sparcv*-*-linux-*)
1522 targ_defvec=sparc_elf32_vec
1523 targ_selvecs="sparc_aout_linux_vec sparc_elf64_vec sparc_aout_sunos_be_vec"
1526 targ_defvec=sparc_elf32_vec
1527 targ_selvecs=sparc_aout_nbsd_vec
1529 sparc-*-netbsdaout* | sparc-*-netbsd*)
1530 targ_defvec=sparc_aout_nbsd_vec
1531 targ_selvecs=sparc_elf32_vec
1534 sparc-*-openbsd[0-2].* | sparc-*-openbsd3.[0-1])
1535 targ_defvec=sparc_aout_nbsd_vec
1539 targ_defvec=sparc_elf32_vec
1540 targ_selvecs=sparc_aout_nbsd_vec
1543 targ_defvec=sparc_elf32_vec
1544 targ_selvecs=sparc_aout_sunos_be_vec
1546 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
1547 targ_defvec=sparc_elf32_sol2_vec
1548 targ_selvecs=sparc_aout_sunos_be_vec
1551 sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*)
1552 targ_defvec=sparc_elf32_sol2_vec
1553 targ_selvecs="sparc_elf64_sol2_vec sparc_aout_sunos_be_vec"
1558 targ_defvec=sparc_elf32_vec
1561 targ_defvec=sparc_elf32_vxworks_vec
1562 targ_selvecs="sparc_elf32_vec sparc_aout_sunos_be_vec"
1565 targ_defvec=sparc_elf32_vec
1566 targ_selvecs="sparc_nlm32_vec sparc_aout_sunos_be_vec"
1570 targ_defvec=sparc_aout_sunos_be_vec
1575 targ_defvec=sparc_elf64_vec
1576 targ_selvecs="sparc_elf32_vec sparc_aout_linux_vec sparc_aout_sunos_be_vec"
1579 sparc64-*-elf* | sparc64-*-rtems* )
1580 targ_defvec=sparc_elf64_vec
1581 targ_selvecs=sparc_elf32_vec
1586 targ_defvec=sparc_coff_vec
1589 targ_defvec=sparc_elf32_vec
1590 targ_selvecs="sparc_aout_sunos_be_vec sparc_coff_vec"
1593 targ_defvec=sparc_aout_sunos_be_vec
1598 targ_defvec=spu_elf32_vec
1604 targ_defvec=aout_vec
1610 targ_defvec=tic6x_elf32_c6000_le_vec
1611 targ_selvecs="tic6x_elf32_c6000_be_vec tic6x_elf32_le_vec tic6x_elf32_be_vec"
1615 targ_defvec=tic6x_elf32_linux_le_vec
1616 targ_selvecs="tic6x_elf32_linux_be_vec tic6x_elf32_le_vec tic6x_elf32_be_vec"
1620 targ_defvec=tic80_coff_vec
1626 targ_defvec=tilegx_elf64_le_vec
1627 targ_selvecs="tilegx_elf64_be_vec tilegx_elf32_be_vec tilegx_elf32_le_vec"
1630 targ_defvec=tilegx_elf64_be_vec
1631 targ_selvecs="tilegx_elf64_le_vec tilegx_elf32_be_vec tilegx_elf32_le_vec"
1636 targ_defvec=tilepro_elf32_vec
1640 targ_defvec=ft32_elf32_vec
1644 targ_defvec=v850_elf32_vec
1645 targ_selvecs="v800_elf32_vec"
1649 targ_defvec=vax_elf32_vec
1650 targ_selvecs="vax_aout_nbsd_vec vax_aout_1knbsd_vec"
1653 vax-*-netbsdaout* | vax-*-netbsd*)
1654 targ_defvec=vax_aout_nbsd_vec
1655 targ_selvecs="vax_elf32_vec vax_aout_1knbsd_vec"
1659 vax-*-bsd* | vax-*-ultrix*)
1660 targ_defvec=vax_aout_bsd_vec
1665 targ_defvec=vax_aout_nbsd_vec
1670 targ_defvec=vax_elf32_vec
1674 targ_defvec=visium_elf32_vec
1678 targ_defvec=we32k_coff_vec
1682 targ_defvec=w65_coff_vec
1686 targ_defvec=xgate_elf32_vec
1687 targ_selvecs="xgate_elf32_vec"
1691 targ_defvec=xstormy16_elf32_vec
1695 targ_defvec=xtensa_elf32_le_vec
1696 targ_selvecs=xtensa_elf32_be_vec
1699 targ_defvec=xc16x_elf32_vec
1703 targ_defvec=z80_coff_vec
1708 targ_defvec=z8k_coff_vec
1713 targ_defvec=ieee_vec
1717 targ_defvec=aout_adobe_vec
1722 targ_defvec=m68k_aout_newsos3_vec
1727 targ_defvec=m68k_coff_vec
1728 targ_selvecs=ieee_vec
1730 # END OF targmatch.h
1732 echo 1>&2 "*** BFD does not support target ${targ}."
1733 echo 1>&2 "*** Look in bfd/config.bfd for supported targets."
1738 # All MIPS ELF targets need a 64-bit bfd_vma.
1739 case "${targ_defvec} ${targ_selvecs}" in
1745 case "${host64}${want64}" in
1747 targ_selvecs="${targ_selvecs} ${targ64_selvecs}"
1751 # If we support any ELF target, then automatically add support for the
1752 # generic ELF targets. This permits an objdump with some ELF support
1753 # to be used on an arbitrary ELF file for anything other than
1754 # relocation information.
1755 case "${targ_defvec} ${targ_selvecs}" in
1756 *elf64* | *mips_elf32_n*)
1757 targ_selvecs="${targ_selvecs} elf64_le_vec elf64_be_vec elf32_le_vec elf32_be_vec"
1760 targ_selvecs="${targ_selvecs} elf32_le_vec elf32_be_vec"
1764 # If we support Intel L1OM target, then add support for bfd_l1om_arch.
1765 case "${targ_defvec} ${targ_selvecs}" in
1767 targ_archs="$targ_archs bfd_l1om_arch"
1771 # If we support Intel K1OM target, then add support for bfd_k1om_arch.
1772 case "${targ_defvec} ${targ_selvecs}" in
1774 targ_archs="$targ_archs bfd_k1om_arch"