3 # Copyright (C) 2012-2019 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
56 c30-*-*aout* | tic30-*-*aout* | \
58 if test "x$enable_obsolete" != xyes; then
59 echo "*** Configuration $targ is obsolete." >&2
60 echo "*** Specify --enable-obsolete to build it anyway." >&2
61 echo "*** Support will be REMOVED in the next major release of BINUTILS," >&2
62 echo "*** unless a maintainer comes forward." >&2
68 *-*-netbsdelf* | i[3-7]86-*-netbsd*-gnu* | i[3-7]86-*-knetbsd*-gnu | \
69 mips*-*-irix5* | mips*-*-irix6*)
91 i[3-7]86-*-unixware* | \
93 i[3-7]86-*-chorus* | \
99 i[3-7]86-sequent-bsd* | \
100 i[3-7]86-*-freebsdaout* | i[3-7]86-*-freebsd[12].* | i[3-7]86-*-freebsd[12] | \
101 i[3-7]86-*-netbsdaout* | i[3-7]86-*-netbsd* | \
102 i[3-7]86-*-openbsd[0-2].* | i[3-7]86-*-openbsd3.[0-3] | \
103 i[3-7]86-*-linux*aout* | \
104 i[3-7]86-*-mach* | i[3-7]86-*-osf1mk* | \
107 i[3-7]86-*-aout* | i[3-7]86*-*-vsta* | \
115 m68*-*-linux*aout* | \
127 m68*-motorola-sysv* | \
142 powerpc-*-lynxos* | powerpc-*-windiss* | \
143 sh*-*-symbianelf* | sh5*-*-* | sh64*-*-* | \
148 sparc-*-openbsd[0-2].* | sparc-*-openbsd3.[0-1] | \
150 vax-*-bsd* | vax-*-ultrix* | vax-*-vms* | \
154 echo "*** Configuration $targ is obsolete." >&2
155 echo "*** Support has been REMOVED." >&2
160 targ_cpu=`echo $targ | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
161 case "${targ_cpu}" in
162 aarch64*) targ_archs="bfd_aarch64_arch bfd_arm_arch";;
163 alpha*) targ_archs=bfd_alpha_arch ;;
164 am33_2.0*) targ_archs=bfd_mn10300_arch ;;
165 arc*) targ_archs=bfd_arc_arch ;;
166 arm*) targ_archs=bfd_arm_arch ;;
167 bfin*) targ_archs=bfd_bfin_arch ;;
168 c30*) targ_archs=bfd_tic30_arch ;;
169 c4x*) targ_archs=bfd_tic4x_arch ;;
170 c54x*) targ_archs=bfd_tic54x_arch ;;
171 cr16*) targ_archs=bfd_cr16_arch ;;
172 crisv32) targ_archs=bfd_cris_arch ;;
173 crx*) targ_archs=bfd_crx_arch ;;
174 csky*) targ_archs=bfd_csky_arch ;;
175 dlx*) targ_archs=bfd_dlx_arch ;;
176 fido*) targ_archs=bfd_m68k_arch ;;
177 hppa*) targ_archs=bfd_hppa_arch ;;
178 i[3-7]86) targ_archs=bfd_i386_arch ;;
179 ia16) targ_archs=bfd_i386_arch ;;
180 lm32) targ_archs=bfd_lm32_arch ;;
181 m6811*|m68hc11*) targ_archs="bfd_m68hc11_arch bfd_m68hc12_arch bfd_m9s12x_arch bfd_m9s12xg_arch" ;;
182 m6812*|m68hc12*) targ_archs="bfd_m68hc12_arch bfd_m68hc11_arch bfd_m9s12x_arch bfd_m9s12xg_arch" ;;
183 m68*) targ_archs=bfd_m68k_arch ;;
184 s12z*) targ_archs=bfd_s12z_arch ;;
185 microblaze*) targ_archs=bfd_microblaze_arch ;;
186 mips*) targ_archs=bfd_mips_arch ;;
187 nds32*) targ_archs=bfd_nds32_arch ;;
188 nfp) targ_archs=bfd_nfp_arch ;;
189 nios2*) targ_archs=bfd_nios2_arch ;;
190 or1k*|or1knd*) targ_archs=bfd_or1k_arch ;;
191 pdp11*) targ_archs=bfd_pdp11_arch ;;
192 pj*) targ_archs="bfd_pj_arch bfd_i386_arch";;
193 powerpc*) targ_archs="bfd_rs6000_arch bfd_powerpc_arch" ;;
194 pru*) targ_archs=bfd_pru_arch ;;
195 riscv*) targ_archs=bfd_riscv_arch ;;
196 rs6000) targ_archs="bfd_rs6000_arch bfd_powerpc_arch" ;;
197 s390*) targ_archs=bfd_s390_arch ;;
198 sh*) targ_archs=bfd_sh_arch ;;
199 sparc*) targ_archs=bfd_sparc_arch ;;
200 spu*) targ_archs=bfd_spu_arch ;;
201 tilegx*) targ_archs=bfd_tilegx_arch ;;
202 tilepro*) targ_archs=bfd_tilepro_arch ;;
203 v850*) targ_archs="bfd_v850_arch bfd_v850_rh850_arch" ;;
204 visium*) targ_archs=bfd_visium_arch ;;
205 wasm32) targ_archs=bfd_wasm32_arch ;;
206 x86_64*) targ_archs=bfd_i386_arch ;;
207 xtensa*) targ_archs=bfd_xtensa_arch ;;
208 xgate) targ_archs=bfd_xgate_arch ;;
209 z80|r800) targ_archs=bfd_z80_arch ;;
210 z8k*) targ_archs=bfd_z8k_arch ;;
211 *) targ_archs=bfd_${targ_cpu}_arch ;;
215 # WHEN ADDING ENTRIES TO THIS MATRIX:
216 # Make sure that the left side always has two dashes. Otherwise you
217 # can get spurious matches. Even for unambiguous cases, do this as a
218 # convention, else the table becomes a real mess to understand and maintain.
221 # START OF targmatch.h
224 targ_defvec=aarch64_mach_o_vec
225 targ_selvecs="arm_mach_o_vec mach_o_le_vec mach_o_be_vec mach_o_fat_vec"
226 targ_archs="$targ_archs bfd_i386_arch bfd_powerpc_arch bfd_rs6000_arch"
229 aarch64-*-elf | aarch64-*-rtems*)
230 targ_defvec=aarch64_elf64_le_vec
231 targ_selvecs="aarch64_elf64_be_vec aarch64_elf32_le_vec aarch64_elf32_be_vec arm_elf32_le_vec arm_elf32_be_vec"
235 targ_defvec=aarch64_elf64_be_vec
236 targ_selvecs="aarch64_elf64_le_vec aarch64_elf32_le_vec aarch64_elf32_be_vec arm_elf32_be_vec arm_elf32_le_vec"
240 targ_defvec=aarch64_elf64_le_vec
241 targ_selvecs="aarch64_elf64_be_vec arm_elf32_le_vec arm_elf32_be_vec"
245 targ_defvec=aarch64_elf64_le_vec
246 targ_selvecs="aarch64_elf64_be_vec arm_elf32_le_vec arm_elf32_be_vec"
250 targ_defvec=aarch64_elf64_le_cloudabi_vec
251 targ_selvecs=aarch64_elf64_be_cloudabi_vec
255 targ_defvec=aarch64_elf64_le_vec
256 targ_selvecs="aarch64_elf64_be_vec aarch64_elf32_le_vec aarch64_elf32_be_vec arm_elf32_le_vec arm_elf32_be_vec"
260 targ_defvec=aarch64_elf64_be_vec
261 targ_selvecs="aarch64_elf64_le_vec aarch64_elf32_le_vec aarch64_elf32_be_vec arm_elf32_be_vec arm_elf32_le_vec"
264 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
265 targ_defvec=alpha_elf64_fbsd_vec
266 targ_selvecs="alpha_elf64_vec alpha_ecoff_le_vec"
268 # FreeBSD <= 4.0 supports only the old nonstandard way of ABI labelling.
270 alpha*-*-freebsd3* | alpha*-*-freebsd4 | alpha*-*-freebsd4.0*)
271 targ_cflags=-DOLD_FREEBSD_ABI_LABEL ;;
274 alpha*-*-netbsd* | alpha*-*-openbsd*)
275 targ_defvec=alpha_elf64_vec
276 targ_selvecs=alpha_ecoff_le_vec
279 alpha*-*-linux*ecoff*)
280 targ_defvec=alpha_ecoff_le_vec
281 targ_selvecs=alpha_elf64_vec
284 alpha*-*-linux-* | alpha*-*-elf*)
285 targ_defvec=alpha_elf64_vec
286 targ_selvecs=alpha_ecoff_le_vec
290 targ_defvec=alpha_vms_vec
291 targ_selvecs=alpha_vms_lib_txt_vec
295 targ_defvec=alpha_ecoff_le_vec
298 ia64*-*-freebsd* | ia64*-*-netbsd* | ia64*-*-linux-* | ia64*-*-elf* | ia64*-*-kfreebsd*-gnu)
299 targ_defvec=ia64_elf64_le_vec
300 targ_selvecs="ia64_elf64_be_vec ia64_pei_vec"
304 targ_defvec=ia64_elf32_hpux_be_vec
305 targ_selvecs="ia64_elf64_hpux_be_vec"
309 targ_defvec=ia64_elf64_vms_vec
310 targ_selvecs=alpha_vms_lib_txt_vec
316 targ_defvec=am33_elf32_linux_vec
319 arc*eb-*-elf* | arc*eb-*-linux*)
320 targ_defvec=arc_elf32_be_vec
321 targ_selvecs=arc_elf32_le_vec
324 arc*-*-elf* | arc*-*-linux*)
325 targ_defvec=arc_elf32_le_vec
326 targ_selvecs=arc_elf32_be_vec
330 targ_defvec=arm_mach_o_vec
331 targ_selvecs="mach_o_le_vec mach_o_be_vec mach_o_fat_vec"
332 targ_archs="$targ_archs bfd_i386_arch bfd_powerpc_arch bfd_rs6000_arch"
335 targ_defvec=arm_elf32_le_vec
336 targ_selvecs="arm_elf32_be_vec"
339 targ_defvec=arm_elf32_nacl_le_vec
340 targ_selvecs="arm_elf32_nacl_be_vec i386_elf32_nacl_vec"
341 targ64_selvecs="x86_64_elf32_nacl_vec x86_64_elf64_nacl_vec"
342 targ_archs="$targ_archs bfd_i386_arch"
345 targ_defvec=arm_elf32_nacl_be_vec
346 targ_selvecs="arm_elf32_nacl_le_vec i386_elf32_nacl_vec"
347 targ64_selvecs="x86_64_elf32_nacl_vec x86_64_elf64_nacl_vec"
348 targ_archs="$targ_archs bfd_i386_arch"
351 targ_defvec=arm_elf32_be_vec
352 targ_selvecs="arm_elf32_le_vec"
355 targ_defvec=arm_elf32_le_vec
356 targ_selvecs="arm_elf32_be_vec"
358 arm-*-nto* | nto*arm*)
359 targ_defvec=arm_elf32_le_vec
360 targ_selvecs=arm_elf32_be_vec
361 targ_cflags=-D__QNXTARGET__
363 arm-wince-pe | arm-*-wince | arm*-*-mingw32ce* | arm*-*-cegcc*)
364 targ_defvec=arm_pe_wince_le_vec
365 targ_selvecs="arm_pe_wince_le_vec arm_pe_wince_be_vec arm_pei_wince_le_vec arm_pei_wince_be_vec"
367 targ_cflags="-DARM_WINCE -DARM_COFF_BUGFIX"
370 targ_defvec=arm_pe_le_vec
371 targ_selvecs="arm_pe_le_vec arm_pe_be_vec arm_pei_le_vec arm_pei_be_vec"
375 targ_defvec=arm_elf32_le_vec
376 targ_selvecs=arm_elf32_be_vec
378 armeb-*-elf | arm*b-*-freebsd* | arm*b-*-linux-* | armeb-*-eabi*)
379 targ_defvec=arm_elf32_be_vec
380 targ_selvecs=arm_elf32_le_vec
383 targ_defvec=arm_elf32_le_vec
384 targ_selvecs=arm_elf32_be_vec
386 arm-*-elf | arm*-*-freebsd* | arm*-*-linux-* | arm*-*-conix* | \
387 arm*-*-uclinux* | arm-*-kfreebsd*-gnu | \
388 arm*-*-eabi* | arm-*-rtems* | arm*-*-uclinuxfdpiceabi)
389 targ_defvec=arm_elf32_le_vec
390 targ_selvecs="arm_elf32_fdpic_le_vec arm_elf32_be_vec arm_elf32_fdpic_be_vec"
392 arm*-*-vxworks | arm*-*-windiss)
393 targ_defvec=arm_elf32_vxworks_le_vec
394 targ_selvecs=arm_elf32_vxworks_be_vec
397 targ_defvec=arm_elf32_symbian_le_vec
398 targ_selvecs=arm_elf32_symbian_be_vec
401 targ_defvec=arm_elf32_le_vec
402 targ_selvecs=arm_elf32_be_vec
406 targ_defvec=avr_elf32_vec
410 targ_defvec=bfin_elf32_vec
411 targ_selvecs=bfin_elf32_fdpic_vec
415 c30-*-*aout* | tic30-*-*aout*)
416 targ_defvec=tic30_aout_vec
418 c30-*-*coff* | tic30-*-*coff*)
419 targ_defvec=tic30_coff_vec
422 c4x-*-*coff* | tic4x-*-*coff*)
423 targ_defvec=tic4x_coff1_vec
424 targ_selvecs="tic4x_coff1_beh_vec tic4x_coff2_vec tic4x_coff2_beh_vec tic4x_coff0_vec tic4x_coff0_beh_vec"
428 c54x*-*-*coff* | tic54x-*-*coff*)
429 targ_defvec=tic54x_coff1_vec
430 targ_selvecs="tic54x_coff1_beh_vec tic54x_coff2_vec tic54x_coff2_beh_vec tic54x_coff0_vec tic54x_coff0_beh_vec"
434 cr16-*-elf* | cr16*-*-uclinux*)
435 targ_defvec=cr16_elf32_vec
440 targ_defvec=cr16c_elf32_vec
445 cris-*-* | crisv32-*-*)
446 targ_defvec=cris_aout_vec
447 targ_selvecs="cris_elf32_us_vec cris_elf32_vec"
450 *) targ_underscore=yes ;;
457 targ_defvec=crx_elf32_vec
461 csky-*-elf* | csky-*-linux* )
462 targ_defvec=csky_elf32_le_vec
463 targ_selvecs="csky_elf32_be_vec csky_elf32_le_vec"
467 targ_defvec=d10v_elf32_vec
471 targ_defvec=dlx_elf32_be_vec
472 targ_selvecs="dlx_elf32_be_vec"
476 targ_defvec=d30v_elf32_vec
481 targ_defvec=bpf_elf64_le_vec
482 targ_selvecs=bpf_elf64_be_vec
488 targ_defvec=epiphany_elf32_vec
493 targ_defvec=m68k_elf32_vec
497 targ_defvec=fr30_elf32_vec
501 targ_defvec=frv_elf32_vec
502 targ_selvecs=frv_elf32_fdpic_vec
506 targ_defvec=frv_elf32_fdpic_vec
507 targ_selvecs=frv_elf32_vec
510 moxie-*-elf | moxie-*-rtems* | moxie-*-uclinux)
511 targ_defvec=moxie_elf32_be_vec
512 targ_selvecs=moxie_elf32_le_vec
516 targ_defvec=moxie_elf32_le_vec
519 h8300*-*-elf | h8300*-*-rtems*)
520 targ_defvec=h8300_elf32_vec
525 targ_defvec=h8300_elf32_linux_vec
530 targ_defvec=hppa_elf64_linux_vec
531 targ_selvecs=hppa_elf64_vec
535 targ_defvec=hppa_elf64_vec
536 targ_selvecs=hppa_elf64_linux_vec
537 targ_cflags=-DHPUX_LARGE_AR_IDS
543 targ_defvec=hppa_elf32_linux_vec
544 targ_selvecs=hppa_elf32_vec
547 targ_defvec=hppa_elf32_nbsd_vec
548 targ_selvecs="hppa_elf32_vec hppa_elf32_linux_vec"
550 hppa*-*-*elf* | hppa*-*-lites* | hppa*-*-sysv4* | hppa*-*-openbsd*)
551 targ_defvec=hppa_elf32_vec
552 targ_selvecs=hppa_elf32_linux_vec
556 targ_defvec=hppa_som_vec
557 targ_selvecs=hppa_elf32_vec
559 hppa*-*-hpux* | hppa*-*-hiux* | hppa*-*-mpeix*)
560 targ_defvec=hppa_som_vec
563 targ_defvec=hppa_som_vec
564 targ_selvecs=hppa_elf32_vec
567 i[3-7]86-*-elf* | i[3-7]86-*-rtems*)
568 targ_defvec=i386_elf32_vec
569 targ_selvecs="iamcu_elf32_vec i386_coff_vec"
571 i[3-7]86-*-solaris2*)
572 targ_defvec=i386_elf32_sol2_vec
573 targ_selvecs="iamcu_elf32_vec i386_coff_vec i386_pei_vec"
574 targ64_selvecs="x86_64_elf64_sol2_vec l1om_elf64_vec k1om_elf64_vec x86_64_pei_vec"
579 targ_defvec=i386_elf32_sol2_vec
580 targ_selvecs="x86_64_elf64_sol2_vec l1om_elf64_vec k1om_elf64_vec iamcu_elf32_vec i386_coff_vec i386_pei_vec x86_64_pei_vec"
585 targ_defvec=i386_elf32_vec
586 targ_selvecs="iamcu_elf32_vec i386_coff_vec"
589 targ_defvec=i386_elf32_vec
590 targ_selvecs=iamcu_elf32_vec
593 targ_defvec=i386_elf32_vec
594 targ_selvecs=iamcu_elf32_vec
595 targ64_selvecs="x86_64_elf64_vec l1om_elf64_vec k1om_elf64_vec"
597 *-*-msdosdjgpp* | *-*-go32* )
598 targ_defvec=i386_coff_go32_vec
599 targ_selvecs="i386_coff_go32stubbed_vec i386_aout_vec"
601 i[3-7]86-*-darwin* | i[3-7]86-*-macos10* | i[3-7]86-*-rhapsody*)
602 targ_defvec=i386_mach_o_vec
603 targ_selvecs="mach_o_le_vec mach_o_be_vec mach_o_fat_vec pef_vec pef_xlib_vec sym_vec"
604 targ64_selvecs=x86_64_mach_o_vec
605 targ_archs="$targ_archs bfd_powerpc_arch bfd_rs6000_arch"
608 targ_defvec=i386_aout_bsd_vec
611 i[3-7]86-*-dragonfly*)
612 targ_defvec=i386_elf32_vec
613 targ_selvecs=iamcu_elf32_vec
614 targ64_selvecs="x86_64_elf64_vec l1om_elf64_vec k1om_elf64_vec"
616 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
617 targ_defvec=i386_elf32_fbsd_vec
618 targ_selvecs="i386_elf32_vec iamcu_elf32_vec i386_pei_vec i386_coff_vec"
619 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"
620 # FreeBSD <= 4.0 supports only the old nonstandard way of ABI labelling.
622 i[3-7]86-*-freebsd3* | i[3-7]86-*-freebsd4 | i[3-7]86-*-freebsd4.0*)
623 targ_cflags=-DOLD_FREEBSD_ABI_LABEL ;;
626 i[3-7]86-*-netbsdelf* | i[3-7]86-*-netbsd*-gnu* | i[3-7]86-*-knetbsd*-gnu)
627 targ_defvec=i386_elf32_vec
628 targ_selvecs="iamcu_elf32_vec"
629 targ64_selvecs="x86_64_elf64_vec l1om_elf64_vec k1om_elf64_vec"
631 i[3-7]86-*-netbsdpe*)
632 targ_defvec=i386_pe_vec
633 targ_selvecs="i386_pe_vec i386_pei_vec i386_elf32_vec iamcu_elf32_vec"
636 targ_defvec=i386_elf32_vec
637 targ_selvecs="iamcu_elf32_vec"
640 targ_defvec=i386_elf32_vec
641 targ_selvecs="iamcu_elf32_vec i386_pei_vec"
642 targ64_selvecs="x86_64_elf64_vec x86_64_elf32_vec x86_64_pei_vec l1om_elf64_vec k1om_elf64_vec"
645 targ_defvec=i386_elf32_nacl_vec
646 targ_selvecs="arm_elf32_nacl_be_vec arm_elf32_nacl_le_vec"
647 targ64_selvecs="x86_64_elf64_nacl_vec x86_64_elf32_nacl_vec"
648 targ_archs="$targ_archs bfd_arm_arch"
651 targ_defvec=i386_elf32_vec
653 targ64_selvecs=x86_64_elf64_vec
657 targ_defvec=x86_64_elf64_cloudabi_vec
661 targ_defvec=x86_64_mach_o_vec
662 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"
663 targ_archs="$targ_archs bfd_powerpc_arch bfd_rs6000_arch"
667 targ_defvec=x86_64_elf64_vec
668 targ_selvecs="i386_elf32_vec iamcu_elf32_vec l1om_elf64_vec k1om_elf64_vec"
671 x86_64-*-elf* | x86_64-*-rtems* | x86_64-*-fuchsia)
672 targ_defvec=x86_64_elf64_vec
673 targ_selvecs="i386_elf32_vec iamcu_elf32_vec x86_64_elf32_vec l1om_elf64_vec k1om_elf64_vec"
676 targ_selvecs="${targ_selvecs} x86_64_pei_vec"
681 targ_defvec=x86_64_elf64_vec
682 targ_selvecs="i386_elf32_vec iamcu_elf32_vec l1om_elf64_vec k1om_elf64_vec"
685 x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
686 targ_defvec=x86_64_elf64_fbsd_vec
687 targ_selvecs="i386_elf32_fbsd_vec iamcu_elf32_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"
690 x86_64-*-netbsd* | x86_64-*-openbsd*)
691 targ_defvec=x86_64_elf64_vec
692 targ_selvecs="i386_elf32_vec iamcu_elf32_vec i386_coff_vec i386_pei_vec x86_64_pei_vec l1om_elf64_vec k1om_elf64_vec"
696 targ_defvec=x86_64_elf64_vec
697 targ_selvecs="i386_elf32_vec iamcu_elf32_vec x86_64_elf32_vec i386_pei_vec x86_64_pei_vec l1om_elf64_vec k1om_elf64_vec"
701 targ_defvec=x86_64_elf32_nacl_vec
702 targ_selvecs="i386_elf32_nacl_vec x86_64_elf64_nacl_vec arm_elf32_nacl_be_vec arm_elf32_nacl_le_vec"
703 targ_archs="$targ_archs bfd_arm_arch"
706 x86_64-*-mingw* | x86_64-*-pe | x86_64-*-pep | x86_64-*-cygwin)
707 targ_defvec=x86_64_pe_vec
708 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 iamcu_elf32_vec"
713 targ_defvec=x86_64_elf64_vec
717 targ_defvec=x86_64_elf64_vec
718 targ_selvecs=i386_elf32_vec
723 targ_defvec=i386_elf32_vec
724 targ_selvecs="iamcu_elf32_vec i386_coff_lynx_vec i386_aout_lynx_vec"
727 targ_defvec=i386_elf32_vec
728 targ_selvecs=iamcu_elf32_vec
731 targ_defvec=i386_aout_vec
732 targ_selvecs=i386_msdos_vec
735 targ_defvec=i386_elf32_vec
736 targ_selvecs="iamcu_elf32_vec i386_msdos_vec i386_aout_vec"
739 targ_defvec=i386_pe_vec
740 targ_selvecs="i386_pe_vec i386_pei_vec"
742 i[3-7]86-*-beoself* | i[3-7]86-*-beos*)
743 targ_defvec=i386_elf32_vec
744 targ_selvecs="iamcu_elf32_vec i386_pe_vec i386_pei_vec"
747 targ_defvec=i386_pei_vec
748 targ_selvecs="i386_pe_vec"
749 # FIXME: This should eventually be checked at runtime.
750 targ_cflags=-DSTRICT_PE_FORMAT
753 targ_defvec=i386_elf32_vec
754 targ_selvecs="iamcu_elf32_vec i386_coff_vec"
756 i[3-7]86-*-mingw32* | i[3-7]86-*-cygwin* | i[3-7]86-*-winnt | i[3-7]86-*-pe)
757 targ_defvec=i386_pe_vec
758 targ_selvecs="i386_pe_vec i386_pei_vec i386_elf32_vec iamcu_elf32_vec"
762 targ_defvec=i386_elf32_vxworks_vec
767 targ_defvec=i386_elf32_vec
768 targ_selvecs="i386_msdos_vec i386_aout_vec"
772 targ_defvec=ip2k_elf32_vec
777 targ_defvec=iq2000_elf32_vec
780 lm32-*-elf | lm32-*-rtems*)
781 targ_defvec=lm32_elf32_vec
782 targ_selvecs=lm32_elf32_fdpic_vec
786 targ_defvec=lm32_elf32_fdpic_vec
787 targ_selvecs=lm32_elf32_vec
790 m32c-*-elf | m32c-*-rtems*)
791 targ_defvec=m32c_elf32_vec
796 targ_defvec=m32r_elf32_linux_le_vec
797 targ_selvecs="m32r_elf32_linux_vec m32r_elf32_linux_le_vec"
800 targ_defvec=m32r_elf32_linux_vec
801 targ_selvecs="m32r_elf32_linux_vec m32r_elf32_linux_le_vec"
804 targ_defvec=m32r_elf32_le_vec
805 targ_selvecs="m32r_elf32_vec m32r_elf32_le_vec"
808 targ_defvec=m32r_elf32_vec
811 m68hc11-*-* | m6811-*-*)
812 targ_defvec=m68hc11_elf32_vec
813 targ_selvecs="m68hc11_elf32_vec m68hc12_elf32_vec"
815 m68hc12-*-* | m6812-*-*)
816 targ_defvec=m68hc12_elf32_vec
817 targ_selvecs="m68hc11_elf32_vec m68hc12_elf32_vec"
821 targ_defvec=m68k_elf32_vec
825 targ_defvec=s12z_elf32_vec
828 targ_defvec=mcore_elf32_be_vec
829 targ_selvecs="mcore_elf32_be_vec mcore_elf32_le_vec"
832 targ_defvec=mcore_pe_be_vec
833 targ_selvecs="mcore_pe_be_vec mcore_pe_le_vec mcore_pei_be_vec mcore_pei_le_vec"
837 targ_defvec=mep_elf32_vec
838 targ_selvecs=mep_elf32_le_vec
842 targ_defvec=metag_elf32_vec
847 targ_defvec=microblaze_elf32_le_vec
848 targ_selvecs=microblaze_elf32_vec
852 targ_defvec=microblaze_elf32_vec
853 targ_selvecs=microblaze_elf32_le_vec
858 targ_defvec=mips_elf32_trad_le_vec
859 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"
862 targ_defvec=mips_elf32_trad_be_vec
863 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"
866 targ_defvec=mips_elf32_n_be_vec
867 targ_selvecs="mips_elf32_n_le_vec mips_elf32_be_vec mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec"
870 targ_defvec=mips_elf32_n_le_vec
871 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"
874 targ_defvec=mips_elf32_le_vec
875 targ_selvecs="mips_elf32_be_vec mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec"
878 targ_defvec=mips_elf32_be_vec
879 targ_selvecs="mips_elf32_le_vec mips_ecoff_be_vec mips_ecoff_le_vec"
882 targ_defvec=mips_elf32_vxworks_le_vec
883 targ_selvecs="mips_elf32_le_vec mips_elf32_vxworks_be_vec mips_elf32_be_vec mips_elf64_be_vec mips_elf64_le_vec"
886 targ_defvec=mips_elf32_vxworks_be_vec
887 targ_selvecs="mips_elf32_be_vec mips_elf32_vxworks_le_vec mips_elf32_be_vec mips_elf64_be_vec mips_elf64_le_vec"
890 targ_defvec=mips_elf32_trad_le_vec
891 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"
893 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
894 targ_defvec=mips_elf32_trad_be_vec
895 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"
897 mips*el-*-elf* | mips*-*-chorus*)
898 targ_defvec=mips_elf32_le_vec
899 targ_selvecs="mips_elf32_be_vec mips_elf64_be_vec mips_elf64_le_vec"
901 mips*-*-elf* | mips*-*-rtems* | mips*-*-windiss | mips*-*-none)
902 targ_defvec=mips_elf32_be_vec
903 targ_selvecs="mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec"
906 targ_defvec=mips_elf64_trad_be_vec
907 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"
910 targ_defvec=mips_elf32_le_vec
911 targ_selvecs="mips_elf32_be_vec mips_elf64_be_vec mips_elf64_le_vec mips_ecoff_le_vec mips_ecoff_be_vec"
914 targ_defvec=mips_elf32_be_vec
915 targ_selvecs="mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec mips_ecoff_be_vec mips_ecoff_le_vec"
918 targ_defvec=mips_elf32_ntrad_le_vec
919 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"
922 targ_defvec=mips_elf32_ntrad_be_vec
923 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"
926 targ_defvec=mips_elf32_trad_le_vec
927 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"
930 targ_defvec=mips_elf32_trad_be_vec
931 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"
933 mips64*el-*-freebsd* | mips64*el-*-kfreebsd*-gnu)
935 targ_defvec=mips_elf32_ntradfbsd_le_vec
936 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"
938 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"
940 mips64*-*-freebsd* | mips64*-*-kfreebsd*-gnu)
942 targ_defvec=mips_elf32_ntradfbsd_be_vec
943 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"
945 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"
947 mips*el-*-freebsd* | mips*el-*-kfreebsd*-gnu)
949 targ_defvec=mips_elf32_tradfbsd_le_vec
950 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"
952 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"
954 mips*-*-freebsd* | mips*-*-kfreebsd*-gnu)
956 targ_defvec=mips_elf32_tradfbsd_be_vec
957 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"
959 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"
962 targ_defvec=mmix_elf64_vec
963 targ_selvecs=mmix_mmo_vec
968 targ_defvec=mn10200_elf32_vec
973 targ_defvec=mn10300_elf32_vec
978 targ_defvec=mt_elf32_vec
982 targ_defvec=msp430_elf32_vec
983 targ_selvecs=msp430_elf32_ti_vec
987 targ_defvec=nds32_elf32_linux_le_vec
988 targ_selvecs=nds32_elf32_linux_be_vec
992 targ_defvec=nds32_elf32_linux_be_vec
993 targ_selvecs=nds32_elf32_linux_le_vec
997 targ_defvec=nds32_elf32_le_vec
998 targ_selvecs=nds32_elf32_be_vec
1002 targ_defvec=nds32_elf32_be_vec
1003 targ_selvecs=nds32_elf32_le_vec
1008 targ_defvec=nfp_elf64_vec
1012 ns32k-pc532-mach* | ns32k-pc532-ux*)
1013 targ_defvec=ns32k_aout_pc532mach_vec
1016 ns32k-*-netbsd* | ns32k-*-lites* | ns32k-*-openbsd*)
1017 targ_defvec=ns32k_aout_pc532nbsd_vec
1022 targ_defvec=nios2_elf32_be_vec
1023 targ_selvecs=nios2_elf32_le_vec
1027 targ_defvec=nios2_elf32_le_vec
1028 targ_selvecs=nios2_elf32_be_vec
1032 targ_defvec=nios2_elf32_le_vec
1033 targ_selvecs=nios2_elf32_be_vec
1036 or1k-*-elf | or1k-*-linux* | or1k-*-rtems*)
1037 targ_defvec=or1k_elf32_vec
1040 or1knd-*-elf | or1knd-*-linux* | or1knd-*-rtems*)
1041 targ_defvec=or1k_elf32_vec
1045 targ_defvec=pdp11_aout_vec
1050 targ_defvec=pj_elf32_vec
1051 targ_selvecs="pj_elf32_vec pj_elf32_le_vec"
1055 targ_defvec=pj_elf32_le_vec
1056 targ_selvecs="pj_elf32_le_vec pj_elf32_vec i386_elf32_vec iamcu_elf32_vec"
1059 powerpc-*-aix5.[01] | rs6000-*-aix5.[01])
1060 targ_defvec=rs6000_xcoff_vec
1061 targ_selvecs="rs6000_xcoff64_aix_vec"
1065 powerpc64-*-aix5.[01])
1066 targ_defvec=rs6000_xcoff64_aix_vec
1067 targ_selvecs="rs6000_xcoff_vec"
1071 powerpc-*-aix[5-9]* | rs6000-*-aix[5-9]*)
1072 targ_cflags=-DAIX_WEAK_SUPPORT
1073 targ_defvec=rs6000_xcoff_vec
1074 targ_selvecs="rs6000_xcoff64_aix_vec"
1078 powerpc64-*-aix[5-9]*)
1079 targ_cflags=-DAIX_WEAK_SUPPORT
1080 targ_defvec=rs6000_xcoff64_aix_vec
1081 targ_selvecs="rs6000_xcoff_vec"
1086 powerpc-*-aix* | powerpc-*-beos* | rs6000-*-*)
1087 targ_defvec=rs6000_xcoff_vec
1088 targ64_selvecs=rs6000_xcoff64_vec
1090 *-*-aix4.[3456789]* | *-*-aix[56789]*)
1093 targ_cflags=-DSMALL_ARCHIVE;;
1098 targ_defvec=rs6000_xcoff64_vec
1099 targ_selvecs=rs6000_xcoff_vec
1102 powerpc64-*-freebsd*)
1103 targ_defvec=powerpc_elf64_fbsd_vec
1104 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"
1107 powerpc64-*-elf* | powerpc-*-elf64* | powerpc64-*-linux* | \
1109 targ_defvec=powerpc_elf64_vec
1110 targ_selvecs="powerpc_elf64_le_vec powerpc_elf32_vec powerpc_elf32_le_vec rs6000_xcoff_vec rs6000_xcoff64_vec rs6000_xcoff64_aix_vec"
1113 powerpc64le-*-elf* | powerpcle-*-elf64* | powerpc64le-*-linux* | \
1114 powerpc64le-*-*bsd*)
1115 targ_defvec=powerpc_elf64_le_vec
1116 targ_selvecs="powerpc_elf64_vec powerpc_elf32_le_vec powerpc_elf32_vec rs6000_xcoff_vec rs6000_xcoff64_vec rs6000_xcoff64_aix_vec"
1120 powerpc-*-*freebsd*)
1121 targ_defvec=powerpc_elf32_fbsd_vec
1122 targ_selvecs="rs6000_xcoff_vec powerpc_elf32_vec powerpc_elf32_le_vec powerpc_boot_vec"
1123 targ64_selvecs="powerpc_elf64_vec powerpc_elf64_le_vec powerpc_elf64_fbsd_vec"
1125 powerpc-*-*bsd* | powerpc-*-elf* | powerpc-*-sysv4* | powerpc-*-eabi* | \
1126 powerpc-*-solaris2* | powerpc-*-linux-* | powerpc-*-rtems* | \
1128 targ_defvec=powerpc_elf32_vec
1129 targ_selvecs="rs6000_xcoff_vec powerpc_elf32_le_vec powerpc_boot_vec"
1130 targ64_selvecs="powerpc_elf64_vec powerpc_elf64_le_vec"
1133 targ_defvec=powerpc_elf32_vec
1134 targ_selvecs="powerpc_elf32_le_vec powerpc_boot_vec"
1135 targ64_selvecs="powerpc_elf64_vec powerpc_elf64_le_vec"
1137 powerpc-*-darwin* | powerpc-*-macos10* | powerpc-*-rhapsody*)
1138 targ_defvec=mach_o_be_vec
1139 targ_selvecs="mach_o_be_vec mach_o_le_vec mach_o_fat_vec pef_vec pef_xlib_vec sym_vec"
1140 targ_archs="$targ_archs bfd_i386_arch"
1143 targ_defvec=powerpc_xcoff_vec
1146 targ_defvec=powerpc_elf32_vec
1147 targ_selvecs="rs6000_xcoff_vec"
1148 targ_cflags=-DSMALL_ARCHIVE
1151 targ_defvec=powerpc_elf32_vec
1152 targ_selvecs="rs6000_xcoff_vec powerpc_elf32_le_vec powerpc_boot_vec"
1154 powerpc-*-vxworks* | powerpc-*-windiss*)
1155 targ_defvec=powerpc_elf32_vxworks_vec
1156 targ_selvecs="rs6000_xcoff_vec powerpc_elf32_vec powerpc_elf32_le_vec powerpc_boot_vec"
1157 targ64_selvecs="powerpc_elf64_vec powerpc_elf64_le_vec"
1160 targ_defvec=powerpc_elf32_le_vec
1161 targ_selvecs="rs6000_xcoff_vec powerpc_elf32_vec powerpc_boot_vec"
1163 powerpcle-*-elf* | powerpcle-*-sysv4* | powerpcle-*-eabi* | \
1164 powerpcle-*-solaris2* | powerpcle-*-linux-* | powerpcle-*-vxworks*)
1165 targ_defvec=powerpc_elf32_le_vec
1166 targ_selvecs="rs6000_xcoff_vec powerpc_elf32_vec powerpc_boot_vec"
1167 targ64_selvecs="powerpc_elf64_vec powerpc_elf64_le_vec"
1169 powerpcle-*-pe | powerpcle-*-winnt* | powerpcle-*-cygwin*)
1170 targ_defvec=powerpc_pe_le_vec
1171 targ_selvecs="powerpc_pei_le_vec powerpc_pei_vec powerpc_pe_le_vec powerpc_pe_vec"
1175 targ_defvec=pru_elf32_vec
1179 riscv-*-* | riscv32*-*-*)
1180 targ_defvec=riscv_elf32_vec
1181 targ_selvecs="riscv_elf32_vec riscv_elf64_vec"
1185 targ_defvec=riscv_elf64_vec
1186 targ_selvecs="riscv_elf32_vec riscv_elf64_vec"
1192 targ_defvec=rl78_elf32_vec
1197 targ_defvec=rx_elf32_le_vec
1198 targ_selvecs="rx_elf32_be_vec rx_elf32_le_vec rx_elf32_be_ns_vec"
1202 targ_defvec=rx_elf32_linux_le_vec
1203 targ_selvecs="rx_elf32_linux_le_vec"
1207 targ_defvec=s390_elf32_vec
1208 targ64_selvecs=s390_elf64_vec
1213 targ_defvec=s390_elf64_vec
1214 targ_selvecs=s390_elf32_vec
1218 targ_defvec=s390_elf64_vec
1223 targ_defvec=score_elf32_be_vec
1224 targ_selvecs=score_elf32_le_vec
1229 targ_defvec=sh_elf32_linux_be_vec
1230 targ_selvecs=sh_elf32_linux_vec
1231 targ_selvecs="${targ_selvecs} sh_elf32_fdpic_le_vec sh_elf32_fdpic_be_vec"
1234 targ_defvec=sh_elf32_linux_vec
1235 targ_selvecs=sh_elf32_linux_be_vec
1236 targ_selvecs="${targ_selvecs} sh_elf32_fdpic_le_vec sh_elf32_fdpic_be_vec"
1239 sh-*-uclinux* | sh[12]-*-uclinux*)
1240 targ_defvec=sh_elf32_vec
1241 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"
1245 targ_defvec=sh_elf32_nbsd_le_vec
1246 targ_selvecs="sh_elf32_nbsd_vec sh_coff_vec sh_coff_le_vec"
1249 targ_defvec=sh_elf32_nbsd_vec
1250 targ_selvecs="sh_elf32_nbsd_le_vec sh_coff_vec sh_coff_le_vec"
1253 shl*-*-elf* | sh[1234]l*-*-elf* | sh3el*-*-elf* | shl*-*-kaos*)
1254 targ_defvec=sh_elf32_le_vec
1255 targ_selvecs="sh_elf32_vec sh_coff_le_vec sh_coff_vec sh_coff_small_le_vec sh_coff_small_vec"
1259 sh-*-elf* | sh[1234]*-elf* | sh-*-rtems* | sh-*-kaos*)
1260 targ_defvec=sh_elf32_vec
1261 targ_selvecs="sh_elf32_le_vec sh_coff_vec sh_coff_le_vec sh_coff_small_vec sh_coff_small_le_vec"
1266 targ_defvec=sh_elf32_vec
1267 targ_selvecs="sh_elf32_le_vec sh_coff_vec sh_coff_le_vec sh_coff_small_vec sh_coff_small_le_vec"
1271 targ_defvec=sh_elf32_nbsd_le_vec
1272 targ_selvecs="sh_elf32_nbsd_vec sh_coff_vec sh_coff_le_vec"
1275 targ_defvec=sh_pe_le_vec
1276 targ_selvecs="sh_pe_le_vec sh_pei_le_vec"
1280 targ_defvec=sh_elf32_vxworks_vec
1281 targ_selvecs="sh_elf32_vxworks_le_vec"
1282 # FIXME None of the following are actually used on this target, but
1283 # they're necessary for coff-sh.c (which is unconditionally used) to be
1284 # compiled correctly.
1285 targ_selvecs="$targ_selvecs sh_coff_vec sh_coff_le_vec sh_coff_small_vec sh_coff_small_le_vec"
1289 targ_defvec=sh_coff_vec
1290 targ_selvecs="sh_coff_vec sh_coff_le_vec sh_coff_small_vec sh_coff_small_le_vec"
1294 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
1295 targ_defvec=sparc_elf32_sol2_vec
1298 sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*)
1299 targ_defvec=sparc_elf32_sol2_vec
1300 targ_selvecs="sparc_elf64_sol2_vec"
1303 sparc64-*-freebsd* | sparc64-*-kfreebsd*-gnu)
1304 targ_defvec=sparc_elf64_fbsd_vec
1305 targ_selvecs="sparc_elf64_vec sparc_elf32_vec"
1308 targ_defvec=sparc_elf64_vec
1309 targ_selvecs="sparc_elf32_vec"
1313 sparc-*-linux-* | sparcv*-*-linux-*)
1314 targ_defvec=sparc_elf32_vec
1315 targ_selvecs="sparc_elf64_vec"
1318 targ_defvec=sparc_elf32_vxworks_vec
1319 targ_selvecs="sparc_elf32_vec"
1322 targ_defvec=sparc_elf32_vec
1326 targ_defvec=spu_elf32_vec
1331 targ_defvec=tic6x_elf32_c6000_le_vec
1332 targ_selvecs="tic6x_elf32_c6000_be_vec tic6x_elf32_le_vec tic6x_elf32_be_vec"
1336 targ_defvec=tic6x_elf32_linux_le_vec
1337 targ_selvecs="tic6x_elf32_linux_be_vec tic6x_elf32_le_vec tic6x_elf32_be_vec"
1341 targ_defvec=tic80_coff_vec
1347 targ_defvec=tilegx_elf64_le_vec
1348 targ_selvecs="tilegx_elf64_be_vec tilegx_elf32_be_vec tilegx_elf32_le_vec"
1351 targ_defvec=tilegx_elf64_be_vec
1352 targ_selvecs="tilegx_elf64_le_vec tilegx_elf32_be_vec tilegx_elf32_le_vec"
1357 targ_defvec=tilepro_elf32_vec
1361 targ_defvec=ft32_elf32_vec
1365 targ_defvec=v850_elf32_vec
1366 targ_selvecs="v800_elf32_vec"
1371 targ_defvec=vax_elf32_vec
1372 targ_selvecs="vax_aout_nbsd_vec vax_aout_1knbsd_vec"
1375 vax-*-netbsdaout* | vax-*-netbsd*)
1376 targ_defvec=vax_aout_nbsd_vec
1377 targ_selvecs="vax_elf32_vec vax_aout_1knbsd_vec"
1382 targ_defvec=vax_aout_nbsd_vec
1387 targ_defvec=vax_elf32_vec
1391 targ_defvec=visium_elf32_vec
1395 targ_defvec=wasm32_elf32_vec
1396 targ_selvecs="wasm_vec"
1400 targ_defvec=xgate_elf32_vec
1401 targ_selvecs="xgate_elf32_vec"
1405 targ_defvec=xstormy16_elf32_vec
1409 targ_defvec=xtensa_elf32_le_vec
1410 targ_selvecs=xtensa_elf32_be_vec
1413 targ_defvec=xc16x_elf32_vec
1417 targ_defvec=z80_coff_vec
1422 targ_defvec=z8k_coff_vec
1426 # END OF targmatch.h
1428 echo "*** Configuration $targ is not fully supported." >&2
1429 echo "*** Use bpf or bpf-*-none as the target instead." >&2
1434 echo 1>&2 "*** BFD does not support target ${targ}."
1435 echo 1>&2 "*** Look in bfd/config.bfd for supported targets."
1440 # All MIPS ELF targets need a 64-bit bfd_vma.
1441 case "${targ_defvec} ${targ_selvecs}" in
1447 case "${host64}${want64}" in
1449 targ_selvecs="${targ_selvecs} ${targ64_selvecs}"
1453 # If we support any ELF target, then automatically add support for the
1454 # generic ELF targets. This permits an objdump with some ELF support
1455 # to be used on an arbitrary ELF file for anything other than
1456 # relocation information.
1457 case "${targ_defvec} ${targ_selvecs}" in
1458 *elf64* | *mips_elf32_n*)
1459 targ_selvecs="${targ_selvecs} elf64_le_vec elf64_be_vec elf32_le_vec elf32_be_vec"
1462 targ_selvecs="${targ_selvecs} elf32_le_vec elf32_be_vec"
1466 # If we support Intel MCU target, then add support for bfd_iamcu_arch.
1467 case "${targ_defvec} ${targ_selvecs}" in
1469 targ_archs="$targ_archs bfd_iamcu_arch"
1473 # If we support Intel L1OM target, then add support for bfd_l1om_arch.
1474 case "${targ_defvec} ${targ_selvecs}" in
1476 targ_archs="$targ_archs bfd_l1om_arch"
1480 # If we support Intel K1OM target, then add support for bfd_k1om_arch.
1481 case "${targ_defvec} ${targ_selvecs}" in
1483 targ_archs="$targ_archs bfd_k1om_arch"