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
56 i[3-7]86-*-netbsdelf* | i[3-7]86-*-netbsd*-gnu* | i[3-7]86-*-knetbsd*-gnu | \
57 mips*-*-irix5* | mips*-*-irix6*)
66 i[3-7]86-*-sco3.2v5*coff | \
67 i[3-7]86-*-sysv4* | i[3-7]86-*-unixware* | \
68 i[3-7]86-*-sco3.2v5* | \
69 i[3-7]86-*-dgux* | i[3-7]86-*-sysv5* | \
70 i[3-7]86-*-chorus* | \
71 i[3-7]86-*-sysv* | i[3-7]86-*-isc* | i[3-7]86-*-sco* | i[3-7]86-*-coff | \
73 i[3-7]86-sequent-bsd* | \
74 i[3-7]86-*-freebsdaout* | i[3-7]86-*-freebsd[12].* | \
75 i[3-7]86-*-freebsd[12] | \
76 i[3-7]86-*-netbsdaout* | i[3-7]86-*-netbsd* | \
77 i[3-7]86-*-openbsd[0-2].* | i[3-7]86-*-openbsd3.[0-3] | \
78 i[3-7]86-*-netware* | \
79 i[3-7]86-*-linux*aout* | \
80 i[3-7]86-*-mach* | i[3-7]86-*-osf1mk* | \
83 i[3-7]86-*-aout* | i[3-7]86*-*-vsta* | \
86 m68*-motorola-sysv* | m68*-hp-bsd* | m68*-*-aout* | \
87 m68*-*-coff* | m68*-*-sysv* | \
89 m68*-*-linux*aout* | \
91 m68*-*-netbsdaout* | \
92 m68*-*-sunos* | m68*-*-os68k* | m68*-*-vxworks* | m68*-netx-* | \
93 m68*-*-bsd* | m68*-*-vsta* | \
98 mips*-dec-* | mips*el-*-ecoff* | \
100 mips*-sgi-* | mips*-*-bsd* | \
102 mips*-*-sysv* | mips*-*-riscos* | \
104 sh*-*-symbianelf* | \
109 sparc-*-linux*aout* | \
110 sparc-*-netbsdaout* | \
111 sparc-*-openbsd[0-2].* | sparc-*-openbsd3.[0-1] | \
116 vax-*-bsd* | vax-*-ultrix* | \
124 sh5*-*-* | sh64*-*-* | \
126 if test "x$enable_obsolete" != xyes; then
127 echo "*** Configuration $targ is obsolete." >&2
128 echo "*** Specify --enable-obsolete to build it anyway." >&2
129 echo "*** Support will be REMOVED in the next major release of BINUTILS," >&2
130 echo "*** unless a maintainer comes forward." >&2
141 i[3-7]86*-*-rtemscoff* | \
143 m68*-*-rtemscoff* | \
149 powerpcle-*-rtems* | \
150 sparc*-*-rtemsaout* | \
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 dlx*) targ_archs=bfd_dlx_arch ;;
175 fido*) targ_archs=bfd_m68k_arch ;;
176 hppa*) targ_archs=bfd_hppa_arch ;;
177 i[3-7]86) targ_archs=bfd_i386_arch ;;
178 i370) targ_archs=bfd_i370_arch ;;
179 lm32) targ_archs=bfd_lm32_arch ;;
180 m6811*|m68hc11*) targ_archs="bfd_m68hc11_arch bfd_m68hc12_arch bfd_m9s12x_arch bfd_m9s12xg_arch" ;;
181 m6812*|m68hc12*) targ_archs="bfd_m68hc12_arch bfd_m68hc11_arch bfd_m9s12x_arch bfd_m9s12xg_arch" ;;
182 m68*) targ_archs=bfd_m68k_arch ;;
183 m88*) targ_archs=bfd_m88k_arch ;;
184 microblaze*) targ_archs=bfd_microblaze_arch ;;
185 mips*) targ_archs=bfd_mips_arch ;;
186 nds32*) targ_archs=bfd_nds32_arch ;;
187 nios2*) targ_archs=bfd_nios2_arch ;;
188 or1k*|or1knd*) targ_archs=bfd_or1k_arch ;;
189 pdp11*) targ_archs=bfd_pdp11_arch ;;
190 pj*) targ_archs="bfd_pj_arch bfd_i386_arch";;
191 powerpc*) targ_archs="bfd_rs6000_arch bfd_powerpc_arch" ;;
192 pru*) targ_archs=bfd_pru_arch ;;
193 riscv*) targ_archs=bfd_riscv_arch ;;
194 rs6000) targ_archs="bfd_rs6000_arch bfd_powerpc_arch" ;;
195 s390*) targ_archs=bfd_s390_arch ;;
196 sh*) targ_archs=bfd_sh_arch ;;
197 sparc*) targ_archs=bfd_sparc_arch ;;
198 spu*) targ_archs=bfd_spu_arch ;;
199 tilegx*) targ_archs=bfd_tilegx_arch ;;
200 tilepro*) targ_archs=bfd_tilepro_arch ;;
201 v850*) targ_archs="bfd_v850_arch bfd_v850_rh850_arch" ;;
202 visium*) targ_archs=bfd_visium_arch ;;
203 x86_64*) targ_archs=bfd_i386_arch ;;
204 xtensa*) targ_archs=bfd_xtensa_arch ;;
205 xgate) targ_archs=bfd_xgate_arch ;;
206 z80|r800) targ_archs=bfd_z80_arch ;;
207 z8k*) targ_archs=bfd_z8k_arch ;;
208 *) targ_archs=bfd_${targ_cpu}_arch ;;
212 # WHEN ADDING ENTRIES TO THIS MATRIX:
213 # Make sure that the left side always has two dashes. Otherwise you
214 # can get spurious matches. Even for unambiguous cases, do this as a
215 # convention, else the table becomes a real mess to understand and maintain.
217 # Keep obsolete entries above the START comment, to keep them out of
222 echo "This target is obsolete and has been removed."
227 echo "This target is obsolete and has been removed."
232 echo "This target is obsolete and has been removed."
237 targ_defvec=plugin_vec
238 targ_selvecs="plugin_vec"
241 # START OF targmatch.h
244 targ_defvec=aarch64_mach_o_vec
245 targ_selvecs="arm_mach_o_vec mach_o_le_vec mach_o_be_vec mach_o_fat_vec"
246 targ_archs="$targ_archs bfd_i386_arch bfd_powerpc_arch bfd_rs6000_arch"
249 aarch64-*-elf | aarch64-*-rtems*)
250 targ_defvec=aarch64_elf64_le_vec
251 targ_selvecs="aarch64_elf64_be_vec aarch64_elf32_le_vec aarch64_elf32_be_vec arm_elf32_le_vec arm_elf32_be_vec"
255 targ_defvec=aarch64_elf64_be_vec
256 targ_selvecs="aarch64_elf64_le_vec aarch64_elf32_le_vec aarch64_elf32_be_vec arm_elf32_be_vec arm_elf32_le_vec"
260 targ_defvec=aarch64_elf64_le_vec
261 targ_selvecs="aarch64_elf64_be_vec arm_elf32_le_vec arm_elf32_be_vec"
265 targ_defvec=aarch64_elf64_le_vec
266 targ_selvecs="aarch64_elf64_be_vec arm_elf32_le_vec arm_elf32_be_vec"
270 targ_defvec=aarch64_elf64_le_cloudabi_vec
271 targ_selvecs=aarch64_elf64_be_cloudabi_vec
275 targ_defvec=aarch64_elf64_le_vec
276 targ_selvecs="aarch64_elf64_be_vec aarch64_elf32_le_vec aarch64_elf32_be_vec arm_elf32_le_vec arm_elf32_be_vec"
280 targ_defvec=aarch64_elf64_be_vec
281 targ_selvecs="aarch64_elf64_le_vec aarch64_elf32_le_vec aarch64_elf32_be_vec arm_elf32_be_vec arm_elf32_le_vec"
284 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
285 targ_defvec=alpha_elf64_fbsd_vec
286 targ_selvecs="alpha_elf64_vec alpha_ecoff_le_vec"
288 # FreeBSD <= 4.0 supports only the old nonstandard way of ABI labelling.
290 alpha*-*-freebsd3* | alpha*-*-freebsd4 | alpha*-*-freebsd4.0*)
291 targ_cflags=-DOLD_FREEBSD_ABI_LABEL ;;
294 alpha*-*-netbsd* | alpha*-*-openbsd*)
295 targ_defvec=alpha_elf64_vec
296 targ_selvecs=alpha_ecoff_le_vec
300 targ_defvec=alpha_ecoff_le_vec
301 targ_selvecs=alpha_nlm32_vec
304 alpha*-*-linux*ecoff*)
305 targ_defvec=alpha_ecoff_le_vec
306 targ_selvecs=alpha_elf64_vec
309 alpha*-*-linux-* | alpha*-*-elf*)
310 targ_defvec=alpha_elf64_vec
311 targ_selvecs=alpha_ecoff_le_vec
315 targ_defvec=alpha_vms_vec
316 targ_selvecs=alpha_vms_lib_txt_vec
320 targ_defvec=alpha_ecoff_le_vec
323 ia64*-*-freebsd* | ia64*-*-netbsd* | ia64*-*-linux-* | ia64*-*-elf* | ia64*-*-kfreebsd*-gnu)
324 targ_defvec=ia64_elf64_le_vec
325 targ_selvecs="ia64_elf64_be_vec ia64_pei_vec"
329 targ_defvec=ia64_elf32_hpux_be_vec
330 targ_selvecs="ia64_elf64_hpux_be_vec"
334 targ_defvec=ia64_elf64_vms_vec
335 targ_selvecs=alpha_vms_lib_txt_vec
338 sparc64-*-freebsd* | sparc64-*-kfreebsd*-gnu)
339 targ_defvec=sparc_elf64_fbsd_vec
340 targ_selvecs="sparc_elf64_vec sparc_elf32_vec sparc_aout_sunos_be_vec"
342 sparc64-*-netbsd* | sparc64-*-openbsd*)
343 targ_defvec=sparc_elf64_vec
344 targ_selvecs="sparc_elf32_vec sparc_aout_sunos_be_vec"
350 targ_defvec=am33_elf32_linux_vec
353 arc*eb-*-elf* | arc*eb-*-linux*)
354 targ_defvec=arc_elf32_be_vec
355 targ_selvecs=arc_elf32_le_vec
358 arc*-*-elf* | arc*-*-linux*)
359 targ_defvec=arc_elf32_le_vec
360 targ_selvecs=arc_elf32_be_vec
364 targ_defvec=arm_mach_o_vec
365 targ_selvecs="mach_o_le_vec mach_o_be_vec mach_o_fat_vec"
366 targ_archs="$targ_archs bfd_i386_arch bfd_powerpc_arch bfd_rs6000_arch"
369 targ_defvec=arm_elf32_le_vec
370 targ_selvecs="arm_elf32_be_vec"
373 targ_defvec=arm_elf32_nacl_le_vec
374 targ_selvecs="arm_elf32_nacl_be_vec i386_elf32_nacl_vec"
375 targ64_selvecs="x86_64_elf32_nacl_vec x86_64_elf64_nacl_vec"
376 targ_archs="$targ_archs bfd_i386_arch"
379 targ_defvec=arm_elf32_nacl_be_vec
380 targ_selvecs="arm_elf32_nacl_le_vec i386_elf32_nacl_vec"
381 targ64_selvecs="x86_64_elf32_nacl_vec x86_64_elf64_nacl_vec"
382 targ_archs="$targ_archs bfd_i386_arch"
385 targ_defvec=arm_elf32_be_vec
386 targ_selvecs="arm_elf32_le_vec arm_aout_nbsd_vec"
389 targ_defvec=arm_elf32_le_vec
390 targ_selvecs="arm_elf32_be_vec arm_aout_nbsd_vec"
392 arm-*-netbsd* | arm-*-openbsd*)
393 targ_defvec=arm_aout_nbsd_vec
394 targ_selvecs="arm_elf32_le_vec arm_elf32_be_vec"
397 arm-*-nto* | nto*arm*)
398 targ_defvec=arm_elf32_le_vec
399 targ_selvecs=arm_elf32_be_vec
400 targ_cflags=-D__QNXTARGET__
403 targ_defvec=arm_aout_riscix_vec
406 targ_defvec=arm_pe_epoc_le_vec
407 targ_selvecs="arm_pe_epoc_le_vec arm_pe_epoc_be_vec arm_pei_epoc_le_vec arm_pei_epoc_be_vec"
409 targ_cflags=-DARM_COFF_BUGFIX
411 arm-wince-pe | arm-*-wince | arm*-*-mingw32ce* | arm*-*-cegcc*)
412 targ_defvec=arm_pe_wince_le_vec
413 targ_selvecs="arm_pe_wince_le_vec arm_pe_wince_be_vec arm_pei_wince_le_vec arm_pei_wince_be_vec"
415 targ_cflags="-DARM_WINCE -DARM_COFF_BUGFIX"
418 targ_defvec=arm_pe_le_vec
419 targ_selvecs="arm_pe_le_vec arm_pe_be_vec arm_pei_le_vec arm_pei_be_vec"
422 arm-*-aout | armel-*-aout)
423 targ_defvec=arm_aout_le_vec
424 targ_selvecs=arm_aout_be_vec
427 targ_defvec=arm_aout_be_vec
428 targ_selvecs=arm_aout_le_vec
431 targ_defvec=arm_coff_le_vec
432 targ_selvecs=arm_coff_be_vec
436 targ_defvec=arm_elf32_le_vec
437 targ_selvecs=arm_elf32_be_vec
440 targ_defvec=arm_elf32_le_vec
441 targ_selvecs=arm_elf32_be_vec
443 armeb-*-elf | arm*b-*-freebsd* | arm*b-*-linux-* | armeb-*-eabi*)
444 targ_defvec=arm_elf32_be_vec
445 targ_selvecs=arm_elf32_le_vec
448 targ_defvec=arm_elf32_le_vec
449 targ_selvecs=arm_elf32_be_vec
451 arm-*-elf | arm*-*-freebsd* | arm*-*-linux-* | arm*-*-conix* | \
452 arm*-*-uclinux* | arm-*-kfreebsd*-gnu | \
454 targ_defvec=arm_elf32_le_vec
455 targ_selvecs=arm_elf32_be_vec
457 arm*-*-vxworks | arm*-*-windiss)
458 targ_defvec=arm_elf32_vxworks_le_vec
459 targ_selvecs=arm_elf32_vxworks_be_vec
462 targ_defvec=arm_elf32_symbian_le_vec
463 targ_selvecs=arm_elf32_symbian_be_vec
466 targ_defvec=arm_elf32_le_vec
467 targ_selvecs=arm_elf32_be_vec
471 targ_defvec=avr_elf32_vec
475 targ_defvec=bfin_elf32_vec
476 targ_selvecs=bfin_elf32_fdpic_vec
480 c30-*-*aout* | tic30-*-*aout*)
481 targ_defvec=tic30_aout_vec
483 c30-*-*coff* | tic30-*-*coff*)
484 targ_defvec=tic30_coff_vec
487 c4x-*-*coff* | tic4x-*-*coff* | tic4x-*-rtems*)
488 targ_defvec=tic4x_coff1_vec
489 targ_selvecs="tic4x_coff1_beh_vec tic4x_coff2_vec tic4x_coff2_beh_vec tic4x_coff0_vec tic4x_coff0_beh_vec"
493 c54x*-*-*coff* | tic54x-*-*coff*)
494 targ_defvec=tic54x_coff1_vec
495 targ_selvecs="tic54x_coff1_beh_vec tic54x_coff2_vec tic54x_coff2_beh_vec tic54x_coff0_vec tic54x_coff0_beh_vec"
499 cr16-*-elf* | cr16*-*-uclinux*)
500 targ_defvec=cr16_elf32_vec
505 targ_defvec=cr16c_elf32_vec
509 cris-*-* | crisv32-*-*)
510 targ_defvec=cris_aout_vec
511 targ_selvecs="cris_elf32_us_vec cris_elf32_vec ieee_vec"
512 targ_underscore=yes # Note: not true for cris_elf32_vec.
516 targ_defvec=crx_elf32_vec
521 targ_defvec=d10v_elf32_vec
525 targ_defvec=dlx_elf32_be_vec
526 targ_selvecs="dlx_elf32_be_vec"
530 targ_defvec=d30v_elf32_vec
534 targ_defvec=epiphany_elf32_vec
538 targ_defvec=m68k_elf32_vec
539 targ_selvecs="m68k_coff_vec ieee_vec"
543 targ_defvec=fr30_elf32_vec
547 targ_defvec=frv_elf32_vec
548 targ_selvecs=frv_elf32_fdpic_vec
552 targ_defvec=frv_elf32_fdpic_vec
553 targ_selvecs=frv_elf32_vec
556 moxie-*-elf | moxie-*-rtems* | moxie-*-uclinux)
557 targ_defvec=moxie_elf32_be_vec
558 targ_selvecs=moxie_elf32_le_vec
562 targ_defvec=moxie_elf32_le_vec
566 targ_defvec=h8300_coff_vec
570 h8300*-*-elf | h8300*-*-rtems*)
571 targ_defvec=h8300_elf32_vec
576 targ_defvec=h8300_elf32_linux_vec
580 targ_defvec=h8300_coff_vec
585 targ_defvec=h8500_coff_vec
591 targ_defvec=hppa_elf64_linux_vec
592 targ_selvecs=hppa_elf64_vec
596 targ_defvec=hppa_elf64_vec
597 targ_selvecs=hppa_elf64_linux_vec
598 targ_cflags=-DHPUX_LARGE_AR_IDS
604 targ_defvec=hppa_elf32_linux_vec
605 targ_selvecs=hppa_elf32_vec
608 targ_defvec=hppa_elf32_nbsd_vec
609 targ_selvecs="hppa_elf32_vec hppa_elf32_linux_vec"
611 hppa*-*-*elf* | hppa*-*-lites* | hppa*-*-sysv4* | hppa*-*-openbsd*)
612 targ_defvec=hppa_elf32_vec
613 targ_selvecs=hppa_elf32_linux_vec
617 targ_defvec=hppa_som_vec
618 targ_selvecs=hppa_elf32_vec
620 hppa*-*-hpux* | hppa*-*-hiux* | hppa*-*-mpeix*)
621 targ_defvec=hppa_som_vec
624 targ_defvec=hppa_som_vec
625 targ_selvecs=hppa_elf32_vec
629 targ_defvec=i370_elf32_vec
630 targ_selvecs="i370_elf32_vec"
633 i[3-7]86-*-sco3.2v5*coff)
634 targ_defvec=i386_coff_vec
635 targ_selvecs=i386_elf32_vec
637 i[3-7]86-*-sysv4* | i[3-7]86-*-unixware* | \
638 i[3-7]86-*-elf* | i[3-7]86-*-sco3.2v5* | \
639 i[3-7]86-*-dgux* | i[3-7]86-*-sysv5*)
640 targ_defvec=i386_elf32_vec
641 targ_selvecs="iamcu_elf32_vec i386_coff_vec"
643 i[3-7]86-*-solaris2*)
644 targ_defvec=i386_elf32_sol2_vec
645 targ_selvecs="iamcu_elf32_vec i386_coff_vec i386_pei_vec"
646 targ64_selvecs="x86_64_elf64_sol2_vec l1om_elf64_vec k1om_elf64_vec x86_64_pei_vec"
651 targ_defvec=i386_elf32_sol2_vec
652 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"
657 targ_defvec=i386_elf32_vec
658 targ_selvecs=i386_elf32_vec
661 targ_defvec=i386_elf32_vec
662 targ_selvecs="iamcu_elf32_vec i386_coff_vec"
665 targ_defvec=i386_elf32_vec
666 targ_selvecs=iamcu_elf32_vec
669 targ_defvec=i386_elf32_vec
670 targ_selvecs=iamcu_elf32_vec
673 targ_defvec=i386_elf32_vec
674 targ_selvecs=iamcu_elf32_vec
675 targ64_selvecs="x86_64_elf64_vec l1om_elf64_vec k1om_elf64_vec"
677 *-*-msdosdjgpp* | *-*-go32* )
678 targ_defvec=i386_coff_go32_vec
679 targ_selvecs="i386_coff_go32stubbed_vec i386_aout_vec"
681 i[3-7]86-*-sysv* | i[3-7]86-*-isc* | i[3-7]86-*-sco* | i[3-7]86-*-coff | \
683 targ_defvec=i386_coff_vec
686 targ_defvec=i386_elf32_vec
687 targ_selvecs="iamcu_elf32_vec i386_coff_vec i386_aout_vec"
689 i[3-7]86-*-darwin* | i[3-7]86-*-macos10* | i[3-7]86-*-rhapsody*)
690 targ_defvec=i386_mach_o_vec
691 targ_selvecs="mach_o_le_vec mach_o_be_vec mach_o_fat_vec pef_vec pef_xlib_vec sym_vec"
692 targ64_selvecs=x86_64_mach_o_vec
693 targ_archs="$targ_archs bfd_powerpc_arch bfd_rs6000_arch"
695 i[3-7]86-sequent-bsd*)
696 targ_defvec=i386_aout_dynix_vec
700 targ_defvec=i386_aout_bsd_vec
703 i[3-7]86-*-dragonfly*)
704 targ_defvec=i386_elf32_vec
705 targ_selvecs=iamcu_elf32_vec
706 targ64_selvecs="x86_64_elf64_vec l1om_elf64_vec k1om_elf64_vec"
708 i[3-7]86-*-freebsdaout* | i[3-7]86-*-freebsd[12].* | \
709 i[3-7]86-*-freebsd[12])
710 targ_defvec=i386_aout_fbsd_vec
711 targ_selvecs=i386_aout_bsd_vec
714 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
715 targ_defvec=i386_elf32_fbsd_vec
716 targ_selvecs="i386_elf32_vec iamcu_elf32_vec i386_pei_vec i386_coff_vec"
717 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"
718 # FreeBSD <= 4.0 supports only the old nonstandard way of ABI labelling.
720 i[3-7]86-*-freebsd3* | i[3-7]86-*-freebsd4 | i[3-7]86-*-freebsd4.0*)
721 targ_cflags=-DOLD_FREEBSD_ABI_LABEL ;;
724 i[3-7]86-*-netbsdelf* | i[3-7]86-*-netbsd*-gnu* | i[3-7]86-*-knetbsd*-gnu)
725 targ_defvec=i386_elf32_vec
726 targ_selvecs="i386_aout_nbsd_vec iamcu_elf32_vec"
727 targ64_selvecs="x86_64_elf64_vec l1om_elf64_vec k1om_elf64_vec"
729 i[3-7]86-*-netbsdpe*)
730 targ_defvec=i386_pe_vec
731 targ_selvecs="i386_pe_vec i386_pei_vec i386_elf32_vec iamcu_elf32_vec"
733 i[3-7]86-*-netbsdaout* | i[3-7]86-*-netbsd* | \
734 i[3-7]86-*-openbsd[0-2].* | i[3-7]86-*-openbsd3.[0-3])
735 targ_defvec=i386_aout_nbsd_vec
736 targ_selvecs="i386_elf32_vec iamcu_elf32_vec i386_aout_bsd_vec"
740 targ_defvec=i386_elf32_vec
741 targ_selvecs="iamcu_elf32_vec i386_aout_nbsd_vec"
744 targ_defvec=i386_elf32_vec
745 targ_selvecs="iamcu_elf32_vec i386_nlm32_vec i386_coff_vec i386_aout_vec"
747 i[3-7]86-*-linux*aout*)
748 targ_defvec=i386_aout_linux_vec
749 targ_selvecs="i386_elf32_vec iamcu_elf32_vec"
753 targ_defvec=i386_elf32_vec
754 targ_selvecs="iamcu_elf32_vec i386_aout_linux_vec i386_pei_vec"
755 targ64_selvecs="x86_64_elf64_vec x86_64_elf32_vec x86_64_pei_vec l1om_elf64_vec k1om_elf64_vec"
758 targ_defvec=i386_elf32_nacl_vec
759 targ_selvecs="arm_elf32_nacl_be_vec arm_elf32_nacl_le_vec"
760 targ64_selvecs="x86_64_elf64_nacl_vec x86_64_elf32_nacl_vec"
761 targ_archs="$targ_archs bfd_arm_arch"
765 targ_defvec=x86_64_elf64_cloudabi_vec
769 targ_defvec=x86_64_mach_o_vec
770 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"
771 targ_archs="$targ_archs bfd_powerpc_arch bfd_rs6000_arch"
775 targ_defvec=x86_64_elf64_vec
776 targ_selvecs="i386_elf32_vec iamcu_elf32_vec l1om_elf64_vec k1om_elf64_vec"
779 x86_64-*-elf* | x86_64-*-rtems* | x86_64-*-fuchsia)
780 targ_defvec=x86_64_elf64_vec
781 targ_selvecs="i386_elf32_vec iamcu_elf32_vec x86_64_elf32_vec l1om_elf64_vec k1om_elf64_vec"
785 targ_defvec=x86_64_elf64_vec
786 targ_selvecs="i386_elf32_vec iamcu_elf32_vec l1om_elf64_vec k1om_elf64_vec"
789 x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
790 targ_defvec=x86_64_elf64_fbsd_vec
791 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"
794 x86_64-*-netbsd* | x86_64-*-openbsd*)
795 targ_defvec=x86_64_elf64_vec
796 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"
800 targ_defvec=x86_64_elf64_vec
801 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"
805 targ_defvec=x86_64_elf32_nacl_vec
806 targ_selvecs="i386_elf32_nacl_vec x86_64_elf64_nacl_vec arm_elf32_nacl_be_vec arm_elf32_nacl_le_vec"
807 targ_archs="$targ_archs bfd_arm_arch"
810 x86_64-*-mingw* | x86_64-*-pe | x86_64-*-pep | x86_64-*-cygwin)
811 targ_defvec=x86_64_pe_vec
812 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"
817 targ_defvec=x86_64_elf64_vec
822 targ_defvec=i386_elf32_vec
823 targ_selvecs="iamcu_elf32_vec i386_coff_lynx_vec i386_aout_lynx_vec"
826 targ_defvec=i386_elf32_vec
827 targ_selvecs=iamcu_elf32_vec
829 i[3-7]86-*-mach* | i[3-7]86-*-osf1mk*)
830 targ_defvec=i386_aout_mach3_vec
831 targ_cflags=-DSTAT_FOR_EXEC
835 targ_defvec=i386_aout_os9k_vec
838 targ_defvec=i386_aout_vec
839 targ_selvecs=i386_msdos_vec
842 targ_defvec=i386_elf32_vec
843 targ_selvecs="iamcu_elf32_vec i386_msdos_vec i386_aout_vec"
846 targ_defvec=i386_pe_vec
847 targ_selvecs="i386_pe_vec i386_pei_vec"
849 i[3-7]86-*-beoself* | i[3-7]86-*-beos*)
850 targ_defvec=i386_elf32_vec
851 targ_selvecs="iamcu_elf32_vec i386_pe_vec i386_pei_vec"
854 targ_defvec=i386_pei_vec
855 targ_selvecs="i386_pe_vec"
856 # FIXME: This should eventually be checked at runtime.
857 targ_cflags=-DSTRICT_PE_FORMAT
860 targ_defvec=i386_elf32_vec
861 targ_selvecs="iamcu_elf32_vec i386_coff_vec"
863 i[3-7]86-*-mingw32* | i[3-7]86-*-cygwin* | i[3-7]86-*-winnt | i[3-7]86-*-pe)
864 targ_defvec=i386_pe_vec
865 targ_selvecs="i386_pe_vec i386_pei_vec i386_elf32_vec iamcu_elf32_vec"
869 targ_defvec=i386_coff_vec
871 i[3-7]86-*-aout* | i[3-7]86*-*-vsta*)
872 targ_defvec=i386_aout_vec
875 targ_defvec=i386_elf32_vxworks_vec
879 targ_defvec=i386_elf32_vec
880 targ_selfvecs="iamcu_elf32_vec i386chaos_vec"
883 i860-*-mach3* | i860-*-osf1* | i860-*-coff*)
884 targ_defvec=i860_coff_vec
886 i860-stardent-sysv4* | i860-stardent-elf*)
887 targ_defvec=i860_elf32_le_vec
888 targ_selvecs="i860_elf32_vec i860_elf32_le_vec"
890 i860-*-sysv4* | i860-*-elf*)
891 targ_defvec=i860_elf32_vec
894 i960-*-vxworks4* | i960-*-vxworks5.0)
895 targ_defvec=bout_le_vec
896 targ_selvecs="bout_be_vec icoff_le_vec icoff_be_vec ieee_vec"
899 i960-*-vxworks5.* | i960-*-coff* | i960-*-sysv*)
900 targ_defvec=icoff_le_vec
901 targ_selvecs="icoff_be_vec bout_le_vec bout_be_vec ieee_vec"
904 i960-*-vxworks* | i960-*-aout* | i960-*-bout* | i960-*-nindy*)
905 targ_defvec=bout_le_vec
906 targ_selvecs="bout_be_vec icoff_le_vec icoff_be_vec ieee_vec"
910 targ_defvec=i960_elf32_vec
911 targ_selvecs="icoff_le_vec icoff_be_vec"
915 targ_defvec=ip2k_elf32_vec
919 targ_defvec=iq2000_elf32_vec
922 lm32-*-elf | lm32-*-rtems*)
923 targ_defvec=lm32_elf32_vec
924 targ_selvecs=lm32_elf32_fdpic_vec
928 targ_defvec=lm32_elf32_fdpic_vec
929 targ_selvecs=lm32_elf32_vec
932 m32c-*-elf | m32c-*-rtems*)
933 targ_defvec=m32c_elf32_vec
937 targ_defvec=m32r_elf32_linux_le_vec
938 targ_selvecs="m32r_elf32_linux_vec m32r_elf32_linux_le_vec"
941 targ_defvec=m32r_elf32_linux_vec
942 targ_selvecs="m32r_elf32_linux_vec m32r_elf32_linux_le_vec"
945 targ_defvec=m32r_elf32_le_vec
946 targ_selvecs="m32r_elf32_vec m32r_elf32_le_vec"
949 targ_defvec=m32r_elf32_vec
952 m68hc11-*-* | m6811-*-*)
953 targ_defvec=m68hc11_elf32_vec
954 targ_selvecs="m68hc11_elf32_vec m68hc12_elf32_vec"
956 m68hc12-*-* | m6812-*-*)
957 targ_defvec=m68hc12_elf32_vec
958 targ_selvecs="m68hc11_elf32_vec m68hc12_elf32_vec"
962 targ_defvec=m68k_coff_sysv_vec
965 targ_defvec=m68k_aout_hp300bsd_vec
969 targ_defvec=aout0_be_vec
970 # We include core_cisco_be_vec here, rather than making a separate cisco
971 # configuration, so that cisco-core.c gets routinely tested at
972 # least for compilation.
973 targ_selvecs="core_cisco_be_vec ieee_vec"
976 m68*-*-elf* | m68*-*-sysv4* | m68*-*-uclinux*)
977 targ_defvec=m68k_elf32_vec
978 targ_selvecs="m68k_coff_vec ieee_vec"
981 targ_defvec=m68k_elf32_vec
982 targ_selvecs="m68k_coff_vec m68k_versados_vec ieee_vec aout0_be_vec"
984 m68*-*-coff* | m68*-*-sysv*)
985 targ_defvec=m68k_coff_vec
986 targ_selvecs="m68k_coff_vec m68k_versados_vec ieee_vec"
989 targ_defvec=m68k_aout_hp300hpux_vec
993 targ_defvec=m68k_aout_linux_vec
994 targ_selvecs=m68k_elf32_vec
998 targ_defvec=m68k_elf32_vec
999 targ_selvecs=m68k_aout_linux_vec
1002 targ_defvec=m68k_elf32_vec
1003 # targ_selvecs=m68kmach3_vec
1004 # targ_cflags=-DSTAT_FOR_EXEC
1007 targ_defvec=m68k_aout_4knbsd_vec
1008 targ_selvecs="m68k_aout_nbsd_vec m68k_aout_hp300bsd_vec sparc_aout_sunos_be_vec"
1012 targ_defvec=m68k_elf32_vec
1013 targ_selvecs="m68k_aout_nbsd_vec m68k_aout_4knbsd_vec m68k_aout_hp300bsd_vec sparc_aout_sunos_be_vec"
1015 m68*-*-netbsdaout* | m68*-*-netbsd*)
1016 targ_defvec=m68k_aout_nbsd_vec
1017 targ_selvecs="m68k_aout_4knbsd_vec m68k_elf32_vec m68k_aout_hp300bsd_vec sparc_aout_sunos_be_vec"
1021 targ_defvec=m68k_aout_nbsd_vec
1022 targ_selvecs="m68k_aout_4knbsd_vec m68k_aout_hp300bsd_vec sparc_aout_sunos_be_vec"
1025 m68*-*-sunos* | m68*-*-os68k* | m68*-*-vxworks* | m68*-netx-* | \
1026 m68*-*-bsd* | m68*-*-vsta*)
1027 targ_defvec=sparc_aout_sunos_be_vec
1031 targ_defvec=sparc_aout_sunos_be_vec
1032 targ_selvecs="m68k_coff_vec m68k_versados_vec tekhex_vec"
1036 targ_defvec=m68k_elf32_vec
1037 targ_selvecs=m68k_coff_vec
1040 targ_defvec=m68k_elf32_vec
1041 targ_selvecs=ieee_vec
1045 m88*-harris-cxux* | m88*-*-dgux* | m88*-*-sysv4*)
1046 targ_defvec=m88k_elf32_vec
1047 targ_selvecs=m88k_coff_bcs_vec
1050 targ_defvec=m88k_aout_mach3_vec
1051 targ_cflags=-DSTAT_FOR_EXEC
1054 targ_defvec=m88k_aout_obsd_vec
1058 targ_defvec=m88k_coff_bcs_vec
1063 targ_defvec=mcore_elf32_be_vec
1064 targ_selvecs="mcore_elf32_be_vec mcore_elf32_le_vec"
1067 targ_defvec=mcore_pe_be_vec
1068 targ_selvecs="mcore_pe_be_vec mcore_pe_le_vec mcore_pei_be_vec mcore_pei_le_vec"
1072 targ_defvec=mep_elf32_vec
1073 targ_selvecs=mep_elf32_le_vec
1077 targ_defvec=metag_elf32_vec
1082 targ_defvec=microblaze_elf32_le_vec
1083 targ_selvecs=microblaze_elf32_vec
1087 targ_defvec=microblaze_elf32_vec
1088 targ_selvecs=microblaze_elf32_le_vec
1092 targ_defvec=mips_ecoff_be_vec
1093 targ_selvecs=mips_ecoff_le_vec
1097 targ_defvec=mips_elf32_trad_le_vec
1098 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"
1101 targ_defvec=mips_elf32_trad_be_vec
1102 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"
1105 mips*-dec-* | mips*el-*-ecoff*)
1106 targ_defvec=mips_ecoff_le_vec
1107 targ_selvecs=mips_ecoff_be_vec
1110 targ_defvec=mips_ecoff_be_vec
1111 targ_selvecs=mips_ecoff_le_vec
1115 targ_defvec=mips_elf32_n_be_vec
1116 targ_selvecs="mips_elf32_n_le_vec mips_elf32_be_vec mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec"
1119 targ_defvec=mips_elf32_n_le_vec
1120 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"
1123 targ_defvec=mips_elf32_le_vec
1124 targ_selvecs="mips_elf32_be_vec mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec"
1127 targ_defvec=mips_elf32_be_vec
1128 targ_selvecs="mips_elf32_le_vec mips_ecoff_be_vec mips_ecoff_le_vec"
1131 mips*-sgi-* | mips*-*-bsd*)
1132 targ_defvec=mips_ecoff_be_vec
1133 targ_selvecs=mips_ecoff_le_vec
1136 targ_defvec=mips_ecoff_bele_vec
1137 targ_selvecs="mips_ecoff_le_vec mips_ecoff_be_vec"
1141 targ_defvec=mips_elf32_trad_be_vec
1142 targ_selvecs="mips_elf32_trad_le_vec mips_ecoff_be_vec mips_ecoff_le_vec"
1145 mips*-*-sysv* | mips*-*-riscos*)
1146 targ_defvec=mips_ecoff_be_vec
1147 targ_selvecs=mips_ecoff_le_vec
1151 targ_defvec=mips_elf32_vxworks_le_vec
1152 targ_selvecs="mips_elf32_le_vec mips_elf32_vxworks_be_vec mips_elf32_be_vec mips_elf64_be_vec mips_elf64_le_vec"
1155 targ_defvec=mips_elf32_vxworks_be_vec
1156 targ_selvecs="mips_elf32_be_vec mips_elf32_vxworks_le_vec mips_elf32_be_vec mips_elf64_be_vec mips_elf64_le_vec"
1159 targ_defvec=mips_elf32_trad_le_vec
1160 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"
1162 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
1163 targ_defvec=mips_elf32_trad_be_vec
1164 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"
1166 mips*el-*-elf* | mips*-*-chorus*)
1167 targ_defvec=mips_elf32_le_vec
1168 targ_selvecs="mips_elf32_be_vec mips_elf64_be_vec mips_elf64_le_vec"
1170 mips*-*-elf* | mips*-*-rtems* | mips*-*-windiss | mips*-*-none)
1171 targ_defvec=mips_elf32_be_vec
1172 targ_selvecs="mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec"
1175 targ_defvec=mips_elf64_trad_be_vec
1176 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"
1179 targ_defvec=mips_elf32_le_vec
1180 targ_selvecs="mips_elf32_be_vec mips_elf64_be_vec mips_elf64_le_vec mips_ecoff_le_vec mips_ecoff_be_vec"
1183 targ_defvec=mips_elf32_be_vec
1184 targ_selvecs="mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec mips_ecoff_be_vec mips_ecoff_le_vec"
1187 targ_defvec=mips_elf32_ntrad_le_vec
1188 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"
1191 targ_defvec=mips_elf32_ntrad_be_vec
1192 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"
1195 targ_defvec=mips_elf32_trad_le_vec
1196 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"
1199 targ_defvec=mips_elf32_trad_be_vec
1200 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"
1202 mips64*el-*-freebsd* | mips64*el-*-kfreebsd*-gnu)
1204 targ_defvec=mips_elf32_ntradfbsd_le_vec
1205 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"
1207 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"
1209 mips64*-*-freebsd* | mips64*-*-kfreebsd*-gnu)
1211 targ_defvec=mips_elf32_ntradfbsd_be_vec
1212 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"
1214 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"
1216 mips*el-*-freebsd* | mips*el-*-kfreebsd*-gnu)
1218 targ_defvec=mips_elf32_tradfbsd_le_vec
1219 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"
1221 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"
1223 mips*-*-freebsd* | mips*-*-kfreebsd*-gnu)
1225 targ_defvec=mips_elf32_tradfbsd_be_vec
1226 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"
1228 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"
1231 targ_defvec=mmix_elf64_vec
1232 targ_selvecs=mmix_mmo_vec
1237 targ_defvec=mn10200_elf32_vec
1241 targ_defvec=mn10300_elf32_vec
1246 targ_defvec=mt_elf32_vec
1250 targ_defvec=msp430_elf32_vec
1251 targ_selvecs=msp430_elf32_ti_vec
1255 targ_defvec=nds32_elf32_linux_le_vec
1256 targ_selvecs=nds32_elf32_linux_be_vec
1260 targ_defvec=nds32_elf32_linux_be_vec
1261 targ_selvecs=nds32_elf32_linux_le_vec
1265 targ_defvec=nds32_elf32_le_vec
1266 targ_selvecs=nds32_elf32_be_vec
1270 targ_defvec=nds32_elf32_be_vec
1271 targ_selvecs=nds32_elf32_le_vec
1274 ns32k-pc532-mach* | ns32k-pc532-ux*)
1275 targ_defvec=ns32k_aout_pc532mach_vec
1278 ns32k-*-netbsd* | ns32k-*-lites* | ns32k-*-openbsd*)
1279 targ_defvec=ns32k_aout_pc532nbsd_vec
1284 targ_defvec=nios2_elf32_be_vec
1285 targ_selvecs=nios2_elf32_le_vec
1289 targ_defvec=nios2_elf32_le_vec
1290 targ_selvecs=nios2_elf32_be_vec
1294 targ_defvec=nios2_elf32_le_vec
1295 targ_selvecs=nios2_elf32_be_vec
1298 or1k-*-elf | or1k-*-linux* | or1k-*-rtems*)
1299 targ_defvec=or1k_elf32_vec
1302 or1knd-*-elf | or1knd-*-linux* | or1knd-*-rtems*)
1303 targ_defvec=or1k_elf32_vec
1307 targ_defvec=pdp11_aout_vec
1312 targ_defvec=pj_elf32_vec
1313 targ_selvecs="pj_elf32_vec pj_elf32_le_vec"
1317 targ_defvec=pj_elf32_le_vec
1318 targ_selvecs="pj_elf32_le_vec pj_elf32_vec i386_elf32_vec iamcu_elf32_vec"
1321 powerpc-*-aix5.[01] | rs6000-*-aix5.[01])
1322 targ_defvec=rs6000_xcoff_vec
1323 targ_selvecs="rs6000_xcoff64_aix_vec"
1327 powerpc64-*-aix5.[01] | rs6000-*-aix5.[01])
1328 targ_defvec=rs6000_xcoff64_aix_vec
1329 targ_selvecs="rs6000_xcoff_vec"
1333 powerpc-*-aix[5-9]* | rs6000-*-aix[5-9]*)
1334 targ_cflags=-DAIX_WEAK_SUPPORT
1335 targ_defvec=rs6000_xcoff_vec
1336 targ_selvecs="rs6000_xcoff64_aix_vec"
1340 powerpc64-*-aix[5-9]* | rs6000-*-aix[5-9]*)
1341 targ_cflags=-DAIX_WEAK_SUPPORT
1342 targ_defvec=rs6000_xcoff64_aix_vec
1343 targ_selvecs="rs6000_xcoff_vec"
1348 powerpc-*-aix* | powerpc-*-beos* | rs6000-*-*)
1349 targ_defvec=rs6000_xcoff_vec
1350 targ64_selvecs=rs6000_xcoff64_vec
1352 *-*-aix4.[3456789]* | *-*-aix[56789]*)
1355 targ_cflags=-DSMALL_ARCHIVE;;
1360 targ_defvec=rs6000_xcoff64_vec
1361 targ_selvecs=rs6000_xcoff_vec
1364 powerpc64-*-freebsd*)
1365 targ_defvec=powerpc_elf64_fbsd_vec
1366 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"
1369 powerpc64-*-elf* | powerpc-*-elf64* | powerpc64-*-linux* | \
1371 targ_defvec=powerpc_elf64_vec
1372 targ_selvecs="powerpc_elf64_le_vec powerpc_elf32_vec powerpc_elf32_le_vec rs6000_xcoff_vec rs6000_xcoff64_vec rs6000_xcoff64_aix_vec"
1375 powerpc64le-*-elf* | powerpcle-*-elf64* | powerpc64le-*-linux* | \
1376 powerpc64le-*-*bsd*)
1377 targ_defvec=powerpc_elf64_le_vec
1378 targ_selvecs="powerpc_elf64_vec powerpc_elf32_le_vec powerpc_elf32_vec rs6000_xcoff_vec rs6000_xcoff64_vec rs6000_xcoff64_aix_vec"
1382 powerpc-*-*freebsd*)
1383 targ_defvec=powerpc_elf32_fbsd_vec
1384 targ_selvecs="rs6000_xcoff_vec powerpc_elf32_vec powerpc_elf32_le_vec powerpc_boot_vec"
1385 targ64_selvecs="powerpc_elf64_vec powerpc_elf64_le_vec powerpc_elf64_fbsd_vec"
1387 powerpc-*-*bsd* | powerpc-*-elf* | powerpc-*-sysv4* | powerpc-*-eabi* | \
1388 powerpc-*-solaris2* | powerpc-*-linux-* | powerpc-*-rtems* | \
1390 targ_defvec=powerpc_elf32_vec
1391 targ_selvecs="rs6000_xcoff_vec powerpc_elf32_le_vec powerpc_boot_vec"
1392 targ64_selvecs="powerpc_elf64_vec powerpc_elf64_le_vec"
1395 targ_defvec=powerpc_elf32_vec
1396 targ_selvecs="powerpc_elf32_le_vec powerpc_boot_vec"
1397 targ64_selvecs="powerpc_elf64_vec powerpc_elf64_le_vec"
1399 powerpc-*-darwin* | powerpc-*-macos10* | powerpc-*-rhapsody*)
1400 targ_defvec=mach_o_be_vec
1401 targ_selvecs="mach_o_be_vec mach_o_le_vec mach_o_fat_vec pef_vec pef_xlib_vec sym_vec"
1402 targ_archs="$targ_archs bfd_i386_arch"
1405 targ_defvec=powerpc_xcoff_vec
1408 targ_defvec=powerpc_elf32_vec
1409 targ_selvecs="rs6000_xcoff_vec"
1410 targ_cflags=-DSMALL_ARCHIVE
1413 targ_defvec=powerpc_elf32_vec
1414 targ_selvecs="powerpc_nlm32_vec rs6000_xcoff_vec"
1417 targ_defvec=powerpc_elf32_vec
1418 targ_selvecs="rs6000_xcoff_vec powerpc_elf32_le_vec powerpc_boot_vec"
1420 powerpc-*-vxworks* | powerpc-*-windiss*)
1421 targ_defvec=powerpc_elf32_vxworks_vec
1422 targ_selvecs="rs6000_xcoff_vec powerpc_elf32_vec powerpc_elf32_le_vec powerpc_boot_vec"
1423 targ64_selvecs="powerpc_elf64_vec powerpc_elf64_le_vec"
1426 targ_defvec=powerpc_elf32_le_vec
1427 targ_selvecs="rs6000_xcoff_vec powerpc_elf32_vec powerpc_boot_vec"
1429 powerpcle-*-elf* | powerpcle-*-sysv4* | powerpcle-*-eabi* | \
1430 powerpcle-*-solaris2* | powerpcle-*-linux-* | powerpcle-*-vxworks*)
1431 targ_defvec=powerpc_elf32_le_vec
1432 targ_selvecs="rs6000_xcoff_vec powerpc_elf32_vec powerpc_boot_vec"
1433 targ64_selvecs="powerpc_elf64_vec powerpc_elf64_le_vec"
1435 powerpcle-*-pe | powerpcle-*-winnt* | powerpcle-*-cygwin*)
1436 targ_defvec=powerpc_pe_le_vec
1437 targ_selvecs="powerpc_pei_le_vec powerpc_pei_vec powerpc_pe_le_vec powerpc_pe_vec"
1441 targ_defvec=pru_elf32_vec
1447 targ_defvec=riscv_elf32_vec
1448 targ_selvecs="riscv_elf32_vec"
1453 targ_defvec=riscv_elf64_vec
1454 targ_selvecs="riscv_elf32_vec riscv_elf64_vec"
1460 targ_defvec=rl78_elf32_vec
1464 targ_defvec=rx_elf32_le_vec
1465 targ_selvecs="rx_elf32_be_vec rx_elf32_le_vec rx_elf32_be_ns_vec"
1469 targ_defvec=s390_elf32_vec
1470 targ64_selvecs=s390_elf64_vec
1475 targ_defvec=s390_elf64_vec
1476 targ_selvecs=s390_elf32_vec
1480 targ_defvec=s390_elf64_vec
1485 targ_defvec=score_elf32_be_vec
1486 targ_selvecs=score_elf32_le_vec
1490 targ_defvec=sh64_elf32_le_vec
1491 targ_selvecs="sh64_elf32_vec sh64_elf64_le_vec sh64_elf64_vec sh_elf32_le_vec sh_elf32_vec"
1496 targ_defvec=sh64_elf32_vec
1497 targ_selvecs="sh64_elf32_le_vec sh64_elf64_vec sh64_elf64_le_vec sh_elf32_vec sh_elf32_le_vec"
1502 targ_defvec=sh64_elf32_linux_be_vec
1503 targ_selvecs="sh64_elf32_linux_vec sh64_elf64_linux_be_vec sh64_elf64_linux_vec sh_elf32_linux_be_vec sh_elf32_linux_vec"
1507 targ_defvec=sh64_elf32_linux_vec
1508 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"
1512 targ_defvec=sh_elf32_linux_be_vec
1513 targ_selvecs="sh_elf32_linux_vec sh64_elf32_linux_vec sh64_elf32_linux_be_vec sh64_elf64_linux_vec sh64_elf64_linux_be_vec"
1514 targ_selvecs="${targ_selvecs} sh_elf32_fdpic_le_vec sh_elf32_fdpic_be_vec"
1520 targ_defvec=sh_elf32_linux_be_vec
1521 targ_selvecs=sh_elf32_linux_vec
1522 targ_selvecs="${targ_selvecs} sh_elf32_fdpic_le_vec sh_elf32_fdpic_be_vec"
1525 targ_defvec=sh_elf32_linux_vec
1526 targ_selvecs=sh_elf32_linux_be_vec
1527 targ_selvecs="${targ_selvecs} sh_elf32_fdpic_le_vec sh_elf32_fdpic_be_vec"
1530 sh-*-uclinux* | sh[12]-*-uclinux*)
1531 targ_defvec=sh_elf32_vec
1532 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"
1534 targ_selvecs="${targ_selvecs} sh64_elf32_linux_vec sh64_elf32_linux_be_vec sh64_elf64_linux_vec sh64_elf64_linux_be_vec"
1540 targ_defvec=sh64_elf32_nbsd_le_vec
1541 targ_selvecs="sh64_elf32_nbsd_vec sh64_elf64_nbsd_le_vec sh64_elf64_nbsd_vec sh_elf32_nbsd_vec sh_elf32_nbsd_le_vec"
1545 targ_defvec=sh64_elf32_nbsd_vec
1546 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"
1551 targ_defvec=sh64_elf64_nbsd_le_vec
1552 targ_selvecs="sh64_elf64_nbsd_vec sh64_elf32_nbsd_le_vec sh64_elf32_nbsd_vec sh_elf32_nbsd_vec sh_elf32_nbsd_le_vec"
1556 targ_defvec=sh64_elf64_nbsd_vec
1557 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"
1562 targ_defvec=sh_elf32_nbsd_le_vec
1563 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"
1567 targ_defvec=sh_elf32_nbsd_vec
1568 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"
1574 targ_defvec=sh_elf32_nbsd_vec
1575 targ_selvecs="sh_elf32_nbsd_le_vec sh_coff_vec sh_coff_le_vec"
1578 targ_defvec=sh_elf32_symbian_le_vec
1579 targ_selvecs="sh_coff_le_vec sh_coff_small_le_vec"
1584 shl*-*-elf* | sh[1234]l*-*-elf* | sh3el*-*-elf* | shl*-*-kaos*)
1585 targ_defvec=sh_elf32_le_vec
1586 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"
1593 targ_defvec=sh_coff_vec
1594 targ_selvecs="sh_coff_vec sh_coff_le_vec sh_coff_small_vec sh_coff_small_le_vec"
1599 sh-*-elf* | sh[1234]*-elf* | sh-*-rtems* | sh-*-kaos*)
1600 targ_defvec=sh_elf32_vec
1601 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"
1608 targ_defvec=sh_elf32_vec
1609 targ_selvecs="sh_elf32_le_vec sh_coff_vec sh_coff_le_vec sh_coff_small_vec sh_coff_small_le_vec"
1613 targ_defvec=sh_elf32_nbsd_le_vec
1614 targ_selvecs="sh_elf32_nbsd_vec sh_coff_vec sh_coff_le_vec"
1617 targ_defvec=sh_pe_le_vec
1618 targ_selvecs="sh_pe_le_vec sh_pei_le_vec"
1622 targ_defvec=sh_elf32_vxworks_vec
1623 targ_selvecs="sh_elf32_vxworks_le_vec"
1624 # FIXME None of the following are actually used on this target, but
1625 # they're necessary for coff-sh.c (which is unconditionally used) to be
1626 # compiled correctly.
1627 targ_selvecs="$targ_selvecs sh_coff_vec sh_coff_le_vec sh_coff_small_vec sh_coff_small_le_vec"
1631 targ_defvec=sh_coff_vec
1632 targ_selvecs="sh_coff_vec sh_coff_le_vec sh_coff_small_vec sh_coff_small_le_vec"
1637 targ_defvec=sparc_aout_sunos_be_vec
1638 targ_selvecs=sparc_aout_le_vec
1642 targ_defvec=sparc_aout_sunos_be_vec
1645 sparclite-*-elf* | sparc86x-*-elf*)
1646 targ_defvec=sparc_elf32_vec
1649 targ_defvec=sparc_elf32_vec
1651 sparc-*-linux*aout*)
1652 targ_defvec=sparc_aout_linux_vec
1653 targ_selvecs="sparc_elf32_vec sparc_aout_sunos_be_vec"
1656 sparc-*-linux-* | sparcv*-*-linux-*)
1657 targ_defvec=sparc_elf32_vec
1658 targ_selvecs="sparc_aout_linux_vec sparc_elf64_vec sparc_aout_sunos_be_vec"
1661 targ_defvec=sparc_elf32_vec
1662 targ_selvecs=sparc_aout_nbsd_vec
1664 sparc-*-netbsdaout* | sparc-*-netbsd*)
1665 targ_defvec=sparc_aout_nbsd_vec
1666 targ_selvecs=sparc_elf32_vec
1669 sparc-*-openbsd[0-2].* | sparc-*-openbsd3.[0-1])
1670 targ_defvec=sparc_aout_nbsd_vec
1674 targ_defvec=sparc_elf32_vec
1675 targ_selvecs=sparc_aout_nbsd_vec
1678 targ_defvec=sparc_elf32_vec
1679 targ_selvecs=sparc_aout_sunos_be_vec
1681 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
1682 targ_defvec=sparc_elf32_sol2_vec
1683 targ_selvecs=sparc_aout_sunos_be_vec
1686 sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*)
1687 targ_defvec=sparc_elf32_sol2_vec
1688 targ_selvecs="sparc_elf64_sol2_vec sparc_aout_sunos_be_vec"
1693 targ_defvec=sparc_elf32_vec
1696 targ_defvec=sparc_elf32_vxworks_vec
1697 targ_selvecs="sparc_elf32_vec sparc_aout_sunos_be_vec"
1700 targ_defvec=sparc_elf32_vec
1701 targ_selvecs="sparc_nlm32_vec sparc_aout_sunos_be_vec"
1705 targ_defvec=sparc_aout_sunos_be_vec
1710 targ_defvec=sparc_elf64_vec
1711 targ_selvecs="sparc_elf32_vec sparc_aout_linux_vec sparc_aout_sunos_be_vec"
1714 sparc64-*-elf* | sparc64-*-rtems* )
1715 targ_defvec=sparc_elf64_vec
1716 targ_selvecs=sparc_elf32_vec
1721 targ_defvec=sparc_coff_vec
1724 targ_defvec=sparc_elf32_vec
1725 targ_selvecs="sparc_aout_sunos_be_vec sparc_coff_vec"
1728 targ_defvec=sparc_aout_sunos_be_vec
1733 targ_defvec=spu_elf32_vec
1739 targ_defvec=aout_vec
1745 targ_defvec=tic6x_elf32_c6000_le_vec
1746 targ_selvecs="tic6x_elf32_c6000_be_vec tic6x_elf32_le_vec tic6x_elf32_be_vec"
1750 targ_defvec=tic6x_elf32_linux_le_vec
1751 targ_selvecs="tic6x_elf32_linux_be_vec tic6x_elf32_le_vec tic6x_elf32_be_vec"
1755 targ_defvec=tic80_coff_vec
1761 targ_defvec=tilegx_elf64_le_vec
1762 targ_selvecs="tilegx_elf64_be_vec tilegx_elf32_be_vec tilegx_elf32_le_vec"
1765 targ_defvec=tilegx_elf64_be_vec
1766 targ_selvecs="tilegx_elf64_le_vec tilegx_elf32_be_vec tilegx_elf32_le_vec"
1771 targ_defvec=tilepro_elf32_vec
1775 targ_defvec=ft32_elf32_vec
1779 targ_defvec=v850_elf32_vec
1780 targ_selvecs="v800_elf32_vec"
1784 targ_defvec=vax_elf32_vec
1785 targ_selvecs="vax_aout_nbsd_vec vax_aout_1knbsd_vec"
1788 vax-*-netbsdaout* | vax-*-netbsd*)
1789 targ_defvec=vax_aout_nbsd_vec
1790 targ_selvecs="vax_elf32_vec vax_aout_1knbsd_vec"
1794 vax-*-bsd* | vax-*-ultrix*)
1795 targ_defvec=vax_aout_bsd_vec
1800 targ_defvec=vax_aout_nbsd_vec
1805 targ_defvec=vax_elf32_vec
1809 targ_defvec=visium_elf32_vec
1813 targ_defvec=we32k_coff_vec
1817 targ_defvec=w65_coff_vec
1821 targ_defvec=xgate_elf32_vec
1822 targ_selvecs="xgate_elf32_vec"
1826 targ_defvec=xstormy16_elf32_vec
1830 targ_defvec=xtensa_elf32_le_vec
1831 targ_selvecs=xtensa_elf32_be_vec
1834 targ_defvec=xc16x_elf32_vec
1838 targ_defvec=z80_coff_vec
1843 targ_defvec=z8k_coff_vec
1848 targ_defvec=ieee_vec
1852 targ_defvec=aout_adobe_vec
1857 targ_defvec=m68k_aout_newsos3_vec
1862 targ_defvec=m68k_coff_vec
1863 targ_selvecs=ieee_vec
1865 # END OF targmatch.h
1867 echo 1>&2 "*** BFD does not support target ${targ}."
1868 echo 1>&2 "*** Look in bfd/config.bfd for supported targets."
1873 # All MIPS ELF targets need a 64-bit bfd_vma.
1874 case "${targ_defvec} ${targ_selvecs}" in
1880 case "${host64}${want64}" in
1882 targ_selvecs="${targ_selvecs} ${targ64_selvecs}"
1886 # If we support any ELF target, then automatically add support for the
1887 # generic ELF targets. This permits an objdump with some ELF support
1888 # to be used on an arbitrary ELF file for anything other than
1889 # relocation information.
1890 case "${targ_defvec} ${targ_selvecs}" in
1891 *elf64* | *mips_elf32_n*)
1892 targ_selvecs="${targ_selvecs} elf64_le_vec elf64_be_vec elf32_le_vec elf32_be_vec"
1895 targ_selvecs="${targ_selvecs} elf32_le_vec elf32_be_vec"
1899 # If we support Intel MCU target, then add support for bfd_iamcu_arch.
1900 case "${targ_defvec} ${targ_selvecs}" in
1902 targ_archs="$targ_archs bfd_iamcu_arch"
1906 # If we support Intel L1OM target, then add support for bfd_l1om_arch.
1907 case "${targ_defvec} ${targ_selvecs}" in
1909 targ_archs="$targ_archs bfd_l1om_arch"
1913 # If we support Intel K1OM target, then add support for bfd_k1om_arch.
1914 case "${targ_defvec} ${targ_selvecs}" in
1916 targ_archs="$targ_archs bfd_k1om_arch"