3 # Copyright (C) 2012-2016 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 sh5*-*-* | sh64*-*-* | \
59 if test "x$enable_obsolete" != xyes; then
60 echo "*** Configuration $targ is obsolete." >&2
61 echo "*** Specify --enable-obsolete to build it anyway." >&2
62 echo "*** Support will be REMOVED in the next major release of BINUTILS," >&2
63 echo "*** unless a maintainer comes forward." >&2
74 i[3-7]86*-*-rtemscoff* | \
82 powerpcle-*-rtems* | \
83 sparc*-*-rtemsaout* | \
87 echo "*** Configuration $targ is obsolete." >&2
88 echo "*** Support has been REMOVED." >&2
93 targ_cpu=`echo $targ | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
95 aarch64*) targ_archs="bfd_aarch64_arch bfd_arm_arch";;
96 alpha*) targ_archs=bfd_alpha_arch ;;
97 am34*|am33_2.0*) targ_archs=bfd_mn10300_arch ;;
98 arc*) targ_archs=bfd_arc_arch ;;
99 arm*) targ_archs=bfd_arm_arch ;;
100 bfin*) targ_archs=bfd_bfin_arch ;;
101 c30*) targ_archs=bfd_tic30_arch ;;
102 c4x*) targ_archs=bfd_tic4x_arch ;;
103 c54x*) targ_archs=bfd_tic54x_arch ;;
104 cr16*) targ_archs=bfd_cr16_arch ;;
105 crisv32) targ_archs=bfd_cris_arch ;;
106 crx*) targ_archs=bfd_crx_arch ;;
107 dlx*) targ_archs=bfd_dlx_arch ;;
108 fido*) targ_archs=bfd_m68k_arch ;;
109 hppa*) targ_archs=bfd_hppa_arch ;;
110 i[3-7]86) targ_archs=bfd_i386_arch ;;
111 i370) targ_archs=bfd_i370_arch ;;
112 lm32) targ_archs=bfd_lm32_arch ;;
113 m6811*|m68hc11*) targ_archs="bfd_m68hc11_arch bfd_m68hc12_arch bfd_m9s12x_arch bfd_m9s12xg_arch" ;;
114 m6812*|m68hc12*) targ_archs="bfd_m68hc12_arch bfd_m68hc11_arch bfd_m9s12x_arch bfd_m9s12xg_arch" ;;
115 m68*) targ_archs=bfd_m68k_arch ;;
116 m88*) targ_archs=bfd_m88k_arch ;;
117 microblaze*) targ_archs=bfd_microblaze_arch ;;
118 mips*) targ_archs=bfd_mips_arch ;;
119 nds32*) targ_archs=bfd_nds32_arch ;;
120 nios2*) targ_archs=bfd_nios2_arch ;;
121 or1k*|or1knd*) targ_archs=bfd_or1k_arch ;;
122 pdp11*) targ_archs=bfd_pdp11_arch ;;
123 pj*) targ_archs="bfd_pj_arch bfd_i386_arch";;
124 powerpc*) targ_archs="bfd_rs6000_arch bfd_powerpc_arch" ;;
125 rs6000) targ_archs="bfd_rs6000_arch bfd_powerpc_arch" ;;
126 s390*) targ_archs=bfd_s390_arch ;;
127 sh*) targ_archs=bfd_sh_arch ;;
128 sparc*) targ_archs=bfd_sparc_arch ;;
129 spu*) targ_archs=bfd_spu_arch ;;
130 tilegx*) targ_archs=bfd_tilegx_arch ;;
131 tilepro*) targ_archs=bfd_tilepro_arch ;;
132 v850*) targ_archs="bfd_v850_arch bfd_v850_rh850_arch" ;;
133 visium*) targ_archs=bfd_visium_arch ;;
134 x86_64*) targ_archs=bfd_i386_arch ;;
135 xtensa*) targ_archs=bfd_xtensa_arch ;;
136 xgate) targ_archs=bfd_xgate_arch ;;
137 z80|r800) targ_archs=bfd_z80_arch ;;
138 z8k*) targ_archs=bfd_z8k_arch ;;
139 *) targ_archs=bfd_${targ_cpu}_arch ;;
143 # WHEN ADDING ENTRIES TO THIS MATRIX:
144 # Make sure that the left side always has two dashes. Otherwise you
145 # can get spurious matches. Even for unambiguous cases, do this as a
146 # convention, else the table becomes a real mess to understand and maintain.
148 # Keep obsolete entries above the START comment, to keep them out of
153 echo "This target is obsolete and has been removed."
158 echo "This target is obsolete and has been removed."
163 echo "This target is obsolete and has been removed."
168 targ_defvec=plugin_vec
169 targ_selvecs="plugin_vec"
172 # START OF targmatch.h
175 targ_defvec=aarch64_mach_o_vec
176 targ_selvecs="arm_mach_o_vec mach_o_le_vec mach_o_be_vec mach_o_fat_vec"
177 targ_archs="$targ_archs bfd_i386_arch bfd_powerpc_arch bfd_rs6000_arch"
180 aarch64-*-elf | aarch64-*-rtems*)
181 targ_defvec=aarch64_elf64_le_vec
182 targ_selvecs="aarch64_elf64_be_vec aarch64_elf32_le_vec aarch64_elf32_be_vec arm_elf32_le_vec arm_elf32_be_vec"
186 targ_defvec=aarch64_elf64_be_vec
187 targ_selvecs="aarch64_elf64_le_vec aarch64_elf32_le_vec aarch64_elf32_be_vec arm_elf32_be_vec arm_elf32_le_vec"
191 targ_defvec=aarch64_elf64_le_vec
192 targ_selvecs="aarch64_elf64_be_vec arm_elf32_le_vec arm_elf32_be_vec"
196 targ_defvec=aarch64_elf64_le_cloudabi_vec
197 targ_selvecs=aarch64_elf64_be_cloudabi_vec
201 targ_defvec=aarch64_elf64_le_vec
202 targ_selvecs="aarch64_elf64_be_vec aarch64_elf32_le_vec aarch64_elf32_be_vec arm_elf32_le_vec arm_elf32_be_vec"
206 targ_defvec=aarch64_elf64_be_vec
207 targ_selvecs="aarch64_elf64_le_vec aarch64_elf32_le_vec aarch64_elf32_be_vec arm_elf32_be_vec arm_elf32_le_vec"
210 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
211 targ_defvec=alpha_elf64_fbsd_vec
212 targ_selvecs="alpha_elf64_vec alpha_ecoff_le_vec"
214 # FreeBSD <= 4.0 supports only the old nonstandard way of ABI labelling.
216 alpha*-*-freebsd3* | alpha*-*-freebsd4 | alpha*-*-freebsd4.0*)
217 targ_cflags=-DOLD_FREEBSD_ABI_LABEL ;;
220 alpha*-*-netbsd* | alpha*-*-openbsd*)
221 targ_defvec=alpha_elf64_vec
222 targ_selvecs=alpha_ecoff_le_vec
226 targ_defvec=alpha_ecoff_le_vec
227 targ_selvecs=alpha_nlm32_vec
230 alpha*-*-linux*ecoff*)
231 targ_defvec=alpha_ecoff_le_vec
232 targ_selvecs=alpha_elf64_vec
235 alpha*-*-linux-* | alpha*-*-elf*)
236 targ_defvec=alpha_elf64_vec
237 targ_selvecs=alpha_ecoff_le_vec
241 targ_defvec=alpha_vms_vec
242 targ_selvecs=alpha_vms_lib_txt_vec
246 targ_defvec=alpha_ecoff_le_vec
249 ia64*-*-freebsd* | ia64*-*-netbsd* | ia64*-*-linux-* | ia64*-*-elf* | ia64*-*-kfreebsd*-gnu)
250 targ_defvec=ia64_elf64_le_vec
251 targ_selvecs="ia64_elf64_be_vec ia64_pei_vec"
255 targ_defvec=ia64_elf32_hpux_be_vec
256 targ_selvecs="ia64_elf64_hpux_be_vec"
260 targ_defvec=ia64_elf64_vms_vec
261 targ_selvecs=alpha_vms_lib_txt_vec
264 sparc64-*-freebsd* | sparc64-*-kfreebsd*-gnu)
265 targ_defvec=sparc_elf64_fbsd_vec
266 targ_selvecs="sparc_elf64_vec sparc_elf32_vec sparc_aout_sunos_be_vec"
268 sparc64-*-netbsd* | sparc64-*-openbsd*)
269 targ_defvec=sparc_elf64_vec
270 targ_selvecs="sparc_elf32_vec sparc_aout_sunos_be_vec"
275 am34-*-linux* | am33_2.0-*-linux*)
276 targ_defvec=am33_elf32_linux_vec
279 arc*-*-elf* | arc*-*-linux-uclibc*)
280 targ_defvec=arc_elf32_le_vec
281 targ_selvecs=arc_elf32_be_vec
285 targ_defvec=arm_mach_o_vec
286 targ_selvecs="mach_o_le_vec mach_o_be_vec mach_o_fat_vec"
287 targ_archs="$targ_archs bfd_i386_arch bfd_powerpc_arch bfd_rs6000_arch"
290 targ_defvec=arm_elf32_nacl_le_vec
291 targ_selvecs="arm_elf32_nacl_be_vec i386_elf32_nacl_vec"
292 targ64_selvecs="x86_64_elf32_nacl_vec x86_64_elf64_nacl_vec"
293 targ_archs="$targ_archs bfd_i386_arch"
296 targ_defvec=arm_elf32_nacl_be_vec
297 targ_selvecs="arm_elf32_nacl_le_vec i386_elf32_nacl_vec"
298 targ64_selvecs="x86_64_elf32_nacl_vec x86_64_elf64_nacl_vec"
299 targ_archs="$targ_archs bfd_i386_arch"
302 targ_defvec=arm_elf32_be_vec
303 targ_selvecs="arm_elf32_le_vec arm_aout_nbsd_vec"
306 targ_defvec=arm_elf32_le_vec
307 targ_selvecs="arm_elf32_be_vec arm_aout_nbsd_vec"
309 arm-*-netbsd* | arm-*-openbsd*)
310 targ_defvec=arm_aout_nbsd_vec
311 targ_selvecs="arm_elf32_le_vec arm_elf32_be_vec"
314 arm-*-nto* | nto*arm*)
315 targ_defvec=arm_elf32_le_vec
316 targ_selvecs=arm_elf32_be_vec
317 targ_cflags=-D__QNXTARGET__
320 targ_defvec=arm_aout_riscix_vec
323 targ_defvec=arm_pe_epoc_le_vec
324 targ_selvecs="arm_pe_epoc_le_vec arm_pe_epoc_be_vec arm_pei_epoc_le_vec arm_pei_epoc_be_vec"
326 targ_cflags=-DARM_COFF_BUGFIX
328 arm-wince-pe | arm-*-wince | arm*-*-mingw32ce* | arm*-*-cegcc*)
329 targ_defvec=arm_pe_wince_le_vec
330 targ_selvecs="arm_pe_wince_le_vec arm_pe_wince_be_vec arm_pei_wince_le_vec arm_pei_wince_be_vec"
332 targ_cflags="-DARM_WINCE -DARM_COFF_BUGFIX"
335 targ_defvec=arm_pe_le_vec
336 targ_selvecs="arm_pe_le_vec arm_pe_be_vec arm_pei_le_vec arm_pei_be_vec"
339 arm-*-aout | armel-*-aout)
340 targ_defvec=arm_aout_le_vec
341 targ_selvecs=arm_aout_be_vec
344 targ_defvec=arm_aout_be_vec
345 targ_selvecs=arm_aout_le_vec
348 targ_defvec=arm_coff_le_vec
349 targ_selvecs=arm_coff_be_vec
353 targ_defvec=arm_elf32_le_vec
354 targ_selvecs=arm_elf32_be_vec
356 armeb-*-elf | arm*b-*-freebsd* | arm*b-*-linux-* | armeb-*-eabi*)
357 targ_defvec=arm_elf32_be_vec
358 targ_selvecs=arm_elf32_le_vec
361 targ_defvec=arm_elf32_le_vec
362 targ_selvecs=arm_elf32_be_vec
364 arm-*-elf | arm*-*-freebsd* | arm*-*-linux-* | arm*-*-conix* | \
365 arm*-*-uclinux* | arm-*-kfreebsd*-gnu | \
367 targ_defvec=arm_elf32_le_vec
368 targ_selvecs=arm_elf32_be_vec
370 arm*-*-vxworks | arm*-*-windiss)
371 targ_defvec=arm_elf32_vxworks_le_vec
372 targ_selvecs=arm_elf32_vxworks_be_vec
375 targ_defvec=arm_elf32_symbian_le_vec
376 targ_selvecs=arm_elf32_symbian_be_vec
379 targ_defvec=arm_elf32_le_vec
380 targ_selvecs=arm_elf32_be_vec
384 targ_defvec=avr_elf32_vec
388 targ_defvec=bfin_elf32_vec
389 targ_selvecs=bfin_elf32_fdpic_vec
393 c30-*-*aout* | tic30-*-*aout*)
394 targ_defvec=tic30_aout_vec
396 c30-*-*coff* | tic30-*-*coff*)
397 targ_defvec=tic30_coff_vec
400 c4x-*-*coff* | tic4x-*-*coff* | tic4x-*-rtems*)
401 targ_defvec=tic4x_coff1_vec
402 targ_selvecs="tic4x_coff1_beh_vec tic4x_coff2_vec tic4x_coff2_beh_vec tic4x_coff0_vec tic4x_coff0_beh_vec"
406 c54x*-*-*coff* | tic54x-*-*coff*)
407 targ_defvec=tic54x_coff1_vec
408 targ_selvecs="tic54x_coff1_beh_vec tic54x_coff2_vec tic54x_coff2_beh_vec tic54x_coff0_vec tic54x_coff0_beh_vec"
412 cr16-*-elf* | cr16*-*-uclinux*)
413 targ_defvec=cr16_elf32_vec
418 targ_defvec=cr16c_elf32_vec
422 cris-*-* | crisv32-*-*)
423 targ_defvec=cris_aout_vec
424 targ_selvecs="cris_elf32_us_vec cris_elf32_vec ieee_vec"
425 targ_underscore=yes # Note: not true for cris_elf32_vec.
429 targ_defvec=crx_elf32_vec
434 targ_defvec=d10v_elf32_vec
438 targ_defvec=dlx_elf32_be_vec
439 targ_selvecs="dlx_elf32_be_vec"
443 targ_defvec=d30v_elf32_vec
447 targ_defvec=epiphany_elf32_vec
451 targ_defvec=m68k_elf32_vec
452 targ_selvecs="m68k_coff_vec ieee_vec"
456 targ_defvec=fr30_elf32_vec
460 targ_defvec=frv_elf32_vec
461 targ_selvecs=frv_elf32_fdpic_vec
465 targ_defvec=frv_elf32_fdpic_vec
466 targ_selvecs=frv_elf32_vec
469 moxie-*-elf | moxie-*-rtems* | moxie-*-uclinux)
470 targ_defvec=moxie_elf32_be_vec
471 targ_selvecs=moxie_elf32_le_vec
475 targ_defvec=moxie_elf32_le_vec
479 targ_defvec=h8300_coff_vec
483 h8300*-*-elf | h8300*-*-rtems*)
484 targ_defvec=h8300_elf32_vec
489 targ_defvec=h8300_elf32_linux_vec
493 targ_defvec=h8300_coff_vec
498 targ_defvec=h8500_coff_vec
504 targ_defvec=hppa_elf64_linux_vec
505 targ_selvecs=hppa_elf64_vec
509 targ_defvec=hppa_elf64_vec
510 targ_selvecs=hppa_elf64_linux_vec
511 targ_cflags=-DHPUX_LARGE_AR_IDS
517 targ_defvec=hppa_elf32_linux_vec
518 targ_selvecs=hppa_elf32_vec
521 targ_defvec=hppa_elf32_nbsd_vec
522 targ_selvecs="hppa_elf32_vec hppa_elf32_linux_vec"
524 hppa*-*-*elf* | hppa*-*-lites* | hppa*-*-sysv4* | hppa*-*-openbsd*)
525 targ_defvec=hppa_elf32_vec
526 targ_selvecs=hppa_elf32_linux_vec
530 targ_defvec=hppa_som_vec
531 targ_selvecs=hppa_elf32_vec
533 hppa*-*-hpux* | hppa*-*-hiux* | hppa*-*-mpeix*)
534 targ_defvec=hppa_som_vec
537 targ_defvec=hppa_som_vec
538 targ_selvecs=hppa_elf32_vec
542 targ_defvec=i370_elf32_vec
543 targ_selvecs="i370_elf32_vec"
546 i[3-7]86-*-sco3.2v5*coff)
547 targ_defvec=i386_coff_vec
548 targ_selvecs=i386_elf32_vec
550 i[3-7]86-*-sysv4* | i[3-7]86-*-unixware* | \
551 i[3-7]86-*-elf* | i[3-7]86-*-sco3.2v5* | \
552 i[3-7]86-*-dgux* | i[3-7]86-*-sysv5*)
553 targ_defvec=i386_elf32_vec
554 targ_selvecs="iamcu_elf32_vec i386_coff_vec"
556 i[3-7]86-*-solaris2*)
557 targ_defvec=i386_elf32_sol2_vec
558 targ_selvecs="iamcu_elf32_vec i386_coff_vec i386_pei_vec"
559 targ64_selvecs="x86_64_elf64_sol2_vec l1om_elf64_vec k1om_elf64_vec x86_64_pei_vec"
564 targ_defvec=i386_elf32_sol2_vec
565 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"
570 targ_defvec=i386_elf32_vec
571 targ_selvecs=i386_elf32_vec
574 targ_defvec=i386_elf32_vec
575 targ_selvecs="iamcu_elf32_vec i386_coff_vec"
578 targ_defvec=i386_elf32_vec
579 targ_selvecs=iamcu_elf32_vec
582 targ_defvec=i386_elf32_vec
583 targ_selvecs=iamcu_elf32_vec
586 targ_defvec=i386_elf32_vec
587 targ_selvecs=iamcu_elf32_vec
588 targ64_selvecs="x86_64_elf64_vec l1om_elf64_vec k1om_elf64_vec"
590 *-*-msdosdjgpp* | *-*-go32* )
591 targ_defvec=i386_coff_go32_vec
592 targ_selvecs="i386_coff_go32stubbed_vec i386_aout_vec"
594 i[3-7]86-*-sysv* | i[3-7]86-*-isc* | i[3-7]86-*-sco* | i[3-7]86-*-coff | \
596 targ_defvec=i386_coff_vec
599 targ_defvec=i386_elf32_vec
600 targ_selvecs="iamcu_elf32_vec i386_coff_vec i386_aout_vec"
602 i[3-7]86-*-darwin* | i[3-7]86-*-macos10* | i[3-7]86-*-rhapsody*)
603 targ_defvec=i386_mach_o_vec
604 targ_selvecs="mach_o_le_vec mach_o_be_vec mach_o_fat_vec pef_vec pef_xlib_vec sym_vec"
605 targ64_selvecs=x86_64_mach_o_vec
606 targ_archs="$targ_archs bfd_powerpc_arch bfd_rs6000_arch"
608 i[3-7]86-sequent-bsd*)
609 targ_defvec=i386_aout_dynix_vec
613 targ_defvec=i386_aout_bsd_vec
616 i[3-7]86-*-dragonfly*)
617 targ_defvec=i386_elf32_vec
618 targ_selvecs=iamcu_elf32_vec
619 targ64_selvecs="x86_64_elf64_vec l1om_elf64_vec k1om_elf64_vec"
621 i[3-7]86-*-freebsdaout* | i[3-7]86-*-freebsd[12].* | \
622 i[3-7]86-*-freebsd[12])
623 targ_defvec=i386_aout_fbsd_vec
624 targ_selvecs=i386_aout_bsd_vec
627 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
628 targ_defvec=i386_elf32_fbsd_vec
629 targ_selvecs="i386_elf32_vec iamcu_elf32_vec i386_pei_vec i386_coff_vec"
630 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"
631 # FreeBSD <= 4.0 supports only the old nonstandard way of ABI labelling.
633 i[3-7]86-*-freebsd3* | i[3-7]86-*-freebsd4 | i[3-7]86-*-freebsd4.0*)
634 targ_cflags=-DOLD_FREEBSD_ABI_LABEL ;;
637 i[3-7]86-*-netbsdelf* | i[3-7]86-*-netbsd*-gnu* | i[3-7]86-*-knetbsd*-gnu)
638 targ_defvec=i386_elf32_vec
639 targ_selvecs="i386_aout_nbsd_vec iamcu_elf32_vec"
640 targ64_selvecs="x86_64_elf64_vec l1om_elf64_vec k1om_elf64_vec"
642 i[3-7]86-*-netbsdpe*)
643 targ_defvec=i386_pe_vec
644 targ_selvecs="i386_pe_vec i386_pei_vec i386_elf32_vec iamcu_elf32_vec"
646 i[3-7]86-*-netbsdaout* | i[3-7]86-*-netbsd* | \
647 i[3-7]86-*-openbsd[0-2].* | i[3-7]86-*-openbsd3.[0-3])
648 targ_defvec=i386_aout_nbsd_vec
649 targ_selvecs="i386_elf32_vec iamcu_elf32_vec i386_aout_bsd_vec"
653 targ_defvec=i386_elf32_vec
654 targ_selvecs="iamcu_elf32_vec i386_aout_nbsd_vec"
657 targ_defvec=i386_elf32_vec
658 targ_selvecs="iamcu_elf32_vec i386_nlm32_vec i386_coff_vec i386_aout_vec"
660 i[3-7]86-*-linux*aout*)
661 targ_defvec=i386_aout_linux_vec
662 targ_selvecs="i386_elf32_vec iamcu_elf32_vec"
666 targ_defvec=i386_elf32_vec
667 targ_selvecs="iamcu_elf32_vec i386_aout_linux_vec i386_pei_vec"
668 targ64_selvecs="x86_64_elf64_vec x86_64_elf32_vec x86_64_pei_vec l1om_elf64_vec k1om_elf64_vec"
671 targ_defvec=i386_elf32_nacl_vec
672 targ_selvecs="arm_elf32_nacl_be_vec arm_elf32_nacl_le_vec"
673 targ64_selvecs="x86_64_elf64_nacl_vec x86_64_elf32_nacl_vec"
674 targ_archs="$targ_archs bfd_arm_arch"
678 targ_defvec=x86_64_elf64_cloudabi_vec
682 targ_defvec=x86_64_mach_o_vec
683 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"
684 targ_archs="$targ_archs bfd_powerpc_arch bfd_rs6000_arch"
688 targ_defvec=x86_64_elf64_vec
689 targ_selvecs="i386_elf32_vec iamcu_elf32_vec l1om_elf64_vec k1om_elf64_vec"
692 x86_64-*-elf* | x86_64-*-rtems*)
693 targ_defvec=x86_64_elf64_vec
694 targ_selvecs="i386_elf32_vec iamcu_elf32_vec x86_64_elf32_vec l1om_elf64_vec k1om_elf64_vec"
698 targ_defvec=x86_64_elf64_vec
699 targ_selvecs="i386_elf32_vec iamcu_elf32_vec l1om_elf64_vec k1om_elf64_vec"
702 x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
703 targ_defvec=x86_64_elf64_fbsd_vec
704 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"
707 x86_64-*-netbsd* | x86_64-*-openbsd*)
708 targ_defvec=x86_64_elf64_vec
709 targ_selvecs="i386_elf32_vec iamcu_elf32_vec i386_aout_nbsd_vec i386_coff_vec i386_pei_vec x86_64_pei_vec l1om_elf64_vec k1om_elf64_vec"
713 targ_defvec=x86_64_elf64_vec
714 targ_selvecs="i386_elf32_vec iamcu_elf32_vec x86_64_elf32_vec i386_aout_linux_vec i386_pei_vec x86_64_pei_vec l1om_elf64_vec k1om_elf64_vec"
718 targ_defvec=x86_64_elf32_nacl_vec
719 targ_selvecs="i386_elf32_nacl_vec x86_64_elf64_nacl_vec arm_elf32_nacl_be_vec arm_elf32_nacl_le_vec"
720 targ_archs="$targ_archs bfd_arm_arch"
723 x86_64-*-mingw* | x86_64-*-pe | x86_64-*-pep | x86_64-*-cygwin)
724 targ_defvec=x86_64_pe_vec
725 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"
730 targ_defvec=x86_64_elf64_vec
735 targ_defvec=i386_elf32_vec
736 targ_selvecs="iamcu_elf32_vec i386_coff_lynx_vec i386_aout_lynx_vec"
739 targ_defvec=i386_elf32_vec
740 targ_selvecs=iamcu_elf32_vec
742 i[3-7]86-*-mach* | i[3-7]86-*-osf1mk*)
743 targ_defvec=i386_aout_mach3_vec
744 targ_cflags=-DSTAT_FOR_EXEC
748 targ_defvec=i386_aout_os9k_vec
751 targ_defvec=i386_aout_vec
752 targ_selvecs=i386_msdos_vec
755 targ_defvec=i386_elf32_vec
756 targ_selvecs="iamcu_elf32_vec i386_msdos_vec i386_aout_vec"
759 targ_defvec=i386_pe_vec
760 targ_selvecs="i386_pe_vec i386_pei_vec"
762 i[3-7]86-*-beoself* | i[3-7]86-*-beos*)
763 targ_defvec=i386_elf32_vec
764 targ_selvecs="iamcu_elf32_vec i386_pe_vec i386_pei_vec"
767 targ_defvec=i386_pei_vec
768 targ_selvecs="i386_pe_vec"
769 # FIXME: This should eventually be checked at runtime.
770 targ_cflags=-DSTRICT_PE_FORMAT
773 targ_defvec=i386_elf32_vec
774 targ_selvecs="iamcu_elf32_vec i386_coff_vec"
776 i[3-7]86-*-mingw32* | i[3-7]86-*-cygwin* | i[3-7]86-*-winnt | i[3-7]86-*-pe)
777 targ_defvec=i386_pe_vec
778 targ_selvecs="i386_pe_vec i386_pei_vec i386_elf32_vec iamcu_elf32_vec"
782 targ_defvec=i386_coff_vec
784 i[3-7]86-*-aout* | i[3-7]86*-*-vsta*)
785 targ_defvec=i386_aout_vec
788 targ_defvec=i386_elf32_vxworks_vec
792 targ_defvec=i386_elf32_vec
793 targ_selfvecs="iamcu_elf32_vec i386chaos_vec"
796 i860-*-mach3* | i860-*-osf1* | i860-*-coff*)
797 targ_defvec=i860_coff_vec
799 i860-stardent-sysv4* | i860-stardent-elf*)
800 targ_defvec=i860_elf32_le_vec
801 targ_selvecs="i860_elf32_vec i860_elf32_le_vec"
803 i860-*-sysv4* | i860-*-elf*)
804 targ_defvec=i860_elf32_vec
807 i960-*-vxworks4* | i960-*-vxworks5.0)
808 targ_defvec=bout_le_vec
809 targ_selvecs="bout_be_vec icoff_le_vec icoff_be_vec ieee_vec"
812 i960-*-vxworks5.* | i960-*-coff* | i960-*-sysv*)
813 targ_defvec=icoff_le_vec
814 targ_selvecs="icoff_be_vec bout_le_vec bout_be_vec ieee_vec"
817 i960-*-vxworks* | i960-*-aout* | i960-*-bout* | i960-*-nindy*)
818 targ_defvec=bout_le_vec
819 targ_selvecs="bout_be_vec icoff_le_vec icoff_be_vec ieee_vec"
823 targ_defvec=i960_elf32_vec
824 targ_selvecs="icoff_le_vec icoff_be_vec"
828 targ_defvec=ip2k_elf32_vec
832 targ_defvec=iq2000_elf32_vec
835 lm32-*-elf | lm32-*-rtems*)
836 targ_defvec=lm32_elf32_vec
837 targ_selvecs=lm32_elf32_fdpic_vec
841 targ_defvec=lm32_elf32_fdpic_vec
842 targ_selvecs=lm32_elf32_vec
845 m32c-*-elf | m32c-*-rtems*)
846 targ_defvec=m32c_elf32_vec
850 targ_defvec=m32r_elf32_linux_le_vec
851 targ_selvecs="m32r_elf32_linux_vec m32r_elf32_linux_le_vec"
854 targ_defvec=m32r_elf32_linux_vec
855 targ_selvecs="m32r_elf32_linux_vec m32r_elf32_linux_le_vec"
858 targ_defvec=m32r_elf32_le_vec
859 targ_selvecs="m32r_elf32_vec m32r_elf32_le_vec"
862 targ_defvec=m32r_elf32_vec
865 m68hc11-*-* | m6811-*-*)
866 targ_defvec=m68hc11_elf32_vec
867 targ_selvecs="m68hc11_elf32_vec m68hc12_elf32_vec"
869 m68hc12-*-* | m6812-*-*)
870 targ_defvec=m68hc12_elf32_vec
871 targ_selvecs="m68hc11_elf32_vec m68hc12_elf32_vec"
875 targ_defvec=m68k_coff_sysv_vec
878 targ_defvec=m68k_aout_hp300bsd_vec
882 targ_defvec=aout0_be_vec
883 # We include core_cisco_be_vec here, rather than making a separate cisco
884 # configuration, so that cisco-core.c gets routinely tested at
885 # least for compilation.
886 targ_selvecs="core_cisco_be_vec ieee_vec"
889 m68*-*-elf* | m68*-*-sysv4* | m68*-*-uclinux*)
890 targ_defvec=m68k_elf32_vec
891 targ_selvecs="m68k_coff_vec ieee_vec"
894 targ_defvec=m68k_elf32_vec
895 targ_selvecs="m68k_coff_vec m68k_versados_vec ieee_vec aout0_be_vec"
897 m68*-*-coff* | m68*-*-sysv*)
898 targ_defvec=m68k_coff_vec
899 targ_selvecs="m68k_coff_vec m68k_versados_vec ieee_vec"
902 targ_defvec=m68k_aout_hp300hpux_vec
906 targ_defvec=m68k_aout_linux_vec
907 targ_selvecs=m68k_elf32_vec
911 targ_defvec=m68k_elf32_vec
912 targ_selvecs=m68k_aout_linux_vec
915 targ_defvec=m68k_elf32_vec
916 # targ_selvecs=m68kmach3_vec
917 # targ_cflags=-DSTAT_FOR_EXEC
920 targ_defvec=m68k_aout_4knbsd_vec
921 targ_selvecs="m68k_aout_nbsd_vec m68k_aout_hp300bsd_vec sparc_aout_sunos_be_vec"
925 targ_defvec=m68k_elf32_vec
926 targ_selvecs="m68k_aout_nbsd_vec m68k_aout_4knbsd_vec m68k_aout_hp300bsd_vec sparc_aout_sunos_be_vec"
928 m68*-*-netbsdaout* | m68*-*-netbsd*)
929 targ_defvec=m68k_aout_nbsd_vec
930 targ_selvecs="m68k_aout_4knbsd_vec m68k_elf32_vec m68k_aout_hp300bsd_vec sparc_aout_sunos_be_vec"
934 targ_defvec=m68k_aout_nbsd_vec
935 targ_selvecs="m68k_aout_4knbsd_vec m68k_aout_hp300bsd_vec sparc_aout_sunos_be_vec"
938 m68*-*-sunos* | m68*-*-os68k* | m68*-*-vxworks* | m68*-netx-* | \
939 m68*-*-bsd* | m68*-*-vsta*)
940 targ_defvec=sparc_aout_sunos_be_vec
944 targ_defvec=sparc_aout_sunos_be_vec
945 targ_selvecs="m68k_coff_vec m68k_versados_vec tekhex_vec"
949 targ_defvec=m68k_elf32_vec
950 targ_selvecs=m68k_coff_vec
953 targ_defvec=m68k_elf32_vec
954 targ_selvecs=ieee_vec
958 m88*-harris-cxux* | m88*-*-dgux* | m88*-*-sysv4*)
959 targ_defvec=m88k_elf32_vec
960 targ_selvecs=m88k_coff_bcs_vec
963 targ_defvec=m88k_aout_mach3_vec
964 targ_cflags=-DSTAT_FOR_EXEC
967 targ_defvec=m88k_aout_obsd_vec
971 targ_defvec=m88k_coff_bcs_vec
976 targ_defvec=mcore_elf32_be_vec
977 targ_selvecs="mcore_elf32_be_vec mcore_elf32_le_vec"
980 targ_defvec=mcore_pe_be_vec
981 targ_selvecs="mcore_pe_be_vec mcore_pe_le_vec mcore_pei_be_vec mcore_pei_le_vec"
985 targ_defvec=mep_elf32_vec
986 targ_selvecs=mep_elf32_le_vec
990 targ_defvec=metag_elf32_vec
995 targ_defvec=microblaze_elf32_le_vec
996 targ_selvecs=microblaze_elf32_vec
1000 targ_defvec=microblaze_elf32_vec
1001 targ_selvecs=microblaze_elf32_le_vec
1005 targ_defvec=mips_ecoff_be_vec
1006 targ_selvecs=mips_ecoff_le_vec
1010 targ_defvec=mips_elf32_trad_le_vec
1011 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"
1014 targ_defvec=mips_elf32_trad_be_vec
1015 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"
1018 mips*-dec-* | mips*el-*-ecoff*)
1019 targ_defvec=mips_ecoff_le_vec
1020 targ_selvecs=mips_ecoff_be_vec
1023 targ_defvec=mips_ecoff_be_vec
1024 targ_selvecs=mips_ecoff_le_vec
1028 targ_defvec=mips_elf32_n_be_vec
1029 targ_selvecs="mips_elf32_n_le_vec mips_elf32_be_vec mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec"
1032 targ_defvec=mips_elf32_n_le_vec
1033 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"
1036 targ_defvec=mips_elf32_le_vec
1037 targ_selvecs="mips_elf32_be_vec mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec"
1040 targ_defvec=mips_elf32_be_vec
1041 targ_selvecs="mips_elf32_le_vec mips_ecoff_be_vec mips_ecoff_le_vec"
1044 mips*-sgi-* | mips*-*-bsd*)
1045 targ_defvec=mips_ecoff_be_vec
1046 targ_selvecs=mips_ecoff_le_vec
1049 targ_defvec=mips_ecoff_bele_vec
1050 targ_selvecs="mips_ecoff_le_vec mips_ecoff_be_vec"
1054 targ_defvec=mips_elf32_trad_be_vec
1055 targ_selvecs="mips_elf32_trad_le_vec mips_ecoff_be_vec mips_ecoff_le_vec"
1058 mips*-*-sysv* | mips*-*-riscos*)
1059 targ_defvec=mips_ecoff_be_vec
1060 targ_selvecs=mips_ecoff_le_vec
1064 targ_defvec=mips_elf32_vxworks_le_vec
1065 targ_selvecs="mips_elf32_le_vec mips_elf32_vxworks_be_vec mips_elf32_be_vec mips_elf64_be_vec mips_elf64_le_vec"
1068 targ_defvec=mips_elf32_vxworks_be_vec
1069 targ_selvecs="mips_elf32_be_vec mips_elf32_vxworks_le_vec mips_elf32_be_vec mips_elf64_be_vec mips_elf64_le_vec"
1072 targ_defvec=mips_elf32_trad_le_vec
1073 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"
1075 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
1076 targ_defvec=mips_elf32_trad_be_vec
1077 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"
1079 mips*el-*-elf* | mips*el-*-vxworks* | mips*-*-chorus*)
1080 targ_defvec=mips_elf32_le_vec
1081 targ_selvecs="mips_elf32_be_vec mips_elf64_be_vec mips_elf64_le_vec"
1083 mips*-*-elf* | mips*-*-rtems* | mips*-*-vxworks | mips*-*-windiss)
1084 targ_defvec=mips_elf32_be_vec
1085 targ_selvecs="mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec"
1088 targ_defvec=mips_elf32_be_vec
1089 targ_selvecs="mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec"
1092 targ_defvec=mips_elf64_trad_be_vec
1093 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"
1096 targ_defvec=mips_elf32_le_vec
1097 targ_selvecs="mips_elf32_be_vec mips_elf64_be_vec mips_elf64_le_vec mips_ecoff_le_vec mips_ecoff_be_vec"
1100 targ_defvec=mips_elf32_be_vec
1101 targ_selvecs="mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec mips_ecoff_be_vec mips_ecoff_le_vec"
1104 targ_defvec=mips_elf32_ntrad_le_vec
1105 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"
1108 targ_defvec=mips_elf32_ntrad_be_vec
1109 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"
1112 targ_defvec=mips_elf32_trad_le_vec
1113 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"
1116 targ_defvec=mips_elf32_trad_be_vec
1117 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"
1119 mips64*el-*-freebsd* | mips64*el-*-kfreebsd*-gnu)
1121 targ_defvec=mips_elf32_ntradfbsd_le_vec
1122 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"
1124 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"
1126 mips64*-*-freebsd* | mips64*-*-kfreebsd*-gnu)
1128 targ_defvec=mips_elf32_ntradfbsd_be_vec
1129 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"
1131 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"
1133 mips*el-*-freebsd* | mips*el-*-kfreebsd*-gnu)
1135 targ_defvec=mips_elf32_tradfbsd_le_vec
1136 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"
1138 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"
1140 mips*-*-freebsd* | mips*-*-kfreebsd*-gnu)
1142 targ_defvec=mips_elf32_tradfbsd_be_vec
1143 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"
1145 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"
1148 targ_defvec=mmix_elf64_vec
1149 targ_selvecs=mmix_mmo_vec
1154 targ_defvec=mn10200_elf32_vec
1158 targ_defvec=mn10300_elf32_vec
1163 targ_defvec=mt_elf32_vec
1167 targ_defvec=msp430_elf32_vec
1168 targ_selvecs=msp430_elf32_ti_vec
1172 targ_defvec=nds32_elf32_linux_le_vec
1173 targ_selvecs=nds32_elf32_linux_be_vec
1177 targ_defvec=nds32_elf32_linux_be_vec
1178 targ_selvecs=nds32_elf32_linux_le_vec
1182 targ_defvec=nds32_elf32_le_vec
1183 targ_selvecs=nds32_elf32_be_vec
1187 targ_defvec=nds32_elf32_be_vec
1188 targ_selvecs=nds32_elf32_le_vec
1191 ns32k-pc532-mach* | ns32k-pc532-ux*)
1192 targ_defvec=ns32k_aout_pc532mach_vec
1195 ns32k-*-netbsd* | ns32k-*-lites* | ns32k-*-openbsd*)
1196 targ_defvec=ns32k_aout_pc532nbsd_vec
1201 targ_defvec=nios2_elf32_be_vec
1202 targ_selvecs=nios2_elf32_le_vec
1206 targ_defvec=nios2_elf32_le_vec
1207 targ_selvecs=nios2_elf32_be_vec
1211 targ_defvec=nios2_elf32_le_vec
1212 targ_selvecs=nios2_elf32_be_vec
1215 or1k-*-elf | or1k-*-linux* | or1k-*-rtems*)
1216 targ_defvec=or1k_elf32_vec
1219 or1knd-*-elf | or1knd-*-linux* | or1knd-*-rtems*)
1220 targ_defvec=or1k_elf32_vec
1224 targ_defvec=pdp11_aout_vec
1229 targ_defvec=pj_elf32_vec
1230 targ_selvecs="pj_elf32_vec pj_elf32_le_vec"
1234 targ_defvec=pj_elf32_le_vec
1235 targ_selvecs="pj_elf32_le_vec pj_elf32_vec i386_elf32_vec iamcu_elf32_vec"
1238 powerpc-*-aix5.[01] | rs6000-*-aix5.[01])
1239 targ_defvec=rs6000_xcoff_vec
1240 targ_selvecs="rs6000_xcoff64_aix_vec"
1244 powerpc64-*-aix5.[01] | rs6000-*-aix5.[01])
1245 targ_defvec=rs6000_xcoff64_aix_vec
1246 targ_selvecs="rs6000_xcoff_vec"
1250 powerpc-*-aix[5-9]* | rs6000-*-aix[5-9]*)
1251 targ_cflags=-DAIX_WEAK_SUPPORT
1252 targ_defvec=rs6000_xcoff_vec
1253 targ_selvecs="rs6000_xcoff64_aix_vec"
1257 powerpc64-*-aix[5-9]* | rs6000-*-aix[5-9]*)
1258 targ_cflags=-DAIX_WEAK_SUPPORT
1259 targ_defvec=rs6000_xcoff64_aix_vec
1260 targ_selvecs="rs6000_xcoff_vec"
1265 powerpc-*-aix* | powerpc-*-beos* | rs6000-*-*)
1266 targ_defvec=rs6000_xcoff_vec
1267 targ64_selvecs=rs6000_xcoff64_vec
1269 *-*-aix4.[3456789]* | *-*-aix[56789]*)
1272 targ_cflags=-DSMALL_ARCHIVE;;
1277 targ_defvec=rs6000_xcoff64_vec
1278 targ_selvecs=rs6000_xcoff_vec
1281 powerpc64-*-freebsd*)
1282 targ_defvec=powerpc_elf64_fbsd_vec
1283 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"
1286 powerpc64-*-elf* | powerpc-*-elf64* | powerpc64-*-linux* | \
1288 targ_defvec=powerpc_elf64_vec
1289 targ_selvecs="powerpc_elf64_le_vec powerpc_elf32_vec powerpc_elf32_le_vec rs6000_xcoff_vec rs6000_xcoff64_vec rs6000_xcoff64_aix_vec"
1292 powerpc64le-*-elf* | powerpcle-*-elf64* | powerpc64le-*-linux* | \
1293 powerpc64le-*-*bsd*)
1294 targ_defvec=powerpc_elf64_le_vec
1295 targ_selvecs="powerpc_elf64_vec powerpc_elf32_le_vec powerpc_elf32_vec rs6000_xcoff_vec rs6000_xcoff64_vec rs6000_xcoff64_aix_vec"
1299 powerpc-*-*freebsd*)
1300 targ_defvec=powerpc_elf32_fbsd_vec
1301 targ_selvecs="rs6000_xcoff_vec powerpc_elf32_vec powerpc_elf32_le_vec powerpc_boot_vec"
1302 targ64_selvecs="powerpc_elf64_vec powerpc_elf64_le_vec powerpc_elf64_fbsd_vec"
1304 powerpc-*-*bsd* | powerpc-*-elf* | powerpc-*-sysv4* | powerpc-*-eabi* | \
1305 powerpc-*-solaris2* | powerpc-*-linux-* | powerpc-*-rtems* | \
1307 targ_defvec=powerpc_elf32_vec
1308 targ_selvecs="rs6000_xcoff_vec powerpc_elf32_le_vec powerpc_boot_vec"
1309 targ64_selvecs="powerpc_elf64_vec powerpc_elf64_le_vec"
1312 targ_defvec=powerpc_elf32_vec
1313 targ_selvecs="powerpc_elf32_le_vec powerpc_boot_vec"
1314 targ64_selvecs="powerpc_elf64_vec powerpc_elf64_le_vec"
1316 powerpc-*-darwin* | powerpc-*-macos10* | powerpc-*-rhapsody*)
1317 targ_defvec=mach_o_be_vec
1318 targ_selvecs="mach_o_be_vec mach_o_le_vec mach_o_fat_vec pef_vec pef_xlib_vec sym_vec"
1319 targ_archs="$targ_archs bfd_i386_arch"
1322 targ_defvec=powerpc_xcoff_vec
1325 targ_defvec=powerpc_elf32_vec
1326 targ_selvecs="rs6000_xcoff_vec"
1327 targ_cflags=-DSMALL_ARCHIVE
1330 targ_defvec=powerpc_elf32_vec
1331 targ_selvecs="powerpc_nlm32_vec rs6000_xcoff_vec"
1334 targ_defvec=powerpc_elf32_vec
1335 targ_selvecs="rs6000_xcoff_vec powerpc_elf32_le_vec powerpc_boot_vec"
1337 powerpc-*-vxworks* | powerpc-*-windiss*)
1338 targ_defvec=powerpc_elf32_vxworks_vec
1339 targ_selvecs="rs6000_xcoff_vec powerpc_elf32_vec powerpc_elf32_le_vec powerpc_boot_vec"
1340 targ64_selvecs="powerpc_elf64_vec powerpc_elf64_le_vec"
1343 targ_defvec=powerpc_elf32_le_vec
1344 targ_selvecs="rs6000_xcoff_vec powerpc_elf32_vec powerpc_boot_vec"
1346 powerpcle-*-elf* | powerpcle-*-sysv4* | powerpcle-*-eabi* | \
1347 powerpcle-*-solaris2* | powerpcle-*-linux-* | powerpcle-*-vxworks*)
1348 targ_defvec=powerpc_elf32_le_vec
1349 targ_selvecs="rs6000_xcoff_vec powerpc_elf32_vec powerpc_boot_vec"
1350 targ64_selvecs="powerpc_elf64_vec powerpc_elf64_le_vec"
1352 powerpcle-*-pe | powerpcle-*-winnt* | powerpcle-*-cygwin*)
1353 targ_defvec=powerpc_pe_le_vec
1354 targ_selvecs="powerpc_pei_le_vec powerpc_pei_vec powerpc_pe_le_vec powerpc_pe_vec"
1358 targ_defvec=rl78_elf32_vec
1362 targ_defvec=rx_elf32_le_vec
1363 targ_selvecs="rx_elf32_be_vec rx_elf32_le_vec rx_elf32_be_ns_vec"
1367 targ_defvec=s390_elf32_vec
1368 targ64_selvecs=s390_elf64_vec
1373 targ_defvec=s390_elf64_vec
1374 targ_selvecs=s390_elf32_vec
1378 targ_defvec=s390_elf64_vec
1383 targ_defvec=score_elf32_be_vec
1384 targ_selvecs=score_elf32_le_vec
1388 targ_defvec=sh64_elf32_le_vec
1389 targ_selvecs="sh64_elf32_vec sh64_elf64_le_vec sh64_elf64_vec sh_elf32_le_vec sh_elf32_vec"
1394 targ_defvec=sh64_elf32_vec
1395 targ_selvecs="sh64_elf32_le_vec sh64_elf64_vec sh64_elf64_le_vec sh_elf32_vec sh_elf32_le_vec"
1400 targ_defvec=sh64_elf32_linux_be_vec
1401 targ_selvecs="sh64_elf32_linux_vec sh64_elf64_linux_be_vec sh64_elf64_linux_vec sh_elf32_linux_be_vec sh_elf32_linux_vec"
1405 targ_defvec=sh64_elf32_linux_vec
1406 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"
1410 targ_defvec=sh_elf32_linux_be_vec
1411 targ_selvecs="sh_elf32_linux_vec sh64_elf32_linux_vec sh64_elf32_linux_be_vec sh64_elf64_linux_vec sh64_elf64_linux_be_vec"
1412 targ_selvecs="${targ_selvecs} sh_elf32_fdpic_le_vec sh_elf32_fdpic_be_vec"
1418 targ_defvec=sh_elf32_linux_be_vec
1419 targ_selvecs=sh_elf32_linux_vec
1420 targ_selvecs="${targ_selvecs} sh_elf32_fdpic_le_vec sh_elf32_fdpic_be_vec"
1423 targ_defvec=sh_elf32_linux_vec
1424 targ_selvecs=sh_elf32_linux_be_vec
1425 targ_selvecs="${targ_selvecs} sh_elf32_fdpic_le_vec sh_elf32_fdpic_be_vec"
1428 sh-*-uclinux* | sh[12]-*-uclinux*)
1429 targ_defvec=sh_elf32_vec
1430 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"
1432 targ_selvecs="${targ_selvecs} sh64_elf32_linux_vec sh64_elf32_linux_be_vec sh64_elf64_linux_vec sh64_elf64_linux_be_vec"
1438 targ_defvec=sh64_elf32_nbsd_le_vec
1439 targ_selvecs="sh64_elf32_nbsd_vec sh64_elf64_nbsd_le_vec sh64_elf64_nbsd_vec sh_elf32_nbsd_vec sh_elf32_nbsd_le_vec"
1443 targ_defvec=sh64_elf32_nbsd_vec
1444 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"
1449 targ_defvec=sh64_elf64_nbsd_le_vec
1450 targ_selvecs="sh64_elf64_nbsd_vec sh64_elf32_nbsd_le_vec sh64_elf32_nbsd_vec sh_elf32_nbsd_vec sh_elf32_nbsd_le_vec"
1454 targ_defvec=sh64_elf64_nbsd_vec
1455 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"
1460 targ_defvec=sh_elf32_nbsd_le_vec
1461 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"
1465 targ_defvec=sh_elf32_nbsd_vec
1466 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"
1472 targ_defvec=sh_elf32_nbsd_vec
1473 targ_selvecs="sh_elf32_nbsd_le_vec sh_coff_vec sh_coff_le_vec"
1476 targ_defvec=sh_elf32_symbian_le_vec
1477 targ_selvecs="sh_coff_le_vec sh_coff_small_le_vec"
1482 shl*-*-elf* | sh[1234]l*-*-elf* | sh3el*-*-elf* | shl*-*-kaos*)
1483 targ_defvec=sh_elf32_le_vec
1484 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"
1491 targ_defvec=sh_coff_vec
1492 targ_selvecs="sh_coff_vec sh_coff_le_vec sh_coff_small_vec sh_coff_small_le_vec"
1497 sh-*-elf* | sh[1234]*-elf* | sh-*-rtems* | sh-*-kaos*)
1498 targ_defvec=sh_elf32_vec
1499 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"
1506 targ_defvec=sh_elf32_vec
1507 targ_selvecs="sh_elf32_le_vec sh_coff_vec sh_coff_le_vec sh_coff_small_vec sh_coff_small_le_vec"
1511 targ_defvec=sh_elf32_nbsd_le_vec
1512 targ_selvecs="sh_elf32_nbsd_vec sh_coff_vec sh_coff_le_vec"
1515 targ_defvec=sh_pe_le_vec
1516 targ_selvecs="sh_pe_le_vec sh_pei_le_vec"
1520 targ_defvec=sh_elf32_vxworks_vec
1521 targ_selvecs="sh_elf32_vxworks_le_vec"
1522 # FIXME None of the following are actually used on this target, but
1523 # they're necessary for coff-sh.c (which is unconditionally used) to be
1524 # compiled correctly.
1525 targ_selvecs="$targ_selvecs sh_coff_vec sh_coff_le_vec sh_coff_small_vec sh_coff_small_le_vec"
1529 targ_defvec=sh_coff_vec
1530 targ_selvecs="sh_coff_vec sh_coff_le_vec sh_coff_small_vec sh_coff_small_le_vec"
1535 targ_defvec=sparc_aout_sunos_be_vec
1536 targ_selvecs=sparc_aout_le_vec
1540 targ_defvec=sparc_aout_sunos_be_vec
1543 sparclite-*-elf* | sparc86x-*-elf*)
1544 targ_defvec=sparc_elf32_vec
1547 targ_defvec=sparc_elf32_vec
1549 sparc-*-linux*aout*)
1550 targ_defvec=sparc_aout_linux_vec
1551 targ_selvecs="sparc_elf32_vec sparc_aout_sunos_be_vec"
1554 sparc-*-linux-* | sparcv*-*-linux-*)
1555 targ_defvec=sparc_elf32_vec
1556 targ_selvecs="sparc_aout_linux_vec sparc_elf64_vec sparc_aout_sunos_be_vec"
1559 targ_defvec=sparc_elf32_vec
1560 targ_selvecs=sparc_aout_nbsd_vec
1562 sparc-*-netbsdaout* | sparc-*-netbsd*)
1563 targ_defvec=sparc_aout_nbsd_vec
1564 targ_selvecs=sparc_elf32_vec
1567 sparc-*-openbsd[0-2].* | sparc-*-openbsd3.[0-1])
1568 targ_defvec=sparc_aout_nbsd_vec
1572 targ_defvec=sparc_elf32_vec
1573 targ_selvecs=sparc_aout_nbsd_vec
1576 targ_defvec=sparc_elf32_vec
1577 targ_selvecs=sparc_aout_sunos_be_vec
1579 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
1580 targ_defvec=sparc_elf32_sol2_vec
1581 targ_selvecs=sparc_aout_sunos_be_vec
1584 sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*)
1585 targ_defvec=sparc_elf32_sol2_vec
1586 targ_selvecs="sparc_elf64_sol2_vec sparc_aout_sunos_be_vec"
1591 targ_defvec=sparc_elf32_vec
1594 targ_defvec=sparc_elf32_vxworks_vec
1595 targ_selvecs="sparc_elf32_vec sparc_aout_sunos_be_vec"
1598 targ_defvec=sparc_elf32_vec
1599 targ_selvecs="sparc_nlm32_vec sparc_aout_sunos_be_vec"
1603 targ_defvec=sparc_aout_sunos_be_vec
1608 targ_defvec=sparc_elf64_vec
1609 targ_selvecs="sparc_elf32_vec sparc_aout_linux_vec sparc_aout_sunos_be_vec"
1612 sparc64-*-elf* | sparc64-*-rtems* )
1613 targ_defvec=sparc_elf64_vec
1614 targ_selvecs=sparc_elf32_vec
1619 targ_defvec=sparc_coff_vec
1622 targ_defvec=sparc_elf32_vec
1623 targ_selvecs="sparc_aout_sunos_be_vec sparc_coff_vec"
1626 targ_defvec=sparc_aout_sunos_be_vec
1631 targ_defvec=spu_elf32_vec
1637 targ_defvec=aout_vec
1643 targ_defvec=tic6x_elf32_c6000_le_vec
1644 targ_selvecs="tic6x_elf32_c6000_be_vec tic6x_elf32_le_vec tic6x_elf32_be_vec"
1648 targ_defvec=tic6x_elf32_linux_le_vec
1649 targ_selvecs="tic6x_elf32_linux_be_vec tic6x_elf32_le_vec tic6x_elf32_be_vec"
1653 targ_defvec=tic80_coff_vec
1659 targ_defvec=tilegx_elf64_le_vec
1660 targ_selvecs="tilegx_elf64_be_vec tilegx_elf32_be_vec tilegx_elf32_le_vec"
1663 targ_defvec=tilegx_elf64_be_vec
1664 targ_selvecs="tilegx_elf64_le_vec tilegx_elf32_be_vec tilegx_elf32_le_vec"
1669 targ_defvec=tilepro_elf32_vec
1673 targ_defvec=ft32_elf32_vec
1677 targ_defvec=v850_elf32_vec
1678 targ_selvecs="v800_elf32_vec"
1682 targ_defvec=vax_elf32_vec
1683 targ_selvecs="vax_aout_nbsd_vec vax_aout_1knbsd_vec"
1686 vax-*-netbsdaout* | vax-*-netbsd*)
1687 targ_defvec=vax_aout_nbsd_vec
1688 targ_selvecs="vax_elf32_vec vax_aout_1knbsd_vec"
1692 vax-*-bsd* | vax-*-ultrix*)
1693 targ_defvec=vax_aout_bsd_vec
1698 targ_defvec=vax_aout_nbsd_vec
1703 targ_defvec=vax_elf32_vec
1707 targ_defvec=visium_elf32_vec
1711 targ_defvec=we32k_coff_vec
1715 targ_defvec=w65_coff_vec
1719 targ_defvec=xgate_elf32_vec
1720 targ_selvecs="xgate_elf32_vec"
1724 targ_defvec=xstormy16_elf32_vec
1728 targ_defvec=xtensa_elf32_le_vec
1729 targ_selvecs=xtensa_elf32_be_vec
1732 targ_defvec=xc16x_elf32_vec
1736 targ_defvec=z80_coff_vec
1741 targ_defvec=z8k_coff_vec
1746 targ_defvec=ieee_vec
1750 targ_defvec=aout_adobe_vec
1755 targ_defvec=m68k_aout_newsos3_vec
1760 targ_defvec=m68k_coff_vec
1761 targ_selvecs=ieee_vec
1763 # END OF targmatch.h
1765 echo 1>&2 "*** BFD does not support target ${targ}."
1766 echo 1>&2 "*** Look in bfd/config.bfd for supported targets."
1771 # All MIPS ELF targets need a 64-bit bfd_vma.
1772 case "${targ_defvec} ${targ_selvecs}" in
1778 case "${host64}${want64}" in
1780 targ_selvecs="${targ_selvecs} ${targ64_selvecs}"
1784 # If we support any ELF target, then automatically add support for the
1785 # generic ELF targets. This permits an objdump with some ELF support
1786 # to be used on an arbitrary ELF file for anything other than
1787 # relocation information.
1788 case "${targ_defvec} ${targ_selvecs}" in
1789 *elf64* | *mips_elf32_n*)
1790 targ_selvecs="${targ_selvecs} elf64_le_vec elf64_be_vec elf32_le_vec elf32_be_vec"
1793 targ_selvecs="${targ_selvecs} elf32_le_vec elf32_be_vec"
1797 # If we support Intel MCU target, then add support for bfd_iamcu_arch.
1798 case "${targ_defvec} ${targ_selvecs}" in
1800 targ_archs="$targ_archs bfd_iamcu_arch"
1804 # If we support Intel L1OM target, then add support for bfd_l1om_arch.
1805 case "${targ_defvec} ${targ_selvecs}" in
1807 targ_archs="$targ_archs bfd_l1om_arch"
1811 # If we support Intel K1OM target, then add support for bfd_k1om_arch.
1812 case "${targ_defvec} ${targ_selvecs}" in
1814 targ_archs="$targ_archs bfd_k1om_arch"