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