3 # Copyright (C) 2012-2022 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.
54 if test "x$enable_obsolete" != xyes; then
55 echo "*** Configuration $targ is obsolete." >&2
56 echo "*** Specify --enable-obsolete to build it anyway." >&2
57 echo "*** Support will be REMOVED in the next major release of BINUTILS," >&2
58 echo "*** unless a maintainer comes forward." >&2
63 # Warn on changed defaulting
65 *-*-netbsdelf* | *-*-netbsdaout* | *-*-netbsdpe*)
66 # Explicit, no defaulting
69 # The obsolete warning is enough, and ns32k does not have ELF support
72 targ_migrated=`echo "$targ" | sed 's/netbsd/netbsdaout/'`
73 echo "*** WARNING: $targ is now defaults to meaning ELF not a.out." >&2
74 echo "*** Use $targ_migrated instead to explicitly specify a.out." >&2
79 mips*-*-irix5* | mips*-*-irix6*)
94 arm*-*-netbsdaout* | \
98 arm*-*-symbianelf* | \
100 c30-*-*aout* | tic30-*-*aout* | \
105 i[3-7]86-*-unixware* | \
107 i[3-7]86-*-chorus* | \
113 i[3-7]86-sequent-bsd* | \
114 i[3-7]86-*-freebsdaout* | i[3-7]86-*-freebsd[12].* | i[3-7]86-*-freebsd[12] | \
115 i[3-7]86-*-netbsdaout* | \
116 i[3-7]86-*-openbsd[0-2].* | i[3-7]86-*-openbsd3.[0-3] | \
117 i[3-7]86-*-linux*aout* | \
118 i[3-7]86-*-mach* | i[3-7]86-*-osf1mk* | \
121 i[3-7]86-*-aout* | i[3-7]86*-*-vsta* | \
129 m68*-*-linux*aout* | \
142 m68*-motorola-sysv* | \
159 powerpc-*-lynxos* | powerpc-*-windiss* | \
160 powerpcle-*-pe | powerpcle-*-winnt* | powerpcle-*-cygwin* | \
161 sh*-*-netbsdaout* | \
162 sh*-*-symbianelf* | sh5*-*-* | sh64*-*-* | \
167 sparc-*-openbsd[0-2].* | sparc-*-openbsd3.[0-1] | \
169 vax-*-bsd* | vax-*-ultrix* | vax-*-vms* | \
174 echo "*** Configuration $targ is obsolete." >&2
175 echo "*** Support has been REMOVED." >&2
180 targ_cpu=`echo $targ | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
181 case "${targ_cpu}" in
182 aarch64*) targ_archs="bfd_aarch64_arch bfd_arm_arch";;
183 alpha*) targ_archs=bfd_alpha_arch ;;
184 am33_2.0*) targ_archs=bfd_mn10300_arch ;;
185 arc*) targ_archs=bfd_arc_arch ;;
186 arm*) targ_archs=bfd_arm_arch ;;
187 bfin*) targ_archs=bfd_bfin_arch ;;
188 c30*) targ_archs=bfd_tic30_arch ;;
189 c4x*) targ_archs=bfd_tic4x_arch ;;
190 c54x*) targ_archs=bfd_tic54x_arch ;;
191 cr16*) targ_archs=bfd_cr16_arch ;;
192 crisv32) targ_archs=bfd_cris_arch ;;
193 crx*) targ_archs=bfd_crx_arch ;;
194 csky*) targ_archs=bfd_csky_arch ;;
195 dlx*) targ_archs=bfd_dlx_arch ;;
196 fido*) targ_archs=bfd_m68k_arch ;;
197 hppa*) targ_archs=bfd_hppa_arch ;;
198 i[3-7]86) targ_archs=bfd_i386_arch ;;
199 ia16) targ_archs=bfd_i386_arch ;;
200 lm32) targ_archs=bfd_lm32_arch ;;
201 loongarch*) targ_archs=bfd_loongarch_arch ;;
202 m6811*|m68hc11*) targ_archs="bfd_m68hc11_arch bfd_m68hc12_arch bfd_m9s12x_arch bfd_m9s12xg_arch" ;;
203 m6812*|m68hc12*) targ_archs="bfd_m68hc12_arch bfd_m68hc11_arch bfd_m9s12x_arch bfd_m9s12xg_arch" ;;
204 m68*) targ_archs=bfd_m68k_arch ;;
205 s12z*) targ_archs=bfd_s12z_arch ;;
206 microblaze*) targ_archs=bfd_microblaze_arch ;;
207 mips*) targ_archs=bfd_mips_arch ;;
208 nds32*) targ_archs=bfd_nds32_arch ;;
209 nfp) targ_archs=bfd_nfp_arch ;;
210 nios2*) targ_archs=bfd_nios2_arch ;;
211 or1k*|or1knd*) targ_archs=bfd_or1k_arch ;;
212 pdp11*) targ_archs=bfd_pdp11_arch ;;
213 pj*) targ_archs="bfd_pj_arch bfd_i386_arch";;
214 powerpc*) targ_archs="bfd_rs6000_arch bfd_powerpc_arch" ;;
215 pru*) targ_archs=bfd_pru_arch ;;
216 riscv*) targ_archs=bfd_riscv_arch ;;
217 rs6000) targ_archs="bfd_rs6000_arch bfd_powerpc_arch" ;;
218 s390*) targ_archs=bfd_s390_arch ;;
219 sh*) targ_archs=bfd_sh_arch ;;
220 sparc*) targ_archs=bfd_sparc_arch ;;
221 spu*) targ_archs=bfd_spu_arch ;;
222 tilegx*) targ_archs=bfd_tilegx_arch ;;
223 tilepro*) targ_archs=bfd_tilepro_arch ;;
224 v850*) targ_archs="bfd_v850_arch bfd_v850_rh850_arch" ;;
225 visium*) targ_archs=bfd_visium_arch ;;
226 wasm32) targ_archs=bfd_wasm32_arch ;;
227 x86_64*) targ_archs=bfd_i386_arch ;;
228 xtensa*) targ_archs=bfd_xtensa_arch ;;
229 xgate) targ_archs=bfd_xgate_arch ;;
230 z80*|r800|z180|gbz80|ez80*) targ_archs=bfd_z80_arch ;;
231 z8k*) targ_archs=bfd_z8k_arch ;;
232 asxxxx*) targ_archs=bfd_z80_arch ;;
233 *) targ_archs=bfd_${targ_cpu}_arch ;;
237 # WHEN ADDING ENTRIES TO THIS MATRIX:
238 # Make sure that the left side always has two dashes. Otherwise you
239 # can get spurious matches. Even for unambiguous cases, do this as a
240 # convention, else the table becomes a real mess to understand and maintain.
243 # START OF targmatch.h
246 targ_defvec=aarch64_mach_o_vec
247 targ_selvecs="arm_mach_o_vec mach_o_le_vec mach_o_be_vec mach_o_fat_vec"
248 targ_archs="$targ_archs bfd_i386_arch bfd_powerpc_arch bfd_rs6000_arch"
251 aarch64-*-elf | aarch64-*-rtems* | aarch64-*-genode*)
252 targ_defvec=aarch64_elf64_le_vec
253 targ_selvecs="aarch64_elf64_be_vec aarch64_elf32_le_vec aarch64_elf32_be_vec arm_elf32_le_vec arm_elf32_be_vec aarch64_pei_vec"
257 targ_defvec=aarch64_elf64_be_vec
258 targ_selvecs="aarch64_elf64_le_vec aarch64_elf32_le_vec aarch64_elf32_be_vec arm_elf32_be_vec arm_elf32_le_vec"
262 targ_defvec=aarch64_elf64_le_vec
263 targ_selvecs="aarch64_elf64_be_vec arm_elf32_le_vec arm_elf32_be_vec"
267 targ_defvec=aarch64_elf64_le_vec
268 targ_selvecs="aarch64_elf64_be_vec arm_elf32_le_vec arm_elf32_be_vec"
272 targ_defvec=aarch64_elf64_le_cloudabi_vec
273 targ_selvecs=aarch64_elf64_be_cloudabi_vec
277 targ_defvec=aarch64_elf64_le_vec
278 targ_selvecs="aarch64_elf64_be_vec aarch64_elf32_le_vec aarch64_elf32_be_vec arm_elf32_le_vec arm_elf32_be_vec"
281 aarch64-*-linux* | aarch64-*-netbsd*)
282 targ_defvec=aarch64_elf64_le_vec
283 targ_selvecs="aarch64_elf64_be_vec aarch64_elf32_le_vec aarch64_elf32_be_vec arm_elf32_le_vec arm_elf32_be_vec aarch64_pei_vec"
286 aarch64_be-*-linux* | aarch64_be-*-netbsd*)
287 targ_defvec=aarch64_elf64_be_vec
288 targ_selvecs="aarch64_elf64_le_vec aarch64_elf32_le_vec aarch64_elf32_be_vec arm_elf32_be_vec arm_elf32_le_vec"
291 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
292 targ_defvec=alpha_elf64_fbsd_vec
293 targ_selvecs="alpha_elf64_vec alpha_ecoff_le_vec"
295 # FreeBSD <= 4.0 supports only the old nonstandard way of ABI labelling.
297 alpha*-*-freebsd3* | alpha*-*-freebsd4 | alpha*-*-freebsd4.0*)
298 targ_cflags=-DOLD_FREEBSD_ABI_LABEL ;;
301 alpha*-*-netbsd* | alpha*-*-openbsd*)
302 targ_defvec=alpha_elf64_vec
303 targ_selvecs=alpha_ecoff_le_vec
306 alpha*-*-linux*ecoff*)
307 targ_defvec=alpha_ecoff_le_vec
308 targ_selvecs=alpha_elf64_vec
311 alpha*-*-linux-* | alpha*-*-elf*)
312 targ_defvec=alpha_elf64_vec
313 targ_selvecs=alpha_ecoff_le_vec
317 targ_defvec=alpha_vms_vec
318 targ_selvecs=alpha_vms_lib_txt_vec
322 targ_defvec=alpha_ecoff_le_vec
325 ia64*-*-freebsd* | ia64*-*-netbsd* | ia64*-*-linux-* | ia64*-*-elf* | ia64*-*-kfreebsd*-gnu)
326 targ_defvec=ia64_elf64_le_vec
327 targ_selvecs="ia64_elf64_be_vec ia64_pei_vec"
331 targ_defvec=ia64_elf32_hpux_be_vec
332 targ_selvecs="ia64_elf64_hpux_be_vec"
336 targ_defvec=ia64_elf64_vms_vec
337 targ_selvecs=alpha_vms_lib_txt_vec
343 targ_defvec=am33_elf32_linux_vec
346 arc*eb-*-elf* | arc*eb-*-linux*)
347 targ_defvec=arc_elf32_be_vec
348 targ_selvecs=arc_elf32_le_vec
351 arc*-*-elf* | arc*-*-linux*)
352 targ_defvec=arc_elf32_le_vec
353 targ_selvecs=arc_elf32_be_vec
357 targ_defvec=arm_mach_o_vec
358 targ_selvecs="mach_o_le_vec mach_o_be_vec mach_o_fat_vec"
359 targ_archs="$targ_archs bfd_i386_arch bfd_powerpc_arch bfd_rs6000_arch"
362 targ_defvec=arm_elf32_le_vec
363 targ_selvecs="arm_elf32_be_vec"
366 targ_defvec=arm_elf32_le_vec
367 targ_selvecs="arm_elf32_fdpic_le_vec arm_elf32_be_vec arm_elf32_fdpic_be_vec arm_pe_le_vec arm_pe_be_vec arm_pei_le_vec arm_pei_be_vec"
370 targ_defvec=arm_elf32_nacl_le_vec
371 targ_selvecs="arm_elf32_nacl_be_vec"
374 targ_defvec=arm_elf32_nacl_be_vec
375 targ_selvecs="arm_elf32_nacl_le_vec"
378 targ_defvec=arm_elf32_be_vec
379 targ_selvecs="arm_elf32_le_vec"
382 targ_defvec=arm_elf32_le_vec
383 targ_selvecs="arm_elf32_be_vec"
385 arm-*-nto* | nto*arm*)
386 targ_defvec=arm_elf32_le_vec
387 targ_selvecs=arm_elf32_be_vec
388 targ_cflags=-D__QNXTARGET__
390 arm-wince-pe | arm-*-wince | arm*-*-mingw32ce* | arm*-*-cegcc*)
391 targ_defvec=arm_pe_wince_le_vec
392 targ_selvecs="arm_pe_wince_le_vec arm_pe_wince_be_vec arm_pei_wince_le_vec arm_pei_wince_be_vec"
394 targ_cflags="-DARM_WINCE -DARM_COFF_BUGFIX"
397 targ_defvec=arm_pe_le_vec
398 targ_selvecs="arm_pe_le_vec arm_pe_be_vec arm_pei_le_vec arm_pei_be_vec"
402 targ_defvec=arm_elf32_le_vec
403 targ_selvecs=arm_elf32_be_vec
405 armeb-*-elf | arm*b-*-freebsd* | arm*b-*-linux-* | armeb-*-eabi*)
406 targ_defvec=arm_elf32_be_vec
407 targ_selvecs=arm_elf32_le_vec
410 targ_defvec=arm_elf32_le_vec
411 targ_selvecs=arm_elf32_be_vec
413 arm-*-elf | arm*-*-freebsd* | arm*-*-linux-* | arm*-*-conix* | \
414 arm*-*-uclinux* | arm-*-kfreebsd*-gnu | \
415 arm*-*-eabi* | arm-*-rtems* | arm*-*-uclinuxfdpiceabi)
416 targ_defvec=arm_elf32_le_vec
417 targ_selvecs="arm_elf32_fdpic_le_vec arm_elf32_be_vec arm_elf32_fdpic_be_vec"
419 arm*-*-vxworks | arm*-*-windiss)
420 targ_defvec=arm_elf32_vxworks_le_vec
421 targ_selvecs=arm_elf32_vxworks_be_vec
424 targ_defvec=arm_elf32_le_vec
425 targ_selvecs=arm_elf32_be_vec
429 targ_defvec=avr_elf32_vec
433 targ_defvec=bfin_elf32_vec
434 targ_selvecs=bfin_elf32_fdpic_vec
438 c30-*-*coff* | tic30-*-*coff*)
439 targ_defvec=tic30_coff_vec
442 c4x-*-*coff* | tic4x-*-*coff*)
443 targ_defvec=tic4x_coff1_vec
444 targ_selvecs="tic4x_coff1_beh_vec tic4x_coff2_vec tic4x_coff2_beh_vec tic4x_coff0_vec tic4x_coff0_beh_vec"
448 c54x*-*-*coff* | tic54x-*-*coff*)
449 targ_defvec=tic54x_coff1_vec
450 targ_selvecs="tic54x_coff1_beh_vec tic54x_coff2_vec tic54x_coff2_beh_vec tic54x_coff0_vec tic54x_coff0_beh_vec"
454 cr16-*-elf* | cr16*-*-uclinux*)
455 targ_defvec=cr16_elf32_vec
460 cris-*-* | crisv32-*-*)
461 targ_defvec=cris_aout_vec
462 targ_selvecs="cris_elf32_us_vec cris_elf32_vec"
465 *) targ_underscore=yes ;;
472 targ_defvec=crx_elf32_vec
476 csky-*-elf* | csky-*-linux* )
477 targ_defvec=csky_elf32_le_vec
478 targ_selvecs="csky_elf32_be_vec csky_elf32_le_vec"
482 targ_defvec=d10v_elf32_vec
486 targ_defvec=dlx_elf32_be_vec
487 targ_selvecs="dlx_elf32_be_vec"
491 targ_defvec=d30v_elf32_vec
496 targ_defvec=bpf_elf64_le_vec
497 targ_selvecs=bpf_elf64_be_vec
503 targ_defvec=epiphany_elf32_vec
508 targ_defvec=m68k_elf32_vec
512 targ_defvec=fr30_elf32_vec
516 targ_defvec=frv_elf32_vec
517 targ_selvecs=frv_elf32_fdpic_vec
521 targ_defvec=frv_elf32_fdpic_vec
522 targ_selvecs=frv_elf32_vec
525 moxie-*-elf | moxie-*-rtems* | moxie-*-uclinux)
526 targ_defvec=moxie_elf32_be_vec
527 targ_selvecs=moxie_elf32_le_vec
531 targ_defvec=moxie_elf32_le_vec
534 h8300*-*-elf | h8300*-*-rtems*)
535 targ_defvec=h8300_elf32_vec
540 targ_defvec=h8300_elf32_linux_vec
545 targ_defvec=hppa_elf64_linux_vec
546 targ_selvecs=hppa_elf64_vec
550 targ_defvec=hppa_elf64_vec
551 targ_selvecs=hppa_elf64_linux_vec
552 targ_cflags=-DHPUX_LARGE_AR_IDS
558 targ_defvec=hppa_elf32_linux_vec
559 targ_selvecs=hppa_elf32_vec
562 targ_defvec=hppa_elf32_nbsd_vec
563 targ_selvecs="hppa_elf32_vec hppa_elf32_linux_vec"
565 hppa*-*-*elf* | hppa*-*-lites* | hppa*-*-sysv4* | hppa*-*-openbsd*)
566 targ_defvec=hppa_elf32_vec
567 targ_selvecs=hppa_elf32_linux_vec
571 targ_defvec=hppa_som_vec
572 targ_selvecs=hppa_elf32_vec
574 hppa*-*-hpux* | hppa*-*-hiux* | hppa*-*-mpeix*)
575 targ_defvec=hppa_som_vec
578 targ_defvec=hppa_som_vec
579 targ_selvecs=hppa_elf32_vec
582 i[3-7]86-*-elf* | i[3-7]86-*-rtems* | i[3-7]86-*-genode*)
583 targ_defvec=i386_elf32_vec
584 targ_selvecs="iamcu_elf32_vec i386_coff_vec"
586 i[3-7]86-*-solaris2*)
587 targ_defvec=i386_elf32_sol2_vec
588 targ_selvecs="iamcu_elf32_vec i386_coff_vec i386_pei_vec"
589 targ64_selvecs="x86_64_elf64_sol2_vec l1om_elf64_vec k1om_elf64_vec x86_64_pe_vec x86_64_pei_vec"
594 targ_defvec=i386_elf32_sol2_vec
595 targ_selvecs="x86_64_elf64_sol2_vec l1om_elf64_vec k1om_elf64_vec iamcu_elf32_vec i386_coff_vec i386_pei_vec x86_64_pe_vec x86_64_pei_vec"
600 targ_defvec=i386_elf32_vec
601 targ_selvecs="iamcu_elf32_vec i386_coff_vec"
604 targ_defvec=i386_elf32_vec
605 targ_selvecs=iamcu_elf32_vec
608 targ_defvec=i386_elf32_vec
609 targ_selvecs=iamcu_elf32_vec
610 targ64_selvecs="x86_64_elf64_vec l1om_elf64_vec k1om_elf64_vec"
612 *-*-msdosdjgpp* | *-*-go32* )
613 targ_defvec=i386_coff_go32_vec
614 targ_selvecs="i386_coff_go32stubbed_vec i386_aout_vec"
616 i[3-7]86-*-darwin* | i[3-7]86-*-macos10* | i[3-7]86-*-rhapsody*)
617 targ_defvec=i386_mach_o_vec
618 targ_selvecs="mach_o_le_vec mach_o_be_vec mach_o_fat_vec pef_vec pef_xlib_vec sym_vec"
619 targ64_selvecs=x86_64_mach_o_vec
620 targ_archs="$targ_archs bfd_powerpc_arch bfd_rs6000_arch"
623 targ_defvec=i386_aout_bsd_vec
626 i[3-7]86-*-dragonfly*)
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-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
632 targ_defvec=i386_elf32_fbsd_vec
633 targ_selvecs="i386_elf32_vec iamcu_elf32_vec i386_pei_vec i386_coff_vec"
634 targ64_selvecs="x86_64_elf64_fbsd_vec x86_64_elf64_vec x86_64_pe_vec x86_64_pei_vec l1om_elf64_vec l1om_elf64_fbsd_vec k1om_elf64_vec k1om_elf64_fbsd_vec"
635 # FreeBSD <= 4.0 supports only the old nonstandard way of ABI labelling.
637 i[3-7]86-*-freebsd3* | i[3-7]86-*-freebsd4 | i[3-7]86-*-freebsd4.0*)
638 targ_cflags=-DOLD_FREEBSD_ABI_LABEL ;;
641 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu)
642 targ_defvec=i386_elf32_vec
643 targ_selvecs="iamcu_elf32_vec"
644 targ64_selvecs="x86_64_elf64_vec l1om_elf64_vec k1om_elf64_vec"
647 targ_defvec=i386_elf32_vec
648 targ_selvecs="iamcu_elf32_vec"
651 targ_defvec=i386_elf32_vec
652 targ_selvecs="iamcu_elf32_vec i386_pei_vec"
653 targ64_selvecs="x86_64_elf64_vec x86_64_elf32_vec x86_64_pe_vec x86_64_pei_vec l1om_elf64_vec k1om_elf64_vec"
656 targ_defvec=i386_elf32_vec
658 targ64_selvecs=x86_64_elf64_vec
662 targ_defvec=x86_64_elf64_cloudabi_vec
666 targ_defvec=x86_64_mach_o_vec
667 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"
668 targ_archs="$targ_archs bfd_powerpc_arch bfd_rs6000_arch"
672 targ_defvec=x86_64_elf64_vec
673 targ_selvecs="i386_elf32_vec iamcu_elf32_vec l1om_elf64_vec k1om_elf64_vec"
676 x86_64-*-elf* | x86_64-*-rtems* | x86_64-*-fuchsia | x86_64-*-genode*)
677 targ_defvec=x86_64_elf64_vec
678 targ_selvecs="i386_elf32_vec iamcu_elf32_vec x86_64_elf32_vec l1om_elf64_vec k1om_elf64_vec"
681 targ_selvecs="${targ_selvecs} x86_64_pe_vec x86_64_pei_vec"
686 targ_defvec=x86_64_elf64_vec
687 targ_selvecs="i386_elf32_vec iamcu_elf32_vec l1om_elf64_vec k1om_elf64_vec"
690 x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
691 targ_defvec=x86_64_elf64_fbsd_vec
692 targ_selvecs="i386_elf32_fbsd_vec iamcu_elf32_vec i386_coff_vec i386_pei_vec x86_64_pe_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"
696 targ_defvec=x86_64_elf64_vec
697 targ_selvecs="i386_elf32_vec"
700 x86_64-*-netbsd* | x86_64-*-openbsd*)
701 targ_defvec=x86_64_elf64_vec
702 targ_selvecs="i386_elf32_vec iamcu_elf32_vec i386_coff_vec i386_pei_vec x86_64_pe_vec x86_64_pei_vec l1om_elf64_vec k1om_elf64_vec"
706 targ_defvec=x86_64_elf64_vec
707 targ_selvecs="i386_elf32_vec iamcu_elf32_vec x86_64_elf32_vec i386_pei_vec x86_64_pe_vec x86_64_pei_vec l1om_elf64_vec k1om_elf64_vec"
710 x86_64-*-mingw* | x86_64-*-pe | x86_64-*-pep | x86_64-*-cygwin)
711 targ_defvec=x86_64_pe_vec
712 targ_selvecs="x86_64_pe_vec x86_64_pei_vec x86_64_pe_big_vec x86_64_elf64_vec l1om_elf64_vec k1om_elf64_vec i386_pe_vec i386_pei_vec i386_elf32_vec iamcu_elf32_vec"
717 targ_defvec=x86_64_elf64_vec
721 targ_defvec=x86_64_elf64_vec
722 targ_selvecs=i386_elf32_vec
727 targ_defvec=i386_elf32_vec
728 targ_selvecs="iamcu_elf32_vec i386_coff_lynx_vec i386_aout_lynx_vec"
731 targ_defvec=i386_elf32_vec
732 targ_selvecs=iamcu_elf32_vec
735 targ_defvec=i386_aout_vec
736 targ_selvecs=i386_msdos_vec
739 targ_defvec=i386_elf32_vec
740 targ_selvecs="iamcu_elf32_vec i386_msdos_vec i386_aout_vec"
743 targ_defvec=i386_pe_vec
744 targ_selvecs="i386_pe_vec i386_pei_vec"
746 i[3-7]86-*-beoself* | i[3-7]86-*-beos*)
747 targ_defvec=i386_elf32_vec
748 targ_selvecs="iamcu_elf32_vec i386_pe_vec i386_pei_vec"
751 targ_defvec=i386_elf32_vec
754 targ_defvec=i386_pei_vec
755 targ_selvecs="i386_pe_vec"
756 # FIXME: This should eventually be checked at runtime.
757 targ_cflags=-DSTRICT_PE_FORMAT
760 targ_defvec=i386_elf32_vec
761 targ_selvecs="iamcu_elf32_vec i386_coff_vec"
763 i[3-7]86-*-mingw32* | i[3-7]86-*-cygwin* | i[3-7]86-*-winnt | i[3-7]86-*-pe)
764 targ_defvec=i386_pe_vec
765 targ_selvecs="i386_pe_vec i386_pe_big_vec i386_pei_vec i386_elf32_vec iamcu_elf32_vec"
769 targ_defvec=i386_elf32_vxworks_vec
774 targ_defvec=i386_elf32_vec
775 targ_selvecs="i386_msdos_vec i386_aout_vec"
779 targ_defvec=ip2k_elf32_vec
784 targ_defvec=iq2000_elf32_vec
787 lm32-*-elf | lm32-*-rtems*)
788 targ_defvec=lm32_elf32_vec
789 targ_selvecs=lm32_elf32_fdpic_vec
793 targ_defvec=lm32_elf32_fdpic_vec
794 targ_selvecs=lm32_elf32_vec
798 targ_defvec=m32c_elf32_vec
803 targ_defvec=m32r_elf32_linux_le_vec
804 targ_selvecs="m32r_elf32_linux_vec m32r_elf32_linux_le_vec"
807 targ_defvec=m32r_elf32_linux_vec
808 targ_selvecs="m32r_elf32_linux_vec m32r_elf32_linux_le_vec"
811 targ_defvec=m32r_elf32_le_vec
812 targ_selvecs="m32r_elf32_vec m32r_elf32_le_vec"
815 targ_defvec=m32r_elf32_vec
819 targ_defvec=m68k_elf32_vec
821 m68hc11-*-* | m6811-*-*)
822 targ_defvec=m68hc11_elf32_vec
823 targ_selvecs="m68hc11_elf32_vec m68hc12_elf32_vec"
825 m68hc12-*-* | m6812-*-*)
826 targ_defvec=m68hc12_elf32_vec
827 targ_selvecs="m68hc11_elf32_vec m68hc12_elf32_vec"
831 targ_defvec=m68k_elf32_vec
835 targ_defvec=s12z_elf32_vec
838 targ_defvec=mcore_elf32_be_vec
839 targ_selvecs="mcore_elf32_be_vec mcore_elf32_le_vec"
842 targ_defvec=mcore_pe_be_vec
843 targ_selvecs="mcore_pe_be_vec mcore_pe_le_vec mcore_pei_be_vec mcore_pei_le_vec"
847 targ_defvec=mep_elf32_vec
848 targ_selvecs=mep_elf32_le_vec
852 targ_defvec=metag_elf32_vec
857 targ_defvec=microblaze_elf32_le_vec
858 targ_selvecs=microblaze_elf32_vec
862 targ_defvec=microblaze_elf32_vec
863 targ_selvecs=microblaze_elf32_le_vec
868 targ_defvec=mips_elf32_trad_le_vec
869 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"
872 targ_defvec=mips_elf32_trad_be_vec
873 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"
876 targ_defvec=mips_elf32_le_vec
877 targ_selvecs="mips_elf32_be_vec mips_elf64_be_vec mips_elf64_le_vec mips_ecoff_le_vec mips_ecoff_be_vec"
880 targ_defvec=mips_elf32_n_be_vec
881 targ_selvecs="mips_elf32_n_le_vec mips_elf32_be_vec mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec"
884 targ_defvec=mips_elf32_n_le_vec
885 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"
888 targ_defvec=mips_elf32_le_vec
889 targ_selvecs="mips_elf32_be_vec mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec"
892 targ_defvec=mips_elf32_be_vec
893 targ_selvecs="mips_elf32_le_vec mips_ecoff_be_vec mips_ecoff_le_vec"
896 targ_defvec=mips_elf32_vxworks_le_vec
897 targ_selvecs="mips_elf32_le_vec mips_elf32_vxworks_be_vec mips_elf32_be_vec mips_elf64_be_vec mips_elf64_le_vec"
900 targ_defvec=mips_elf32_vxworks_be_vec
901 targ_selvecs="mips_elf32_be_vec mips_elf32_vxworks_le_vec mips_elf32_be_vec mips_elf64_be_vec mips_elf64_le_vec"
904 targ_defvec=mips_elf32_trad_le_vec
905 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"
907 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
908 targ_defvec=mips_elf32_trad_be_vec
909 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"
911 mips*el-*-elf* | mips*-*-chorus*)
912 targ_defvec=mips_elf32_le_vec
913 targ_selvecs="mips_elf32_be_vec mips_elf64_be_vec mips_elf64_le_vec"
915 mips*-*-elf* | mips*-*-rtems* | mips*-*-windiss | mips*-*-none)
916 targ_defvec=mips_elf32_be_vec
917 targ_selvecs="mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec"
920 targ_defvec=mips_elf64_trad_be_vec
921 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"
924 targ_defvec=mips_elf32_le_vec
925 targ_selvecs="mips_elf32_be_vec mips_elf64_be_vec mips_elf64_le_vec mips_ecoff_le_vec mips_ecoff_be_vec"
928 targ_defvec=mips_elf32_be_vec
929 targ_selvecs="mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec mips_ecoff_be_vec mips_ecoff_le_vec"
932 targ_defvec=mips_elf32_ntrad_le_vec
933 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"
936 targ_defvec=mips_elf32_ntrad_be_vec
937 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"
940 targ_defvec=mips_elf32_trad_le_vec
941 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"
944 targ_defvec=mips_elf32_trad_be_vec
945 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"
947 mips64*el-*-freebsd* | mips64*el-*-kfreebsd*-gnu)
949 targ_defvec=mips_elf32_ntradfbsd_le_vec
950 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"
952 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"
954 mips64*-*-freebsd* | mips64*-*-kfreebsd*-gnu)
956 targ_defvec=mips_elf32_ntradfbsd_be_vec
957 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"
959 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"
961 mips*el-*-freebsd* | mips*el-*-kfreebsd*-gnu)
963 targ_defvec=mips_elf32_tradfbsd_le_vec
964 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"
966 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"
968 mips*-*-freebsd* | mips*-*-kfreebsd*-gnu)
970 targ_defvec=mips_elf32_tradfbsd_be_vec
971 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"
973 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"
976 targ_defvec=mmix_elf64_vec
977 targ_selvecs=mmix_mmo_vec
982 targ_defvec=mn10200_elf32_vec
987 targ_defvec=mn10300_elf32_vec
992 targ_defvec=mt_elf32_vec
996 targ_defvec=msp430_elf32_vec
997 targ_selvecs=msp430_elf32_ti_vec
1001 targ_defvec=nds32_elf32_linux_le_vec
1002 targ_selvecs=nds32_elf32_linux_be_vec
1006 targ_defvec=nds32_elf32_linux_be_vec
1007 targ_selvecs=nds32_elf32_linux_le_vec
1011 targ_defvec=nds32_elf32_le_vec
1012 targ_selvecs=nds32_elf32_be_vec
1016 targ_defvec=nds32_elf32_be_vec
1017 targ_selvecs=nds32_elf32_le_vec
1022 targ_defvec=nfp_elf64_vec
1026 ns32k-pc532-mach* | ns32k-pc532-ux*)
1027 targ_defvec=ns32k_aout_pc532mach_vec
1030 ns32k-*-lites* | ns32k-*-*bsd*)
1031 targ_defvec=ns32k_aout_pc532nbsd_vec
1036 targ_defvec=nios2_elf32_be_vec
1037 targ_selvecs=nios2_elf32_le_vec
1041 targ_defvec=nios2_elf32_le_vec
1042 targ_selvecs=nios2_elf32_be_vec
1046 targ_defvec=nios2_elf32_le_vec
1047 targ_selvecs=nios2_elf32_be_vec
1050 or1k-*-elf | or1k-*-linux* | or1k-*-rtems*)
1051 targ_defvec=or1k_elf32_vec
1054 or1knd-*-elf | or1knd-*-linux* | or1knd-*-rtems*)
1055 targ_defvec=or1k_elf32_vec
1059 targ_defvec=pdp11_aout_vec
1064 targ_defvec=pj_elf32_vec
1065 targ_selvecs="pj_elf32_vec pj_elf32_le_vec"
1069 targ_defvec=pj_elf32_le_vec
1070 targ_selvecs="pj_elf32_le_vec pj_elf32_vec i386_elf32_vec iamcu_elf32_vec"
1073 powerpc-*-aix5.[01] | rs6000-*-aix5.[01])
1074 targ_defvec=rs6000_xcoff_vec
1075 targ_selvecs="rs6000_xcoff64_aix_vec"
1079 targ_defvec=powerpc_elf32_vec
1080 targ_selvecs="rs6000_xcoff_vec powerpc_elf32_le_vec pef_vec pef_xlib_vec powerpc_xcoff_vec powerpc_boot_vec"
1081 targ_cflags=-D__HAIKU_TARGET__
1084 powerpc64-*-aix5.[01])
1085 targ_defvec=rs6000_xcoff64_aix_vec
1086 targ_selvecs="rs6000_xcoff_vec"
1090 powerpc-*-aix[5-9]* | rs6000-*-aix[5-9]*)
1091 targ_cflags=-DAIX_WEAK_SUPPORT
1092 targ_defvec=rs6000_xcoff_vec
1093 targ_selvecs="rs6000_xcoff64_aix_vec"
1097 powerpc64-*-aix[5-9]*)
1098 targ_cflags=-DAIX_WEAK_SUPPORT
1099 targ_defvec=rs6000_xcoff64_aix_vec
1100 targ_selvecs="rs6000_xcoff_vec"
1105 powerpc-*-aix* | powerpc-*-beos* | rs6000-*-*)
1106 targ_defvec=rs6000_xcoff_vec
1107 targ64_selvecs=rs6000_xcoff64_vec
1109 *-*-aix4.[3456789]* | *-*-aix[56789]*)
1112 targ_cflags=-DSMALL_ARCHIVE;;
1117 targ_defvec=rs6000_xcoff64_vec
1118 targ_selvecs=rs6000_xcoff_vec
1121 powerpc64-*-freebsd*)
1122 targ_defvec=powerpc_elf64_fbsd_vec
1123 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"
1126 powerpc64le-*-freebsd*)
1127 targ_defvec=powerpc_elf64_fbsd_le_vec
1128 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"
1131 powerpc64-*-elf* | powerpc-*-elf64* | powerpc64-*-linux* | \
1133 targ_defvec=powerpc_elf64_vec
1134 targ_selvecs="powerpc_elf64_le_vec powerpc_elf32_vec powerpc_elf32_le_vec rs6000_xcoff_vec rs6000_xcoff64_vec rs6000_xcoff64_aix_vec"
1137 powerpc64le-*-elf* | powerpcle-*-elf64* | powerpc64le-*-linux* | \
1138 powerpc64le-*-*bsd*)
1139 targ_defvec=powerpc_elf64_le_vec
1140 targ_selvecs="powerpc_elf64_vec powerpc_elf32_le_vec powerpc_elf32_vec rs6000_xcoff_vec rs6000_xcoff64_vec rs6000_xcoff64_aix_vec"
1144 powerpc-*-*freebsd*)
1145 targ_defvec=powerpc_elf32_fbsd_vec
1146 targ_selvecs="rs6000_xcoff_vec powerpc_elf32_vec powerpc_elf32_le_vec powerpc_boot_vec"
1147 targ64_selvecs="powerpc_elf64_vec powerpc_elf64_le_vec powerpc_elf64_fbsd_vec"
1149 powerpc-*-*bsd* | powerpc-*-elf* | powerpc-*-sysv4* | powerpc-*-eabi* | \
1150 powerpc-*-solaris2* | powerpc-*-linux-* | powerpc-*-rtems* | \
1152 targ_defvec=powerpc_elf32_vec
1153 targ_selvecs="rs6000_xcoff_vec powerpc_elf32_le_vec powerpc_boot_vec"
1154 targ64_selvecs="powerpc_elf64_vec powerpc_elf64_le_vec"
1157 targ_defvec=powerpc_elf32_vec
1158 targ_selvecs="powerpc_elf32_le_vec powerpc_boot_vec"
1159 targ64_selvecs="powerpc_elf64_vec powerpc_elf64_le_vec"
1161 powerpc-*-darwin* | powerpc-*-macos10* | powerpc-*-rhapsody*)
1162 targ_defvec=mach_o_be_vec
1163 targ_selvecs="mach_o_be_vec mach_o_le_vec mach_o_fat_vec pef_vec pef_xlib_vec sym_vec"
1164 targ_archs="$targ_archs bfd_i386_arch"
1167 targ_defvec=powerpc_xcoff_vec
1170 targ_defvec=powerpc_elf32_vec
1171 targ_selvecs="rs6000_xcoff_vec"
1172 targ_cflags=-DSMALL_ARCHIVE
1175 targ_defvec=powerpc_elf32_vec
1176 targ_selvecs="rs6000_xcoff_vec powerpc_elf32_le_vec powerpc_boot_vec"
1178 powerpc-*-vxworks* | powerpc-*-windiss*)
1179 targ_defvec=powerpc_elf32_vxworks_vec
1180 targ_selvecs="rs6000_xcoff_vec powerpc_elf32_vec powerpc_elf32_le_vec powerpc_boot_vec"
1181 targ64_selvecs="powerpc_elf64_vec powerpc_elf64_le_vec"
1184 targ_defvec=powerpc_elf32_le_vec
1185 targ_selvecs="rs6000_xcoff_vec powerpc_elf32_vec powerpc_boot_vec"
1187 powerpcle-*-elf* | powerpcle-*-sysv4* | powerpcle-*-eabi* | \
1188 powerpcle-*-solaris2* | powerpcle-*-linux-* | powerpcle-*-vxworks*)
1189 targ_defvec=powerpc_elf32_le_vec
1190 targ_selvecs="rs6000_xcoff_vec powerpc_elf32_vec powerpc_boot_vec"
1191 targ64_selvecs="powerpc_elf64_vec powerpc_elf64_le_vec"
1195 targ_defvec=pru_elf32_vec
1199 riscvbe-*-* | riscv32be*-*-*)
1200 targ_defvec=riscv_elf32_be_vec
1201 targ_selvecs="riscv_elf32_vec riscv_elf64_vec riscv_elf32_be_vec riscv_elf64_be_vec"
1204 riscv-*-* | riscv32*-*-*)
1205 targ_defvec=riscv_elf32_vec
1206 targ_selvecs="riscv_elf32_vec riscv_elf64_vec riscv_elf32_be_vec riscv_elf64_be_vec"
1210 targ_defvec=riscv_elf64_be_vec
1211 targ_selvecs="riscv_elf32_vec riscv_elf64_vec riscv_elf32_be_vec riscv_elf64_be_vec"
1215 targ_defvec=riscv_elf64_vec
1216 targ_selvecs="riscv_elf32_vec riscv_elf64_vec riscv_elf32_be_vec riscv_elf64_be_vec"
1222 targ_defvec=rl78_elf32_vec
1227 targ_defvec=rx_elf32_le_vec
1228 targ_selvecs="rx_elf32_be_vec rx_elf32_le_vec rx_elf32_be_ns_vec"
1232 targ_defvec=rx_elf32_linux_le_vec
1233 targ_selvecs="rx_elf32_linux_le_vec"
1237 targ_defvec=s390_elf32_vec
1238 targ64_selvecs=s390_elf64_vec
1243 targ_defvec=s390_elf64_vec
1244 targ_selvecs=s390_elf32_vec
1248 targ_defvec=s390_elf64_vec
1253 targ_defvec=score_elf32_be_vec
1254 targ_selvecs=score_elf32_le_vec
1259 targ_defvec=sh_elf32_linux_be_vec
1260 targ_selvecs=sh_elf32_linux_vec
1261 targ_selvecs="${targ_selvecs} sh_elf32_fdpic_le_vec sh_elf32_fdpic_be_vec"
1264 targ_defvec=sh_elf32_linux_vec
1265 targ_selvecs=sh_elf32_linux_be_vec
1266 targ_selvecs="${targ_selvecs} sh_elf32_fdpic_le_vec sh_elf32_fdpic_be_vec"
1269 sh-*-uclinux* | sh[12]-*-uclinux*)
1270 targ_defvec=sh_elf32_vec
1271 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"
1275 targ_defvec=sh_elf32_nbsd_le_vec
1276 targ_selvecs="sh_elf32_nbsd_vec sh_coff_vec sh_coff_le_vec"
1279 targ_defvec=sh_elf32_nbsd_vec
1280 targ_selvecs="sh_elf32_nbsd_le_vec sh_coff_vec sh_coff_le_vec"
1283 shl*-*-elf* | sh[1234]l*-*-elf* | sh3el*-*-elf* | shl*-*-kaos*)
1284 targ_defvec=sh_elf32_le_vec
1285 targ_selvecs="sh_elf32_vec sh_coff_le_vec sh_coff_vec sh_coff_small_le_vec sh_coff_small_vec"
1289 sh-*-elf* | sh[1234]*-elf* | sh-*-rtems* | sh-*-kaos*)
1290 targ_defvec=sh_elf32_vec
1291 targ_selvecs="sh_elf32_le_vec sh_coff_vec sh_coff_le_vec sh_coff_small_vec sh_coff_small_le_vec"
1296 targ_defvec=sh_elf32_vec
1297 targ_selvecs="sh_elf32_le_vec sh_coff_vec sh_coff_le_vec sh_coff_small_vec sh_coff_small_le_vec"
1301 targ_defvec=sh_elf32_nbsd_le_vec
1302 targ_selvecs="sh_elf32_nbsd_vec sh_coff_vec sh_coff_le_vec"
1305 targ_defvec=sh_pe_le_vec
1306 targ_selvecs="sh_pe_le_vec sh_pei_le_vec"
1310 targ_defvec=sh_elf32_vxworks_vec
1311 targ_selvecs="sh_elf32_vxworks_le_vec"
1312 # FIXME None of the following are actually used on this target, but
1313 # they're necessary for coff-sh.c (which is unconditionally used) to be
1314 # compiled correctly.
1315 targ_selvecs="$targ_selvecs sh_coff_vec sh_coff_le_vec sh_coff_small_vec sh_coff_small_le_vec"
1319 targ_defvec=sh_coff_vec
1320 targ_selvecs="sh_coff_vec sh_coff_le_vec sh_coff_small_vec sh_coff_small_le_vec"
1324 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
1325 # PR 27666: Do not include sparc_elf32_vec here.
1326 targ_defvec=sparc_elf32_sol2_vec
1329 sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*)
1330 # PR 27666: Do not include sparc_elf32_vec or sparc_elf64_vec here.
1331 targ_defvec=sparc_elf32_sol2_vec
1332 targ_selvecs="sparc_elf64_sol2_vec"
1336 targ_defvec=sparc_elf64_vec
1337 targ_selvecs="sparc_elf64_vec sparc_elf32_vec"
1340 sparc64-*-freebsd* | sparc64-*-kfreebsd*-gnu)
1341 targ_defvec=sparc_elf64_fbsd_vec
1342 targ_selvecs="sparc_elf64_vec sparc_elf32_vec"
1345 targ_defvec=sparc_elf64_vec
1346 targ_selvecs="sparc_elf32_vec"
1350 sparc-*-linux-* | sparcv*-*-linux-*)
1351 targ_defvec=sparc_elf32_vec
1352 targ_selvecs="sparc_elf64_vec"
1355 targ_defvec=sparc_elf32_vxworks_vec
1356 targ_selvecs="sparc_elf32_vec"
1359 targ_defvec=sparc_elf32_vec
1363 targ_defvec=spu_elf32_vec
1368 targ_defvec=tic6x_elf32_c6000_le_vec
1369 targ_selvecs="tic6x_elf32_c6000_be_vec tic6x_elf32_le_vec tic6x_elf32_be_vec"
1373 targ_defvec=tic6x_elf32_linux_le_vec
1374 targ_selvecs="tic6x_elf32_linux_be_vec tic6x_elf32_le_vec tic6x_elf32_be_vec"
1379 targ_defvec=tilegx_elf64_le_vec
1380 targ_selvecs="tilegx_elf64_be_vec tilegx_elf32_be_vec tilegx_elf32_le_vec"
1383 targ_defvec=tilegx_elf64_be_vec
1384 targ_selvecs="tilegx_elf64_le_vec tilegx_elf32_be_vec tilegx_elf32_le_vec"
1389 targ_defvec=tilepro_elf32_vec
1393 targ_defvec=ft32_elf32_vec
1397 targ_defvec=v850_elf32_vec
1398 targ_selvecs="v800_elf32_vec"
1403 targ_defvec=vax_aout_nbsd_vec
1404 targ_selvecs="vax_elf32_vec vax_aout_1knbsd_vec"
1409 targ_defvec=vax_elf32_vec
1410 targ_selvecs="vax_aout_nbsd_vec vax_aout_1knbsd_vec"
1414 targ_defvec=vax_aout_nbsd_vec
1419 targ_defvec=vax_elf32_vec
1423 targ_defvec=visium_elf32_vec
1427 targ_defvec=wasm32_elf32_vec
1428 targ_selvecs="wasm_vec"
1432 targ_defvec=xc16x_elf32_vec
1436 targ_defvec=xgate_elf32_vec
1437 targ_selvecs="xgate_elf32_vec"
1441 targ_defvec=xstormy16_elf32_vec
1445 targ_defvec=xtensa_elf32_le_vec
1446 targ_selvecs=xtensa_elf32_be_vec
1450 targ_defvec=z80_coff_vec
1455 targ_defvec=z80_elf32_vec
1460 targ_defvec=z8k_coff_vec
1466 targ_defvec=loongarch_elf32_vec
1467 targ_selvecs="loongarch_elf32_vec"
1472 targ_defvec=loongarch_elf64_vec
1473 targ_selvecs="loongarch_elf32_vec loongarch_elf64_vec"
1479 targ_defvec=asxxxx_vec
1481 # END OF targmatch.h
1483 echo "*** Configuration $targ is not fully supported." >&2
1484 echo "*** Use bpf or bpf-*-none as the target instead." >&2
1489 echo 1>&2 "*** BFD does not support target ${targ}."
1490 echo 1>&2 "*** Look in bfd/config.bfd for supported targets."
1495 # All MIPS ELF targets need a 64-bit bfd_vma.
1496 case "${targ_defvec} ${targ_selvecs}" in
1502 case "${host64}${want64}" in
1504 targ_selvecs="${targ_selvecs} ${targ64_selvecs}"
1508 # If we support any ELF target, then automatically add support for the
1509 # generic ELF targets. This permits an objdump with some ELF support
1510 # to be used on an arbitrary ELF file for anything other than
1511 # relocation information.
1512 case "${targ_defvec} ${targ_selvecs}" in
1513 *elf64* | *mips_elf32_n*)
1514 targ_selvecs="${targ_selvecs} elf64_le_vec elf64_be_vec elf32_le_vec elf32_be_vec"
1517 targ_selvecs="${targ_selvecs} elf32_le_vec elf32_be_vec"
1521 # If we support Intel MCU target, then add support for bfd_iamcu_arch.
1522 case "${targ_defvec} ${targ_selvecs}" in
1524 targ_archs="$targ_archs bfd_iamcu_arch"
1528 # If we support Intel L1OM target, then add support for bfd_l1om_arch.
1529 case "${targ_defvec} ${targ_selvecs}" in
1531 targ_archs="$targ_archs bfd_l1om_arch"
1535 # If we support Intel K1OM target, then add support for bfd_k1om_arch.
1536 case "${targ_defvec} ${targ_selvecs}" in
1538 targ_archs="$targ_archs bfd_k1om_arch"