* elf32-spu.c (spu_elf_size_stubs): Always use an overlay stub
[deliverable/binutils-gdb.git] / bfd / config.bfd
1 # config.bfd
2 # Convert a canonical host type into a BFD host type.
3 # Set shell variable targ to canonical target name, and run
4 # using ``. config.bfd''.
5 # Sets the following shell variables:
6 # targ_defvec Default vector for this target
7 # targ_selvecs Vectors to build for this target
8 # targ64_selvecs Vectors to build if --enable-64-bit-bfd is given
9 # or if host is 64 bit.
10 # targ_archs Architectures for this target
11 # targ_cflags $(CFLAGS) for this target (FIXME: pretty bogus)
12 # targ_underscore Whether underscores are used: yes or no
13
14 # Part of this file is processed by targmatch.sed to generate the
15 # targmatch.h file. The #ifdef and #endif lines that appear below are
16 # copied directly into targmatch.h.
17
18 # The binutils c++filt program wants to know whether underscores are
19 # stripped or not. That is why we set targ_underscore. c++filt uses
20 # this information to choose a default. This information is
21 # duplicated in the symbol_leading_char field of the BFD target
22 # vector, but c++filt does not deal with object files and is not
23 # linked against libbfd.a. It is not terribly important that c++filt
24 # get this right; it is just convenient.
25
26 targ_defvec=
27 targ_selvecs=
28 targ64_selvecs=
29 targ_cflags=
30 targ_underscore=no
31
32 # Catch obsolete configurations.
33 case $targ in
34 maxq-*-coff | \
35 null)
36 if test "x$enable_obsolete" != xyes; then
37 echo "*** Configuration $targ is obsolete." >&2
38 echo "*** Specify --enable-obsolete to build it anyway." >&2
39 echo "*** Support will be REMOVED in the next major release of BINUTILS," >&2
40 echo "*** unless a maintainer comes forward." >&2
41 exit 1
42 fi;;
43 esac
44
45 case $targ in
46 m68*-apple-aux* | \
47 m68*-apollo-* | \
48 m68*-bull-sysv* | \
49 m68*-*-rtemscoff* | \
50 i960-*-rtems* | \
51 or32-*-rtems* | \
52 m68*-*-lynxos* | \
53 sparc-*-lynxos* | \
54 vax-*-vms* | \
55 arm-*-oabi | \
56 thumb-*-oabi | \
57 a29k-* | \
58 hppa*-*-rtems* | \
59 *-go32-rtems* | \
60 i[3-7]86*-*-rtemscoff* | \
61 mips*el-*-rtems* | \
62 powerpcle-*-rtems* | \
63 sparc*-*-rtemsaout* | \
64 null)
65 echo "*** Configuration $targ is obsolete." >&2
66 echo "*** Support has been REMOVED." >&2
67 exit 1
68 ;;
69 esac
70
71 targ_cpu=`echo $targ | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
72 case "${targ_cpu}" in
73 alpha*) targ_archs=bfd_alpha_arch ;;
74 arm*) targ_archs=bfd_arm_arch ;;
75 bfin*) targ_archs=bfd_bfin_arch ;;
76 c30*) targ_archs=bfd_tic30_arch ;;
77 c4x*) targ_archs=bfd_tic4x_arch ;;
78 c54x*) targ_archs=bfd_tic54x_arch ;;
79 crisv32) targ_archs=bfd_cris_arch ;;
80 crx*) targ_archs=bfd_crx_arch ;;
81 dlx*) targ_archs=bfd_dlx_arch ;;
82 fido*) targ_archs=bfd_m68k_arch ;;
83 hppa*) targ_archs=bfd_hppa_arch ;;
84 i[3-7]86) targ_archs=bfd_i386_arch ;;
85 i370) targ_archs=bfd_i370_arch ;;
86 m6811*|m68hc11*) targ_archs="bfd_m68hc11_arch bfd_m68hc12_arch" ;;
87 m6812*|m68hc12*) targ_archs="bfd_m68hc12_arch bfd_m68hc11_arch" ;;
88 m68*) targ_archs=bfd_m68k_arch ;;
89 m88*) targ_archs=bfd_m88k_arch ;;
90 maxq*) targ_archs=bfd_maxq_arch ;;
91 mips*) targ_archs=bfd_mips_arch ;;
92 or32*) targ_archs=bfd_or32_arch ;;
93 pdp11*) targ_archs=bfd_pdp11_arch ;;
94 pj*) targ_archs="bfd_pj_arch bfd_i386_arch";;
95 powerpc*) targ_archs="bfd_rs6000_arch bfd_powerpc_arch" ;;
96 rs6000) targ_archs="bfd_rs6000_arch bfd_powerpc_arch" ;;
97 s390*) targ_archs=bfd_s390_arch ;;
98 sh*) targ_archs=bfd_sh_arch ;;
99 sparc*) targ_archs=bfd_sparc_arch ;;
100 spu*) targ_archs=bfd_spu_arch ;;
101 strongarm*) targ_archs=bfd_arm_arch ;;
102 thumb*) targ_archs=bfd_arm_arch ;;
103 v850*) targ_archs=bfd_v850_arch ;;
104 x86_64*) targ_archs=bfd_i386_arch ;;
105 xscale*) targ_archs=bfd_arm_arch ;;
106 xtensa*) targ_archs=bfd_xtensa_arch ;;
107 z80|r800) targ_archs=bfd_z80_arch ;;
108 z8k*) targ_archs=bfd_z8k_arch ;;
109 am33_2.0) targ_archs=bfd_mn10300_arch ;;
110 *) targ_archs=bfd_${targ_cpu}_arch ;;
111 esac
112
113
114 # WHEN ADDING ENTRIES TO THIS MATRIX:
115 # Make sure that the left side always has two dashes. Otherwise you
116 # can get spurious matches. Even for unambiguous cases, do this as a
117 # convention, else the table becomes a real mess to understand and maintain.
118 #
119 # Keep obsolete entries above the START comment, to keep them out of
120 # targmatch.h.
121
122 case "${targ}" in
123 mips*-dec-bsd*)
124 echo "This target is obsolete and has been removed."
125 exit 1
126 ;;
127
128 mips*-*-mach3*)
129 echo "This target is obsolete and has been removed."
130 exit 1
131 ;;
132
133 mips*-*-pe*)
134 echo "This target is obsolete and has been removed."
135 exit 1
136 ;;
137
138 # START OF targmatch.h
139 #ifdef BFD64
140 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
141 targ_defvec=bfd_elf64_alpha_freebsd_vec
142 targ_selvecs=ecoffalpha_little_vec
143 want64=true
144 # FreeBSD <= 4.0 supports only the old nonstandard way of ABI labelling.
145 case "${targ}" in
146 alpha*-*-freebsd3* | alpha*-*-freebsd4 | alpha*-*-freebsd4.0*)
147 targ_cflags=-DOLD_FREEBSD_ABI_LABEL ;;
148 esac
149 ;;
150 alpha*-*-netbsd* | alpha*-*-openbsd*)
151 targ_defvec=bfd_elf64_alpha_vec
152 targ_selvecs=ecoffalpha_little_vec
153 want64=true
154 ;;
155 alpha*-*-netware*)
156 targ_defvec=ecoffalpha_little_vec
157 targ_selvecs=nlm32_alpha_vec
158 want64=true
159 ;;
160 alpha*-*-linuxecoff*)
161 targ_defvec=ecoffalpha_little_vec
162 targ_selvecs=bfd_elf64_alpha_vec
163 want64=true
164 ;;
165 alpha*-*-linux-* | alpha*-*-elf*)
166 targ_defvec=bfd_elf64_alpha_vec
167 targ_selvecs=ecoffalpha_little_vec
168 want64=true
169 ;;
170 alpha*-*-*vms*)
171 targ_defvec=vms_alpha_vec
172 want64=true
173 ;;
174 alpha*-*-*)
175 targ_defvec=ecoffalpha_little_vec
176 want64=true
177 ;;
178 ia64*-*-freebsd* | ia64*-*-netbsd* | ia64*-*-linux-* | ia64*-*-elf* | ia64*-*-kfreebsd*-gnu)
179 targ_defvec=bfd_elf64_ia64_little_vec
180 targ_selvecs="bfd_elf64_ia64_big_vec bfd_efi_app_ia64_vec"
181 want64=true
182 ;;
183 ia64*-*-hpux*)
184 targ_defvec=bfd_elf32_ia64_hpux_big_vec
185 targ_selvecs="bfd_elf64_ia64_hpux_big_vec"
186 want64=true
187 ;;
188 sparc64-*-freebsd* | sparc64-*-kfreebsd*-gnu)
189 targ_defvec=bfd_elf64_sparc_freebsd_vec
190 targ_selvecs="bfd_elf32_sparc_vec sunos_big_vec"
191 ;;
192 sparc64-*-netbsd* | sparc64-*-openbsd*)
193 targ_defvec=bfd_elf64_sparc_vec
194 targ_selvecs="bfd_elf32_sparc_vec sunos_big_vec"
195 want64=true
196 ;;
197 #endif /* BFD64 */
198
199 am33_2.0-*-linux*)
200 targ_defvec=bfd_elf32_am33lin_vec
201 ;;
202 arc-*-elf*)
203 targ_defvec=bfd_elf32_littlearc_vec
204 targ_selvecs=bfd_elf32_bigarc_vec
205 ;;
206
207 armeb-*-netbsdelf*)
208 targ_defvec=bfd_elf32_bigarm_vec
209 targ_selvecs="bfd_elf32_littlearm_vec armnetbsd_vec"
210 ;;
211 arm-*-netbsdelf*)
212 targ_defvec=bfd_elf32_littlearm_vec
213 targ_selvecs="bfd_elf32_bigarm_vec armnetbsd_vec"
214 ;;
215 arm-*-netbsd* | arm-*-openbsd*)
216 targ_defvec=armnetbsd_vec
217 targ_selvecs="bfd_elf32_littlearm_vec bfd_elf32_bigarm_vec"
218 targ_underscore=yes
219 targ_cflags=-D__QNXTARGET__
220 ;;
221 arm-*-nto* | nto*arm*)
222 targ_defvec=bfd_elf32_littlearm_vec
223 targ_selvecs=bfd_elf32_bigarm_vec
224 ;;
225 arm-*-riscix*)
226 targ_defvec=riscix_vec
227 ;;
228 arm-epoc-pe*)
229 targ_defvec=arm_epoc_pe_little_vec
230 targ_selvecs="arm_epoc_pe_little_vec arm_epoc_pe_big_vec arm_epoc_pei_little_vec arm_epoc_pei_big_vec"
231 targ_underscore=no
232 targ_cflags=-DARM_COFF_BUGFIX
233 ;;
234 arm-wince-pe | arm-*-wince)
235 targ_defvec=arm_wince_pe_little_vec
236 targ_selvecs="arm_wince_pe_little_vec arm_wince_pe_big_vec arm_wince_pei_little_vec arm_wince_pei_big_vec"
237 targ_underscore=no
238 targ_cflags="-DARM_WINCE -DARM_COFF_BUGFIX"
239 ;;
240 arm-*-pe*)
241 targ_defvec=armpe_little_vec
242 targ_selvecs="armpe_little_vec armpe_big_vec armpei_little_vec armpei_big_vec"
243 targ_underscore=yes
244 ;;
245 arm-*-aout | armel-*-aout)
246 targ_defvec=aout_arm_little_vec
247 targ_selvecs=aout_arm_big_vec
248 ;;
249 armeb-*-aout)
250 targ_defvec=aout_arm_big_vec
251 targ_selvecs=aout_arm_little_vec
252 ;;
253 arm-*-coff)
254 targ_defvec=armcoff_little_vec
255 targ_selvecs=armcoff_big_vec
256 targ_underscore=yes
257 ;;
258 arm-*-rtems*)
259 targ_defvec=bfd_elf32_littlearm_vec
260 targ_selvecs=bfd_elf32_bigarm_vec
261 ;;
262 armeb-*-elf | arm*b-*-linux-*)
263 targ_defvec=bfd_elf32_bigarm_vec
264 targ_selvecs=bfd_elf32_littlearm_vec
265 ;;
266 arm-*-kaos* | strongarm-*-kaos*)
267 targ_defvec=bfd_elf32_littlearm_vec
268 targ_selvecs=bfd_elf32_bigarm_vec
269 ;;
270 arm-*-elf | arm-*-freebsd* | arm*-*-linux-* | arm*-*-conix* | \
271 arm*-*-uclinux* | arm-*-kfreebsd*-gnu | \
272 arm*-*-eabi* )
273 targ_defvec=bfd_elf32_littlearm_vec
274 targ_selvecs=bfd_elf32_bigarm_vec
275 ;;
276 arm*-*-vxworks | arm*-*-windiss)
277 targ_defvec=bfd_elf32_littlearm_vxworks_vec
278 targ_selvecs=bfd_elf32_bigarm_vxworks_vec
279 ;;
280 arm*-*-symbianelf*)
281 targ_defvec=bfd_elf32_littlearm_symbian_vec
282 targ_selvecs=bfd_elf32_bigarm_symbian_vec
283 ;;
284 arm9e-*-elf)
285 targ_defvec=bfd_elf32_littlearm_vec
286 targ_selvecs=bfd_elf32_bigarm_vec
287 ;;
288
289 thumb-*-coff)
290 targ_defvec=armcoff_little_vec
291 targ_selvecs=armcoff_big_vec
292 targ_underscore=yes
293 ;;
294 thumb-*-elf)
295 targ_defvec=bfd_elf32_littlearm_vec
296 targ_selvecs=bfd_elf32_bigarm_vec
297 ;;
298 thumb-epoc-pe*)
299 targ_defvec=arm_epoc_pe_little_vec
300 targ_selvecs="arm_epoc_pe_little_vec arm_epoc_pe_big_vec arm_epoc_pei_little_vec arm_epoc_pei_big_vec"
301 targ_underscore=no
302 ;;
303 thumb-*-pe*)
304 targ_defvec=armpe_little_vec
305 targ_selvecs="armpe_little_vec armpe_big_vec armpei_little_vec armpei_big_vec"
306 targ_underscore=yes
307 ;;
308 strongarm-*-elf)
309 targ_defvec=bfd_elf32_littlearm_vec
310 targ_selvecs=bfd_elf32_bigarm_vec
311 ;;
312 strongarm-*-coff)
313 targ_defvec=armcoff_little_vec
314 targ_selvecs=armcoff_big_vec
315 targ_underscore=yes
316 ;;
317 xscale-*-elf)
318 targ_defvec=bfd_elf32_littlearm_vec
319 targ_selvecs=bfd_elf32_bigarm_vec
320 ;;
321 xscale-*-coff)
322 targ_defvec=armcoff_little_vec
323 targ_selvecs=armcoff_big_vec
324 targ_underscore=yes
325 ;;
326
327 avr-*-*)
328 targ_defvec=bfd_elf32_avr_vec
329 ;;
330
331 bfin-*-*)
332 targ_defvec=bfd_elf32_bfin_vec
333 targ_selvecs=bfd_elf32_bfinfdpic_vec
334 targ_underscore=yes
335 ;;
336
337 c30-*-*aout* | tic30-*-*aout*)
338 targ_defvec=tic30_aout_vec
339 ;;
340 c30-*-*coff* | tic30-*-*coff*)
341 targ_defvec=tic30_coff_vec
342 ;;
343
344 c4x-*-*coff* | tic4x-*-*coff* | tic4x-*-rtems*)
345 targ_defvec=tic4x_coff1_vec
346 targ_selvecs="tic4x_coff1_beh_vec tic4x_coff2_vec tic4x_coff2_beh_vec tic4x_coff0_vec tic4x_coff0_beh_vec"
347 targ_underscore=yes
348 ;;
349
350 c54x*-*-*coff* | tic54x-*-*coff*)
351 targ_defvec=tic54x_coff1_vec
352 targ_selvecs="tic54x_coff1_beh_vec tic54x_coff2_vec tic54x_coff2_beh_vec tic54x_coff0_vec tic54x_coff0_beh_vec"
353 targ_underscore=yes
354 ;;
355
356 cr16c-*-elf*)
357 targ_defvec=bfd_elf32_cr16c_vec
358 targ_underscore=yes
359 ;;
360
361 cris-*-* | crisv32-*-*)
362 targ_defvec=cris_aout_vec
363 targ_selvecs="bfd_elf32_us_cris_vec bfd_elf32_cris_vec ieee_vec"
364 targ_underscore=yes # Note: not true for bfd_elf32_cris_vec.
365 ;;
366
367 crx-*-elf*)
368 targ_defvec=bfd_elf32_crx_vec
369 targ_underscore=yes
370 ;;
371
372 d10v-*-*)
373 targ_defvec=bfd_elf32_d10v_vec
374 ;;
375
376 dlx-*-elf*)
377 targ_defvec=bfd_elf32_dlx_big_vec
378 targ_selvecs="bfd_elf32_dlx_big_vec"
379 ;;
380
381 d30v-*-*)
382 targ_defvec=bfd_elf32_d30v_vec
383 ;;
384
385 fido-*-elf* )
386 targ_defvec=bfd_elf32_m68k_vec
387 targ_selvecs="m68kcoff_vec ieee_vec"
388 ;;
389
390 fr30-*-elf)
391 targ_defvec=bfd_elf32_fr30_vec
392 ;;
393
394 frv-*-elf)
395 targ_defvec=bfd_elf32_frv_vec
396 targ_selvecs=bfd_elf32_frvfdpic_vec
397 ;;
398
399 frv-*-*linux*)
400 targ_defvec=bfd_elf32_frvfdpic_vec
401 targ_selvecs=bfd_elf32_frv_vec
402 ;;
403
404 h8300*-*-rtemscoff*)
405 targ_defvec=h8300coff_vec
406 targ_underscore=yes
407 ;;
408
409 h8300*-*-elf | h8300*-*-rtems*)
410 targ_defvec=bfd_elf32_h8300_vec
411 targ_underscore=yes
412 ;;
413
414 h8300*-*-*)
415 targ_defvec=h8300coff_vec
416 targ_underscore=yes
417 ;;
418
419 h8500-*-*)
420 targ_defvec=h8500coff_vec
421 targ_underscore=yes
422 ;;
423
424 #ifdef BFD64
425 hppa*64*-*-linux-*)
426 targ_defvec=bfd_elf64_hppa_linux_vec
427 targ_selvecs=bfd_elf64_hppa_vec
428 want64=true
429 ;;
430 hppa*64*-*-hpux11*)
431 targ_defvec=bfd_elf64_hppa_vec
432 targ_selvecs=bfd_elf64_hppa_linux_vec
433 targ_cflags=-DHPUX_LARGE_AR_IDS
434 want64=true
435 ;;
436 #endif
437
438 hppa*-*-linux-*)
439 targ_defvec=bfd_elf32_hppa_linux_vec
440 targ_selvecs=bfd_elf32_hppa_vec
441 ;;
442 hppa*-*-netbsd*)
443 targ_defvec=bfd_elf32_hppa_nbsd_vec
444 targ_selvecs="bfd_elf32_hppa_vec bfd_elf32_hppa_linux_vec"
445 ;;
446 hppa*-*-*elf* | hppa*-*-lites* | hppa*-*-sysv4* | hppa*-*-openbsd*)
447 targ_defvec=bfd_elf32_hppa_vec
448 targ_selvecs=bfd_elf32_hppa_linux_vec
449 ;;
450
451 #if defined (HOST_HPPAHPUX) || defined (HOST_HPPABSD) || defined (HOST_HPPAOSF) || defined (HOST_HPPAMPEIX)
452 hppa*-*-bsd*)
453 targ_defvec=som_vec
454 targ_selvecs=bfd_elf32_hppa_vec
455 ;;
456 hppa*-*-hpux* | hppa*-*-hiux* | hppa*-*-mpeix*)
457 targ_defvec=som_vec
458 ;;
459 hppa*-*-osf*)
460 targ_defvec=som_vec
461 targ_selvecs=bfd_elf32_hppa_vec
462 ;;
463 #endif /* defined (HOST_HPPAHPUX) || defined (HOST_HPPABSD) || defined (HOST_HPPAOSF) */
464
465 i370-*-*)
466 targ_defvec=bfd_elf32_i370_vec
467 targ_selvecs="bfd_elf32_i370_vec"
468 ;;
469 i[3-7]86-*-sco3.2v5*coff)
470 targ_defvec=i386coff_vec
471 targ_selvecs=bfd_elf32_i386_vec
472 ;;
473 i[3-7]86-*-sysv4* | i[3-7]86-*-unixware* | \
474 i[3-7]86-*-elf | i[3-7]86-*-sco3.2v5* | \
475 i[3-7]86-*-dgux* | i[3-7]86-*-sysv5*)
476 targ_defvec=bfd_elf32_i386_vec
477 targ_selvecs=i386coff_vec
478 ;;
479 i[3-7]86-*-solaris2*)
480 targ_defvec=bfd_elf32_i386_vec
481 targ_selvecs=i386coff_vec
482 targ64_selvecs=bfd_elf64_x86_64_vec
483 want64=true
484 ;;
485 i[3-7]86-*-kaos*)
486 targ_defvec=bfd_elf32_i386_vec
487 targ_selvecs=bfd_elf32_i386_vec
488 ;;
489 i[3-7]86-*-nto*)
490 targ_defvec=bfd_elf32_i386_vec
491 targ_selvecs=i386coff_vec
492 ;;
493 i[3-7]86-*-aros*)
494 targ_defvec=bfd_elf32_i386_vec
495 ;;
496 i[3-7]86-*-chorus*)
497 targ_defvec=bfd_elf32_i386_vec
498 ;;
499 *-*-msdosdjgpp* | *-*-go32* )
500 targ_defvec=go32coff_vec
501 targ_selvecs="go32stubbedcoff_vec i386aout_vec"
502 ;;
503 i[3-7]86-*-sysv* | i[3-7]86-*-isc* | i[3-7]86-*-sco* | i[3-7]86-*-coff | \
504 i[3-7]86-*-aix*)
505 targ_defvec=i386coff_vec
506 ;;
507 i[3-7]86-*-rtems*)
508 targ_defvec=bfd_elf32_i386_vec
509 targ_selvecs="i386coff_vec i386aout_vec"
510 ;;
511 i[3-7]86-*-darwin* | i[3-7]86-*-macos10* | i[3-7]86-*-rhapsody*)
512 targ_defvec=mach_o_le_vec
513 targ_selvecs="mach_o_le_vec mach_o_be_vec mach_o_fat_vec pef_vec pef_xlib_vec sym_vec"
514 targ_archs="bfd_i386_arch bfd_powerpc_arch bfd_rs6000_arch"
515 ;;
516 i[3-7]86-sequent-bsd*)
517 targ_defvec=i386dynix_vec
518 targ_underscore=yes
519 ;;
520 i[3-7]86-*-bsd*)
521 targ_defvec=i386bsd_vec
522 targ_underscore=yes
523 ;;
524 i[3-7]86-*-freebsdaout* | i[3-7]86-*-freebsd[12].* | \
525 i[3-7]86-*-freebsd[12])
526 targ_defvec=i386freebsd_vec
527 targ_selvecs=i386bsd_vec
528 targ_underscore=yes
529 ;;
530 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
531 targ_defvec=bfd_elf32_i386_freebsd_vec
532 targ_selvecs=i386coff_vec
533 # FreeBSD <= 4.0 supports only the old nonstandard way of ABI labelling.
534 case "${targ}" in
535 i[3-7]86-*-freebsd3* | i[3-7]86-*-freebsd4 | i[3-7]86-*-freebsd4.0*)
536 targ_cflags=-DOLD_FREEBSD_ABI_LABEL ;;
537 esac
538 ;;
539 i[3-7]86-*-netbsdelf* | i[3-7]86-*-netbsd*-gnu* | i[3-7]86-*-knetbsd*-gnu)
540 targ_defvec=bfd_elf32_i386_vec
541 targ_selvecs=i386netbsd_vec
542 targ64_selvecs=bfd_elf64_x86_64_vec
543 ;;
544 i[3-7]86-*-netbsdpe*)
545 targ_defvec=i386pe_vec
546 targ_selvecs="i386pe_vec i386pei_vec bfd_elf32_i386_vec"
547 ;;
548 i[3-7]86-*-netbsdaout* | i[3-7]86-*-netbsd* | \
549 i[3-7]86-*-openbsd[0-2].* | i[3-7]86-*-openbsd3.[0-3])
550 targ_defvec=i386netbsd_vec
551 targ_selvecs="bfd_elf32_i386_vec i386bsd_vec"
552 targ_underscore=yes
553 ;;
554 i[3-7]86-*-openbsd*)
555 targ_defvec=bfd_elf32_i386_vec
556 targ_selvecs=i386netbsd_vec
557 ;;
558 i[3-7]86-*-netware*)
559 targ_defvec=bfd_elf32_i386_vec
560 targ_selvecs="nlm32_i386_vec i386coff_vec i386aout_vec"
561 ;;
562 i[3-7]86-*-linux*aout*)
563 targ_defvec=i386linux_vec
564 targ_selvecs=bfd_elf32_i386_vec
565 targ_underscore=yes
566 ;;
567 i[3-7]86-*-linux-*)
568 targ_defvec=bfd_elf32_i386_vec
569 targ_selvecs="i386linux_vec bfd_efi_app_ia32_vec"
570 targ64_selvecs=bfd_elf64_x86_64_vec
571 ;;
572 #ifdef BFD64
573 x86_64-*-elf*)
574 targ_defvec=bfd_elf64_x86_64_vec
575 targ_selvecs="bfd_elf32_i386_vec i386coff_vec"
576 want64=true
577 ;;
578 x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
579 targ_defvec=bfd_elf64_x86_64_freebsd_vec
580 targ_selvecs="bfd_elf32_i386_freebsd_vec i386coff_vec bfd_efi_app_ia32_vec bfd_efi_app_x86_64_vec bfd_elf32_i386_vec bfd_elf64_x86_64_vec"
581 want64=true
582 ;;
583 x86_64-*-netbsd* | x86_64-*-openbsd*)
584 targ_defvec=bfd_elf64_x86_64_vec
585 targ_selvecs="bfd_elf32_i386_vec i386netbsd_vec i386coff_vec bfd_efi_app_ia32_vec bfd_efi_app_x86_64_vec"
586 want64=true
587 ;;
588 x86_64-*-linux-*)
589 targ_defvec=bfd_elf64_x86_64_vec
590 targ_selvecs="bfd_elf32_i386_vec i386linux_vec bfd_efi_app_ia32_vec bfd_efi_app_x86_64_vec"
591 want64=true
592 ;;
593 x86_64-*-mingw*)
594 targ_defvec=x86_64pe_vec
595 targ_selvecs="x86_64pe_vec x86_64pei_vec x86_64coff_vec bfd_elf64_x86_64_vec"
596 want64=true
597 targ_underscore=yes
598 ;;
599 #endif
600 i[3-7]86-*-lynxos*)
601 targ_defvec=bfd_elf32_i386_vec
602 targ_selvecs="i386lynx_coff_vec i386lynx_aout_vec"
603 ;;
604 i[3-7]86-*-gnu*)
605 targ_defvec=bfd_elf32_i386_vec
606 ;;
607 i[3-7]86-*-mach* | i[3-7]86-*-osf1mk*)
608 targ_defvec=i386mach3_vec
609 targ_cflags=-DSTAT_FOR_EXEC
610 targ_underscore=yes
611 ;;
612 i[3-7]86-*-os9k)
613 targ_defvec=i386os9k_vec
614 ;;
615 i[3-7]86-*-msdos*)
616 targ_defvec=i386aout_vec
617 targ_selvecs=i386msdos_vec
618 ;;
619 i[3-7]86-*-moss*)
620 targ_defvec=bfd_elf32_i386_vec
621 targ_selvecs="i386msdos_vec i386aout_vec"
622 ;;
623 i[3-7]86-*-beospe*)
624 targ_defvec=i386pe_vec
625 targ_selvecs="i386pe_vec i386pei_vec"
626 ;;
627 i[3-7]86-*-beoself* | i[3-7]86-*-beos*)
628 targ_defvec=bfd_elf32_i386_vec
629 targ_selvecs="i386pe_vec i386pei_vec"
630 ;;
631 i[3-7]86-*-interix*)
632 targ_defvec=i386pei_vec
633 targ_selvecs="i386pe_vec"
634 # FIXME: This should eventually be checked at runtime.
635 targ_cflags=-DSTRICT_PE_FORMAT
636 ;;
637 i[3-7]86-*-rdos*)
638 targ_defvec=bfd_elf32_i386_vec
639 targ_selvecs=i386coff_vec
640 ;;
641 i[3-7]86-*-mingw32* | i[3-7]86-*-cygwin* | i[3-7]86-*-winnt | i[3-7]86-*-pe)
642 targ_defvec=i386pe_vec
643 targ_selvecs="i386pe_vec i386pei_vec bfd_elf32_i386_vec"
644 targ_underscore=yes
645 ;;
646 i[3-7]86-none-*)
647 targ_defvec=i386coff_vec
648 ;;
649 i[3-7]86-*-aout* | i[3-7]86*-*-vsta*)
650 targ_defvec=i386aout_vec
651 ;;
652 i[3-7]86-*-vxworks*)
653 targ_defvec=bfd_elf32_i386_vxworks_vec
654 targ_underscore=yes
655 ;;
656 i[3-7]86-*-chaos)
657 targ_defvec=bfd_elf32_i386_vec
658 targ_selfvecs=i386chaos_vec
659 ;;
660
661 i860-*-mach3* | i860-*-osf1* | i860-*-coff*)
662 targ_defvec=i860coff_vec
663 ;;
664 i860-stardent-sysv4* | i860-stardent-elf*)
665 targ_defvec=bfd_elf32_i860_little_vec
666 targ_selvecs="bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
667 ;;
668 i860-*-sysv4* | i860-*-elf*)
669 targ_defvec=bfd_elf32_i860_vec
670 ;;
671
672 i960-*-vxworks4* | i960-*-vxworks5.0)
673 targ_defvec=b_out_vec_little_host
674 targ_selvecs="b_out_vec_big_host icoff_little_vec icoff_big_vec ieee_vec"
675 targ_underscore=yes
676 ;;
677 i960-*-vxworks5.* | i960-*-coff* | i960-*-sysv*)
678 targ_defvec=icoff_little_vec
679 targ_selvecs="icoff_big_vec b_out_vec_little_host b_out_vec_big_host ieee_vec"
680 targ_underscore=yes
681 ;;
682 i960-*-vxworks* | i960-*-aout* | i960-*-bout* | i960-*-nindy*)
683 targ_defvec=b_out_vec_little_host
684 targ_selvecs="b_out_vec_big_host icoff_little_vec icoff_big_vec ieee_vec"
685 targ_underscore=yes
686 ;;
687 i960-*-elf*)
688 targ_defvec=bfd_elf32_i960_vec
689 targ_selvecs="icoff_little_vec icoff_big_vec"
690 ;;
691
692 ip2k-*-elf)
693 targ_defvec=bfd_elf32_ip2k_vec
694 ;;
695
696 iq2000-*-elf)
697 targ_defvec=bfd_elf32_iq2000_vec
698 ;;
699
700 m32c-*-elf)
701 targ_defvec=bfd_elf32_m32c_vec
702 ;;
703
704 m32r*le-*-linux*)
705 targ_defvec=bfd_elf32_m32rlelin_vec
706 targ_selvecs="bfd_elf32_m32rlin_vec bfd_elf32_m32rlelin_vec"
707 ;;
708 m32r*-*-linux*)
709 targ_defvec=bfd_elf32_m32rlin_vec
710 targ_selvecs="bfd_elf32_m32rlin_vec bfd_elf32_m32rlelin_vec"
711 ;;
712 m32r*le-*-*)
713 targ_defvec=bfd_elf32_m32rle_vec
714 targ_selvecs="bfd_elf32_m32r_vec bfd_elf32_m32rle_vec"
715 ;;
716 m32r-*-*)
717 targ_defvec=bfd_elf32_m32r_vec
718 ;;
719
720 m68hc11-*-* | m6811-*-*)
721 targ_defvec=bfd_elf32_m68hc11_vec
722 targ_selvecs="bfd_elf32_m68hc11_vec bfd_elf32_m68hc12_vec"
723 ;;
724 m68hc12-*-* | m6812-*-*)
725 targ_defvec=bfd_elf32_m68hc12_vec
726 targ_selvecs="bfd_elf32_m68hc11_vec bfd_elf32_m68hc12_vec"
727 ;;
728
729 m68*-motorola-sysv*)
730 targ_defvec=m68ksysvcoff_vec
731 ;;
732 m68*-hp-bsd*)
733 targ_defvec=hp300bsd_vec
734 targ_underscore=yes
735 ;;
736 m68*-*-aout*)
737 targ_defvec=aout0_big_vec
738 # We include cisco_core_big_vec here, rather than making a separate cisco
739 # configuration, so that cisco-core.c gets routinely tested at
740 # least for compilation.
741 targ_selvecs="cisco_core_big_vec ieee_vec"
742 targ_underscore=yes
743 ;;
744 m68*-*-elf* | m68*-*-sysv4* | m68*-*-uclinux*)
745 targ_defvec=bfd_elf32_m68k_vec
746 targ_selvecs="m68kcoff_vec ieee_vec"
747 ;;
748 m68*-*-rtems*)
749 targ_defvec=bfd_elf32_m68k_vec
750 targ_selvecs="m68kcoff_vec versados_vec ieee_vec aout0_big_vec"
751 ;;
752 m68*-*-coff* | m68*-*-sysv*)
753 targ_defvec=m68kcoff_vec
754 targ_selvecs="m68kcoff_vec versados_vec ieee_vec"
755 ;;
756 m68*-*-hpux*)
757 targ_defvec=hp300hpux_vec
758 targ_underscore=yes
759 ;;
760 m68*-*-linux*aout*)
761 targ_defvec=m68klinux_vec
762 targ_selvecs=bfd_elf32_m68k_vec
763 targ_underscore=yes
764 ;;
765 m68*-*-linux-*)
766 targ_defvec=bfd_elf32_m68k_vec
767 targ_selvecs=m68klinux_vec
768 ;;
769 m68*-*-gnu*)
770 targ_defvec=bfd_elf32_m68k_vec
771 # targ_selvecs=m68kmach3_vec
772 # targ_cflags=-DSTAT_FOR_EXEC
773 ;;
774 m68*-hp*-netbsd*)
775 targ_defvec=m68k4knetbsd_vec
776 targ_selvecs="m68knetbsd_vec hp300bsd_vec sunos_big_vec"
777 targ_underscore=yes
778 ;;
779 m68*-*-netbsdelf*)
780 targ_defvec=bfd_elf32_m68k_vec
781 targ_selvecs="m68knetbsd_vec m68k4knetbsd_vec hp300bsd_vec sunos_big_vec"
782 ;;
783 m68*-*-netbsdaout* | m68*-*-netbsd*)
784 targ_defvec=m68knetbsd_vec
785 targ_selvecs="m68k4knetbsd_vec bfd_elf32_m68k_vec hp300bsd_vec sunos_big_vec"
786 targ_underscore=yes
787 ;;
788 m68*-*-openbsd*)
789 targ_defvec=m68knetbsd_vec
790 targ_selvecs="m68k4knetbsd_vec hp300bsd_vec sunos_big_vec"
791 targ_underscore=yes
792 ;;
793 m68*-*-sunos* | m68*-*-os68k* | m68*-*-vxworks* | m68*-netx-* | \
794 m68*-*-bsd* | m68*-*-vsta*)
795 targ_defvec=sunos_big_vec
796 targ_underscore=yes
797 ;;
798 m68*-ericsson-*)
799 targ_defvec=sunos_big_vec
800 targ_selvecs="m68kcoff_vec versados_vec tekhex_vec"
801 targ_underscore=yes
802 ;;
803 m68*-cbm-*)
804 targ_defvec=bfd_elf32_m68k_vec
805 targ_selvecs=m68kcoff_vec
806 ;;
807 m68*-*-psos*)
808 targ_defvec=bfd_elf32_m68k_vec
809 targ_selvecs=ieee_vec
810 targ_underscore=yes
811 ;;
812
813 m88*-harris-cxux* | m88*-*-dgux* | m88*-*-sysv4*)
814 targ_defvec=bfd_elf32_m88k_vec
815 targ_selvecs=m88kbcs_vec
816 ;;
817 m88*-*-mach3*)
818 targ_defvec=m88kmach3_vec
819 targ_cflags=-DSTAT_FOR_EXEC
820 ;;
821 m88*-*-openbsd*)
822 targ_defvec=m88kopenbsd_vec
823 targ_underscore=yes
824 ;;
825 m88*-*-*)
826 targ_defvec=m88kbcs_vec
827 targ_underscore=yes
828 ;;
829
830 maxq-*-coff)
831 targ_defvec=maxqcoff_vec
832 ;;
833
834 mcore-*-elf)
835 targ_defvec=bfd_elf32_mcore_big_vec
836 targ_selvecs="bfd_elf32_mcore_big_vec bfd_elf32_mcore_little_vec"
837 ;;
838 mcore-*-pe)
839 targ_defvec=mcore_pe_big_vec
840 targ_selvecs="mcore_pe_big_vec mcore_pe_little_vec mcore_pei_big_vec mcore_pei_little_vec"
841 ;;
842
843 mep-*-elf)
844 targ_defvec=bfd_elf32_mep_vec
845 targ_selvecs=bfd_elf32_mep_little_vec
846 ;;
847
848 mips*-big-*)
849 targ_defvec=ecoff_big_vec
850 targ_selvecs=ecoff_little_vec
851 ;;
852 mips*el-*-netbsd*)
853 targ_defvec=bfd_elf32_tradlittlemips_vec
854 targ_selvecs="bfd_elf32_tradbigmips_vec bfd_elf64_tradbigmips_vec bfd_elf64_tradlittlemips_vec ecoff_little_vec ecoff_big_vec"
855 ;;
856 mips*-*-netbsd*)
857 targ_defvec=bfd_elf32_tradbigmips_vec
858 targ_selvecs="bfd_elf32_tradlittlemips_vec bfd_elf64_tradbigmips_vec bfd_elf64_tradlittlemips_vec ecoff_big_vec ecoff_little_vec"
859 ;;
860 mips*-dec-* | mips*el-*-ecoff*)
861 targ_defvec=ecoff_little_vec
862 targ_selvecs=ecoff_big_vec
863 ;;
864 mips*-*-ecoff*)
865 targ_defvec=ecoff_big_vec
866 targ_selvecs=ecoff_little_vec
867 ;;
868 #ifdef BFD64
869 mips*-*-irix6*)
870 targ_defvec=bfd_elf32_nbigmips_vec
871 targ_selvecs="bfd_elf32_nlittlemips_vec bfd_elf32_bigmips_vec bfd_elf32_littlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec"
872 want64=true
873 ;;
874 #endif
875 mips*-*-irix5*)
876 targ_defvec=bfd_elf32_bigmips_vec
877 targ_selvecs="bfd_elf32_littlemips_vec ecoff_big_vec ecoff_little_vec"
878 ;;
879 mips*-sgi-* | mips*-*-bsd*)
880 targ_defvec=ecoff_big_vec
881 targ_selvecs=ecoff_little_vec
882 ;;
883 mips*-*-lnews*)
884 targ_defvec=ecoff_biglittle_vec
885 targ_selvecs="ecoff_little_vec ecoff_big_vec"
886 ;;
887 mips*-*-sysv4*)
888 targ_defvec=bfd_elf32_tradbigmips_vec
889 targ_selvecs="bfd_elf32_tradlittlemips_vec ecoff_big_vec ecoff_little_vec"
890 ;;
891 mips*-*-sysv* | mips*-*-riscos*)
892 targ_defvec=ecoff_big_vec
893 targ_selvecs=ecoff_little_vec
894 ;;
895 #ifdef BFD64
896 mips*el-*-vxworks*)
897 targ_defvec=bfd_elf32_littlemips_vxworks_vec
898 targ_selvecs="bfd_elf32_littlemips_vec bfd_elf32_bigmips_vxworks_vec bfd_elf32_bigmips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec"
899 want64=true
900 ;;
901 mips*-*-vxworks*)
902 targ_defvec=bfd_elf32_bigmips_vxworks_vec
903 targ_selvecs="bfd_elf32_bigmips_vec bfd_elf32_littlemips_vxworks_vec bfd_elf32_bigmips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec"
904 want64=true
905 ;;
906 #endif
907 mips*el-sde-elf*)
908 targ_defvec=bfd_elf32_tradlittlemips_vec
909 targ_selvecs="bfd_elf32_tradbigmips_vec bfd_elf32_ntradbigmips_vec bfd_elf32_ntradlittlemips_vec bfd_elf64_tradbigmips_vec bfd_elf64_tradlittlemips_vec"
910 want64=true
911 ;;
912 mips*-sde-elf*)
913 targ_defvec=bfd_elf32_tradbigmips_vec
914 targ_selvecs="bfd_elf32_tradlittlemips_vec bfd_elf32_ntradbigmips_vec bfd_elf32_ntradlittlemips_vec bfd_elf64_tradbigmips_vec bfd_elf64_tradlittlemips_vec"
915 want64=true
916 ;;
917 mips*el-*-elf* | mips*el-*-vxworks* | mips*-*-chorus*)
918 targ_defvec=bfd_elf32_littlemips_vec
919 targ_selvecs="bfd_elf32_bigmips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec"
920 ;;
921 mips*-*-elf* | mips*-*-rtems* | mips*-*-vxworks | mips*-*-windiss)
922 targ_defvec=bfd_elf32_bigmips_vec
923 targ_selvecs="bfd_elf32_littlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec"
924 ;;
925 mips*-*-none)
926 targ_defvec=bfd_elf32_bigmips_vec
927 targ_selvecs="bfd_elf32_littlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec"
928 ;;
929 #ifdef BFD64
930 mips64*-*-openbsd*)
931 targ_defvec=bfd_elf64_tradbigmips_vec
932 targ_selvecs="bfd_elf32_ntradlittlemips_vec bfd_elf32_ntradbigmips_vec bfd_elf32_tradlittlemips_vec bfd_elf32_tradbigmips_vec bfd_elf64_tradlittlemips_vec"
933 want64=true
934 ;;
935 #endif
936 mips*el-*-openbsd*)
937 targ_defvec=bfd_elf32_littlemips_vec
938 targ_selvecs="bfd_elf32_bigmips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec ecoff_little_vec ecoff_big_vec"
939 ;;
940 mips*-*-openbsd*)
941 targ_defvec=bfd_elf32_bigmips_vec
942 targ_selvecs="bfd_elf32_littlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec ecoff_big_vec ecoff_little_vec"
943 ;;
944 #ifdef BFD64
945 mips64*el-*-linux*)
946 targ_defvec=bfd_elf32_ntradlittlemips_vec
947 targ_selvecs="bfd_elf32_ntradbigmips_vec bfd_elf32_tradlittlemips_vec bfd_elf32_tradbigmips_vec bfd_elf64_tradlittlemips_vec bfd_elf64_tradbigmips_vec"
948 want64=true
949 ;;
950 mips64*-*-linux*)
951 targ_defvec=bfd_elf32_ntradbigmips_vec
952 targ_selvecs="bfd_elf32_ntradlittlemips_vec bfd_elf32_tradbigmips_vec bfd_elf32_tradlittlemips_vec bfd_elf64_tradbigmips_vec bfd_elf64_tradlittlemips_vec"
953 want64=true
954 ;;
955 #endif
956 mips*el-*-linux*)
957 targ_defvec=bfd_elf32_tradlittlemips_vec
958 targ_selvecs="bfd_elf32_tradbigmips_vec ecoff_little_vec ecoff_big_vec bfd_elf32_ntradlittlemips_vec bfd_elf64_tradlittlemips_vec bfd_elf32_ntradbigmips_vec bfd_elf64_tradbigmips_vec"
959 want64=true
960 ;;
961 mips*-*-linux*)
962 targ_defvec=bfd_elf32_tradbigmips_vec
963 targ_selvecs="bfd_elf32_tradlittlemips_vec ecoff_big_vec ecoff_little_vec bfd_elf32_ntradbigmips_vec bfd_elf64_tradbigmips_vec bfd_elf32_ntradlittlemips_vec bfd_elf64_tradlittlemips_vec"
964 want64=true
965 ;;
966 #ifdef BFD64
967 mmix-*-*)
968 targ_defvec=bfd_elf64_mmix_vec
969 targ_selvecs=bfd_mmo_vec
970 want64=true
971 ;;
972 #endif
973 mn10200-*-*)
974 targ_defvec=bfd_elf32_mn10200_vec
975 ;;
976
977 mn10300-*-*)
978 targ_defvec=bfd_elf32_mn10300_vec
979 targ_underscore=yes
980 ;;
981
982 mt-*-elf)
983 targ_defvec=bfd_elf32_mt_vec
984 ;;
985
986 msp430-*-*)
987 targ_defvec=bfd_elf32_msp430_vec
988 ;;
989
990 ns32k-pc532-mach* | ns32k-pc532-ux*)
991 targ_defvec=pc532machaout_vec
992 targ_underscore=yes
993 ;;
994 ns32k-*-netbsd* | ns32k-*-lites* | ns32k-*-openbsd*)
995 targ_defvec=pc532netbsd_vec
996 targ_underscore=yes
997 ;;
998
999 openrisc-*-elf)
1000 targ_defvec=bfd_elf32_openrisc_vec
1001 ;;
1002
1003 or32-*-coff)
1004 targ_defvec=or32coff_big_vec
1005 targ_underscore=yes
1006 ;;
1007
1008 or32-*-elf)
1009 targ_defvec=bfd_elf32_or32_big_vec
1010 ;;
1011
1012 pdp11-*-*)
1013 targ_defvec=pdp11_aout_vec
1014 targ_underscore=yes
1015 ;;
1016
1017 pj-*-*)
1018 targ_defvec=bfd_elf32_pj_vec
1019 targ_selvecs="bfd_elf32_pj_vec bfd_elf32_pjl_vec"
1020 ;;
1021
1022 pjl-*-*)
1023 targ_defvec=bfd_elf32_pjl_vec
1024 targ_selvecs="bfd_elf32_pjl_vec bfd_elf32_pj_vec bfd_elf32_i386_vec"
1025 ;;
1026
1027 powerpc-*-aix5.[01])
1028 targ_defvec=rs6000coff_vec
1029 targ_selvecs="aix5coff64_vec"
1030 want64=true
1031 ;;
1032 #ifdef BFD64
1033 powerpc64-*-aix5.[01])
1034 targ_defvec=aix5coff64_vec
1035 targ_selvecs="rs6000coff_vec"
1036 want64=true
1037 ;;
1038 #endif
1039 powerpc-*-aix5*)
1040 targ_cflags=-DAIX_WEAK_SUPPORT
1041 targ_defvec=rs6000coff_vec
1042 targ_selvecs="aix5coff64_vec"
1043 want64=true
1044 ;;
1045 #ifdef BFD64
1046 powerpc64-*-aix5*)
1047 targ_cflags=-DAIX_WEAK_SUPPORT
1048 targ_defvec=aix5coff64_vec
1049 targ_selvecs="rs6000coff_vec"
1050 want64=true
1051 ;;
1052 #endif
1053
1054 powerpc-*-aix* | powerpc-*-beos* | rs6000-*-*)
1055 targ_defvec=rs6000coff_vec
1056 targ64_selvecs=rs6000coff64_vec
1057 case "${targ}" in
1058 *-*-aix4.[3456789]* | *-*-aix[56789]*)
1059 want64=true;;
1060 *)
1061 targ_cflags=-DSMALL_ARCHIVE;;
1062 esac
1063 ;;
1064 #ifdef BFD64
1065 powerpc64-*-aix*)
1066 targ_defvec=rs6000coff64_vec
1067 targ_selvecs=rs6000coff_vec
1068 want64=true
1069 ;;
1070 powerpc64-*-elf* | powerpc-*-elf64* | powerpc64-*-linux* | \
1071 powerpc64-*-*bsd*)
1072 targ_defvec=bfd_elf64_powerpc_vec
1073 targ_selvecs="bfd_elf64_powerpcle_vec bfd_elf32_powerpc_vec bfd_elf32_powerpcle_vec rs6000coff_vec rs6000coff64_vec"
1074 want64=true
1075 ;;
1076 powerpc64le-*-elf* | powerpcle-*-elf64*)
1077 targ_defvec=bfd_elf64_powerpcle_vec
1078 targ_selvecs="bfd_elf64_powerpc_vec bfd_elf32_powerpcle_vec bfd_elf32_powerpc_vec rs6000coff_vec rs6000coff64_vec"
1079 want64=true
1080 ;;
1081 #endif
1082 powerpc-*-*bsd* | powerpc-*-elf* | powerpc-*-sysv4* | powerpc-*-eabi* | \
1083 powerpc-*-solaris2* | powerpc-*-linux-* | powerpc-*-rtems* | \
1084 powerpc-*-chorus*)
1085 targ_defvec=bfd_elf32_powerpc_vec
1086 targ_selvecs="rs6000coff_vec bfd_elf32_powerpcle_vec ppcboot_vec"
1087 targ64_selvecs="bfd_elf64_powerpc_vec bfd_elf64_powerpcle_vec"
1088 ;;
1089 powerpc-*-kaos*)
1090 targ_defvec=bfd_elf32_powerpc_vec
1091 targ_selvecs="bfd_elf32_powerpcle_vec ppcboot_vec"
1092 targ64_selvecs="bfd_elf64_powerpc_vec bfd_elf64_powerpcle_vec"
1093 ;;
1094 powerpc-*-darwin* | powerpc-*-macos10* | powerpc-*-rhapsody*)
1095 targ_defvec=mach_o_be_vec
1096 targ_selvecs="mach_o_be_vec mach_o_le_vec mach_o_fat_vec pef_vec pef_xlib_vec sym_vec"
1097 targ_archs="bfd_powerpc_arch bfd_rs6000_arch bfd_i386_arch"
1098 ;;
1099 powerpc-*-macos*)
1100 targ_defvec=pmac_xcoff_vec
1101 ;;
1102 powerpc-*-lynxos*)
1103 targ_defvec=bfd_elf32_powerpc_vec
1104 targ_selvecs="rs6000coff_vec"
1105 targ_cflags=-DSMALL_ARCHIVE
1106 ;;
1107 powerpc-*-netware*)
1108 targ_defvec=bfd_elf32_powerpc_vec
1109 targ_selvecs="nlm32_powerpc_vec rs6000coff_vec"
1110 ;;
1111 powerpc-*-nto*)
1112 targ_defvec=bfd_elf32_powerpc_vec
1113 targ_selvecs="rs6000coff_vec bfd_elf32_powerpcle_vec ppcboot_vec"
1114 ;;
1115 powerpc-*-vxworks* | powerpc-*-windiss*)
1116 targ_defvec=bfd_elf32_powerpc_vxworks_vec
1117 targ_selvecs="rs6000coff_vec bfd_elf32_powerpc_vec bfd_elf32_powerpcle_vec ppcboot_vec"
1118 targ64_selvecs="bfd_elf64_powerpc_vec bfd_elf64_powerpcle_vec"
1119 ;;
1120 powerpcle-*-nto*)
1121 targ_defvec=bfd_elf32_powerpcle_vec
1122 targ_selvecs="rs6000coff_vec bfd_elf32_powerpc_vec ppcboot_vec"
1123 ;;
1124 powerpcle-*-elf* | powerpcle-*-sysv4* | powerpcle-*-eabi* | \
1125 powerpcle-*-solaris2* | powerpcle-*-linux-* | powerpcle-*-vxworks*)
1126 targ_defvec=bfd_elf32_powerpcle_vec
1127 targ_selvecs="rs6000coff_vec bfd_elf32_powerpc_vec ppcboot_vec"
1128 targ64_selvecs="bfd_elf64_powerpc_vec bfd_elf64_powerpcle_vec"
1129 ;;
1130 powerpcle-*-pe | powerpcle-*-winnt* | powerpcle-*-cygwin*)
1131 targ_defvec=bfd_powerpcle_pe_vec
1132 targ_selvecs="bfd_powerpcle_pei_vec bfd_powerpc_pei_vec bfd_powerpcle_pe_vec bfd_powerpc_pe_vec"
1133 ;;
1134
1135 s390-*-linux*)
1136 targ_defvec=bfd_elf32_s390_vec
1137 targ64_selvecs=bfd_elf64_s390_vec
1138 want64=true
1139 ;;
1140 #ifdef BFD64
1141 s390x-*-linux*)
1142 targ_defvec=bfd_elf64_s390_vec
1143 targ_selvecs=bfd_elf32_s390_vec
1144 want64=true
1145 ;;
1146 s390x-*-tpf*)
1147 targ_defvec=bfd_elf64_s390_vec
1148 want64=true
1149 ;;
1150 #endif
1151
1152 score*-*-elf*)
1153 targ_defvec=bfd_elf32_bigscore_vec
1154 targ_selvecs=bfd_elf32_littlescore_vec
1155 ;;
1156
1157 #ifdef BFD64
1158 sh64l*-*-elf*)
1159 targ_defvec=bfd_elf32_sh64l_vec
1160 targ_selvecs="bfd_elf32_sh64_vec bfd_elf64_sh64l_vec bfd_elf64_sh64_vec bfd_elf32_shl_vec bfd_elf32_sh_vec"
1161 targ_underscore=yes
1162 want64=true
1163 ;;
1164 sh64-*-elf*)
1165 targ_defvec=bfd_elf32_sh64_vec
1166 targ_selvecs="bfd_elf32_sh64l_vec bfd_elf64_sh64_vec bfd_elf64_sh64l_vec bfd_elf32_sh_vec bfd_elf32_shl_vec"
1167 targ_underscore=yes
1168 want64=true
1169 ;;
1170 sh64eb-*-linux*)
1171 targ_defvec=bfd_elf32_sh64blin_vec
1172 targ_selvecs="bfd_elf32_sh64lin_vec bfd_elf64_sh64blin_vec bfd_elf64_sh64lin_vec bfd_elf32_shblin_vec bfd_elf32_shlin_vec"
1173 want64=true
1174 ;;
1175 sh64-*-linux*)
1176 targ_defvec=bfd_elf32_sh64lin_vec
1177 targ_selvecs="bfd_elf32_sh64blin_vec bfd_elf64_sh64lin_vec bfd_elf64_sh64blin_vec bfd_elf32_shlin_vec bfd_elf32_shblin_vec"
1178 want64=true
1179 ;;
1180 sh-*-linux*)
1181 targ_defvec=bfd_elf32_shblin_vec
1182 targ_selvecs="bfd_elf32_shlin_vec bfd_elf32_sh64lin_vec bfd_elf32_sh64blin_vec bfd_elf64_sh64lin_vec bfd_elf64_sh64blin_vec"
1183 want64=true
1184 ;;
1185 #endif /* BFD64 */
1186
1187 sh*eb-*-linux*)
1188 targ_defvec=bfd_elf32_shblin_vec
1189 targ_selvecs=bfd_elf32_shlin_vec
1190 ;;
1191 sh*-*-linux*)
1192 targ_defvec=bfd_elf32_shlin_vec
1193 targ_selvecs=bfd_elf32_shblin_vec
1194 ;;
1195
1196 sh-*-uclinux* | sh[12]-*-uclinux*)
1197 targ_defvec=bfd_elf32_sh_vec
1198 targ_selvecs="bfd_elf32_shblin_vec bfd_elf32_shlin_vec"
1199 #ifdef BFD64
1200 targ_selvecs="${targ_selvecs} bfd_elf32_sh64lin_vec bfd_elf32_sh64blin_vec bfd_elf64_sh64lin_vec bfd_elf64_sh64blin_vec"
1201 #endif
1202 ;;
1203
1204 #ifdef BFD64
1205 sh5le-*-netbsd*)
1206 targ_defvec=bfd_elf32_sh64lnbsd_vec
1207 targ_selvecs="bfd_elf32_sh64nbsd_vec bfd_elf64_sh64lnbsd_vec bfd_elf64_sh64nbsd_vec bfd_elf32_shnbsd_vec bfd_elf32_shlnbsd_vec"
1208 want64=true
1209 ;;
1210 sh5-*-netbsd*)
1211 targ_defvec=bfd_elf32_sh64nbsd_vec
1212 targ_selvecs="bfd_elf32_sh64lnbsd_vec bfd_elf64_sh64lnbsd_vec bfd_elf64_sh64nbsd_vec bfd_elf32_shnbsd_vec bfd_elf32_shlnbsd_vec"
1213 want64=true
1214 ;;
1215
1216 sh64le-*-netbsd*)
1217 targ_defvec=bfd_elf64_sh64lnbsd_vec
1218 targ_selvecs="bfd_elf64_sh64nbsd_vec bfd_elf32_sh64lnbsd_vec bfd_elf32_sh64nbsd_vec bfd_elf32_shnbsd_vec bfd_elf32_shlnbsd_vec"
1219 want64=true
1220 ;;
1221 sh64-*-netbsd*)
1222 targ_defvec=bfd_elf64_sh64nbsd_vec
1223 targ_selvecs="bfd_elf64_sh64lnbsd_vec bfd_elf32_sh64lnbsd_vec bfd_elf32_sh64nbsd_vec bfd_elf32_shnbsd_vec bfd_elf32_shlnbsd_vec"
1224 want64=true
1225 ;;
1226
1227 sh*l*-*-netbsdelf*)
1228 targ_defvec=bfd_elf32_shlnbsd_vec
1229 targ_selvecs="bfd_elf32_shnbsd_vec shcoff_vec shlcoff_vec bfd_elf32_sh64lnbsd_vec bfd_elf32_sh64nbsd_vec bfd_elf64_sh64lnbsd_vec bfd_elf64_sh64nbsd_vec"
1230 want64=true
1231 ;;
1232 sh-*-netbsdelf*)
1233 targ_defvec=bfd_elf32_shnbsd_vec
1234 targ_selvecs="bfd_elf32_shlnbsd_vec shcoff_vec shlcoff_vec bfd_elf32_sh64lnbsd_vec bfd_elf32_sh64nbsd_vec bfd_elf64_sh64lnbsd_vec bfd_elf64_sh64nbsd_vec"
1235 want64=true
1236 ;;
1237 #endif
1238
1239 sh*-*-netbsdelf*)
1240 targ_defvec=bfd_elf32_shnbsd_vec
1241 targ_selvecs="bfd_elf32_shlnbsd_vec shcoff_vec shlcoff_vec"
1242 ;;
1243 sh*-*-symbianelf*)
1244 targ_defvec=bfd_elf32_shl_symbian_vec
1245 targ_selvecs="shlcoff_vec shlcoff_small_vec"
1246 targ_underscore=yes
1247 ;;
1248
1249 #ifdef BFD64
1250 shl*-*-elf* | sh[1234]l*-*-elf* | sh3el*-*-elf* | shl*-*-kaos*)
1251 targ_defvec=bfd_elf32_shl_vec
1252 targ_selvecs="bfd_elf32_sh_vec shlcoff_vec shcoff_vec shlcoff_small_vec shcoff_small_vec bfd_elf32_sh64_vec bfd_elf32_sh64l_vec bfd_elf64_sh64_vec bfd_elf64_sh64l_vec"
1253 targ_underscore=yes
1254 want64=true
1255 ;;
1256 #endif
1257
1258 sh-*-rtemscoff*)
1259 targ_defvec=shcoff_vec
1260 targ_selvecs="shcoff_vec shlcoff_vec shcoff_small_vec shlcoff_small_vec"
1261 targ_underscore=yes
1262 ;;
1263
1264 #ifdef BFD64
1265 sh-*-elf* | sh[1234]*-elf* | sh-*-rtems* | sh-*-kaos*)
1266 targ_defvec=bfd_elf32_sh_vec
1267 targ_selvecs="bfd_elf32_shl_vec shcoff_vec shlcoff_vec shcoff_small_vec shlcoff_small_vec bfd_elf32_sh64_vec bfd_elf32_sh64l_vec bfd_elf64_sh64_vec bfd_elf64_sh64l_vec"
1268 targ_underscore=yes
1269 want64=true
1270 ;;
1271 #endif
1272
1273 sh-*-nto*)
1274 targ_defvec=bfd_elf32_sh_vec
1275 targ_selvecs="bfd_elf32_shl_vec shcoff_vec shlcoff_vec shcoff_small_vec shlcoff_small_vec"
1276 targ_underscore=yes
1277 ;;
1278 sh*-*-openbsd*)
1279 targ_defvec=bfd_elf32_shlnbsd_vec
1280 targ_selvecs="bfd_elf32_shnbsd_vec shcoff_vec shlcoff_vec"
1281 ;;
1282 sh-*-pe)
1283 targ_defvec=shlpe_vec
1284 targ_selvecs="shlpe_vec shlpei_vec"
1285 targ_underscore=yes
1286 ;;
1287 sh-*-vxworks)
1288 targ_defvec=bfd_elf32_shvxworks_vec
1289 targ_selvecs="bfd_elf32_shlvxworks_vec"
1290 # FIXME None of the following are actually used on this target, but
1291 # they're necessary for coff-sh.c (which is unconditionally used) to be
1292 # compiled correctly.
1293 targ_selvecs="$targ_selvecs shcoff_vec shlcoff_vec shcoff_small_vec shlcoff_small_vec"
1294 ;;
1295 sh-*-*)
1296 targ_defvec=shcoff_vec
1297 targ_selvecs="shcoff_vec shlcoff_vec shcoff_small_vec shlcoff_small_vec"
1298 targ_underscore=yes
1299 ;;
1300
1301 sparclet-*-aout*)
1302 targ_defvec=sunos_big_vec
1303 targ_selvecs=sparcle_aout_vec
1304 targ_underscore=yes
1305 ;;
1306 sparc86x-*-aout*)
1307 targ_defvec=sunos_big_vec
1308 targ_underscore=yes
1309 ;;
1310 sparclite-*-elf* | sparc86x-*-elf*)
1311 targ_defvec=bfd_elf32_sparc_vec
1312 ;;
1313 sparc*-*-chorus*)
1314 targ_defvec=bfd_elf32_sparc_vec
1315 ;;
1316 sparc-*-linux*aout*)
1317 targ_defvec=sparclinux_vec
1318 targ_selvecs="bfd_elf32_sparc_vec sunos_big_vec"
1319 targ_underscore=yes
1320 ;;
1321 sparc-*-linux-*)
1322 targ_defvec=bfd_elf32_sparc_vec
1323 targ_selvecs="sparclinux_vec bfd_elf64_sparc_vec sunos_big_vec"
1324 ;;
1325 sparc-*-netbsdelf*)
1326 targ_defvec=bfd_elf32_sparc_vec
1327 targ_selvecs=sparcnetbsd_vec
1328 ;;
1329 sparc-*-netbsdaout* | sparc-*-netbsd*)
1330 targ_defvec=sparcnetbsd_vec
1331 targ_selvecs=bfd_elf32_sparc_vec
1332 targ_underscore=yes
1333 ;;
1334 sparc-*-openbsd[0-2].* | sparc-*-openbsd3.[0-1])
1335 targ_defvec=sparcnetbsd_vec
1336 targ_underscore=yes
1337 ;;
1338 sparc-*-openbsd*)
1339 targ_defvec=bfd_elf32_sparc_vec
1340 targ_selvecs=sparcnetbsd_vec
1341 ;;
1342 sparc-*-elf* | sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
1343 targ_defvec=bfd_elf32_sparc_vec
1344 targ_selvecs=sunos_big_vec
1345 ;;
1346 #ifdef BFD64
1347 sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*)
1348 targ_defvec=bfd_elf32_sparc_vec
1349 targ_selvecs="bfd_elf64_sparc_vec sunos_big_vec"
1350 want64=true
1351 ;;
1352 #endif
1353 sparc-*-sysv4*)
1354 targ_defvec=bfd_elf32_sparc_vec
1355 ;;
1356 sparc-*-vxworks*)
1357 targ_defvec=bfd_elf32_sparc_vxworks_vec
1358 targ_selvecs="bfd_elf32_sparc_vec sunos_big_vec"
1359 ;;
1360 sparc-*-netware*)
1361 targ_defvec=bfd_elf32_sparc_vec
1362 targ_selvecs="nlm32_sparc_vec sunos_big_vec"
1363 ;;
1364 #ifdef BFD64
1365 sparc64-*-aout*)
1366 targ_defvec=sunos_big_vec
1367 targ_underscore=yes
1368 want64=true
1369 ;;
1370 sparc64-*-linux-*)
1371 targ_defvec=bfd_elf64_sparc_vec
1372 targ_selvecs="bfd_elf32_sparc_vec sparclinux_vec sunos_big_vec"
1373 want64=true
1374 ;;
1375 sparc64-*-elf*)
1376 targ_defvec=bfd_elf64_sparc_vec
1377 targ_selvecs=bfd_elf32_sparc_vec
1378 want64=true
1379 ;;
1380 #endif /* BFD64 */
1381 sparc*-*-coff*)
1382 targ_defvec=sparccoff_vec
1383 ;;
1384 sparc*-*-rtems*)
1385 targ_defvec=bfd_elf32_sparc_vec
1386 targ_selvecs="sunos_big_vec sparccoff_vec"
1387 ;;
1388 sparc*-*-*)
1389 targ_defvec=sunos_big_vec
1390 targ_underscore=yes
1391 ;;
1392
1393 spu-*-elf)
1394 targ_defvec=bfd_elf32_spu_vec
1395 targ_selvecs="bfd_elf32_powerpc_vec bfd_elf64_powerpc_vec"
1396 ;;
1397
1398 #if HAVE_host_aout_vec
1399 tahoe-*-*)
1400 targ_defvec=host_aout_vec
1401 targ_underscore=yes
1402 ;;
1403 #endif
1404
1405 tic80*-*-*)
1406 targ_defvec=tic80coff_vec
1407 targ_underscore=yes
1408 ;;
1409
1410 v850-*-*)
1411 targ_defvec=bfd_elf32_v850_vec
1412 ;;
1413 v850e-*-*)
1414 targ_defvec=bfd_elf32_v850_vec
1415 ;;
1416 v850ea-*-*)
1417 targ_defvec=bfd_elf32_v850_vec
1418 ;;
1419
1420 vax-*-netbsdelf*)
1421 targ_defvec=bfd_elf32_vax_vec
1422 targ_selvecs="vaxnetbsd_vec vax1knetbsd_vec"
1423 ;;
1424
1425 vax-*-netbsdaout* | vax-*-netbsd*)
1426 targ_defvec=vaxnetbsd_vec
1427 targ_selvecs="bfd_elf32_vax_vec vax1knetbsd_vec"
1428 targ_underscore=yes
1429 ;;
1430
1431 vax-*-bsd* | vax-*-ultrix*)
1432 targ_defvec=vaxbsd_vec
1433 targ_underscore=yes
1434 ;;
1435
1436 vax-*-openbsd*)
1437 targ_defvec=vaxnetbsd_vec
1438 targ_underscore=yes
1439 ;;
1440
1441 vax-*-linux-*)
1442 targ_defvec=bfd_elf32_vax_vec
1443 ;;
1444
1445 vax*-*-*vms*)
1446 targ_defvec=vms_vax_vec
1447 ;;
1448
1449 we32k-*-*)
1450 targ_defvec=we32kcoff_vec
1451 ;;
1452
1453 w65-*-*)
1454 targ_defvec=w65_vec
1455 ;;
1456
1457 xstormy16-*-elf)
1458 targ_defvec=bfd_elf32_xstormy16_vec
1459 ;;
1460
1461 xtensa-*-*)
1462 targ_defvec=bfd_elf32_xtensa_le_vec
1463 targ_selvecs=bfd_elf32_xtensa_be_vec
1464 ;;
1465 xc16x-*-elf)
1466 targ_defvec=bfd_elf32_xc16x_vec
1467 ;;
1468
1469 z80-*-*)
1470 targ_defvec=z80coff_vec
1471 targ_underscore=no
1472 ;;
1473
1474 z8k*-*-*)
1475 targ_defvec=z8kcoff_vec
1476 targ_underscore=yes
1477 ;;
1478
1479 *-*-ieee*)
1480 targ_defvec=ieee_vec
1481 ;;
1482
1483 *-adobe-*)
1484 targ_defvec=a_out_adobe_vec
1485 targ_underscore=yes
1486 ;;
1487
1488 *-sony-*)
1489 targ_defvec=newsos3_vec
1490 targ_underscore=yes
1491 ;;
1492
1493 *-tandem-*)
1494 targ_defvec=m68kcoff_vec
1495 targ_selvecs=ieee_vec
1496 ;;
1497 # END OF targmatch.h
1498 *)
1499 echo 1>&2 "*** BFD does not support target ${targ}."
1500 echo 1>&2 "*** Look in bfd/config.bfd for supported targets."
1501 exit 1
1502 ;;
1503 esac
1504
1505 case "${host64}${want64}" in
1506 *true*)
1507 targ_selvecs="${targ_selvecs} ${targ64_selvecs}"
1508 ;;
1509 esac
1510
1511 # If we support any ELF target, then automatically add support for the
1512 # generic ELF targets. This permits an objdump with some ELF support
1513 # to be used on an arbitrary ELF file for anything other than
1514 # relocation information.
1515 case "${targ_defvec} ${targ_selvecs}" in
1516 *bfd_elf64* | *bfd_elf32_n*mips*)
1517 targ_selvecs="${targ_selvecs} bfd_elf64_little_generic_vec bfd_elf64_big_generic_vec bfd_elf32_little_generic_vec bfd_elf32_big_generic_vec"
1518 ;;
1519 *bfd_elf32*)
1520 targ_selvecs="${targ_selvecs} bfd_elf32_little_generic_vec bfd_elf32_big_generic_vec"
1521 ;;
1522 esac
This page took 0.064336 seconds and 4 git commands to generate.