sim: m68hc11/mips/mn10300/v850: add basic sim_pc_get
[deliverable/binutils-gdb.git] / bfd / config.bfd
1 # config.bfd
2 #
3 # Copyright (C) 2012-2015 Free Software Foundation, Inc.
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.
9 #
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.
14 #
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 #
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
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
43 targ_defvec=
44 targ_selvecs=
45 targ64_selvecs=
46 targ_cflags=
47 targ_underscore=no
48
49 # Catch obsolete configurations.
50 case $targ in
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 ;;
56 null)
57 if test "x$enable_obsolete" != xyes; then
58 echo "*** Configuration $targ is obsolete." >&2
59 echo "*** Specify --enable-obsolete to build it anyway." >&2
60 echo "*** Support will be REMOVED in the next major release of BINUTILS," >&2
61 echo "*** unless a maintainer comes forward." >&2
62 exit 1
63 fi;;
64 esac
65
66 case $targ in
67 *-go32-rtems* | \
68 a29k-* | \
69 arm-*-oabi | \
70 hppa*-*-rtems* | \
71 i960-*-rtems* | \
72 i[3-7]86*-*-rtemscoff* | \
73 m68*-*-lynxos* | \
74 m68*-*-rtemscoff* | \
75 m68*-apollo-* | \
76 m68*-apple-aux* | \
77 m68*-bull-sysv* | \
78 maxq-*-coff | \
79 mips*el-*-rtems* | \
80 powerpcle-*-rtems* | \
81 sparc*-*-rtemsaout* | \
82 sparc-*-lynxos* | \
83 vax-*-vms* | \
84 null)
85 echo "*** Configuration $targ is obsolete." >&2
86 echo "*** Support has been REMOVED." >&2
87 exit 1
88 ;;
89 esac
90
91 targ_cpu=`echo $targ | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
92 case "${targ_cpu}" in
93 aarch64*) targ_archs="bfd_aarch64_arch bfd_arm_arch";;
94 alpha*) targ_archs=bfd_alpha_arch ;;
95 am34*|am33_2.0*) targ_archs=bfd_mn10300_arch ;;
96 arm*) targ_archs=bfd_arm_arch ;;
97 bfin*) targ_archs=bfd_bfin_arch ;;
98 c30*) targ_archs=bfd_tic30_arch ;;
99 c4x*) targ_archs=bfd_tic4x_arch ;;
100 c54x*) targ_archs=bfd_tic54x_arch ;;
101 cr16*) targ_archs=bfd_cr16_arch ;;
102 crisv32) targ_archs=bfd_cris_arch ;;
103 crx*) targ_archs=bfd_crx_arch ;;
104 dlx*) targ_archs=bfd_dlx_arch ;;
105 fido*) targ_archs=bfd_m68k_arch ;;
106 hppa*) targ_archs=bfd_hppa_arch ;;
107 i[3-7]86) targ_archs=bfd_i386_arch ;;
108 i370) targ_archs=bfd_i370_arch ;;
109 lm32) targ_archs=bfd_lm32_arch ;;
110 m6811*|m68hc11*) targ_archs="bfd_m68hc11_arch bfd_m68hc12_arch bfd_m9s12x_arch bfd_m9s12xg_arch" ;;
111 m6812*|m68hc12*) targ_archs="bfd_m68hc12_arch bfd_m68hc11_arch bfd_m9s12x_arch bfd_m9s12xg_arch" ;;
112 m68*) targ_archs=bfd_m68k_arch ;;
113 m88*) targ_archs=bfd_m88k_arch ;;
114 microblaze*) targ_archs=bfd_microblaze_arch ;;
115 mips*) targ_archs=bfd_mips_arch ;;
116 nds32*) targ_archs=bfd_nds32_arch ;;
117 nios2*) targ_archs=bfd_nios2_arch ;;
118 or1k*|or1knd*) targ_archs=bfd_or1k_arch ;;
119 pdp11*) targ_archs=bfd_pdp11_arch ;;
120 pj*) targ_archs="bfd_pj_arch bfd_i386_arch";;
121 powerpc*) targ_archs="bfd_rs6000_arch bfd_powerpc_arch" ;;
122 rs6000) targ_archs="bfd_rs6000_arch bfd_powerpc_arch" ;;
123 s390*) targ_archs=bfd_s390_arch ;;
124 sh*) targ_archs=bfd_sh_arch ;;
125 sparc*) targ_archs=bfd_sparc_arch ;;
126 spu*) targ_archs=bfd_spu_arch ;;
127 tilegx*) targ_archs=bfd_tilegx_arch ;;
128 tilepro*) targ_archs=bfd_tilepro_arch ;;
129 v850*) targ_archs="bfd_v850_arch bfd_v850_rh850_arch" ;;
130 visium*) targ_archs=bfd_visium_arch ;;
131 x86_64*) targ_archs=bfd_i386_arch ;;
132 xtensa*) targ_archs=bfd_xtensa_arch ;;
133 xgate) targ_archs=bfd_xgate_arch ;;
134 z80|r800) targ_archs=bfd_z80_arch ;;
135 z8k*) targ_archs=bfd_z8k_arch ;;
136 *) targ_archs=bfd_${targ_cpu}_arch ;;
137 esac
138
139
140 # WHEN ADDING ENTRIES TO THIS MATRIX:
141 # Make sure that the left side always has two dashes. Otherwise you
142 # can get spurious matches. Even for unambiguous cases, do this as a
143 # convention, else the table becomes a real mess to understand and maintain.
144 #
145 # Keep obsolete entries above the START comment, to keep them out of
146 # targmatch.h.
147
148 case "${targ}" in
149 mips*-dec-bsd*)
150 echo "This target is obsolete and has been removed."
151 exit 1
152 ;;
153
154 mips*-*-mach3*)
155 echo "This target is obsolete and has been removed."
156 exit 1
157 ;;
158
159 mips*-*-pe*)
160 echo "This target is obsolete and has been removed."
161 exit 1
162 ;;
163
164 plugin)
165 targ_defvec=plugin_vec
166 targ_selvecs="plugin_vec"
167 ;;
168
169 # START OF targmatch.h
170 #ifdef BFD64
171 aarch64-*-elf)
172 targ_defvec=aarch64_elf64_le_vec
173 targ_selvecs="aarch64_elf64_be_vec aarch64_elf32_le_vec aarch64_elf32_be_vec arm_elf32_le_vec arm_elf32_be_vec"
174 want64=true
175 ;;
176 aarch64_be-*-elf)
177 targ_defvec=aarch64_elf64_be_vec
178 targ_selvecs="aarch64_elf64_le_vec aarch64_elf32_le_vec aarch64_elf32_be_vec arm_elf32_be_vec arm_elf32_le_vec"
179 want64=true
180 ;;
181 aarch64-*-linux*)
182 targ_defvec=aarch64_elf64_le_vec
183 targ_selvecs="aarch64_elf64_be_vec aarch64_elf32_le_vec aarch64_elf32_be_vec arm_elf32_le_vec arm_elf32_be_vec"
184 want64=true
185 ;;
186 aarch64_be-*-linux*)
187 targ_defvec=aarch64_elf64_be_vec
188 targ_selvecs="aarch64_elf64_le_vec aarch64_elf32_le_vec aarch64_elf32_be_vec arm_elf32_be_vec arm_elf32_le_vec"
189 want64=true
190 ;;
191 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
192 targ_defvec=alpha_elf64_fbsd_vec
193 targ_selvecs="alpha_elf64_vec alpha_ecoff_le_vec"
194 want64=true
195 # FreeBSD <= 4.0 supports only the old nonstandard way of ABI labelling.
196 case "${targ}" in
197 alpha*-*-freebsd3* | alpha*-*-freebsd4 | alpha*-*-freebsd4.0*)
198 targ_cflags=-DOLD_FREEBSD_ABI_LABEL ;;
199 esac
200 ;;
201 alpha*-*-netbsd* | alpha*-*-openbsd*)
202 targ_defvec=alpha_elf64_vec
203 targ_selvecs=alpha_ecoff_le_vec
204 want64=true
205 ;;
206 alpha*-*-netware*)
207 targ_defvec=alpha_ecoff_le_vec
208 targ_selvecs=alpha_nlm32_vec
209 want64=true
210 ;;
211 alpha*-*-linux*ecoff*)
212 targ_defvec=alpha_ecoff_le_vec
213 targ_selvecs=alpha_elf64_vec
214 want64=true
215 ;;
216 alpha*-*-linux-* | alpha*-*-elf*)
217 targ_defvec=alpha_elf64_vec
218 targ_selvecs=alpha_ecoff_le_vec
219 want64=true
220 ;;
221 alpha*-*-*vms*)
222 targ_defvec=alpha_vms_vec
223 targ_selvecs=alpha_vms_lib_txt_vec
224 want64=true
225 ;;
226 alpha*-*-*)
227 targ_defvec=alpha_ecoff_le_vec
228 want64=true
229 ;;
230 ia64*-*-freebsd* | ia64*-*-netbsd* | ia64*-*-linux-* | ia64*-*-elf* | ia64*-*-kfreebsd*-gnu)
231 targ_defvec=ia64_elf64_le_vec
232 targ_selvecs="ia64_elf64_be_vec ia64_pei_vec"
233 want64=true
234 ;;
235 ia64*-*-hpux*)
236 targ_defvec=ia64_elf32_hpux_be_vec
237 targ_selvecs="ia64_elf64_hpux_be_vec"
238 want64=true
239 ;;
240 ia64*-*-*vms*)
241 targ_defvec=ia64_elf64_vms_vec
242 targ_selvecs=alpha_vms_lib_txt_vec
243 want64=true
244 ;;
245 sparc64-*-freebsd* | sparc64-*-kfreebsd*-gnu)
246 targ_defvec=sparc_elf64_fbsd_vec
247 targ_selvecs="sparc_elf64_vec sparc_elf32_vec sparc_aout_sunos_be_vec"
248 ;;
249 sparc64-*-netbsd* | sparc64-*-openbsd*)
250 targ_defvec=sparc_elf64_vec
251 targ_selvecs="sparc_elf32_vec sparc_aout_sunos_be_vec"
252 want64=true
253 ;;
254 #endif /* BFD64 */
255
256 am34-*-linux* | am33_2.0-*-linux*)
257 targ_defvec=am33_elf32_linux_vec
258 ;;
259
260 arc-*-elf*)
261 targ_defvec=arc_elf32_le_vec
262 targ_selvecs=arc_elf32_be_vec
263 ;;
264
265 arm-*-nacl*)
266 targ_defvec=arm_elf32_nacl_le_vec
267 targ_selvecs="arm_elf32_nacl_be_vec i386_elf32_nacl_vec"
268 targ64_selvecs="x86_64_elf32_nacl_vec x86_64_elf64_nacl_vec"
269 targ_archs="$targ_archs bfd_i386_arch"
270 ;;
271 armeb-*-nacl*)
272 targ_defvec=arm_elf32_nacl_be_vec
273 targ_selvecs="arm_elf32_nacl_le_vec i386_elf32_nacl_vec"
274 targ64_selvecs="x86_64_elf32_nacl_vec x86_64_elf64_nacl_vec"
275 targ_archs="$targ_archs bfd_i386_arch"
276 ;;
277 armeb-*-netbsdelf*)
278 targ_defvec=arm_elf32_be_vec
279 targ_selvecs="arm_elf32_le_vec arm_aout_nbsd_vec"
280 ;;
281 arm-*-netbsdelf*)
282 targ_defvec=arm_elf32_le_vec
283 targ_selvecs="arm_elf32_be_vec arm_aout_nbsd_vec"
284 ;;
285 arm-*-netbsd* | arm-*-openbsd*)
286 targ_defvec=arm_aout_nbsd_vec
287 targ_selvecs="arm_elf32_le_vec arm_elf32_be_vec"
288 targ_underscore=yes
289 ;;
290 arm-*-nto* | nto*arm*)
291 targ_defvec=arm_elf32_le_vec
292 targ_selvecs=arm_elf32_be_vec
293 targ_cflags=-D__QNXTARGET__
294 ;;
295 arm-*-riscix*)
296 targ_defvec=arm_aout_riscix_vec
297 ;;
298 arm-epoc-pe*)
299 targ_defvec=arm_pe_epoc_le_vec
300 targ_selvecs="arm_pe_epoc_le_vec arm_pe_epoc_be_vec arm_pei_epoc_le_vec arm_pei_epoc_be_vec"
301 targ_underscore=no
302 targ_cflags=-DARM_COFF_BUGFIX
303 ;;
304 arm-wince-pe | arm-*-wince | arm*-*-mingw32ce* | arm*-*-cegcc*)
305 targ_defvec=arm_pe_wince_le_vec
306 targ_selvecs="arm_pe_wince_le_vec arm_pe_wince_be_vec arm_pei_wince_le_vec arm_pei_wince_be_vec"
307 targ_underscore=no
308 targ_cflags="-DARM_WINCE -DARM_COFF_BUGFIX"
309 ;;
310 arm-*-pe*)
311 targ_defvec=arm_pe_le_vec
312 targ_selvecs="arm_pe_le_vec arm_pe_be_vec arm_pei_le_vec arm_pei_be_vec"
313 targ_underscore=yes
314 ;;
315 arm-*-aout | armel-*-aout)
316 targ_defvec=arm_aout_le_vec
317 targ_selvecs=arm_aout_be_vec
318 ;;
319 armeb-*-aout)
320 targ_defvec=arm_aout_be_vec
321 targ_selvecs=arm_aout_le_vec
322 ;;
323 arm-*-coff)
324 targ_defvec=arm_coff_le_vec
325 targ_selvecs=arm_coff_be_vec
326 targ_underscore=yes
327 ;;
328 arm-*-rtems*)
329 targ_defvec=arm_elf32_le_vec
330 targ_selvecs=arm_elf32_be_vec
331 ;;
332 armeb-*-elf | arm*b-*-freebsd* | arm*b-*-linux-* | armeb-*-eabi*)
333 targ_defvec=arm_elf32_be_vec
334 targ_selvecs=arm_elf32_le_vec
335 ;;
336 arm-*-kaos*)
337 targ_defvec=arm_elf32_le_vec
338 targ_selvecs=arm_elf32_be_vec
339 ;;
340 arm-*-elf | arm*-*-freebsd* | arm*-*-linux-* | arm*-*-conix* | \
341 arm*-*-uclinux* | arm-*-kfreebsd*-gnu | \
342 arm*-*-eabi* )
343 targ_defvec=arm_elf32_le_vec
344 targ_selvecs=arm_elf32_be_vec
345 ;;
346 arm*-*-vxworks | arm*-*-windiss)
347 targ_defvec=arm_elf32_vxworks_le_vec
348 targ_selvecs=arm_elf32_vxworks_be_vec
349 ;;
350 arm*-*-symbianelf*)
351 targ_defvec=arm_elf32_symbian_le_vec
352 targ_selvecs=arm_elf32_symbian_be_vec
353 ;;
354 arm9e-*-elf)
355 targ_defvec=arm_elf32_le_vec
356 targ_selvecs=arm_elf32_be_vec
357 ;;
358
359 avr-*-*)
360 targ_defvec=avr_elf32_vec
361 ;;
362
363 bfin-*-*)
364 targ_defvec=bfin_elf32_vec
365 targ_selvecs=bfin_elf32_fdpic_vec
366 targ_underscore=yes
367 ;;
368
369 c30-*-*aout* | tic30-*-*aout*)
370 targ_defvec=tic30_aout_vec
371 ;;
372 c30-*-*coff* | tic30-*-*coff*)
373 targ_defvec=tic30_coff_vec
374 ;;
375
376 c4x-*-*coff* | tic4x-*-*coff* | tic4x-*-rtems*)
377 targ_defvec=tic4x_coff1_vec
378 targ_selvecs="tic4x_coff1_beh_vec tic4x_coff2_vec tic4x_coff2_beh_vec tic4x_coff0_vec tic4x_coff0_beh_vec"
379 targ_underscore=yes
380 ;;
381
382 c54x*-*-*coff* | tic54x-*-*coff*)
383 targ_defvec=tic54x_coff1_vec
384 targ_selvecs="tic54x_coff1_beh_vec tic54x_coff2_vec tic54x_coff2_beh_vec tic54x_coff0_vec tic54x_coff0_beh_vec"
385 targ_underscore=yes
386 ;;
387
388 cr16-*-elf* | cr16*-*-uclinux*)
389 targ_defvec=cr16_elf32_vec
390 targ_underscore=yes
391 ;;
392
393 cr16c-*-elf*)
394 targ_defvec=cr16c_elf32_vec
395 targ_underscore=yes
396 ;;
397
398 cris-*-* | crisv32-*-*)
399 targ_defvec=cris_aout_vec
400 targ_selvecs="cris_elf32_us_vec cris_elf32_vec ieee_vec"
401 targ_underscore=yes # Note: not true for cris_elf32_vec.
402 ;;
403
404 crx-*-elf*)
405 targ_defvec=crx_elf32_vec
406 targ_underscore=yes
407 ;;
408
409 d10v-*-*)
410 targ_defvec=d10v_elf32_vec
411 ;;
412
413 dlx-*-elf*)
414 targ_defvec=dlx_elf32_be_vec
415 targ_selvecs="dlx_elf32_be_vec"
416 ;;
417
418 d30v-*-*)
419 targ_defvec=d30v_elf32_vec
420 ;;
421
422 epiphany-*-elf)
423 targ_defvec=epiphany_elf32_vec
424 ;;
425
426 fido-*-elf* )
427 targ_defvec=m68k_elf32_vec
428 targ_selvecs="m68k_coff_vec ieee_vec"
429 ;;
430
431 fr30-*-elf)
432 targ_defvec=fr30_elf32_vec
433 ;;
434
435 frv-*-elf)
436 targ_defvec=frv_elf32_vec
437 targ_selvecs=frv_elf32_fdpic_vec
438 ;;
439
440 frv-*-*linux*)
441 targ_defvec=frv_elf32_fdpic_vec
442 targ_selvecs=frv_elf32_vec
443 ;;
444
445 moxie-*-elf | moxie-*-rtems* | moxie-*-uclinux)
446 targ_defvec=moxie_elf32_be_vec
447 targ_selvecs=moxie_elf32_le_vec
448 ;;
449
450 moxie-*-moxiebox*)
451 targ_defvec=moxie_elf32_le_vec
452 ;;
453
454 h8300*-*-rtemscoff*)
455 targ_defvec=h8300_coff_vec
456 targ_underscore=yes
457 ;;
458
459 h8300*-*-elf | h8300*-*-rtems*)
460 targ_defvec=h8300_elf32_vec
461 targ_underscore=yes
462 ;;
463
464 h8300*-*-linux*)
465 targ_defvec=h8300_elf32_linux_vec
466 ;;
467
468 h8300*-*-*)
469 targ_defvec=h8300_coff_vec
470 targ_underscore=yes
471 ;;
472
473 h8500-*-*)
474 targ_defvec=h8500_coff_vec
475 targ_underscore=yes
476 ;;
477
478 #ifdef BFD64
479 hppa*64*-*-linux-*)
480 targ_defvec=hppa_elf64_linux_vec
481 targ_selvecs=hppa_elf64_vec
482 want64=true
483 ;;
484 hppa*64*-*-hpux11*)
485 targ_defvec=hppa_elf64_vec
486 targ_selvecs=hppa_elf64_linux_vec
487 targ_cflags=-DHPUX_LARGE_AR_IDS
488 want64=true
489 ;;
490 #endif
491
492 hppa*-*-linux-*)
493 targ_defvec=hppa_elf32_linux_vec
494 targ_selvecs=hppa_elf32_vec
495 ;;
496 hppa*-*-netbsd*)
497 targ_defvec=hppa_elf32_nbsd_vec
498 targ_selvecs="hppa_elf32_vec hppa_elf32_linux_vec"
499 ;;
500 hppa*-*-*elf* | hppa*-*-lites* | hppa*-*-sysv4* | hppa*-*-openbsd*)
501 targ_defvec=hppa_elf32_vec
502 targ_selvecs=hppa_elf32_linux_vec
503 ;;
504
505 hppa*-*-bsd*)
506 targ_defvec=hppa_som_vec
507 targ_selvecs=hppa_elf32_vec
508 ;;
509 hppa*-*-hpux* | hppa*-*-hiux* | hppa*-*-mpeix*)
510 targ_defvec=hppa_som_vec
511 ;;
512 hppa*-*-osf*)
513 targ_defvec=hppa_som_vec
514 targ_selvecs=hppa_elf32_vec
515 ;;
516
517 i370-*-*)
518 targ_defvec=i370_elf32_vec
519 targ_selvecs="i370_elf32_vec"
520 ;;
521 i[3-7]86-*-sco3.2v5*coff)
522 targ_defvec=i386_coff_vec
523 targ_selvecs=i386_elf32_vec
524 ;;
525 i[3-7]86-*-sysv4* | i[3-7]86-*-unixware* | \
526 i[3-7]86-*-elf | i[3-7]86-*-sco3.2v5* | \
527 i[3-7]86-*-dgux* | i[3-7]86-*-sysv5*)
528 targ_defvec=i386_elf32_vec
529 targ_selvecs=i386_coff_vec
530 ;;
531 i[3-7]86-*-solaris2*)
532 targ_defvec=i386_elf32_sol2_vec
533 targ_selvecs="i386_coff_vec"
534 targ64_selvecs="x86_64_elf64_sol2_vec l1om_elf64_vec k1om_elf64_vec"
535 want64=true
536 ;;
537 #ifdef BFD64
538 x86_64-*-solaris2*)
539 targ_defvec=i386_elf32_sol2_vec
540 targ_selvecs="x86_64_elf64_sol2_vec l1om_elf64_vec k1om_elf64_vec i386_coff_vec"
541 want64=true
542 ;;
543 #endif
544 i[3-7]86-*-kaos*)
545 targ_defvec=i386_elf32_vec
546 targ_selvecs=i386_elf32_vec
547 ;;
548 i[3-7]86-*-nto*)
549 targ_defvec=i386_elf32_vec
550 targ_selvecs=i386_coff_vec
551 ;;
552 i[3-7]86-*-aros*)
553 targ_defvec=i386_elf32_vec
554 ;;
555 i[3-7]86-*-chorus*)
556 targ_defvec=i386_elf32_vec
557 ;;
558 i[3-7]86-*-dicos*)
559 targ_defvec=i386_elf32_vec
560 targ64_selvecs="x86_64_elf64_vec l1om_elf64_vec k1om_elf64_vec"
561 ;;
562 *-*-msdosdjgpp* | *-*-go32* )
563 targ_defvec=i386_coff_go32_vec
564 targ_selvecs="i386_coff_go32stubbed_vec i386_aout_vec"
565 ;;
566 i[3-7]86-*-sysv* | i[3-7]86-*-isc* | i[3-7]86-*-sco* | i[3-7]86-*-coff | \
567 i[3-7]86-*-aix*)
568 targ_defvec=i386_coff_vec
569 ;;
570 i[3-7]86-*-rtems*)
571 targ_defvec=i386_elf32_vec
572 targ_selvecs="i386_coff_vec i386_aout_vec"
573 ;;
574 i[3-7]86-*-darwin* | i[3-7]86-*-macos10* | i[3-7]86-*-rhapsody*)
575 targ_defvec=i386_mach_o_vec
576 targ_selvecs="mach_o_le_vec mach_o_be_vec mach_o_fat_vec pef_vec pef_xlib_vec sym_vec"
577 targ64_selvecs=x86_64_mach_o_vec
578 targ_archs="$targ_archs bfd_powerpc_arch bfd_rs6000_arch"
579 ;;
580 i[3-7]86-sequent-bsd*)
581 targ_defvec=i386_aout_dynix_vec
582 targ_underscore=yes
583 ;;
584 i[3-7]86-*-bsd*)
585 targ_defvec=i386_aout_bsd_vec
586 targ_underscore=yes
587 ;;
588 i[3-7]86-*-dragonfly*)
589 targ_defvec=i386_elf32_vec
590 targ64_selvecs="x86_64_elf64_vec l1om_elf64_vec k1om_elf64_vec"
591 ;;
592 i[3-7]86-*-freebsdaout* | i[3-7]86-*-freebsd[12].* | \
593 i[3-7]86-*-freebsd[12])
594 targ_defvec=i386_aout_fbsd_vec
595 targ_selvecs=i386_aout_bsd_vec
596 targ_underscore=yes
597 ;;
598 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
599 targ_defvec=i386_elf32_fbsd_vec
600 targ_selvecs="i386_elf32_vec i386_pei_vec i386_coff_vec"
601 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"
602 # FreeBSD <= 4.0 supports only the old nonstandard way of ABI labelling.
603 case "${targ}" in
604 i[3-7]86-*-freebsd3* | i[3-7]86-*-freebsd4 | i[3-7]86-*-freebsd4.0*)
605 targ_cflags=-DOLD_FREEBSD_ABI_LABEL ;;
606 esac
607 ;;
608 i[3-7]86-*-netbsdelf* | i[3-7]86-*-netbsd*-gnu* | i[3-7]86-*-knetbsd*-gnu)
609 targ_defvec=i386_elf32_vec
610 targ_selvecs=i386_aout_nbsd_vec
611 targ64_selvecs="x86_64_elf64_vec l1om_elf64_vec k1om_elf64_vec"
612 ;;
613 i[3-7]86-*-netbsdpe*)
614 targ_defvec=i386_pe_vec
615 targ_selvecs="i386_pe_vec i386_pei_vec i386_elf32_vec"
616 ;;
617 i[3-7]86-*-netbsdaout* | i[3-7]86-*-netbsd* | \
618 i[3-7]86-*-openbsd[0-2].* | i[3-7]86-*-openbsd3.[0-3])
619 targ_defvec=i386_aout_nbsd_vec
620 targ_selvecs="i386_elf32_vec i386_aout_bsd_vec"
621 targ_underscore=yes
622 ;;
623 i[3-7]86-*-openbsd*)
624 targ_defvec=i386_elf32_vec
625 targ_selvecs=i386_aout_nbsd_vec
626 ;;
627 i[3-7]86-*-netware*)
628 targ_defvec=i386_elf32_vec
629 targ_selvecs="i386_nlm32_vec i386_coff_vec i386_aout_vec"
630 ;;
631 i[3-7]86-*-linux*aout*)
632 targ_defvec=i386_aout_linux_vec
633 targ_selvecs=i386_elf32_vec
634 targ_underscore=yes
635 ;;
636 i[3-7]86-*-linux-*)
637 targ_defvec=i386_elf32_vec
638 targ_selvecs="i386_aout_linux_vec i386_pei_vec"
639 targ64_selvecs="x86_64_elf64_vec x86_64_elf32_vec x86_64_pei_vec l1om_elf64_vec k1om_elf64_vec"
640 ;;
641 i[3-7]86-*-nacl*)
642 targ_defvec=i386_elf32_nacl_vec
643 targ_selvecs="arm_elf32_nacl_be_vec arm_elf32_nacl_le_vec"
644 targ64_selvecs="x86_64_elf64_nacl_vec x86_64_elf32_nacl_vec"
645 targ_archs="$targ_archs bfd_arm_arch"
646 ;;
647 #ifdef BFD64
648 x86_64-*-darwin*)
649 targ_defvec=x86_64_mach_o_vec
650 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"
651 targ_archs="$targ_archs bfd_powerpc_arch bfd_rs6000_arch"
652 want64=true
653 ;;
654 x86_64-*-dicos*)
655 targ_defvec=x86_64_elf64_vec
656 targ_selvecs="i386_elf32_vec l1om_elf64_vec k1om_elf64_vec"
657 want64=true
658 ;;
659 x86_64-*-elf*)
660 targ_defvec=x86_64_elf64_vec
661 targ_selvecs="i386_elf32_vec x86_64_elf32_vec l1om_elf64_vec k1om_elf64_vec"
662 want64=true
663 ;;
664 x86_64-*-dragonfly*)
665 targ_defvec=x86_64_elf64_vec
666 targ_selvecs="i386_elf32_vec l1om_elf64_vec k1om_elf64_vec"
667 want64=true
668 ;;
669 x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
670 targ_defvec=x86_64_elf64_fbsd_vec
671 targ_selvecs="i386_elf32_fbsd_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"
672 want64=true
673 ;;
674 x86_64-*-netbsd* | x86_64-*-openbsd*)
675 targ_defvec=x86_64_elf64_vec
676 targ_selvecs="i386_elf32_vec i386_aout_nbsd_vec i386_coff_vec i386_pei_vec x86_64_pei_vec l1om_elf64_vec k1om_elf64_vec"
677 want64=true
678 ;;
679 x86_64-*-linux-*)
680 targ_defvec=x86_64_elf64_vec
681 targ_selvecs="i386_elf32_vec x86_64_elf32_vec i386_aout_linux_vec i386_pei_vec x86_64_pei_vec l1om_elf64_vec k1om_elf64_vec"
682 want64=true
683 ;;
684 x86_64-*-nacl*)
685 targ_defvec=x86_64_elf32_nacl_vec
686 targ_selvecs="i386_elf32_nacl_vec x86_64_elf64_nacl_vec arm_elf32_nacl_be_vec arm_elf32_nacl_le_vec"
687 targ_archs="$targ_archs bfd_arm_arch"
688 want64=true
689 ;;
690 x86_64-*-mingw* | x86_64-*-pe | x86_64-*-pep | x86_64-*-cygwin)
691 targ_defvec=x86_64_pe_vec
692 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"
693 want64=true
694 targ_underscore=no
695 ;;
696 x86_64-*-rdos*)
697 targ_defvec=x86_64_elf64_vec
698 want64=true
699 ;;
700 #endif
701 i[3-7]86-*-lynxos*)
702 targ_defvec=i386_elf32_vec
703 targ_selvecs="i386_coff_lynx_vec i386_aout_lynx_vec"
704 ;;
705 i[3-7]86-*-gnu*)
706 targ_defvec=i386_elf32_vec
707 ;;
708 i[3-7]86-*-mach* | i[3-7]86-*-osf1mk*)
709 targ_defvec=i386_aout_mach3_vec
710 targ_cflags=-DSTAT_FOR_EXEC
711 targ_underscore=yes
712 ;;
713 i[3-7]86-*-os9k)
714 targ_defvec=i386_aout_os9k_vec
715 ;;
716 i[3-7]86-*-msdos*)
717 targ_defvec=i386_aout_vec
718 targ_selvecs=i386_msdos_vec
719 ;;
720 i[3-7]86-*-moss*)
721 targ_defvec=i386_elf32_vec
722 targ_selvecs="i386_msdos_vec i386_aout_vec"
723 ;;
724 i[3-7]86-*-beospe*)
725 targ_defvec=i386_pe_vec
726 targ_selvecs="i386_pe_vec i386_pei_vec"
727 ;;
728 i[3-7]86-*-beoself* | i[3-7]86-*-beos*)
729 targ_defvec=i386_elf32_vec
730 targ_selvecs="i386_pe_vec i386_pei_vec"
731 ;;
732 i[3-7]86-*-interix*)
733 targ_defvec=i386_pei_vec
734 targ_selvecs="i386_pe_vec"
735 # FIXME: This should eventually be checked at runtime.
736 targ_cflags=-DSTRICT_PE_FORMAT
737 ;;
738 i[3-7]86-*-rdos*)
739 targ_defvec=i386_elf32_vec
740 targ_selvecs=i386_coff_vec
741 ;;
742 i[3-7]86-*-mingw32* | i[3-7]86-*-cygwin* | i[3-7]86-*-winnt | i[3-7]86-*-pe)
743 targ_defvec=i386_pe_vec
744 targ_selvecs="i386_pe_vec i386_pei_vec i386_elf32_vec"
745 targ_underscore=yes
746 ;;
747 i[3-7]86-none-*)
748 targ_defvec=i386_coff_vec
749 ;;
750 i[3-7]86-*-aout* | i[3-7]86*-*-vsta*)
751 targ_defvec=i386_aout_vec
752 ;;
753 i[3-7]86-*-vxworks*)
754 targ_defvec=i386_elf32_vxworks_vec
755 targ_underscore=yes
756 ;;
757 i[3-7]86-*-chaos)
758 targ_defvec=i386_elf32_vec
759 targ_selfvecs=i386chaos_vec
760 ;;
761
762 i860-*-mach3* | i860-*-osf1* | i860-*-coff*)
763 targ_defvec=i860_coff_vec
764 ;;
765 i860-stardent-sysv4* | i860-stardent-elf*)
766 targ_defvec=i860_elf32_le_vec
767 targ_selvecs="i860_elf32_vec i860_elf32_le_vec"
768 ;;
769 i860-*-sysv4* | i860-*-elf*)
770 targ_defvec=i860_elf32_vec
771 ;;
772
773 i960-*-vxworks4* | i960-*-vxworks5.0)
774 targ_defvec=bout_le_vec
775 targ_selvecs="bout_be_vec icoff_le_vec icoff_be_vec ieee_vec"
776 targ_underscore=yes
777 ;;
778 i960-*-vxworks5.* | i960-*-coff* | i960-*-sysv*)
779 targ_defvec=icoff_le_vec
780 targ_selvecs="icoff_be_vec bout_le_vec bout_be_vec ieee_vec"
781 targ_underscore=yes
782 ;;
783 i960-*-vxworks* | i960-*-aout* | i960-*-bout* | i960-*-nindy*)
784 targ_defvec=bout_le_vec
785 targ_selvecs="bout_be_vec icoff_le_vec icoff_be_vec ieee_vec"
786 targ_underscore=yes
787 ;;
788 i960-*-elf*)
789 targ_defvec=i960_elf32_vec
790 targ_selvecs="icoff_le_vec icoff_be_vec"
791 ;;
792
793 ip2k-*-elf)
794 targ_defvec=ip2k_elf32_vec
795 ;;
796
797 iq2000-*-elf)
798 targ_defvec=iq2000_elf32_vec
799 ;;
800
801 lm32-*-elf | lm32-*-rtems*)
802 targ_defvec=lm32_elf32_vec
803 targ_selvecs=lm32_elf32_fdpic_vec
804 ;;
805
806 lm32-*-*linux*)
807 targ_defvec=lm32_elf32_fdpic_vec
808 targ_selvecs=lm32_elf32_vec
809 ;;
810
811 m32c-*-elf | m32c-*-rtems*)
812 targ_defvec=m32c_elf32_vec
813 ;;
814
815 m32r*le-*-linux*)
816 targ_defvec=m32r_elf32_linux_le_vec
817 targ_selvecs="m32r_elf32_linux_vec m32r_elf32_linux_le_vec"
818 ;;
819 m32r*-*-linux*)
820 targ_defvec=m32r_elf32_linux_vec
821 targ_selvecs="m32r_elf32_linux_vec m32r_elf32_linux_le_vec"
822 ;;
823 m32r*le-*-*)
824 targ_defvec=m32r_elf32_le_vec
825 targ_selvecs="m32r_elf32_vec m32r_elf32_le_vec"
826 ;;
827 m32r-*-*)
828 targ_defvec=m32r_elf32_vec
829 ;;
830
831 m68hc11-*-* | m6811-*-*)
832 targ_defvec=m68hc11_elf32_vec
833 targ_selvecs="m68hc11_elf32_vec m68hc12_elf32_vec"
834 ;;
835 m68hc12-*-* | m6812-*-*)
836 targ_defvec=m68hc12_elf32_vec
837 targ_selvecs="m68hc11_elf32_vec m68hc12_elf32_vec"
838 ;;
839
840 m68*-motorola-sysv*)
841 targ_defvec=m68k_coff_sysv_vec
842 ;;
843 m68*-hp-bsd*)
844 targ_defvec=m68k_aout_hp300bsd_vec
845 targ_underscore=yes
846 ;;
847 m68*-*-aout*)
848 targ_defvec=aout0_be_vec
849 # We include core_cisco_be_vec here, rather than making a separate cisco
850 # configuration, so that cisco-core.c gets routinely tested at
851 # least for compilation.
852 targ_selvecs="core_cisco_be_vec ieee_vec"
853 targ_underscore=yes
854 ;;
855 m68*-*-elf* | m68*-*-sysv4* | m68*-*-uclinux*)
856 targ_defvec=m68k_elf32_vec
857 targ_selvecs="m68k_coff_vec ieee_vec"
858 ;;
859 m68*-*-rtems*)
860 targ_defvec=m68k_elf32_vec
861 targ_selvecs="m68k_coff_vec m68k_versados_vec ieee_vec aout0_be_vec"
862 ;;
863 m68*-*-coff* | m68*-*-sysv*)
864 targ_defvec=m68k_coff_vec
865 targ_selvecs="m68k_coff_vec m68k_versados_vec ieee_vec"
866 ;;
867 m68*-*-hpux*)
868 targ_defvec=m68k_aout_hp300hpux_vec
869 targ_underscore=yes
870 ;;
871 m68*-*-linux*aout*)
872 targ_defvec=m68k_aout_linux_vec
873 targ_selvecs=m68k_elf32_vec
874 targ_underscore=yes
875 ;;
876 m68*-*-linux-*)
877 targ_defvec=m68k_elf32_vec
878 targ_selvecs=m68k_aout_linux_vec
879 ;;
880 m68*-*-gnu*)
881 targ_defvec=m68k_elf32_vec
882 # targ_selvecs=m68kmach3_vec
883 # targ_cflags=-DSTAT_FOR_EXEC
884 ;;
885 m68*-hp*-netbsd*)
886 targ_defvec=m68k_aout_4knbsd_vec
887 targ_selvecs="m68k_aout_nbsd_vec m68k_aout_hp300bsd_vec sparc_aout_sunos_be_vec"
888 targ_underscore=yes
889 ;;
890 m68*-*-netbsdelf*)
891 targ_defvec=m68k_elf32_vec
892 targ_selvecs="m68k_aout_nbsd_vec m68k_aout_4knbsd_vec m68k_aout_hp300bsd_vec sparc_aout_sunos_be_vec"
893 ;;
894 m68*-*-netbsdaout* | m68*-*-netbsd*)
895 targ_defvec=m68k_aout_nbsd_vec
896 targ_selvecs="m68k_aout_4knbsd_vec m68k_elf32_vec m68k_aout_hp300bsd_vec sparc_aout_sunos_be_vec"
897 targ_underscore=yes
898 ;;
899 m68*-*-openbsd*)
900 targ_defvec=m68k_aout_nbsd_vec
901 targ_selvecs="m68k_aout_4knbsd_vec m68k_aout_hp300bsd_vec sparc_aout_sunos_be_vec"
902 targ_underscore=yes
903 ;;
904 m68*-*-sunos* | m68*-*-os68k* | m68*-*-vxworks* | m68*-netx-* | \
905 m68*-*-bsd* | m68*-*-vsta*)
906 targ_defvec=sparc_aout_sunos_be_vec
907 targ_underscore=yes
908 ;;
909 m68*-ericsson-*)
910 targ_defvec=sparc_aout_sunos_be_vec
911 targ_selvecs="m68k_coff_vec m68k_versados_vec tekhex_vec"
912 targ_underscore=yes
913 ;;
914 m68*-cbm-*)
915 targ_defvec=m68k_elf32_vec
916 targ_selvecs=m68k_coff_vec
917 ;;
918 m68*-*-psos*)
919 targ_defvec=m68k_elf32_vec
920 targ_selvecs=ieee_vec
921 targ_underscore=yes
922 ;;
923
924 m88*-harris-cxux* | m88*-*-dgux* | m88*-*-sysv4*)
925 targ_defvec=m88k_elf32_vec
926 targ_selvecs=m88k_coff_bcs_vec
927 ;;
928 m88*-*-mach3*)
929 targ_defvec=m88k_aout_mach3_vec
930 targ_cflags=-DSTAT_FOR_EXEC
931 ;;
932 m88*-*-openbsd*)
933 targ_defvec=m88k_aout_obsd_vec
934 targ_underscore=yes
935 ;;
936 m88*-*-*)
937 targ_defvec=m88k_coff_bcs_vec
938 targ_underscore=yes
939 ;;
940
941 mcore-*-elf)
942 targ_defvec=mcore_elf32_be_vec
943 targ_selvecs="mcore_elf32_be_vec mcore_elf32_le_vec"
944 ;;
945 mcore-*-pe)
946 targ_defvec=mcore_pe_be_vec
947 targ_selvecs="mcore_pe_be_vec mcore_pe_le_vec mcore_pei_be_vec mcore_pei_le_vec"
948 ;;
949
950 mep-*-elf)
951 targ_defvec=mep_elf32_vec
952 targ_selvecs=mep_elf32_le_vec
953 ;;
954
955 metag-*-*)
956 targ_defvec=metag_elf32_vec
957 targ_underscore=yes
958 ;;
959
960 microblazeel*-*)
961 targ_defvec=microblaze_elf32_le_vec
962 targ_selvecs=microblaze_elf32_vec
963 ;;
964
965 microblaze*-*)
966 targ_defvec=microblaze_elf32_vec
967 targ_selvecs=microblaze_elf32_le_vec
968 ;;
969
970 mips*-big-*)
971 targ_defvec=mips_ecoff_be_vec
972 targ_selvecs=mips_ecoff_le_vec
973 ;;
974 #ifdef BFD64
975 mips*el-*-netbsd*)
976 targ_defvec=mips_elf32_trad_le_vec
977 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"
978 ;;
979 mips*-*-netbsd*)
980 targ_defvec=mips_elf32_trad_be_vec
981 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"
982 ;;
983 #endif
984 mips*-dec-* | mips*el-*-ecoff*)
985 targ_defvec=mips_ecoff_le_vec
986 targ_selvecs=mips_ecoff_be_vec
987 ;;
988 mips*-*-ecoff*)
989 targ_defvec=mips_ecoff_be_vec
990 targ_selvecs=mips_ecoff_le_vec
991 ;;
992 #ifdef BFD64
993 mips*-*-irix6*)
994 targ_defvec=mips_elf32_n_be_vec
995 targ_selvecs="mips_elf32_n_le_vec mips_elf32_be_vec mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec"
996 ;;
997 mips64*-ps2-elf*)
998 targ_defvec=mips_elf32_n_le_vec
999 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"
1000 ;;
1001 mips*-ps2-elf*)
1002 targ_defvec=mips_elf32_le_vec
1003 targ_selvecs="mips_elf32_be_vec mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec"
1004 ;;
1005 mips*-*-irix5*)
1006 targ_defvec=mips_elf32_be_vec
1007 targ_selvecs="mips_elf32_le_vec mips_ecoff_be_vec mips_ecoff_le_vec"
1008 ;;
1009 #endif
1010 mips*-sgi-* | mips*-*-bsd*)
1011 targ_defvec=mips_ecoff_be_vec
1012 targ_selvecs=mips_ecoff_le_vec
1013 ;;
1014 mips*-*-lnews*)
1015 targ_defvec=mips_ecoff_bele_vec
1016 targ_selvecs="mips_ecoff_le_vec mips_ecoff_be_vec"
1017 ;;
1018 #ifdef BFD64
1019 mips*-*-sysv4*)
1020 targ_defvec=mips_elf32_trad_be_vec
1021 targ_selvecs="mips_elf32_trad_le_vec mips_ecoff_be_vec mips_ecoff_le_vec"
1022 ;;
1023 #endif
1024 mips*-*-sysv* | mips*-*-riscos*)
1025 targ_defvec=mips_ecoff_be_vec
1026 targ_selvecs=mips_ecoff_le_vec
1027 ;;
1028 #ifdef BFD64
1029 mips*el-*-vxworks*)
1030 targ_defvec=mips_elf32_vxworks_le_vec
1031 targ_selvecs="mips_elf32_le_vec mips_elf32_vxworks_be_vec mips_elf32_be_vec mips_elf64_be_vec mips_elf64_le_vec"
1032 ;;
1033 mips*-*-vxworks*)
1034 targ_defvec=mips_elf32_vxworks_be_vec
1035 targ_selvecs="mips_elf32_be_vec mips_elf32_vxworks_le_vec mips_elf32_be_vec mips_elf64_be_vec mips_elf64_le_vec"
1036 ;;
1037 mips*el-sde-elf*)
1038 targ_defvec=mips_elf32_trad_le_vec
1039 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"
1040 ;;
1041 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
1042 targ_defvec=mips_elf32_trad_be_vec
1043 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"
1044 ;;
1045 mips*el-*-elf* | mips*el-*-vxworks* | mips*-*-chorus*)
1046 targ_defvec=mips_elf32_le_vec
1047 targ_selvecs="mips_elf32_be_vec mips_elf64_be_vec mips_elf64_le_vec"
1048 ;;
1049 mips*-*-elf* | mips*-*-rtems* | mips*-*-vxworks | mips*-*-windiss)
1050 targ_defvec=mips_elf32_be_vec
1051 targ_selvecs="mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec"
1052 ;;
1053 mips*-*-none)
1054 targ_defvec=mips_elf32_be_vec
1055 targ_selvecs="mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec"
1056 ;;
1057 mips64*-*-openbsd*)
1058 targ_defvec=mips_elf64_trad_be_vec
1059 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"
1060 ;;
1061 mips*el-*-openbsd*)
1062 targ_defvec=mips_elf32_le_vec
1063 targ_selvecs="mips_elf32_be_vec mips_elf64_be_vec mips_elf64_le_vec mips_ecoff_le_vec mips_ecoff_be_vec"
1064 ;;
1065 mips*-*-openbsd*)
1066 targ_defvec=mips_elf32_be_vec
1067 targ_selvecs="mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec mips_ecoff_be_vec mips_ecoff_le_vec"
1068 ;;
1069 mips64*el-*-linux*)
1070 targ_defvec=mips_elf32_ntrad_le_vec
1071 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"
1072 ;;
1073 mips64*-*-linux*)
1074 targ_defvec=mips_elf32_ntrad_be_vec
1075 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"
1076 ;;
1077 mips*el-*-linux*)
1078 targ_defvec=mips_elf32_trad_le_vec
1079 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"
1080 ;;
1081 mips*-*-linux*)
1082 targ_defvec=mips_elf32_trad_be_vec
1083 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"
1084 ;;
1085 mips64*el-*-freebsd* | mips64*el-*-kfreebsd*-gnu)
1086 # FreeBSD vectors
1087 targ_defvec=mips_elf32_ntradfbsd_le_vec
1088 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"
1089 # Generic vectors
1090 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"
1091 ;;
1092 mips64*-*-freebsd* | mips64*-*-kfreebsd*-gnu)
1093 # FreeBSD vectors
1094 targ_defvec=mips_elf32_ntradfbsd_be_vec
1095 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"
1096 # Generic vectors
1097 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"
1098 ;;
1099 mips*el-*-freebsd* | mips*el-*-kfreebsd*-gnu)
1100 # FreeBSD vectors
1101 targ_defvec=mips_elf32_tradfbsd_le_vec
1102 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"
1103 # Generic vectors
1104 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"
1105 ;;
1106 mips*-*-freebsd* | mips*-*-kfreebsd*-gnu)
1107 # FreeBSD vectors
1108 targ_defvec=mips_elf32_tradfbsd_be_vec
1109 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"
1110 # Generic vectors
1111 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"
1112 ;;
1113 mmix-*-*)
1114 targ_defvec=mmix_elf64_vec
1115 targ_selvecs=mmix_mmo_vec
1116 want64=true
1117 ;;
1118 #endif
1119 mn10200-*-*)
1120 targ_defvec=mn10200_elf32_vec
1121 ;;
1122
1123 mn10300-*-*)
1124 targ_defvec=mn10300_elf32_vec
1125 targ_underscore=yes
1126 ;;
1127
1128 mt-*-elf)
1129 targ_defvec=mt_elf32_vec
1130 ;;
1131
1132 msp430-*-*)
1133 targ_defvec=msp430_elf32_vec
1134 targ_selvecs=msp430_elf32_ti_vec
1135 ;;
1136
1137 nds32*le-*-linux*)
1138 targ_defvec=nds32_elf32_linux_le_vec
1139 targ_selvecs=nds32_elf32_linux_be_vec
1140 ;;
1141
1142 nds32*be-*-linux*)
1143 targ_defvec=nds32_elf32_linux_be_vec
1144 targ_selvecs=nds32_elf32_linux_le_vec
1145 ;;
1146
1147 nds32*le-*-*)
1148 targ_defvec=nds32_elf32_le_vec
1149 targ_selvecs=nds32_elf32_be_vec
1150 ;;
1151
1152 nds32*be-*-*)
1153 targ_defvec=nds32_elf32_be_vec
1154 targ_selvecs=nds32_elf32_le_vec
1155 ;;
1156
1157 ns32k-pc532-mach* | ns32k-pc532-ux*)
1158 targ_defvec=ns32k_aout_pc532mach_vec
1159 targ_underscore=yes
1160 ;;
1161 ns32k-*-netbsd* | ns32k-*-lites* | ns32k-*-openbsd*)
1162 targ_defvec=ns32k_aout_pc532nbsd_vec
1163 targ_underscore=yes
1164 ;;
1165
1166 nios2eb-*-*)
1167 targ_defvec=nios2_elf32_be_vec
1168 targ_selvecs=nios2_elf32_le_vec
1169 ;;
1170
1171 nios2el-*-*)
1172 targ_defvec=nios2_elf32_le_vec
1173 targ_selvecs=nios2_elf32_be_vec
1174 ;;
1175
1176 nios2-*-*)
1177 targ_defvec=nios2_elf32_le_vec
1178 targ_selvecs=nios2_elf32_be_vec
1179 ;;
1180
1181 or1k-*-elf | or1k-*-linux* | or1k-*-rtems*)
1182 targ_defvec=or1k_elf32_vec
1183 ;;
1184
1185 or1knd-*-elf | or1knd-*-linux* | or1knd-*-rtems*)
1186 targ_defvec=or1k_elf32_vec
1187 ;;
1188
1189 pdp11-*-*)
1190 targ_defvec=pdp11_aout_vec
1191 targ_underscore=yes
1192 ;;
1193
1194 pj-*-*)
1195 targ_defvec=pj_elf32_vec
1196 targ_selvecs="pj_elf32_vec pj_elf32_le_vec"
1197 ;;
1198
1199 pjl-*-*)
1200 targ_defvec=pj_elf32_le_vec
1201 targ_selvecs="pj_elf32_le_vec pj_elf32_vec i386_elf32_vec"
1202 ;;
1203
1204 powerpc-*-aix5.[01] | rs6000-*-aix5.[01])
1205 targ_defvec=rs6000_xcoff_vec
1206 targ_selvecs="rs6000_xcoff64_aix_vec"
1207 want64=true
1208 ;;
1209 #ifdef BFD64
1210 powerpc64-*-aix5.[01] | rs6000-*-aix5.[01])
1211 targ_defvec=rs6000_xcoff64_aix_vec
1212 targ_selvecs="rs6000_xcoff_vec"
1213 want64=true
1214 ;;
1215 #endif
1216 powerpc-*-aix[5-9]* | rs6000-*-aix[5-9]*)
1217 targ_cflags=-DAIX_WEAK_SUPPORT
1218 targ_defvec=rs6000_xcoff_vec
1219 targ_selvecs="rs6000_xcoff64_aix_vec"
1220 want64=true
1221 ;;
1222 #ifdef BFD64
1223 powerpc64-*-aix[5-9]* | rs6000-*-aix[5-9]*)
1224 targ_cflags=-DAIX_WEAK_SUPPORT
1225 targ_defvec=rs6000_xcoff64_aix_vec
1226 targ_selvecs="rs6000_xcoff_vec"
1227 want64=true
1228 ;;
1229 #endif
1230
1231 powerpc-*-aix* | powerpc-*-beos* | rs6000-*-*)
1232 targ_defvec=rs6000_xcoff_vec
1233 targ64_selvecs=rs6000_xcoff64_vec
1234 case "${targ}" in
1235 *-*-aix4.[3456789]* | *-*-aix[56789]*)
1236 want64=true;;
1237 *)
1238 targ_cflags=-DSMALL_ARCHIVE;;
1239 esac
1240 ;;
1241 #ifdef BFD64
1242 powerpc64-*-aix*)
1243 targ_defvec=rs6000_xcoff64_vec
1244 targ_selvecs=rs6000_xcoff_vec
1245 want64=true
1246 ;;
1247 powerpc64-*-freebsd*)
1248 targ_defvec=powerpc_elf64_fbsd_vec
1249 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"
1250 want64=true
1251 ;;
1252 powerpc64-*-elf* | powerpc-*-elf64* | powerpc64-*-linux* | \
1253 powerpc64-*-*bsd*)
1254 targ_defvec=powerpc_elf64_vec
1255 targ_selvecs="powerpc_elf64_le_vec powerpc_elf32_vec powerpc_elf32_le_vec rs6000_xcoff_vec rs6000_xcoff64_vec rs6000_xcoff64_aix_vec"
1256 want64=true
1257 ;;
1258 powerpc64le-*-elf* | powerpcle-*-elf64* | powerpc64le-*-linux* | \
1259 powerpc64le-*-*bsd*)
1260 targ_defvec=powerpc_elf64_le_vec
1261 targ_selvecs="powerpc_elf64_vec powerpc_elf32_le_vec powerpc_elf32_vec rs6000_xcoff_vec rs6000_xcoff64_vec rs6000_xcoff64_aix_vec"
1262 want64=true
1263 ;;
1264 #endif
1265 powerpc-*-*freebsd*)
1266 targ_defvec=powerpc_elf32_fbsd_vec
1267 targ_selvecs="rs6000_xcoff_vec powerpc_elf32_vec powerpc_elf32_le_vec powerpc_boot_vec"
1268 targ64_selvecs="powerpc_elf64_vec powerpc_elf64_le_vec powerpc_elf64_fbsd_vec"
1269 ;;
1270 powerpc-*-*bsd* | powerpc-*-elf* | powerpc-*-sysv4* | powerpc-*-eabi* | \
1271 powerpc-*-solaris2* | powerpc-*-linux-* | powerpc-*-rtems* | \
1272 powerpc-*-chorus*)
1273 targ_defvec=powerpc_elf32_vec
1274 targ_selvecs="rs6000_xcoff_vec powerpc_elf32_le_vec powerpc_boot_vec"
1275 targ64_selvecs="powerpc_elf64_vec powerpc_elf64_le_vec"
1276 ;;
1277 powerpc-*-kaos*)
1278 targ_defvec=powerpc_elf32_vec
1279 targ_selvecs="powerpc_elf32_le_vec powerpc_boot_vec"
1280 targ64_selvecs="powerpc_elf64_vec powerpc_elf64_le_vec"
1281 ;;
1282 powerpc-*-darwin* | powerpc-*-macos10* | powerpc-*-rhapsody*)
1283 targ_defvec=mach_o_be_vec
1284 targ_selvecs="mach_o_be_vec mach_o_le_vec mach_o_fat_vec pef_vec pef_xlib_vec sym_vec"
1285 targ_archs="$targ_archs bfd_i386_arch"
1286 ;;
1287 powerpc-*-macos*)
1288 targ_defvec=powerpc_xcoff_vec
1289 ;;
1290 powerpc-*-lynxos*)
1291 targ_defvec=powerpc_elf32_vec
1292 targ_selvecs="rs6000_xcoff_vec"
1293 targ_cflags=-DSMALL_ARCHIVE
1294 ;;
1295 powerpc-*-netware*)
1296 targ_defvec=powerpc_elf32_vec
1297 targ_selvecs="powerpc_nlm32_vec rs6000_xcoff_vec"
1298 ;;
1299 powerpc-*-nto*)
1300 targ_defvec=powerpc_elf32_vec
1301 targ_selvecs="rs6000_xcoff_vec powerpc_elf32_le_vec powerpc_boot_vec"
1302 ;;
1303 powerpc-*-vxworks* | powerpc-*-windiss*)
1304 targ_defvec=powerpc_elf32_vxworks_vec
1305 targ_selvecs="rs6000_xcoff_vec powerpc_elf32_vec powerpc_elf32_le_vec powerpc_boot_vec"
1306 targ64_selvecs="powerpc_elf64_vec powerpc_elf64_le_vec"
1307 ;;
1308 powerpcle-*-nto*)
1309 targ_defvec=powerpc_elf32_le_vec
1310 targ_selvecs="rs6000_xcoff_vec powerpc_elf32_vec powerpc_boot_vec"
1311 ;;
1312 powerpcle-*-elf* | powerpcle-*-sysv4* | powerpcle-*-eabi* | \
1313 powerpcle-*-solaris2* | powerpcle-*-linux-* | powerpcle-*-vxworks*)
1314 targ_defvec=powerpc_elf32_le_vec
1315 targ_selvecs="rs6000_xcoff_vec powerpc_elf32_vec powerpc_boot_vec"
1316 targ64_selvecs="powerpc_elf64_vec powerpc_elf64_le_vec"
1317 ;;
1318 powerpcle-*-pe | powerpcle-*-winnt* | powerpcle-*-cygwin*)
1319 targ_defvec=powerpc_pe_le_vec
1320 targ_selvecs="powerpc_pei_le_vec powerpc_pei_vec powerpc_pe_le_vec powerpc_pe_vec"
1321 ;;
1322
1323 rl78-*-elf)
1324 targ_defvec=rl78_elf32_vec
1325 ;;
1326
1327 rx-*-elf)
1328 targ_defvec=rx_elf32_le_vec
1329 targ_selvecs="rx_elf32_be_vec rx_elf32_le_vec rx_elf32_be_ns_vec"
1330 ;;
1331
1332 s390-*-linux*)
1333 targ_defvec=s390_elf32_vec
1334 targ64_selvecs=s390_elf64_vec
1335 want64=true
1336 ;;
1337 #ifdef BFD64
1338 s390x-*-linux*)
1339 targ_defvec=s390_elf64_vec
1340 targ_selvecs=s390_elf32_vec
1341 want64=true
1342 ;;
1343 s390x-*-tpf*)
1344 targ_defvec=s390_elf64_vec
1345 want64=true
1346 ;;
1347
1348 score*-*-elf*)
1349 targ_defvec=score_elf32_be_vec
1350 targ_selvecs=score_elf32_le_vec
1351 ;;
1352
1353 sh64l*-*-elf*)
1354 targ_defvec=sh64_elf32_le_vec
1355 targ_selvecs="sh64_elf32_vec sh64_elf64_le_vec sh64_elf64_vec sh_elf32_le_vec sh_elf32_vec"
1356 targ_underscore=yes
1357 want64=true
1358 ;;
1359 sh64-*-elf*)
1360 targ_defvec=sh64_elf32_vec
1361 targ_selvecs="sh64_elf32_le_vec sh64_elf64_vec sh64_elf64_le_vec sh_elf32_vec sh_elf32_le_vec"
1362 targ_underscore=yes
1363 want64=true
1364 ;;
1365 sh64eb-*-linux*)
1366 targ_defvec=sh64_elf32_linux_be_vec
1367 targ_selvecs="sh64_elf32_linux_vec sh64_elf64_linux_be_vec sh64_elf64_linux_vec sh_elf32_linux_be_vec sh_elf32_linux_vec"
1368 want64=true
1369 ;;
1370 sh64-*-linux*)
1371 targ_defvec=sh64_elf32_linux_vec
1372 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"
1373 want64=true
1374 ;;
1375 sh-*-linux*)
1376 targ_defvec=sh_elf32_linux_be_vec
1377 targ_selvecs="sh_elf32_linux_vec sh64_elf32_linux_vec sh64_elf32_linux_be_vec sh64_elf64_linux_vec sh64_elf64_linux_be_vec"
1378 want64=true
1379 ;;
1380 #endif /* BFD64 */
1381
1382 sh*eb-*-linux*)
1383 targ_defvec=sh_elf32_linux_be_vec
1384 targ_selvecs=sh_elf32_linux_vec
1385 ;;
1386 sh*-*-linux*)
1387 targ_defvec=sh_elf32_linux_vec
1388 targ_selvecs=sh_elf32_linux_be_vec
1389 ;;
1390
1391 sh-*-uclinux* | sh[12]-*-uclinux*)
1392 targ_defvec=sh_elf32_vec
1393 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"
1394 #ifdef BFD64
1395 targ_selvecs="${targ_selvecs} sh64_elf32_linux_vec sh64_elf32_linux_be_vec sh64_elf64_linux_vec sh64_elf64_linux_be_vec"
1396 #endif
1397 ;;
1398
1399 #ifdef BFD64
1400 sh5le-*-netbsd*)
1401 targ_defvec=sh64_elf32_nbsd_le_vec
1402 targ_selvecs="sh64_elf32_nbsd_vec sh64_elf64_nbsd_le_vec sh64_elf64_nbsd_vec sh_elf32_nbsd_vec sh_elf32_nbsd_le_vec"
1403 want64=true
1404 ;;
1405 sh5-*-netbsd*)
1406 targ_defvec=sh64_elf32_nbsd_vec
1407 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"
1408 want64=true
1409 ;;
1410
1411 sh64le-*-netbsd*)
1412 targ_defvec=sh64_elf64_nbsd_le_vec
1413 targ_selvecs="sh64_elf64_nbsd_vec sh64_elf32_nbsd_le_vec sh64_elf32_nbsd_vec sh_elf32_nbsd_vec sh_elf32_nbsd_le_vec"
1414 want64=true
1415 ;;
1416 sh64-*-netbsd*)
1417 targ_defvec=sh64_elf64_nbsd_vec
1418 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"
1419 want64=true
1420 ;;
1421
1422 sh*l*-*-netbsdelf*)
1423 targ_defvec=sh_elf32_nbsd_le_vec
1424 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"
1425 want64=true
1426 ;;
1427 sh-*-netbsdelf*)
1428 targ_defvec=sh_elf32_nbsd_vec
1429 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"
1430 want64=true
1431 ;;
1432 #endif
1433
1434 sh*-*-netbsdelf*)
1435 targ_defvec=sh_elf32_nbsd_vec
1436 targ_selvecs="sh_elf32_nbsd_le_vec sh_coff_vec sh_coff_le_vec"
1437 ;;
1438 sh*-*-symbianelf*)
1439 targ_defvec=sh_elf32_symbian_le_vec
1440 targ_selvecs="sh_coff_le_vec sh_coff_small_le_vec"
1441 targ_underscore=yes
1442 ;;
1443
1444 #ifdef BFD64
1445 shl*-*-elf* | sh[1234]l*-*-elf* | sh3el*-*-elf* | shl*-*-kaos*)
1446 targ_defvec=sh_elf32_le_vec
1447 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"
1448 targ_underscore=yes
1449 want64=true
1450 ;;
1451 #endif
1452
1453 sh-*-rtemscoff*)
1454 targ_defvec=sh_coff_vec
1455 targ_selvecs="sh_coff_vec sh_coff_le_vec sh_coff_small_vec sh_coff_small_le_vec"
1456 targ_underscore=yes
1457 ;;
1458
1459 #ifdef BFD64
1460 sh-*-elf* | sh[1234]*-elf* | sh-*-rtems* | sh-*-kaos*)
1461 targ_defvec=sh_elf32_vec
1462 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"
1463 targ_underscore=yes
1464 want64=true
1465 ;;
1466 #endif
1467
1468 sh-*-nto*)
1469 targ_defvec=sh_elf32_vec
1470 targ_selvecs="sh_elf32_le_vec sh_coff_vec sh_coff_le_vec sh_coff_small_vec sh_coff_small_le_vec"
1471 targ_underscore=yes
1472 ;;
1473 sh*-*-openbsd*)
1474 targ_defvec=sh_elf32_nbsd_le_vec
1475 targ_selvecs="sh_elf32_nbsd_vec sh_coff_vec sh_coff_le_vec"
1476 ;;
1477 sh-*-pe)
1478 targ_defvec=sh_pe_le_vec
1479 targ_selvecs="sh_pe_le_vec sh_pei_le_vec"
1480 targ_underscore=yes
1481 ;;
1482 sh-*-vxworks)
1483 targ_defvec=sh_elf32_vxworks_vec
1484 targ_selvecs="sh_elf32_vxworks_le_vec"
1485 # FIXME None of the following are actually used on this target, but
1486 # they're necessary for coff-sh.c (which is unconditionally used) to be
1487 # compiled correctly.
1488 targ_selvecs="$targ_selvecs sh_coff_vec sh_coff_le_vec sh_coff_small_vec sh_coff_small_le_vec"
1489 targ_underscore=yes
1490 ;;
1491 sh-*-*)
1492 targ_defvec=sh_coff_vec
1493 targ_selvecs="sh_coff_vec sh_coff_le_vec sh_coff_small_vec sh_coff_small_le_vec"
1494 targ_underscore=yes
1495 ;;
1496
1497 sparclet-*-aout*)
1498 targ_defvec=sparc_aout_sunos_be_vec
1499 targ_selvecs=sparc_aout_le_vec
1500 targ_underscore=yes
1501 ;;
1502 sparc86x-*-aout*)
1503 targ_defvec=sparc_aout_sunos_be_vec
1504 targ_underscore=yes
1505 ;;
1506 sparclite-*-elf* | sparc86x-*-elf*)
1507 targ_defvec=sparc_elf32_vec
1508 ;;
1509 sparc*-*-chorus*)
1510 targ_defvec=sparc_elf32_vec
1511 ;;
1512 sparc-*-linux*aout*)
1513 targ_defvec=sparc_aout_linux_vec
1514 targ_selvecs="sparc_elf32_vec sparc_aout_sunos_be_vec"
1515 targ_underscore=yes
1516 ;;
1517 sparc-*-linux-* | sparcv*-*-linux-*)
1518 targ_defvec=sparc_elf32_vec
1519 targ_selvecs="sparc_aout_linux_vec sparc_elf64_vec sparc_aout_sunos_be_vec"
1520 ;;
1521 sparc-*-netbsdelf*)
1522 targ_defvec=sparc_elf32_vec
1523 targ_selvecs=sparc_aout_nbsd_vec
1524 ;;
1525 sparc-*-netbsdaout* | sparc-*-netbsd*)
1526 targ_defvec=sparc_aout_nbsd_vec
1527 targ_selvecs=sparc_elf32_vec
1528 targ_underscore=yes
1529 ;;
1530 sparc-*-openbsd[0-2].* | sparc-*-openbsd3.[0-1])
1531 targ_defvec=sparc_aout_nbsd_vec
1532 targ_underscore=yes
1533 ;;
1534 sparc-*-openbsd*)
1535 targ_defvec=sparc_elf32_vec
1536 targ_selvecs=sparc_aout_nbsd_vec
1537 ;;
1538 sparc-*-elf*)
1539 targ_defvec=sparc_elf32_vec
1540 targ_selvecs=sparc_aout_sunos_be_vec
1541 ;;
1542 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
1543 targ_defvec=sparc_elf32_sol2_vec
1544 targ_selvecs=sparc_aout_sunos_be_vec
1545 ;;
1546 #ifdef BFD64
1547 sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*)
1548 targ_defvec=sparc_elf32_sol2_vec
1549 targ_selvecs="sparc_elf64_sol2_vec sparc_aout_sunos_be_vec"
1550 want64=true
1551 ;;
1552 #endif
1553 sparc-*-sysv4*)
1554 targ_defvec=sparc_elf32_vec
1555 ;;
1556 sparc-*-vxworks*)
1557 targ_defvec=sparc_elf32_vxworks_vec
1558 targ_selvecs="sparc_elf32_vec sparc_aout_sunos_be_vec"
1559 ;;
1560 sparc-*-netware*)
1561 targ_defvec=sparc_elf32_vec
1562 targ_selvecs="sparc_nlm32_vec sparc_aout_sunos_be_vec"
1563 ;;
1564 #ifdef BFD64
1565 sparc64-*-aout*)
1566 targ_defvec=sparc_aout_sunos_be_vec
1567 targ_underscore=yes
1568 want64=true
1569 ;;
1570 sparc64*-*-linux-*)
1571 targ_defvec=sparc_elf64_vec
1572 targ_selvecs="sparc_elf32_vec sparc_aout_linux_vec sparc_aout_sunos_be_vec"
1573 want64=true
1574 ;;
1575 sparc64-*-elf* | sparc64-*-rtems* )
1576 targ_defvec=sparc_elf64_vec
1577 targ_selvecs=sparc_elf32_vec
1578 want64=true
1579 ;;
1580 #endif /* BFD64 */
1581 sparc*-*-coff*)
1582 targ_defvec=sparc_coff_vec
1583 ;;
1584 sparc-*-rtems*)
1585 targ_defvec=sparc_elf32_vec
1586 targ_selvecs="sparc_aout_sunos_be_vec sparc_coff_vec"
1587 ;;
1588 sparc*-*-*)
1589 targ_defvec=sparc_aout_sunos_be_vec
1590 targ_underscore=yes
1591 ;;
1592
1593 spu-*-elf)
1594 targ_defvec=spu_elf32_vec
1595 want64=true
1596 ;;
1597
1598 #if HAVE_aout_vec
1599 tahoe-*-*)
1600 targ_defvec=aout_vec
1601 targ_underscore=yes
1602 ;;
1603 #endif
1604
1605 tic6x-*-elf)
1606 targ_defvec=tic6x_elf32_c6000_le_vec
1607 targ_selvecs="tic6x_elf32_c6000_be_vec tic6x_elf32_le_vec tic6x_elf32_be_vec"
1608 ;;
1609
1610 tic6x-*-uclinux)
1611 targ_defvec=tic6x_elf32_linux_le_vec
1612 targ_selvecs="tic6x_elf32_linux_be_vec tic6x_elf32_le_vec tic6x_elf32_be_vec"
1613 ;;
1614
1615 tic80*-*-*)
1616 targ_defvec=tic80_coff_vec
1617 targ_underscore=yes
1618 ;;
1619
1620 #ifdef BFD64
1621 tilegx-*-*)
1622 targ_defvec=tilegx_elf64_le_vec
1623 targ_selvecs="tilegx_elf64_be_vec tilegx_elf32_be_vec tilegx_elf32_le_vec"
1624 ;;
1625 tilegxbe-*-*)
1626 targ_defvec=tilegx_elf64_be_vec
1627 targ_selvecs="tilegx_elf64_le_vec tilegx_elf32_be_vec tilegx_elf32_le_vec"
1628 ;;
1629 #endif
1630
1631 tilepro-*-*)
1632 targ_defvec=tilepro_elf32_vec
1633 ;;
1634
1635 ft32*-*-*)
1636 targ_defvec=ft32_elf32_vec
1637 ;;
1638
1639 v850*-*-*)
1640 targ_defvec=v850_elf32_vec
1641 targ_selvecs="v800_elf32_vec"
1642 ;;
1643
1644 vax-*-netbsdelf*)
1645 targ_defvec=vax_elf32_vec
1646 targ_selvecs="vax_aout_nbsd_vec vax_aout_1knbsd_vec"
1647 ;;
1648
1649 vax-*-netbsdaout* | vax-*-netbsd*)
1650 targ_defvec=vax_aout_nbsd_vec
1651 targ_selvecs="vax_elf32_vec vax_aout_1knbsd_vec"
1652 targ_underscore=yes
1653 ;;
1654
1655 vax-*-bsd* | vax-*-ultrix*)
1656 targ_defvec=vax_aout_bsd_vec
1657 targ_underscore=yes
1658 ;;
1659
1660 vax-*-openbsd*)
1661 targ_defvec=vax_aout_nbsd_vec
1662 targ_underscore=yes
1663 ;;
1664
1665 vax-*-linux-*)
1666 targ_defvec=vax_elf32_vec
1667 ;;
1668
1669 visium-*-elf)
1670 targ_defvec=visium_elf32_vec
1671 ;;
1672
1673 we32k-*-*)
1674 targ_defvec=we32k_coff_vec
1675 ;;
1676
1677 w65-*-*)
1678 targ_defvec=w65_coff_vec
1679 ;;
1680
1681 xgate-*-*)
1682 targ_defvec=xgate_elf32_vec
1683 targ_selvecs="xgate_elf32_vec"
1684 ;;
1685
1686 xstormy16-*-elf)
1687 targ_defvec=xstormy16_elf32_vec
1688 ;;
1689
1690 xtensa*-*-*)
1691 targ_defvec=xtensa_elf32_le_vec
1692 targ_selvecs=xtensa_elf32_be_vec
1693 ;;
1694 xc16x-*-elf)
1695 targ_defvec=xc16x_elf32_vec
1696 ;;
1697
1698 z80-*-*)
1699 targ_defvec=z80_coff_vec
1700 targ_underscore=no
1701 ;;
1702
1703 z8k*-*-*)
1704 targ_defvec=z8k_coff_vec
1705 targ_underscore=yes
1706 ;;
1707
1708 *-*-ieee*)
1709 targ_defvec=ieee_vec
1710 ;;
1711
1712 *-adobe-*)
1713 targ_defvec=aout_adobe_vec
1714 targ_underscore=yes
1715 ;;
1716
1717 *-sony-*)
1718 targ_defvec=m68k_aout_newsos3_vec
1719 targ_underscore=yes
1720 ;;
1721
1722 *-tandem-*)
1723 targ_defvec=m68k_coff_vec
1724 targ_selvecs=ieee_vec
1725 ;;
1726 # END OF targmatch.h
1727 *)
1728 echo 1>&2 "*** BFD does not support target ${targ}."
1729 echo 1>&2 "*** Look in bfd/config.bfd for supported targets."
1730 exit 1
1731 ;;
1732 esac
1733
1734 # All MIPS ELF targets need a 64-bit bfd_vma.
1735 case "${targ_defvec} ${targ_selvecs}" in
1736 *mips_elf*)
1737 want64=true
1738 ;;
1739 esac
1740
1741 case "${host64}${want64}" in
1742 *true*)
1743 targ_selvecs="${targ_selvecs} ${targ64_selvecs}"
1744 ;;
1745 esac
1746
1747 # If we support any ELF target, then automatically add support for the
1748 # generic ELF targets. This permits an objdump with some ELF support
1749 # to be used on an arbitrary ELF file for anything other than
1750 # relocation information.
1751 case "${targ_defvec} ${targ_selvecs}" in
1752 *elf64* | *mips_elf32_n*)
1753 targ_selvecs="${targ_selvecs} elf64_le_vec elf64_be_vec elf32_le_vec elf32_be_vec"
1754 ;;
1755 *elf32*)
1756 targ_selvecs="${targ_selvecs} elf32_le_vec elf32_be_vec"
1757 ;;
1758 esac
1759
1760 # If we support Intel L1OM target, then add support for bfd_l1om_arch.
1761 case "${targ_defvec} ${targ_selvecs}" in
1762 *l1om_elf64*)
1763 targ_archs="$targ_archs bfd_l1om_arch"
1764 ;;
1765 esac
1766
1767 # If we support Intel K1OM target, then add support for bfd_k1om_arch.
1768 case "${targ_defvec} ${targ_selvecs}" in
1769 *k1om_elf64*)
1770 targ_archs="$targ_archs bfd_k1om_arch"
1771 ;;
1772 esac
This page took 0.068134 seconds and 4 git commands to generate.