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