Add support to readelf to display NetBSD auxv notes in core files.
[deliverable/binutils-gdb.git] / bfd / config.bfd
CommitLineData
252b5132 1# config.bfd
5bf135a7 2#
82704155 3# Copyright (C) 2012-2019 Free Software Foundation, Inc.
5bf135a7
NC
4#
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.
1b786873 9#
5bf135a7
NC
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.
1b786873 14#
5bf135a7
NC
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/>.
18#
252b5132
RH
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
e9e69f5a
AM
25# targ64_selvecs Vectors to build if --enable-64-bit-bfd is given
26# or if host is 64 bit.
252b5132
RH
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
30
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.
34
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.
42
43targ_defvec=
44targ_selvecs=
e9e69f5a 45targ64_selvecs=
252b5132
RH
46targ_cflags=
47targ_underscore=no
48
91fb2a9d
NC
49# Catch obsolete configurations.
50case $targ in
73589c9d
CS
51 openrisc-*-* | or32-*-*)
52 echo "*** Configuration $targ is obsolete." >&2
53 echo "*** Use or1k-*-elf or or1k-*-linux as the target instead" >&2
54 exit 1
55 ;;
a7b34aba 56 c30-*-*aout* | tic30-*-*aout* | \
b2d65c0b 57 null)
91fb2a9d
NC
58 if test "x$enable_obsolete" != xyes; then
59 echo "*** Configuration $targ is obsolete." >&2
60 echo "*** Specify --enable-obsolete to build it anyway." >&2
61 echo "*** Support will be REMOVED in the next major release of BINUTILS," >&2
62 echo "*** unless a maintainer comes forward." >&2
63 exit 1
64 fi;;
65esac
66
7f266840 67case $targ in
3596d8ce
AM
68 *-*-netbsdelf* | i[3-7]86-*-netbsd*-gnu* | i[3-7]86-*-knetbsd*-gnu | \
69 mips*-*-irix5* | mips*-*-irix6*)
dc12032b
AM
70 # Not obsolete
71 ;;
a8eb42a8 72 *-adobe-* | \
73589c9d 73 *-go32-rtems* | \
5972ac73 74 *-sony-* | \
de96689e 75 *-tandem-* | \
fdef3943 76 *-*-ieee* | \
b4b594e3 77 *-*-netware* | \
4a7324e1 78 *-*-rtemsaout* | \
850d84f6 79 *-*-rtemscoff* | \
c17ae8a2 80 a29k-* | \
2ac93be7
AM
81 arm*-*-aout | \
82 arm-*-coff | \
83 arm-*-netbsd* | \
84 arm-*-openbsd* | \
73589c9d 85 arm-*-oabi | \
2ac93be7 86 arm-*-riscix* | \
ddb00039 87 arm-epoc-pe* | \
fe0bf0fd 88 h8300*-*-coff | \
e82aa794 89 h8500*-*-coff | \
7e4e2059 90 hppa*-*-rtems* | \
c65c21e1
AM
91 i[3-7]86-*-unixware* | \
92 i[3-7]86-*-dgux* | \
93 i[3-7]86-*-chorus* | \
94 i[3-7]86-*-sysv* | \
95 i[3-7]86-*-isc* | \
96 i[3-7]86-*-sco* | \
97 i[3-7]86-*-coff | \
98 i[3-7]86-*-aix* | \
99 i[3-7]86-sequent-bsd* | \
100 i[3-7]86-*-freebsdaout* | i[3-7]86-*-freebsd[12].* | i[3-7]86-*-freebsd[12] | \
101 i[3-7]86-*-netbsdaout* | i[3-7]86-*-netbsd* | \
102 i[3-7]86-*-openbsd[0-2].* | i[3-7]86-*-openbsd3.[0-3] | \
103 i[3-7]86-*-linux*aout* | \
104 i[3-7]86-*-mach* | i[3-7]86-*-osf1mk* | \
105 i[3-7]86-*-os9k | \
106 i[3-7]86-none-* | \
107 i[3-7]86-*-aout* | i[3-7]86*-*-vsta* | \
6793974d 108 i370-* | \
a8eb42a8
AM
109 i860-*-* | \
110 i960-*-* | \
dc12032b
AM
111 m68*-*-*bsd* | \
112 m68*-*-aout* | \
113 m68*-*-coff* | \
114 m68*-*-hpux* | \
115 m68*-*-linux*aout* | \
73589c9d 116 m68*-*-lynxos* | \
dc12032b
AM
117 m68*-*-os68k* | \
118 m68*-*-psos* | \
119 m68*-*-sunos* | \
120 m68*-*-sysv* | \
121 m68*-*-vsta* | \
122 m68*-*-vxworks* | \
73589c9d
CS
123 m68*-apollo-* | \
124 m68*-apple-aux* | \
125 m68*-bull-sysv* | \
dc12032b
AM
126 m68*-ericsson-* | \
127 m68*-motorola-sysv* | \
128 m68*-netx-* | \
c2bf1eec 129 m88*-*-* | \
73589c9d 130 maxq-*-coff | \
3596d8ce
AM
131 mips*-*-bsd* | \
132 mips*-*-ecoff* | \
133 mips*-*-lnews* | \
134 mips*-*-mach3* | \
135 mips*-*-pe* | \
136 mips*-*-riscos* | \
137 mips*-*-sysv* | \
138 mips*-big-* | \
139 mips*-dec-* | \
140 mips*-sgi-* | \
7e4e2059 141 mips*el-*-rtems* | \
2012bf01 142 powerpc-*-lynxos* | powerpc-*-windiss* | \
211dc24b 143 sh*-*-symbianelf* | sh5*-*-* | sh64*-*-* | \
c9098af4
AM
144 sparc*-*-*aout* | \
145 sparc*-*-chorus* | \
146 sparc*-*-coff* | \
73589c9d 147 sparc-*-lynxos* | \
c9098af4 148 sparc-*-openbsd[0-2].* | sparc-*-openbsd3.[0-1] | \
fceadf09 149 tahoe-*-* | \
9f5d1593 150 vax-*-bsd* | vax-*-ultrix* | vax-*-vms* | \
a9a4b302 151 w65-*-* | \
04cb01fd 152 we32k-*-* | \
7f266840
DJ
153 null)
154 echo "*** Configuration $targ is obsolete." >&2
155 echo "*** Support has been REMOVED." >&2
156 exit 1
157 ;;
158esac
91fb2a9d 159
252b5132
RH
160targ_cpu=`echo $targ | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
161case "${targ_cpu}" in
a06ea964 162aarch64*) targ_archs="bfd_aarch64_arch bfd_arm_arch";;
7d3f158f 163alpha*) targ_archs=bfd_alpha_arch ;;
6b200de0 164am33_2.0*) targ_archs=bfd_mn10300_arch ;;
886a2506 165arc*) targ_archs=bfd_arc_arch ;;
7d3f158f 166arm*) targ_archs=bfd_arm_arch ;;
0f64bb02 167bfin*) targ_archs=bfd_bfin_arch ;;
7d3f158f
AM
168c30*) targ_archs=bfd_tic30_arch ;;
169c4x*) targ_archs=bfd_tic4x_arch ;;
170c54x*) targ_archs=bfd_tic54x_arch ;;
3d3d428f 171cr16*) targ_archs=bfd_cr16_arch ;;
bac23f82 172crisv32) targ_archs=bfd_cris_arch ;;
7d3f158f 173crx*) targ_archs=bfd_crx_arch ;;
b8891f8d 174csky*) targ_archs=bfd_csky_arch ;;
d172d4ba 175dlx*) targ_archs=bfd_dlx_arch ;;
ebff6cd5 176fido*) targ_archs=bfd_m68k_arch ;;
7d3f158f
AM
177hppa*) targ_archs=bfd_hppa_arch ;;
178i[3-7]86) targ_archs=bfd_i386_arch ;;
2f5f29ca 179ia16) targ_archs=bfd_i386_arch ;;
84e94c90 180lm32) targ_archs=bfd_lm32_arch ;;
6927f982
NC
181m6811*|m68hc11*) targ_archs="bfd_m68hc11_arch bfd_m68hc12_arch bfd_m9s12x_arch bfd_m9s12xg_arch" ;;
182m6812*|m68hc12*) targ_archs="bfd_m68hc12_arch bfd_m68hc11_arch bfd_m9s12x_arch bfd_m9s12xg_arch" ;;
7d3f158f 183m68*) targ_archs=bfd_m68k_arch ;;
7b4ae824 184s12z*) targ_archs=bfd_s12z_arch ;;
7ba29e2a 185microblaze*) targ_archs=bfd_microblaze_arch ;;
7d3f158f 186mips*) targ_archs=bfd_mips_arch ;;
35c08157 187nds32*) targ_archs=bfd_nds32_arch ;;
fe944acf 188nfp) targ_archs=bfd_nfp_arch ;;
36591ba1 189nios2*) targ_archs=bfd_nios2_arch ;;
73589c9d 190or1k*|or1knd*) targ_archs=bfd_or1k_arch ;;
7d3f158f
AM
191pdp11*) targ_archs=bfd_pdp11_arch ;;
192pj*) targ_archs="bfd_pj_arch bfd_i386_arch";;
193powerpc*) targ_archs="bfd_rs6000_arch bfd_powerpc_arch" ;;
889294f6 194pru*) targ_archs=bfd_pru_arch ;;
e23eba97 195riscv*) targ_archs=bfd_riscv_arch ;;
7d3f158f
AM
196rs6000) targ_archs="bfd_rs6000_arch bfd_powerpc_arch" ;;
197s390*) targ_archs=bfd_s390_arch ;;
198sh*) targ_archs=bfd_sh_arch ;;
199sparc*) targ_archs=bfd_sparc_arch ;;
e9f53129 200spu*) targ_archs=bfd_spu_arch ;;
aa137e4d
NC
201tilegx*) targ_archs=bfd_tilegx_arch ;;
202tilepro*) targ_archs=bfd_tilepro_arch ;;
de863c74 203v850*) targ_archs="bfd_v850_arch bfd_v850_rh850_arch" ;;
d924db55 204visium*) targ_archs=bfd_visium_arch ;;
8fb740dd 205wasm32) targ_archs=bfd_wasm32_arch ;;
99ad8390 206x86_64*) targ_archs=bfd_i386_arch ;;
7d3f158f 207xtensa*) targ_archs=bfd_xtensa_arch ;;
f6c1a2d5 208xgate) targ_archs=bfd_xgate_arch ;;
3c9b82ba 209z80|r800) targ_archs=bfd_z80_arch ;;
7d3f158f 210z8k*) targ_archs=bfd_z8k_arch ;;
7d3f158f 211*) targ_archs=bfd_${targ_cpu}_arch ;;
252b5132
RH
212esac
213
214
215# WHEN ADDING ENTRIES TO THIS MATRIX:
216# Make sure that the left side always has two dashes. Otherwise you
217# can get spurious matches. Even for unambiguous cases, do this as a
218# convention, else the table becomes a real mess to understand and maintain.
219
220case "${targ}" in
ce3c775b
NC
221 plugin)
222 targ_defvec=plugin_vec
223 targ_selvecs="plugin_vec"
224 ;;
225
252b5132
RH
226# START OF targmatch.h
227#ifdef BFD64
f075eb5e
TG
228 aarch64-*-darwin*)
229 targ_defvec=aarch64_mach_o_vec
230 targ_selvecs="arm_mach_o_vec mach_o_le_vec mach_o_be_vec mach_o_fat_vec"
231 targ_archs="$targ_archs bfd_i386_arch bfd_powerpc_arch bfd_rs6000_arch"
232 want64=true
233 ;;
12a132db 234 aarch64-*-elf | aarch64-*-rtems*)
6d00b590
AM
235 targ_defvec=aarch64_elf64_le_vec
236 targ_selvecs="aarch64_elf64_be_vec aarch64_elf32_le_vec aarch64_elf32_be_vec arm_elf32_le_vec arm_elf32_be_vec"
a06ea964
NC
237 want64=true
238 ;;
239 aarch64_be-*-elf)
6d00b590
AM
240 targ_defvec=aarch64_elf64_be_vec
241 targ_selvecs="aarch64_elf64_le_vec aarch64_elf32_le_vec aarch64_elf32_be_vec arm_elf32_be_vec arm_elf32_le_vec"
a06ea964
NC
242 want64=true
243 ;;
15c7659f
AT
244 aarch64-*-freebsd*)
245 targ_defvec=aarch64_elf64_le_vec
246 targ_selvecs="aarch64_elf64_be_vec arm_elf32_le_vec arm_elf32_be_vec"
247 want64=true
248 ;;
d5451cd4
JC
249 aarch64-*-fuchsia*)
250 targ_defvec=aarch64_elf64_le_vec
251 targ_selvecs="aarch64_elf64_be_vec arm_elf32_le_vec arm_elf32_be_vec"
252 want64=true
253 ;;
a75cf613
ES
254 aarch64-*-cloudabi*)
255 targ_defvec=aarch64_elf64_le_cloudabi_vec
256 targ_selvecs=aarch64_elf64_be_cloudabi_vec
257 want64=true
258 ;;
a06ea964 259 aarch64-*-linux*)
6d00b590
AM
260 targ_defvec=aarch64_elf64_le_vec
261 targ_selvecs="aarch64_elf64_be_vec aarch64_elf32_le_vec aarch64_elf32_be_vec arm_elf32_le_vec arm_elf32_be_vec"
a06ea964
NC
262 want64=true
263 ;;
264 aarch64_be-*-linux*)
6d00b590
AM
265 targ_defvec=aarch64_elf64_be_vec
266 targ_selvecs="aarch64_elf64_le_vec aarch64_elf32_le_vec aarch64_elf32_be_vec arm_elf32_be_vec arm_elf32_le_vec"
a06ea964
NC
267 want64=true
268 ;;
13dfd2d0 269 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
6d00b590
AM
270 targ_defvec=alpha_elf64_fbsd_vec
271 targ_selvecs="alpha_elf64_vec alpha_ecoff_le_vec"
314e9a4e 272 want64=true
4ada7262
DB
273 # FreeBSD <= 4.0 supports only the old nonstandard way of ABI labelling.
274 case "${targ}" in
275 alpha*-*-freebsd3* | alpha*-*-freebsd4 | alpha*-*-freebsd4.0*)
276 targ_cflags=-DOLD_FREEBSD_ABI_LABEL ;;
277 esac
278 ;;
279 alpha*-*-netbsd* | alpha*-*-openbsd*)
6d00b590
AM
280 targ_defvec=alpha_elf64_vec
281 targ_selvecs=alpha_ecoff_le_vec
314e9a4e 282 want64=true
252b5132 283 ;;
df26367c 284 alpha*-*-linux*ecoff*)
6d00b590
AM
285 targ_defvec=alpha_ecoff_le_vec
286 targ_selvecs=alpha_elf64_vec
314e9a4e 287 want64=true
252b5132 288 ;;
ed84e695 289 alpha*-*-linux-* | alpha*-*-elf*)
6d00b590
AM
290 targ_defvec=alpha_elf64_vec
291 targ_selvecs=alpha_ecoff_le_vec
314e9a4e 292 want64=true
252b5132
RH
293 ;;
294 alpha*-*-*vms*)
6d00b590
AM
295 targ_defvec=alpha_vms_vec
296 targ_selvecs=alpha_vms_lib_txt_vec
314e9a4e 297 want64=true
252b5132
RH
298 ;;
299 alpha*-*-*)
6d00b590 300 targ_defvec=alpha_ecoff_le_vec
314e9a4e 301 want64=true
252b5132 302 ;;
ed84e695 303 ia64*-*-freebsd* | ia64*-*-netbsd* | ia64*-*-linux-* | ia64*-*-elf* | ia64*-*-kfreebsd*-gnu)
6d00b590
AM
304 targ_defvec=ia64_elf64_le_vec
305 targ_selvecs="ia64_elf64_be_vec ia64_pei_vec"
314e9a4e 306 want64=true
800eeca4 307 ;;
bbe66d08 308 ia64*-*-hpux*)
6d00b590
AM
309 targ_defvec=ia64_elf32_hpux_be_vec
310 targ_selvecs="ia64_elf64_hpux_be_vec"
314e9a4e 311 want64=true
bbe66d08 312 ;;
01e1a5bc 313 ia64*-*-*vms*)
6d00b590
AM
314 targ_defvec=ia64_elf64_vms_vec
315 targ_selvecs=alpha_vms_lib_txt_vec
01e1a5bc
NC
316 want64=true
317 ;;
252b5132
RH
318#endif /* BFD64 */
319
6b200de0 320 am33_2.0-*-linux*)
6d00b590 321 targ_defvec=am33_elf32_linux_vec
73c3cd1c 322 ;;
bfff1642 323
f7e8b360
NC
324 arc*eb-*-elf* | arc*eb-*-linux*)
325 targ_defvec=arc_elf32_be_vec
326 targ_selvecs=arc_elf32_le_vec
327 ;;
328
4ad0bb5f 329 arc*-*-elf* | arc*-*-linux*)
6d00b590
AM
330 targ_defvec=arc_elf32_le_vec
331 targ_selvecs=arc_elf32_be_vec
252b5132
RH
332 ;;
333
f075eb5e
TG
334 arm-*-darwin*)
335 targ_defvec=arm_mach_o_vec
336 targ_selvecs="mach_o_le_vec mach_o_be_vec mach_o_fat_vec"
337 targ_archs="$targ_archs bfd_i386_arch bfd_powerpc_arch bfd_rs6000_arch"
338 ;;
d5451cd4
JC
339 arm-*-fuchsia*)
340 targ_defvec=arm_elf32_le_vec
341 targ_selvecs="arm_elf32_be_vec"
342 ;;
b38cadfb 343 arm-*-nacl*)
6d00b590
AM
344 targ_defvec=arm_elf32_nacl_le_vec
345 targ_selvecs="arm_elf32_nacl_be_vec i386_elf32_nacl_vec"
346 targ64_selvecs="x86_64_elf32_nacl_vec x86_64_elf64_nacl_vec"
b38cadfb
NC
347 targ_archs="$targ_archs bfd_i386_arch"
348 ;;
349 armeb-*-nacl*)
6d00b590
AM
350 targ_defvec=arm_elf32_nacl_be_vec
351 targ_selvecs="arm_elf32_nacl_le_vec i386_elf32_nacl_vec"
352 targ64_selvecs="x86_64_elf32_nacl_vec x86_64_elf64_nacl_vec"
b38cadfb
NC
353 targ_archs="$targ_archs bfd_i386_arch"
354 ;;
658f2588 355 armeb-*-netbsdelf*)
6d00b590 356 targ_defvec=arm_elf32_be_vec
2ac93be7 357 targ_selvecs="arm_elf32_le_vec"
658f2588 358 ;;
61d0bc33 359 arm-*-netbsdelf*)
6d00b590 360 targ_defvec=arm_elf32_le_vec
2ac93be7 361 targ_selvecs="arm_elf32_be_vec"
021e3cc0 362 ;;
7e392df6 363 arm-*-nto* | nto*arm*)
6d00b590
AM
364 targ_defvec=arm_elf32_le_vec
365 targ_selvecs=arm_elf32_be_vec
a7c7b2ba 366 targ_cflags=-D__QNXTARGET__
7e392df6 367 ;;
361dff73 368 arm-wince-pe | arm-*-wince | arm*-*-mingw32ce* | arm*-*-cegcc*)
6d00b590
AM
369 targ_defvec=arm_pe_wince_le_vec
370 targ_selvecs="arm_pe_wince_le_vec arm_pe_wince_be_vec arm_pei_wince_le_vec arm_pei_wince_be_vec"
17505c5c 371 targ_underscore=no
ac4b3dd8 372 targ_cflags="-DARM_WINCE -DARM_COFF_BUGFIX"
17505c5c 373 ;;
252b5132 374 arm-*-pe*)
6d00b590
AM
375 targ_defvec=arm_pe_le_vec
376 targ_selvecs="arm_pe_le_vec arm_pe_be_vec arm_pei_le_vec arm_pei_be_vec"
252b5132
RH
377 targ_underscore=yes
378 ;;
a2bea324
KS
379 arm-*-phoenix*)
380 targ_defvec=arm_elf32_le_vec
381 targ_selvecs=arm_elf32_be_vec
382 ;;
01e6c1a4 383 armeb-*-elf | arm*b-*-freebsd* | arm*b-*-linux-* | armeb-*-eabi*)
6d00b590
AM
384 targ_defvec=arm_elf32_be_vec
385 targ_selvecs=arm_elf32_le_vec
1bde2d57 386 ;;
8c5fc800 387 arm-*-kaos*)
6d00b590
AM
388 targ_defvec=arm_elf32_le_vec
389 targ_selvecs=arm_elf32_be_vec
42b5d0ea 390 ;;
e59bc75b 391 arm-*-elf | arm*-*-freebsd* | arm*-*-linux-* | arm*-*-conix* | \
4e7fd91e 392 arm*-*-uclinux* | arm-*-kfreebsd*-gnu | \
617a5ada 393 arm*-*-eabi* | arm-*-rtems* | arm*-*-uclinuxfdpiceabi)
6d00b590 394 targ_defvec=arm_elf32_le_vec
617a5ada 395 targ_selvecs="arm_elf32_fdpic_le_vec arm_elf32_be_vec arm_elf32_fdpic_be_vec"
252b5132 396 ;;
4e7fd91e 397 arm*-*-vxworks | arm*-*-windiss)
6d00b590
AM
398 targ_defvec=arm_elf32_vxworks_le_vec
399 targ_selvecs=arm_elf32_vxworks_be_vec
4e7fd91e 400 ;;
e5a52504 401 arm*-*-symbianelf*)
6d00b590
AM
402 targ_defvec=arm_elf32_symbian_le_vec
403 targ_selvecs=arm_elf32_symbian_be_vec
e5a52504 404 ;;
24c603fa 405 arm9e-*-elf)
6d00b590
AM
406 targ_defvec=arm_elf32_le_vec
407 targ_selvecs=arm_elf32_be_vec
24c603fa 408 ;;
252b5132 409
adde6300 410 avr-*-*)
6d00b590 411 targ_defvec=avr_elf32_vec
adde6300
AM
412 ;;
413
0f64bb02 414 bfin-*-*)
6d00b590
AM
415 targ_defvec=bfin_elf32_vec
416 targ_selvecs=bfin_elf32_fdpic_vec
48d502e1 417 targ_underscore=yes
0f64bb02
CM
418 ;;
419
252b5132
RH
420 c30-*-*aout* | tic30-*-*aout*)
421 targ_defvec=tic30_aout_vec
422 ;;
423 c30-*-*coff* | tic30-*-*coff*)
424 targ_defvec=tic30_coff_vec
425 ;;
426
850d84f6 427 c4x-*-*coff* | tic4x-*-*coff*)
026df7c5
NC
428 targ_defvec=tic4x_coff1_vec
429 targ_selvecs="tic4x_coff1_beh_vec tic4x_coff2_vec tic4x_coff2_beh_vec tic4x_coff0_vec tic4x_coff0_beh_vec"
430 targ_underscore=yes
431 ;;
432
81635ce4
TW
433 c54x*-*-*coff* | tic54x-*-*coff*)
434 targ_defvec=tic54x_coff1_vec
435 targ_selvecs="tic54x_coff1_beh_vec tic54x_coff2_vec tic54x_coff2_beh_vec tic54x_coff0_vec tic54x_coff0_beh_vec"
436 targ_underscore=yes
437 ;;
438
bab4becb 439 cr16-*-elf* | cr16*-*-uclinux*)
6d00b590 440 targ_defvec=cr16_elf32_vec
3d3d428f
NC
441 targ_underscore=yes
442 ;;
443
0949843d 444 cr16c-*-elf*)
6d00b590 445 targ_defvec=cr16c_elf32_vec
0949843d
NC
446 targ_underscore=yes
447 ;;
448
56fbd041 449#ifdef BFD64
875ffa3e 450 cris-*-* | crisv32-*-*)
06c15ad7 451 targ_defvec=cris_aout_vec
fdef3943 452 targ_selvecs="cris_elf32_us_vec cris_elf32_vec"
875ffa3e
AM
453 case "${targ}" in
454 *-*-linux*) ;;
455 *) targ_underscore=yes ;;
456 esac
56fbd041 457 want64=true
06c15ad7 458 ;;
56fbd041 459#endif
06c15ad7 460
1fe1f39c 461 crx-*-elf*)
6d00b590 462 targ_defvec=crx_elf32_vec
1fe1f39c
NC
463 targ_underscore=yes
464 ;;
465
b8891f8d 466 csky-*-elf* | csky-*-linux* )
d9858c37 467 targ_defvec=csky_elf32_le_vec
b8891f8d
AJ
468 targ_selvecs="csky_elf32_be_vec csky_elf32_le_vec"
469 ;;
470
252b5132 471 d10v-*-*)
6d00b590 472 targ_defvec=d10v_elf32_vec
252b5132
RH
473 ;;
474
d172d4ba 475 dlx-*-elf*)
6d00b590
AM
476 targ_defvec=dlx_elf32_be_vec
477 targ_selvecs="dlx_elf32_be_vec"
d172d4ba
NC
478 ;;
479
252b5132 480 d30v-*-*)
6d00b590 481 targ_defvec=d30v_elf32_vec
252b5132
RH
482 ;;
483
45d5293f 484#ifdef BFD64
fd0de36e
JM
485 bpf-*-none)
486 targ_defvec=bpf_elf64_le_vec
487 targ_selvecs=bpf_elf64_be_vec
488 targ_underscore=yes
489 ;;
45d5293f 490#endif
fd0de36e 491
319c2dbe 492 epiphany-*-*)
6d00b590 493 targ_defvec=epiphany_elf32_vec
bdd32e03 494 targ_underscore=yes
cfb8c092
NC
495 ;;
496
ebff6cd5 497 fido-*-elf* )
6d00b590 498 targ_defvec=m68k_elf32_vec
ebff6cd5
KH
499 ;;
500
252b5132 501 fr30-*-elf)
6d00b590 502 targ_defvec=fr30_elf32_vec
252b5132
RH
503 ;;
504
43850d5b 505 frv-*-elf)
6d00b590
AM
506 targ_defvec=frv_elf32_vec
507 targ_selvecs=frv_elf32_fdpic_vec
4e5ba5b7
DB
508 ;;
509
43850d5b 510 frv-*-*linux*)
6d00b590
AM
511 targ_defvec=frv_elf32_fdpic_vec
512 targ_selvecs=frv_elf32_vec
43850d5b 513 ;;
252b5132 514
730fbaf8 515 moxie-*-elf | moxie-*-rtems* | moxie-*-uclinux)
6d00b590
AM
516 targ_defvec=moxie_elf32_be_vec
517 targ_selvecs=moxie_elf32_le_vec
20135e4c
NC
518 ;;
519
48494700
AG
520 moxie-*-moxiebox*)
521 targ_defvec=moxie_elf32_le_vec
522 ;;
523
9a813b7a 524 h8300*-*-elf | h8300*-*-rtems*)
6d00b590 525 targ_defvec=h8300_elf32_vec
e01b0e69
JR
526 targ_underscore=yes
527 ;;
528
5518c738
YS
529 h8300*-*-linux*)
530 targ_defvec=h8300_elf32_linux_vec
531 ;;
532
60bcf0fa 533#ifdef BFD64
ed84e695 534 hppa*64*-*-linux-*)
6d00b590
AM
535 targ_defvec=hppa_elf64_linux_vec
536 targ_selvecs=hppa_elf64_vec
314e9a4e 537 want64=true
edd21aca 538 ;;
d1dab720 539 hppa*64*-*-hpux11*)
6d00b590
AM
540 targ_defvec=hppa_elf64_vec
541 targ_selvecs=hppa_elf64_linux_vec
e59db122 542 targ_cflags=-DHPUX_LARGE_AR_IDS
314e9a4e 543 want64=true
e59db122
JL
544 ;;
545#endif
edd21aca 546
ed84e695 547 hppa*-*-linux-*)
6d00b590
AM
548 targ_defvec=hppa_elf32_linux_vec
549 targ_selvecs=hppa_elf32_vec
d952f17a 550 ;;
e7fbc2bf 551 hppa*-*-netbsd*)
6d00b590
AM
552 targ_defvec=hppa_elf32_nbsd_vec
553 targ_selvecs="hppa_elf32_vec hppa_elf32_linux_vec"
e7fbc2bf 554 ;;
7e4e2059 555 hppa*-*-*elf* | hppa*-*-lites* | hppa*-*-sysv4* | hppa*-*-openbsd*)
6d00b590
AM
556 targ_defvec=hppa_elf32_vec
557 targ_selvecs=hppa_elf32_linux_vec
edd21aca
AM
558 ;;
559
252b5132 560 hppa*-*-bsd*)
6d00b590
AM
561 targ_defvec=hppa_som_vec
562 targ_selvecs=hppa_elf32_vec
e59db122 563 ;;
252b5132 564 hppa*-*-hpux* | hppa*-*-hiux* | hppa*-*-mpeix*)
6d00b590 565 targ_defvec=hppa_som_vec
252b5132
RH
566 ;;
567 hppa*-*-osf*)
6d00b590
AM
568 targ_defvec=hppa_som_vec
569 targ_selvecs=hppa_elf32_vec
e59db122 570 ;;
252b5132 571
c65c21e1 572 i[3-7]86-*-elf* | i[3-7]86-*-rtems*)
6d00b590 573 targ_defvec=i386_elf32_vec
bf64a951 574 targ_selvecs="iamcu_elf32_vec i386_coff_vec"
252b5132 575 ;;
d2b2c203 576 i[3-7]86-*-solaris2*)
6d00b590 577 targ_defvec=i386_elf32_sol2_vec
d00c2bc9
L
578 targ_selvecs="iamcu_elf32_vec i386_coff_vec i386_pei_vec"
579 targ64_selvecs="x86_64_elf64_sol2_vec l1om_elf64_vec k1om_elf64_vec x86_64_pei_vec"
d2b2c203
DJ
580 want64=true
581 ;;
00b2bfc1
NC
582#ifdef BFD64
583 x86_64-*-solaris2*)
6d00b590 584 targ_defvec=i386_elf32_sol2_vec
d00c2bc9 585 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"
00b2bfc1
NC
586 want64=true
587 ;;
588#endif
80c7c40a 589 i[3-7]86-*-nto*)
6d00b590 590 targ_defvec=i386_elf32_vec
bf64a951 591 targ_selvecs="iamcu_elf32_vec i386_coff_vec"
caf47ea6 592 ;;
80c7c40a 593 i[3-7]86-*-aros*)
6d00b590 594 targ_defvec=i386_elf32_vec
bf64a951 595 targ_selvecs=iamcu_elf32_vec
da896d3f 596 ;;
18c1668c 597 i[3-7]86-*-dicos*)
6d00b590 598 targ_defvec=i386_elf32_vec
bf64a951 599 targ_selvecs=iamcu_elf32_vec
6d00b590 600 targ64_selvecs="x86_64_elf64_vec l1om_elf64_vec k1om_elf64_vec"
18c1668c 601 ;;
7e4e2059 602 *-*-msdosdjgpp* | *-*-go32* )
6d00b590
AM
603 targ_defvec=i386_coff_go32_vec
604 targ_selvecs="i386_coff_go32stubbed_vec i386_aout_vec"
252b5132 605 ;;
80c7c40a 606 i[3-7]86-*-darwin* | i[3-7]86-*-macos10* | i[3-7]86-*-rhapsody*)
6d00b590 607 targ_defvec=i386_mach_o_vec
618b7301 608 targ_selvecs="mach_o_le_vec mach_o_be_vec mach_o_fat_vec pef_vec pef_xlib_vec sym_vec"
6d00b590 609 targ64_selvecs=x86_64_mach_o_vec
618b7301 610 targ_archs="$targ_archs bfd_powerpc_arch bfd_rs6000_arch"
b1c58715 611 ;;
80c7c40a 612 i[3-7]86-*-bsd*)
6d00b590 613 targ_defvec=i386_aout_bsd_vec
252b5132
RH
614 targ_underscore=yes
615 ;;
5b806d27 616 i[3-7]86-*-dragonfly*)
6d00b590 617 targ_defvec=i386_elf32_vec
bf64a951 618 targ_selvecs=iamcu_elf32_vec
6d00b590 619 targ64_selvecs="x86_64_elf64_vec l1om_elf64_vec k1om_elf64_vec"
5b806d27 620 ;;
5b806d27 621 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
6d00b590 622 targ_defvec=i386_elf32_fbsd_vec
bf64a951 623 targ_selvecs="i386_elf32_vec iamcu_elf32_vec i386_pei_vec i386_coff_vec"
6d00b590 624 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"
4ada7262
DB
625 # FreeBSD <= 4.0 supports only the old nonstandard way of ABI labelling.
626 case "${targ}" in
80c7c40a 627 i[3-7]86-*-freebsd3* | i[3-7]86-*-freebsd4 | i[3-7]86-*-freebsd4.0*)
4ada7262
DB
628 targ_cflags=-DOLD_FREEBSD_ABI_LABEL ;;
629 esac
7a50d4ac 630 ;;
4615568e 631 i[3-7]86-*-netbsdelf* | i[3-7]86-*-netbsd*-gnu* | i[3-7]86-*-knetbsd*-gnu)
6d00b590 632 targ_defvec=i386_elf32_vec
c65c21e1 633 targ_selvecs="iamcu_elf32_vec"
6d00b590 634 targ64_selvecs="x86_64_elf64_vec l1om_elf64_vec k1om_elf64_vec"
0af288f3 635 ;;
80c7c40a 636 i[3-7]86-*-netbsdpe*)
6d00b590 637 targ_defvec=i386_pe_vec
bf64a951 638 targ_selvecs="i386_pe_vec i386_pei_vec i386_elf32_vec iamcu_elf32_vec"
436e8db0 639 ;;
7d3f158f 640 i[3-7]86-*-openbsd*)
6d00b590 641 targ_defvec=i386_elf32_vec
c65c21e1 642 targ_selvecs="iamcu_elf32_vec"
252b5132 643 ;;
ed84e695 644 i[3-7]86-*-linux-*)
6d00b590 645 targ_defvec=i386_elf32_vec
c65c21e1 646 targ_selvecs="iamcu_elf32_vec i386_pei_vec"
6d00b590 647 targ64_selvecs="x86_64_elf64_vec x86_64_elf32_vec x86_64_pei_vec l1om_elf64_vec k1om_elf64_vec"
252b5132 648 ;;
a27e4371 649 i[3-7]86-*-nacl*)
6d00b590
AM
650 targ_defvec=i386_elf32_nacl_vec
651 targ_selvecs="arm_elf32_nacl_be_vec arm_elf32_nacl_le_vec"
652 targ64_selvecs="x86_64_elf64_nacl_vec x86_64_elf32_nacl_vec"
b38cadfb 653 targ_archs="$targ_archs bfd_arm_arch"
a27e4371 654 ;;
f2e2d2f5
JS
655 i[3-7]86-*-redox*)
656 targ_defvec=i386_elf32_vec
657 targ_selvecs=
658 targ64_selvecs=x86_64_elf64_vec
659 ;;
956cd1d6 660#ifdef BFD64
6036f486
ES
661 x86_64-*-cloudabi*)
662 targ_defvec=x86_64_elf64_cloudabi_vec
663 want64=true
664 ;;
f96fc22a 665 x86_64-*-darwin*)
6d00b590
AM
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"
618b7301 668 targ_archs="$targ_archs bfd_powerpc_arch bfd_rs6000_arch"
f96fc22a
TG
669 want64=true
670 ;;
18c1668c 671 x86_64-*-dicos*)
6d00b590 672 targ_defvec=x86_64_elf64_vec
bf64a951 673 targ_selvecs="i386_elf32_vec iamcu_elf32_vec l1om_elf64_vec k1om_elf64_vec"
18c1668c
PA
674 want64=true
675 ;;
d5451cd4 676 x86_64-*-elf* | x86_64-*-rtems* | x86_64-*-fuchsia)
6d00b590 677 targ_defvec=x86_64_elf64_vec
bf64a951 678 targ_selvecs="i386_elf32_vec iamcu_elf32_vec x86_64_elf32_vec l1om_elf64_vec k1om_elf64_vec"
421acf18
AC
679 case "${targ}" in
680 x86_64-*-rtems*)
681 targ_selvecs="${targ_selvecs} x86_64_pei_vec"
682 esac
314e9a4e 683 want64=true
34723071 684 ;;
5b806d27 685 x86_64-*-dragonfly*)
6d00b590 686 targ_defvec=x86_64_elf64_vec
bf64a951 687 targ_selvecs="i386_elf32_vec iamcu_elf32_vec l1om_elf64_vec k1om_elf64_vec"
5b806d27
NC
688 want64=true
689 ;;
13dfd2d0 690 x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
6d00b590 691 targ_defvec=x86_64_elf64_fbsd_vec
bf64a951 692 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"
314e9a4e 693 want64=true
8a8b2d4b 694 ;;
85cfd8d3 695 x86_64-*-netbsd* | x86_64-*-openbsd*)
6d00b590 696 targ_defvec=x86_64_elf64_vec
c65c21e1 697 targ_selvecs="i386_elf32_vec iamcu_elf32_vec i386_coff_vec i386_pei_vec x86_64_pei_vec l1om_elf64_vec k1om_elf64_vec"
314e9a4e 698 want64=true
d4af9775 699 ;;
ed84e695 700 x86_64-*-linux-*)
6d00b590 701 targ_defvec=x86_64_elf64_vec
c65c21e1 702 targ_selvecs="i386_elf32_vec iamcu_elf32_vec x86_64_elf32_vec i386_pei_vec x86_64_pei_vec l1om_elf64_vec k1om_elf64_vec"
314e9a4e 703 want64=true
8d88c4ca 704 ;;
8059fb19 705 x86_64-*-nacl*)
6d00b590
AM
706 targ_defvec=x86_64_elf32_nacl_vec
707 targ_selvecs="i386_elf32_nacl_vec x86_64_elf64_nacl_vec arm_elf32_nacl_be_vec arm_elf32_nacl_le_vec"
b38cadfb 708 targ_archs="$targ_archs bfd_arm_arch"
8059fb19
RM
709 want64=true
710 ;;
48385e38 711 x86_64-*-mingw* | x86_64-*-pe | x86_64-*-pep | x86_64-*-cygwin)
6d00b590 712 targ_defvec=x86_64_pe_vec
bf64a951 713 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"
99ad8390 714 want64=true
ef72a554 715 targ_underscore=no
99ad8390 716 ;;
79056107 717 x86_64-*-rdos*)
6d00b590 718 targ_defvec=x86_64_elf64_vec
79056107
AM
719 want64=true
720 ;;
f2e2d2f5
JS
721 x86_64-*-redox*)
722 targ_defvec=x86_64_elf64_vec
723 targ_selvecs=i386_elf32_vec
724 want64=true
725 ;;
8d88c4ca 726#endif
80c7c40a 727 i[3-7]86-*-lynxos*)
6d00b590 728 targ_defvec=i386_elf32_vec
bf64a951 729 targ_selvecs="iamcu_elf32_vec i386_coff_lynx_vec i386_aout_lynx_vec"
252b5132 730 ;;
80c7c40a 731 i[3-7]86-*-gnu*)
6d00b590 732 targ_defvec=i386_elf32_vec
bf64a951 733 targ_selvecs=iamcu_elf32_vec
252b5132 734 ;;
80c7c40a 735 i[3-7]86-*-msdos*)
6d00b590
AM
736 targ_defvec=i386_aout_vec
737 targ_selvecs=i386_msdos_vec
252b5132 738 ;;
80c7c40a 739 i[3-7]86-*-moss*)
6d00b590 740 targ_defvec=i386_elf32_vec
bf64a951 741 targ_selvecs="iamcu_elf32_vec i386_msdos_vec i386_aout_vec"
252b5132 742 ;;
80c7c40a 743 i[3-7]86-*-beospe*)
6d00b590
AM
744 targ_defvec=i386_pe_vec
745 targ_selvecs="i386_pe_vec i386_pei_vec"
252b5132 746 ;;
80c7c40a 747 i[3-7]86-*-beoself* | i[3-7]86-*-beos*)
6d00b590 748 targ_defvec=i386_elf32_vec
bf64a951 749 targ_selvecs="iamcu_elf32_vec i386_pe_vec i386_pei_vec"
252b5132 750 ;;
80c7c40a 751 i[3-7]86-*-interix*)
6d00b590
AM
752 targ_defvec=i386_pei_vec
753 targ_selvecs="i386_pe_vec"
0717ebb7
ILT
754 # FIXME: This should eventually be checked at runtime.
755 targ_cflags=-DSTRICT_PE_FORMAT
7d923127 756 ;;
b59bea8a 757 i[3-7]86-*-rdos*)
6d00b590 758 targ_defvec=i386_elf32_vec
bf64a951 759 targ_selvecs="iamcu_elf32_vec i386_coff_vec"
b59bea8a 760 ;;
80c7c40a 761 i[3-7]86-*-mingw32* | i[3-7]86-*-cygwin* | i[3-7]86-*-winnt | i[3-7]86-*-pe)
6d00b590 762 targ_defvec=i386_pe_vec
bf64a951 763 targ_selvecs="i386_pe_vec i386_pei_vec i386_elf32_vec iamcu_elf32_vec"
db3d41a8 764 targ_underscore=yes
252b5132 765 ;;
e26f8bd9 766 i[3-7]86-*-vxworks*)
6d00b590 767 targ_defvec=i386_elf32_vxworks_vec
957ccf44 768 targ_underscore=yes
ac352105 769 ;;
252b5132 770
2f5f29ca
AJ
771 ia16-*-elf)
772 targ_defvec=i386_elf32_vec
773 targ_selvecs="i386_msdos_vec i386_aout_vec"
774 ;;
775
cf88bb9f 776 ip2k-*-elf)
6d00b590 777 targ_defvec=ip2k_elf32_vec
bdd32e03 778 targ_underscore=yes
cf88bb9f
NC
779 ;;
780
a75473eb 781 iq2000-*-elf)
6d00b590 782 targ_defvec=iq2000_elf32_vec
a75473eb
SC
783 ;;
784
3baa454d 785 lm32-*-elf | lm32-*-rtems*)
6d00b590
AM
786 targ_defvec=lm32_elf32_vec
787 targ_selvecs=lm32_elf32_fdpic_vec
84e94c90 788 ;;
a27e4371 789
84e94c90 790 lm32-*-*linux*)
6d00b590
AM
791 targ_defvec=lm32_elf32_fdpic_vec
792 targ_selvecs=lm32_elf32_vec
84e94c90 793 ;;
a27e4371 794
8a2a2dbb 795 m32c-*-elf | m32c-*-rtems*)
6d00b590 796 targ_defvec=m32c_elf32_vec
bdd32e03 797 targ_underscore=yes
e729279b
NC
798 ;;
799
6edf0760 800 m32r*le-*-linux*)
6d00b590
AM
801 targ_defvec=m32r_elf32_linux_le_vec
802 targ_selvecs="m32r_elf32_linux_vec m32r_elf32_linux_le_vec"
6edf0760 803 ;;
6edf0760 804 m32r*-*-linux*)
6d00b590
AM
805 targ_defvec=m32r_elf32_linux_vec
806 targ_selvecs="m32r_elf32_linux_vec m32r_elf32_linux_le_vec"
6edf0760 807 ;;
6edf0760 808 m32r*le-*-*)
6d00b590
AM
809 targ_defvec=m32r_elf32_le_vec
810 targ_selvecs="m32r_elf32_vec m32r_elf32_le_vec"
6edf0760 811 ;;
252b5132 812 m32r-*-*)
6d00b590 813 targ_defvec=m32r_elf32_vec
252b5132
RH
814 ;;
815
60bcf0fa 816 m68hc11-*-* | m6811-*-*)
6d00b590
AM
817 targ_defvec=m68hc11_elf32_vec
818 targ_selvecs="m68hc11_elf32_vec m68hc12_elf32_vec"
60bcf0fa
NC
819 ;;
820 m68hc12-*-* | m6812-*-*)
6d00b590
AM
821 targ_defvec=m68hc12_elf32_vec
822 targ_selvecs="m68hc11_elf32_vec m68hc12_elf32_vec"
60bcf0fa
NC
823 ;;
824
dc12032b 825 m68*-*-*)
6d00b590 826 targ_defvec=m68k_elf32_vec
252b5132
RH
827 ;;
828
7b4ae824
JD
829 s12z-*-*)
830 targ_defvec=s12z_elf32_vec
831 ;;
252b5132 832 mcore-*-elf)
6d00b590
AM
833 targ_defvec=mcore_elf32_be_vec
834 targ_selvecs="mcore_elf32_be_vec mcore_elf32_le_vec"
252b5132
RH
835 ;;
836 mcore-*-pe)
6d00b590
AM
837 targ_defvec=mcore_pe_be_vec
838 targ_selvecs="mcore_pe_be_vec mcore_pe_le_vec mcore_pei_be_vec mcore_pei_le_vec"
252b5132
RH
839 ;;
840
d9352518 841 mep-*-elf)
6d00b590
AM
842 targ_defvec=mep_elf32_vec
843 targ_selvecs=mep_elf32_le_vec
d9352518
DB
844 ;;
845
a3c62988 846 metag-*-*)
6d00b590 847 targ_defvec=metag_elf32_vec
a3c62988
NC
848 targ_underscore=yes
849 ;;
850
f23200ad 851 microblazeel*-*)
6d00b590
AM
852 targ_defvec=microblaze_elf32_le_vec
853 targ_selvecs=microblaze_elf32_vec
f23200ad
ME
854 ;;
855
7ba29e2a 856 microblaze*-*)
6d00b590
AM
857 targ_defvec=microblaze_elf32_vec
858 targ_selvecs=microblaze_elf32_le_vec
7ba29e2a
NC
859 ;;
860
42429eac 861#ifdef BFD64
3cb60568 862 mips*el-*-netbsd*)
6d00b590 863 targ_defvec=mips_elf32_trad_le_vec
8e415ce8 864 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"
252b5132 865 ;;
102ab332 866 mips*-*-netbsd*)
6d00b590 867 targ_defvec=mips_elf32_trad_be_vec
8e415ce8 868 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"
252b5132 869 ;;
252b5132 870 mips*-*-irix6*)
6d00b590
AM
871 targ_defvec=mips_elf32_n_be_vec
872 targ_selvecs="mips_elf32_n_le_vec mips_elf32_be_vec mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec"
252b5132 873 ;;
e407c74b 874 mips64*-ps2-elf*)
6d00b590
AM
875 targ_defvec=mips_elf32_n_le_vec
876 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"
e407c74b 877 ;;
e407c74b 878 mips*-ps2-elf*)
6d00b590
AM
879 targ_defvec=mips_elf32_le_vec
880 targ_selvecs="mips_elf32_be_vec mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec"
e407c74b 881 ;;
252b5132 882 mips*-*-irix5*)
6d00b590 883 targ_defvec=mips_elf32_be_vec
8e415ce8 884 targ_selvecs="mips_elf32_le_vec mips_ecoff_be_vec mips_ecoff_le_vec"
252b5132 885 ;;
0a44bf69 886 mips*el-*-vxworks*)
6d00b590
AM
887 targ_defvec=mips_elf32_vxworks_le_vec
888 targ_selvecs="mips_elf32_le_vec mips_elf32_vxworks_be_vec mips_elf32_be_vec mips_elf64_be_vec mips_elf64_le_vec"
0a44bf69
RS
889 ;;
890 mips*-*-vxworks*)
6d00b590
AM
891 targ_defvec=mips_elf32_vxworks_be_vec
892 targ_selvecs="mips_elf32_be_vec mips_elf32_vxworks_le_vec mips_elf32_be_vec mips_elf64_be_vec mips_elf64_le_vec"
0a44bf69 893 ;;
a27e4371 894 mips*el-sde-elf*)
6d00b590
AM
895 targ_defvec=mips_elf32_trad_le_vec
896 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"
a27e4371 897 ;;
a9d58c06 898 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
6d00b590
AM
899 targ_defvec=mips_elf32_trad_be_vec
900 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"
4be041b2 901 ;;
9cc0123f 902 mips*el-*-elf* | mips*-*-chorus*)
6d00b590
AM
903 targ_defvec=mips_elf32_le_vec
904 targ_selvecs="mips_elf32_be_vec mips_elf64_be_vec mips_elf64_le_vec"
252b5132 905 ;;
9cc0123f 906 mips*-*-elf* | mips*-*-rtems* | mips*-*-windiss | mips*-*-none)
6d00b590
AM
907 targ_defvec=mips_elf32_be_vec
908 targ_selvecs="mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec"
252b5132 909 ;;
5f417ca3 910 mips64*-*-openbsd*)
6d00b590
AM
911 targ_defvec=mips_elf64_trad_be_vec
912 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"
5f417ca3 913 ;;
4008bd9b 914 mips*el-*-openbsd*)
6d00b590 915 targ_defvec=mips_elf32_le_vec
8e415ce8 916 targ_selvecs="mips_elf32_be_vec mips_elf64_be_vec mips_elf64_le_vec mips_ecoff_le_vec mips_ecoff_be_vec"
252b5132 917 ;;
fdbafa10 918 mips*-*-openbsd*)
6d00b590 919 targ_defvec=mips_elf32_be_vec
8e415ce8 920 targ_selvecs="mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec mips_ecoff_be_vec mips_ecoff_le_vec"
252b5132 921 ;;
4008bd9b 922 mips64*el-*-linux*)
6d00b590
AM
923 targ_defvec=mips_elf32_ntrad_le_vec
924 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"
4008bd9b 925 ;;
4008bd9b 926 mips64*-*-linux*)
6d00b590
AM
927 targ_defvec=mips_elf32_ntrad_be_vec
928 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"
4008bd9b 929 ;;
36b45482 930 mips*el-*-linux*)
6d00b590 931 targ_defvec=mips_elf32_trad_le_vec
8e415ce8 932 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"
36b45482 933 ;;
4008bd9b 934 mips*-*-linux*)
6d00b590 935 targ_defvec=mips_elf32_trad_be_vec
8e415ce8 936 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"
fdbafa10 937 ;;
aeffff67
RS
938 mips64*el-*-freebsd* | mips64*el-*-kfreebsd*-gnu)
939 # FreeBSD vectors
6d00b590
AM
940 targ_defvec=mips_elf32_ntradfbsd_le_vec
941 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"
aeffff67 942 # Generic vectors
6d00b590 943 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"
aeffff67
RS
944 ;;
945 mips64*-*-freebsd* | mips64*-*-kfreebsd*-gnu)
946 # FreeBSD vectors
6d00b590
AM
947 targ_defvec=mips_elf32_ntradfbsd_be_vec
948 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"
aeffff67 949 # Generic vectors
6d00b590 950 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"
aeffff67 951 ;;
aeffff67
RS
952 mips*el-*-freebsd* | mips*el-*-kfreebsd*-gnu)
953 # FreeBSD vectors
6d00b590
AM
954 targ_defvec=mips_elf32_tradfbsd_le_vec
955 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"
aeffff67 956 # Generic vectors
6d00b590 957 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"
aeffff67
RS
958 ;;
959 mips*-*-freebsd* | mips*-*-kfreebsd*-gnu)
960 # FreeBSD vectors
6d00b590
AM
961 targ_defvec=mips_elf32_tradfbsd_be_vec
962 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"
aeffff67 963 # Generic vectors
6d00b590 964 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"
aeffff67 965 ;;
3c3bdf30 966 mmix-*-*)
6d00b590
AM
967 targ_defvec=mmix_elf64_vec
968 targ_selvecs=mmix_mmo_vec
314e9a4e 969 want64=true
3c3bdf30
NC
970 ;;
971#endif
252b5132 972 mn10200-*-*)
6d00b590 973 targ_defvec=mn10200_elf32_vec
bdd32e03 974 targ_underscore=yes
252b5132
RH
975 ;;
976
977 mn10300-*-*)
6d00b590 978 targ_defvec=mn10300_elf32_vec
73c3cd1c 979 targ_underscore=yes
252b5132
RH
980 ;;
981
4970f871 982 mt-*-elf)
6d00b590 983 targ_defvec=mt_elf32_vec
de33e640
AH
984 ;;
985
2469cfa2 986 msp430-*-*)
6d00b590
AM
987 targ_defvec=msp430_elf32_vec
988 targ_selvecs=msp430_elf32_ti_vec
2469cfa2
NC
989 ;;
990
35c08157 991 nds32*le-*-linux*)
6d00b590
AM
992 targ_defvec=nds32_elf32_linux_le_vec
993 targ_selvecs=nds32_elf32_linux_be_vec
35c08157
KLC
994 ;;
995
996 nds32*be-*-linux*)
6d00b590
AM
997 targ_defvec=nds32_elf32_linux_be_vec
998 targ_selvecs=nds32_elf32_linux_le_vec
35c08157
KLC
999 ;;
1000
1001 nds32*le-*-*)
6d00b590
AM
1002 targ_defvec=nds32_elf32_le_vec
1003 targ_selvecs=nds32_elf32_be_vec
35c08157
KLC
1004 ;;
1005
1006 nds32*be-*-*)
6d00b590
AM
1007 targ_defvec=nds32_elf32_be_vec
1008 targ_selvecs=nds32_elf32_le_vec
35c08157
KLC
1009 ;;
1010
fe944acf
FT
1011#ifdef BFD64
1012 nfp-*-*)
1013 targ_defvec=nfp_elf64_vec
1014 ;;
1015#endif
1016
252b5132 1017 ns32k-pc532-mach* | ns32k-pc532-ux*)
6d00b590 1018 targ_defvec=ns32k_aout_pc532mach_vec
252b5132
RH
1019 targ_underscore=yes
1020 ;;
1021 ns32k-*-netbsd* | ns32k-*-lites* | ns32k-*-openbsd*)
6d00b590 1022 targ_defvec=ns32k_aout_pc532nbsd_vec
252b5132
RH
1023 targ_underscore=yes
1024 ;;
1025
36591ba1 1026 nios2eb-*-*)
6d00b590
AM
1027 targ_defvec=nios2_elf32_be_vec
1028 targ_selvecs=nios2_elf32_le_vec
36591ba1
SL
1029 ;;
1030
1031 nios2el-*-*)
6d00b590
AM
1032 targ_defvec=nios2_elf32_le_vec
1033 targ_selvecs=nios2_elf32_be_vec
36591ba1
SL
1034 ;;
1035
1036 nios2-*-*)
6d00b590
AM
1037 targ_defvec=nios2_elf32_le_vec
1038 targ_selvecs=nios2_elf32_be_vec
36591ba1
SL
1039 ;;
1040
3d52a869 1041 or1k-*-elf | or1k-*-linux* | or1k-*-rtems*)
6d00b590 1042 targ_defvec=or1k_elf32_vec
3b16e843
NC
1043 ;;
1044
0d6d4c82 1045 or1knd-*-elf | or1knd-*-linux* | or1knd-*-rtems*)
6d00b590 1046 targ_defvec=or1k_elf32_vec
3b16e843
NC
1047 ;;
1048
e135f41b
NC
1049 pdp11-*-*)
1050 targ_defvec=pdp11_aout_vec
1051 targ_underscore=yes
1052 ;;
1053
0bcb993b 1054 pj-*-*)
6d00b590
AM
1055 targ_defvec=pj_elf32_vec
1056 targ_selvecs="pj_elf32_vec pj_elf32_le_vec"
0bcb993b
ILT
1057 ;;
1058
1059 pjl-*-*)
6d00b590 1060 targ_defvec=pj_elf32_le_vec
bf64a951 1061 targ_selvecs="pj_elf32_le_vec pj_elf32_vec i386_elf32_vec iamcu_elf32_vec"
0bcb993b
ILT
1062 ;;
1063
9a9e2ca3 1064 powerpc-*-aix5.[01] | rs6000-*-aix5.[01])
6d00b590
AM
1065 targ_defvec=rs6000_xcoff_vec
1066 targ_selvecs="rs6000_xcoff64_aix_vec"
f8fc3443
NC
1067 want64=true
1068 ;;
1069#ifdef BFD64
ed3162ad 1070 powerpc64-*-aix5.[01])
6d00b590
AM
1071 targ_defvec=rs6000_xcoff64_aix_vec
1072 targ_selvecs="rs6000_xcoff_vec"
f8fc3443
NC
1073 want64=true
1074 ;;
1075#endif
9a9e2ca3 1076 powerpc-*-aix[5-9]* | rs6000-*-aix[5-9]*)
f8fc3443 1077 targ_cflags=-DAIX_WEAK_SUPPORT
6d00b590
AM
1078 targ_defvec=rs6000_xcoff_vec
1079 targ_selvecs="rs6000_xcoff64_aix_vec"
eb1e0e80
NC
1080 want64=true
1081 ;;
8f28b845 1082#ifdef BFD64
ed3162ad 1083 powerpc64-*-aix[5-9]*)
f8fc3443 1084 targ_cflags=-DAIX_WEAK_SUPPORT
6d00b590
AM
1085 targ_defvec=rs6000_xcoff64_aix_vec
1086 targ_selvecs="rs6000_xcoff_vec"
eb1e0e80
NC
1087 want64=true
1088 ;;
680f9d5c 1089#endif
eb1e0e80 1090
4603e845 1091 powerpc-*-aix* | powerpc-*-beos* | rs6000-*-*)
6d00b590
AM
1092 targ_defvec=rs6000_xcoff_vec
1093 targ64_selvecs=rs6000_xcoff64_vec
102ab332 1094 case "${targ}" in
7d3f158f 1095 *-*-aix4.[3456789]* | *-*-aix[56789]*)
102ab332 1096 want64=true;;
3e36d993
TR
1097 *)
1098 targ_cflags=-DSMALL_ARCHIVE;;
102ab332 1099 esac
252b5132 1100 ;;
a5ac692b 1101#ifdef BFD64
beb1bf64 1102 powerpc64-*-aix*)
6d00b590
AM
1103 targ_defvec=rs6000_xcoff64_vec
1104 targ_selvecs=rs6000_xcoff_vec
314e9a4e 1105 want64=true
beb1bf64 1106 ;;
7b8e7dad 1107 powerpc64-*-freebsd*)
6d00b590
AM
1108 targ_defvec=powerpc_elf64_fbsd_vec
1109 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"
7b8e7dad
AM
1110 want64=true
1111 ;;
db4ed121
NC
1112 powerpc64-*-elf* | powerpc-*-elf64* | powerpc64-*-linux* | \
1113 powerpc64-*-*bsd*)
6d00b590
AM
1114 targ_defvec=powerpc_elf64_vec
1115 targ_selvecs="powerpc_elf64_le_vec powerpc_elf32_vec powerpc_elf32_le_vec rs6000_xcoff_vec rs6000_xcoff64_vec rs6000_xcoff64_aix_vec"
314e9a4e 1116 want64=true
5bd4f169 1117 ;;
49926cd0
AM
1118 powerpc64le-*-elf* | powerpcle-*-elf64* | powerpc64le-*-linux* | \
1119 powerpc64le-*-*bsd*)
6d00b590
AM
1120 targ_defvec=powerpc_elf64_le_vec
1121 targ_selvecs="powerpc_elf64_vec powerpc_elf32_le_vec powerpc_elf32_vec rs6000_xcoff_vec rs6000_xcoff64_vec rs6000_xcoff64_aix_vec"
314e9a4e 1122 want64=true
5bd4f169 1123 ;;
a5ac692b 1124#endif
7b8e7dad 1125 powerpc-*-*freebsd*)
6d00b590
AM
1126 targ_defvec=powerpc_elf32_fbsd_vec
1127 targ_selvecs="rs6000_xcoff_vec powerpc_elf32_vec powerpc_elf32_le_vec powerpc_boot_vec"
1128 targ64_selvecs="powerpc_elf64_vec powerpc_elf64_le_vec powerpc_elf64_fbsd_vec"
7b8e7dad 1129 ;;
252b5132 1130 powerpc-*-*bsd* | powerpc-*-elf* | powerpc-*-sysv4* | powerpc-*-eabi* | \
ed84e695 1131 powerpc-*-solaris2* | powerpc-*-linux-* | powerpc-*-rtems* | \
9d8504b1 1132 powerpc-*-chorus*)
6d00b590
AM
1133 targ_defvec=powerpc_elf32_vec
1134 targ_selvecs="rs6000_xcoff_vec powerpc_elf32_le_vec powerpc_boot_vec"
1135 targ64_selvecs="powerpc_elf64_vec powerpc_elf64_le_vec"
252b5132 1136 ;;
42b5d0ea 1137 powerpc-*-kaos*)
6d00b590
AM
1138 targ_defvec=powerpc_elf32_vec
1139 targ_selvecs="powerpc_elf32_le_vec powerpc_boot_vec"
1140 targ64_selvecs="powerpc_elf64_vec powerpc_elf64_le_vec"
42b5d0ea 1141 ;;
b1c58715
AM
1142 powerpc-*-darwin* | powerpc-*-macos10* | powerpc-*-rhapsody*)
1143 targ_defvec=mach_o_be_vec
1144 targ_selvecs="mach_o_be_vec mach_o_le_vec mach_o_fat_vec pef_vec pef_xlib_vec sym_vec"
618b7301 1145 targ_archs="$targ_archs bfd_i386_arch"
b1c58715 1146 ;;
14bde378 1147 powerpc-*-macos*)
6d00b590 1148 targ_defvec=powerpc_xcoff_vec
252b5132 1149 ;;
b2d65c0b 1150 powerpc-*-lynxos*)
6d00b590
AM
1151 targ_defvec=powerpc_elf32_vec
1152 targ_selvecs="rs6000_xcoff_vec"
b2d65c0b 1153 targ_cflags=-DSMALL_ARCHIVE
7d3f158f 1154 ;;
59bc061d 1155 powerpc-*-nto*)
6d00b590
AM
1156 targ_defvec=powerpc_elf32_vec
1157 targ_selvecs="rs6000_xcoff_vec powerpc_elf32_le_vec powerpc_boot_vec"
59bc061d 1158 ;;
9d8504b1 1159 powerpc-*-vxworks* | powerpc-*-windiss*)
6d00b590
AM
1160 targ_defvec=powerpc_elf32_vxworks_vec
1161 targ_selvecs="rs6000_xcoff_vec powerpc_elf32_vec powerpc_elf32_le_vec powerpc_boot_vec"
1162 targ64_selvecs="powerpc_elf64_vec powerpc_elf64_le_vec"
9d8504b1 1163 ;;
59bc061d 1164 powerpcle-*-nto*)
6d00b590
AM
1165 targ_defvec=powerpc_elf32_le_vec
1166 targ_selvecs="rs6000_xcoff_vec powerpc_elf32_vec powerpc_boot_vec"
59bc061d 1167 ;;
252b5132 1168 powerpcle-*-elf* | powerpcle-*-sysv4* | powerpcle-*-eabi* | \
7e4e2059 1169 powerpcle-*-solaris2* | powerpcle-*-linux-* | powerpcle-*-vxworks*)
6d00b590
AM
1170 targ_defvec=powerpc_elf32_le_vec
1171 targ_selvecs="rs6000_xcoff_vec powerpc_elf32_vec powerpc_boot_vec"
1172 targ64_selvecs="powerpc_elf64_vec powerpc_elf64_le_vec"
252b5132 1173 ;;
252b5132 1174 powerpcle-*-pe | powerpcle-*-winnt* | powerpcle-*-cygwin*)
6d00b590
AM
1175 targ_defvec=powerpc_pe_le_vec
1176 targ_selvecs="powerpc_pei_le_vec powerpc_pei_vec powerpc_pe_le_vec powerpc_pe_vec"
252b5132
RH
1177 ;;
1178
889294f6
DD
1179 pru-*-*)
1180 targ_defvec=pru_elf32_vec
889294f6
DD
1181 ;;
1182
e23eba97 1183#ifdef BFD64
bb11866d 1184 riscv-*-* | riscv32*-*-*)
e23eba97 1185 targ_defvec=riscv_elf32_vec
763a5fa4 1186 targ_selvecs="riscv_elf32_vec riscv_elf64_vec"
e23eba97
NC
1187 want64=true
1188 ;;
bb11866d 1189 riscv64*-*-*)
e23eba97
NC
1190 targ_defvec=riscv_elf64_vec
1191 targ_selvecs="riscv_elf32_vec riscv_elf64_vec"
1192 want64=true
1193 ;;
1194#endif
1195
99c513f6 1196 rl78-*-elf)
6d00b590 1197 targ_defvec=rl78_elf32_vec
bdd32e03 1198 targ_underscore=yes
99c513f6
DD
1199 ;;
1200
c7927a3c 1201 rx-*-elf)
6d00b590
AM
1202 targ_defvec=rx_elf32_le_vec
1203 targ_selvecs="rx_elf32_be_vec rx_elf32_le_vec rx_elf32_be_ns_vec"
bdd32e03 1204 targ_underscore=yes
c7927a3c 1205 ;;
8d3c78e4
YS
1206 rx-*-linux*)
1207 targ_defvec=rx_elf32_linux_le_vec
1208 targ_selvecs="rx_elf32_linux_le_vec"
1209 ;;
c7927a3c 1210
a85d7ed0 1211 s390-*-linux*)
6d00b590
AM
1212 targ_defvec=s390_elf32_vec
1213 targ64_selvecs=s390_elf64_vec
06f2f6af 1214 want64=true
a85d7ed0
NC
1215 ;;
1216#ifdef BFD64
1217 s390x-*-linux*)
6d00b590
AM
1218 targ_defvec=s390_elf64_vec
1219 targ_selvecs=s390_elf32_vec
314e9a4e 1220 want64=true
a85d7ed0 1221 ;;
2fbd2a87 1222 s390x-*-tpf*)
6d00b590 1223 targ_defvec=s390_elf64_vec
314e9a4e 1224 want64=true
2fbd2a87 1225 ;;
a85d7ed0 1226
1c0d3aa6 1227 score*-*-elf*)
6d00b590
AM
1228 targ_defvec=score_elf32_be_vec
1229 targ_selvecs=score_elf32_le_vec
1c0d3aa6 1230 ;;
6566b43c
L
1231#endif /* BFD64 */
1232
7649aa50 1233 sh*eb-*-linux*)
6d00b590
AM
1234 targ_defvec=sh_elf32_linux_be_vec
1235 targ_selvecs=sh_elf32_linux_vec
de48f481 1236 targ_selvecs="${targ_selvecs} sh_elf32_fdpic_le_vec sh_elf32_fdpic_be_vec"
7649aa50
NC
1237 ;;
1238 sh*-*-linux*)
6d00b590
AM
1239 targ_defvec=sh_elf32_linux_vec
1240 targ_selvecs=sh_elf32_linux_be_vec
de48f481 1241 targ_selvecs="${targ_selvecs} sh_elf32_fdpic_le_vec sh_elf32_fdpic_be_vec"
7649aa50 1242 ;;
b129bfef 1243
ed6ba298 1244 sh-*-uclinux* | sh[12]-*-uclinux*)
6d00b590
AM
1245 targ_defvec=sh_elf32_vec
1246 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"
5b0e55b6 1247 ;;
5b0e55b6 1248
cea3d58d 1249 sh*l*-*-netbsdelf*)
6d00b590 1250 targ_defvec=sh_elf32_nbsd_le_vec
211dc24b 1251 targ_selvecs="sh_elf32_nbsd_vec sh_coff_vec sh_coff_le_vec"
e58ee0cd 1252 ;;
8d05742f 1253 sh*-*-netbsdelf*)
6d00b590
AM
1254 targ_defvec=sh_elf32_nbsd_vec
1255 targ_selvecs="sh_elf32_nbsd_le_vec sh_coff_vec sh_coff_le_vec"
8d05742f 1256 ;;
6566b43c 1257
42b5d0ea 1258 shl*-*-elf* | sh[1234]l*-*-elf* | sh3el*-*-elf* | shl*-*-kaos*)
6d00b590 1259 targ_defvec=sh_elf32_le_vec
211dc24b 1260 targ_selvecs="sh_elf32_vec sh_coff_le_vec sh_coff_vec sh_coff_small_le_vec sh_coff_small_vec"
7a33bc10
JR
1261 targ_underscore=yes
1262 ;;
6566b43c 1263
9183ed4b 1264 sh-*-elf* | sh[1234]*-elf* | sh-*-rtems* | sh-*-kaos*)
6d00b590 1265 targ_defvec=sh_elf32_vec
211dc24b 1266 targ_selvecs="sh_elf32_le_vec sh_coff_vec sh_coff_le_vec sh_coff_small_vec sh_coff_small_le_vec"
252b5132
RH
1267 targ_underscore=yes
1268 ;;
6566b43c 1269
ed71e111 1270 sh-*-nto*)
6d00b590
AM
1271 targ_defvec=sh_elf32_vec
1272 targ_selvecs="sh_elf32_le_vec sh_coff_vec sh_coff_le_vec sh_coff_small_vec sh_coff_small_le_vec"
ed71e111
NC
1273 targ_underscore=yes
1274 ;;
a38b2659 1275 sh*-*-openbsd*)
6d00b590
AM
1276 targ_defvec=sh_elf32_nbsd_le_vec
1277 targ_selvecs="sh_elf32_nbsd_vec sh_coff_vec sh_coff_le_vec"
a38b2659 1278 ;;
17505c5c 1279 sh-*-pe)
6d00b590
AM
1280 targ_defvec=sh_pe_le_vec
1281 targ_selvecs="sh_pe_le_vec sh_pei_le_vec"
17505c5c
NC
1282 targ_underscore=yes
1283 ;;
257e20bc 1284 sh-*-vxworks)
6d00b590
AM
1285 targ_defvec=sh_elf32_vxworks_vec
1286 targ_selvecs="sh_elf32_vxworks_le_vec"
257e20bc
NC
1287 # FIXME None of the following are actually used on this target, but
1288 # they're necessary for coff-sh.c (which is unconditionally used) to be
1289 # compiled correctly.
6d00b590 1290 targ_selvecs="$targ_selvecs sh_coff_vec sh_coff_le_vec sh_coff_small_vec sh_coff_small_le_vec"
2f964f43 1291 targ_underscore=yes
257e20bc 1292 ;;
9183ed4b 1293 sh-*-*)
6d00b590
AM
1294 targ_defvec=sh_coff_vec
1295 targ_selvecs="sh_coff_vec sh_coff_le_vec sh_coff_small_vec sh_coff_small_le_vec"
252b5132
RH
1296 targ_underscore=yes
1297 ;;
1298
1360ba76 1299 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
6d00b590 1300 targ_defvec=sparc_elf32_sol2_vec
1360ba76 1301 ;;
246c6687
AO
1302#ifdef BFD64
1303 sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*)
6d00b590 1304 targ_defvec=sparc_elf32_sol2_vec
c9098af4 1305 targ_selvecs="sparc_elf64_sol2_vec"
314e9a4e 1306 want64=true
246c6687 1307 ;;
c9098af4
AM
1308 sparc64-*-freebsd* | sparc64-*-kfreebsd*-gnu)
1309 targ_defvec=sparc_elf64_fbsd_vec
1310 targ_selvecs="sparc_elf64_vec sparc_elf32_vec"
252b5132 1311 ;;
c9098af4 1312 sparc64*-*-*)
6d00b590 1313 targ_defvec=sparc_elf64_vec
c9098af4 1314 targ_selvecs="sparc_elf32_vec"
314e9a4e 1315 want64=true
60bcf0fa 1316 ;;
c9098af4
AM
1317#endif
1318 sparc-*-linux-* | sparcv*-*-linux-*)
6d00b590 1319 targ_defvec=sparc_elf32_vec
c9098af4
AM
1320 targ_selvecs="sparc_elf64_vec"
1321 ;;
1322 sparc-*-vxworks*)
1323 targ_defvec=sparc_elf32_vxworks_vec
1324 targ_selvecs="sparc_elf32_vec"
ddcfc5fc 1325 ;;
9f971fcb 1326 sparc*-*-*)
c9098af4 1327 targ_defvec=sparc_elf32_vec
252b5132
RH
1328 ;;
1329
e9f53129 1330 spu-*-elf)
6d00b590 1331 targ_defvec=spu_elf32_vec
78b8434d 1332 want64=true
e9f53129
AM
1333 ;;
1334
2a616379 1335 tic6x-*-elf)
6d00b590
AM
1336 targ_defvec=tic6x_elf32_c6000_le_vec
1337 targ_selvecs="tic6x_elf32_c6000_be_vec tic6x_elf32_le_vec tic6x_elf32_be_vec"
2a616379
BS
1338 ;;
1339
1340 tic6x-*-uclinux)
6d00b590
AM
1341 targ_defvec=tic6x_elf32_linux_le_vec
1342 targ_selvecs="tic6x_elf32_linux_be_vec tic6x_elf32_le_vec tic6x_elf32_be_vec"
40b36596
JM
1343 ;;
1344
252b5132 1345 tic80*-*-*)
6d00b590 1346 targ_defvec=tic80_coff_vec
252b5132
RH
1347 targ_underscore=yes
1348 ;;
1349
aa137e4d
NC
1350#ifdef BFD64
1351 tilegx-*-*)
6d00b590
AM
1352 targ_defvec=tilegx_elf64_le_vec
1353 targ_selvecs="tilegx_elf64_be_vec tilegx_elf32_be_vec tilegx_elf32_le_vec"
fb6cedde
WL
1354 ;;
1355 tilegxbe-*-*)
6d00b590
AM
1356 targ_defvec=tilegx_elf64_be_vec
1357 targ_selvecs="tilegx_elf64_le_vec tilegx_elf32_be_vec tilegx_elf32_le_vec"
aa137e4d
NC
1358 ;;
1359#endif
1360
1361 tilepro-*-*)
6d00b590 1362 targ_defvec=tilepro_elf32_vec
aa137e4d
NC
1363 ;;
1364
3f8107ab
AM
1365 ft32*-*-*)
1366 targ_defvec=ft32_elf32_vec
1367 ;;
1368
1cd986c5 1369 v850*-*-*)
6d00b590
AM
1370 targ_defvec=v850_elf32_vec
1371 targ_selvecs="v800_elf32_vec"
bdd32e03 1372 targ_underscore=yes
252b5132 1373 ;;
252b5132 1374
90ace9e9 1375 vax-*-netbsdelf*)
6d00b590
AM
1376 targ_defvec=vax_elf32_vec
1377 targ_selvecs="vax_aout_nbsd_vec vax_aout_1knbsd_vec"
90ace9e9
JT
1378 ;;
1379
1380 vax-*-netbsdaout* | vax-*-netbsd*)
6d00b590
AM
1381 targ_defvec=vax_aout_nbsd_vec
1382 targ_selvecs="vax_elf32_vec vax_aout_1knbsd_vec"
90ace9e9
JT
1383 targ_underscore=yes
1384 ;;
1385
7d1ebfb2 1386 vax-*-openbsd*)
6d00b590 1387 targ_defvec=vax_aout_nbsd_vec
7d1ebfb2
NC
1388 targ_underscore=yes
1389 ;;
1390
ed84e695 1391 vax-*-linux-*)
6d00b590 1392 targ_defvec=vax_elf32_vec
f8fc3443
NC
1393 ;;
1394
d924db55
EB
1395 visium-*-elf)
1396 targ_defvec=visium_elf32_vec
1397 ;;
1b786873 1398
8fb740dd
PC
1399 wasm32-*-*)
1400 targ_defvec=wasm32_elf32_vec
a6be0538 1401 targ_selvecs="wasm_vec"
8fb740dd
PC
1402 ;;
1403
f6c1a2d5 1404 xgate-*-*)
6d00b590
AM
1405 targ_defvec=xgate_elf32_vec
1406 targ_selvecs="xgate_elf32_vec"
f6c1a2d5 1407 ;;
1b786873 1408
93fbbb04 1409 xstormy16-*-elf)
6d00b590 1410 targ_defvec=xstormy16_elf32_vec
93fbbb04
GK
1411 ;;
1412
f8a52b59 1413 xtensa*-*-*)
6d00b590
AM
1414 targ_defvec=xtensa_elf32_le_vec
1415 targ_selvecs=xtensa_elf32_be_vec
e0001a05 1416 ;;
d70c5fc7 1417 xc16x-*-elf)
6d00b590 1418 targ_defvec=xc16x_elf32_vec
d70c5fc7 1419 ;;
a27e4371 1420
3c9b82ba 1421 z80-*-*)
6d00b590 1422 targ_defvec=z80_coff_vec
3c9b82ba
NC
1423 targ_underscore=no
1424 ;;
1425
252b5132 1426 z8k*-*-*)
6d00b590 1427 targ_defvec=z8k_coff_vec
252b5132
RH
1428 targ_underscore=yes
1429 ;;
1430
252b5132 1431# END OF targmatch.h
fd0de36e
JM
1432 bpf-*-*)
1433 echo "*** Configuration $targ is not fully supported." >&2
1434 echo "*** Use bpf or bpf-*-none as the target instead." >&2
1435 exit 1
1436 ;;
1437
252b5132
RH
1438 *)
1439 echo 1>&2 "*** BFD does not support target ${targ}."
1440 echo 1>&2 "*** Look in bfd/config.bfd for supported targets."
1441 exit 1
1442 ;;
1443esac
1444
42429eac
RS
1445# All MIPS ELF targets need a 64-bit bfd_vma.
1446case "${targ_defvec} ${targ_selvecs}" in
6d00b590 1447 *mips_elf*)
42429eac
RS
1448 want64=true
1449 ;;
1450esac
1451
e9e69f5a
AM
1452case "${host64}${want64}" in
1453 *true*)
1454 targ_selvecs="${targ_selvecs} ${targ64_selvecs}"
1455 ;;
1456esac
1457
252b5132
RH
1458# If we support any ELF target, then automatically add support for the
1459# generic ELF targets. This permits an objdump with some ELF support
1460# to be used on an arbitrary ELF file for anything other than
1461# relocation information.
1462case "${targ_defvec} ${targ_selvecs}" in
6d00b590
AM
1463 *elf64* | *mips_elf32_n*)
1464 targ_selvecs="${targ_selvecs} elf64_le_vec elf64_be_vec elf32_le_vec elf32_be_vec"
252b5132 1465 ;;
6d00b590
AM
1466 *elf32*)
1467 targ_selvecs="${targ_selvecs} elf32_le_vec elf32_be_vec"
252b5132
RH
1468 ;;
1469esac
8a9036a4 1470
bf64a951
L
1471# If we support Intel MCU target, then add support for bfd_iamcu_arch.
1472case "${targ_defvec} ${targ_selvecs}" in
1473 *iamcu_elf32*)
1474 targ_archs="$targ_archs bfd_iamcu_arch"
1475 ;;
1476esac
1477
8a9036a4
L
1478# If we support Intel L1OM target, then add support for bfd_l1om_arch.
1479case "${targ_defvec} ${targ_selvecs}" in
6d00b590 1480 *l1om_elf64*)
8a9036a4
L
1481 targ_archs="$targ_archs bfd_l1om_arch"
1482 ;;
1483esac
7a9068fe
L
1484
1485# If we support Intel K1OM target, then add support for bfd_k1om_arch.
1486case "${targ_defvec} ${targ_selvecs}" in
6d00b590 1487 *k1om_elf64*)
7a9068fe
L
1488 targ_archs="$targ_archs bfd_k1om_arch"
1489 ;;
1490esac
This page took 1.129294 seconds and 4 git commands to generate.