*** empty log message ***
[deliverable/binutils-gdb.git] / bfd / config.bfd
CommitLineData
252b5132
RH
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
e9e69f5a
AM
8# targ64_selvecs Vectors to build if --enable-64-bit-bfd is given
9# or if host is 64 bit.
252b5132
RH
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
26targ_defvec=
27targ_selvecs=
e9e69f5a 28targ64_selvecs=
252b5132
RH
29targ_cflags=
30targ_underscore=no
31
91fb2a9d
NC
32# Catch obsolete configurations.
33case $targ in
0285182b 34 maxq-*-coff | \
b2d65c0b 35 null)
91fb2a9d
NC
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;;
43esac
44
7f266840 45case $targ in
0285182b
NC
46 m68*-apple-aux* | \
47 m68*-apollo-* | \
48 m68*-bull-sysv* | \
49 m68*-*-rtemscoff* | \
50 i960-*-rtems* | \
51 or32-*-rtems* | \
d6486796
NC
52 m68*-*-lynxos* | \
53 sparc-*-lynxos* | \
54 vax-*-vms* | \
7f266840
DJ
55 arm-*-oabi | \
56 thumb-*-oabi | \
c17ae8a2 57 a29k-* | \
7e4e2059
NC
58 hppa*-*-rtems* | \
59 *-go32-rtems* | \
60 i[3-7]86*-*-rtemscoff* | \
61 mips*el-*-rtems* | \
62 powerpcle-*-rtems* | \
63 sparc*-*-rtemsaout* | \
7f266840
DJ
64 null)
65 echo "*** Configuration $targ is obsolete." >&2
66 echo "*** Support has been REMOVED." >&2
67 exit 1
68 ;;
69esac
91fb2a9d 70
252b5132
RH
71targ_cpu=`echo $targ | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
72case "${targ_cpu}" in
7d3f158f 73alpha*) targ_archs=bfd_alpha_arch ;;
bfff1642 74am34*|am33_2.0*) targ_archs=bfd_mn10300_arch ;;
7d3f158f 75arm*) targ_archs=bfd_arm_arch ;;
0f64bb02 76bfin*) targ_archs=bfd_bfin_arch ;;
7d3f158f
AM
77c30*) targ_archs=bfd_tic30_arch ;;
78c4x*) targ_archs=bfd_tic4x_arch ;;
79c54x*) targ_archs=bfd_tic54x_arch ;;
3d3d428f 80cr16*) targ_archs=bfd_cr16_arch ;;
bac23f82 81crisv32) targ_archs=bfd_cris_arch ;;
7d3f158f 82crx*) targ_archs=bfd_crx_arch ;;
d172d4ba 83dlx*) targ_archs=bfd_dlx_arch ;;
ebff6cd5 84fido*) targ_archs=bfd_m68k_arch ;;
7d3f158f
AM
85hppa*) targ_archs=bfd_hppa_arch ;;
86i[3-7]86) targ_archs=bfd_i386_arch ;;
87i370) targ_archs=bfd_i370_arch ;;
84e94c90 88lm32) targ_archs=bfd_lm32_arch ;;
60bcf0fa
NC
89m6811*|m68hc11*) targ_archs="bfd_m68hc11_arch bfd_m68hc12_arch" ;;
90m6812*|m68hc12*) targ_archs="bfd_m68hc12_arch bfd_m68hc11_arch" ;;
7d3f158f
AM
91m68*) targ_archs=bfd_m68k_arch ;;
92m88*) targ_archs=bfd_m88k_arch ;;
7499d566 93maxq*) targ_archs=bfd_maxq_arch ;;
7d3f158f 94mips*) targ_archs=bfd_mips_arch ;;
3b16e843 95or32*) targ_archs=bfd_or32_arch ;;
7d3f158f
AM
96pdp11*) targ_archs=bfd_pdp11_arch ;;
97pj*) targ_archs="bfd_pj_arch bfd_i386_arch";;
98powerpc*) targ_archs="bfd_rs6000_arch bfd_powerpc_arch" ;;
99rs6000) targ_archs="bfd_rs6000_arch bfd_powerpc_arch" ;;
100s390*) targ_archs=bfd_s390_arch ;;
101sh*) targ_archs=bfd_sh_arch ;;
102sparc*) targ_archs=bfd_sparc_arch ;;
e9f53129 103spu*) targ_archs=bfd_spu_arch ;;
7d3f158f
AM
104strongarm*) targ_archs=bfd_arm_arch ;;
105thumb*) targ_archs=bfd_arm_arch ;;
106v850*) targ_archs=bfd_v850_arch ;;
99ad8390 107x86_64*) targ_archs=bfd_i386_arch ;;
7d3f158f
AM
108xscale*) targ_archs=bfd_arm_arch ;;
109xtensa*) targ_archs=bfd_xtensa_arch ;;
3c9b82ba 110z80|r800) targ_archs=bfd_z80_arch ;;
7d3f158f 111z8k*) targ_archs=bfd_z8k_arch ;;
7d3f158f 112*) targ_archs=bfd_${targ_cpu}_arch ;;
252b5132
RH
113esac
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.
f15398ef
DJ
120#
121# Keep obsolete entries above the START comment, to keep them out of
122# targmatch.h.
252b5132
RH
123
124case "${targ}" in
f15398ef 125 mips*-dec-bsd*)
279500de
TS
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."
f15398ef
DJ
132 exit 1
133 ;;
134
135 mips*-*-pe*)
279500de 136 echo "This target is obsolete and has been removed."
f15398ef
DJ
137 exit 1
138 ;;
139
ce3c775b
NC
140 plugin)
141 targ_defvec=plugin_vec
142 targ_selvecs="plugin_vec"
143 ;;
144
252b5132
RH
145# START OF targmatch.h
146#ifdef BFD64
13dfd2d0 147 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
4ada7262 148 targ_defvec=bfd_elf64_alpha_freebsd_vec
13285a1b 149 targ_selvecs="bfd_elf64_alpha_vec ecoffalpha_little_vec"
314e9a4e 150 want64=true
4ada7262
DB
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*)
252b5132
RH
158 targ_defvec=bfd_elf64_alpha_vec
159 targ_selvecs=ecoffalpha_little_vec
314e9a4e 160 want64=true
252b5132
RH
161 ;;
162 alpha*-*-netware*)
163 targ_defvec=ecoffalpha_little_vec
164 targ_selvecs=nlm32_alpha_vec
314e9a4e 165 want64=true
252b5132
RH
166 ;;
167 alpha*-*-linuxecoff*)
168 targ_defvec=ecoffalpha_little_vec
169 targ_selvecs=bfd_elf64_alpha_vec
314e9a4e 170 want64=true
252b5132 171 ;;
ed84e695 172 alpha*-*-linux-* | alpha*-*-elf*)
252b5132
RH
173 targ_defvec=bfd_elf64_alpha_vec
174 targ_selvecs=ecoffalpha_little_vec
314e9a4e 175 want64=true
252b5132
RH
176 ;;
177 alpha*-*-*vms*)
178 targ_defvec=vms_alpha_vec
314e9a4e 179 want64=true
252b5132
RH
180 ;;
181 alpha*-*-*)
182 targ_defvec=ecoffalpha_little_vec
314e9a4e 183 want64=true
252b5132 184 ;;
ed84e695 185 ia64*-*-freebsd* | ia64*-*-netbsd* | ia64*-*-linux-* | ia64*-*-elf* | ia64*-*-kfreebsd*-gnu)
800eeca4 186 targ_defvec=bfd_elf64_ia64_little_vec
92dd4511 187 targ_selvecs="bfd_elf64_ia64_big_vec bfd_pei_ia64_vec"
314e9a4e 188 want64=true
800eeca4 189 ;;
bbe66d08 190 ia64*-*-hpux*)
fcf12726
AM
191 targ_defvec=bfd_elf32_ia64_hpux_big_vec
192 targ_selvecs="bfd_elf64_ia64_hpux_big_vec"
314e9a4e 193 want64=true
bbe66d08 194 ;;
01e1a5bc
NC
195 ia64*-*-*vms*)
196 targ_defvec=bfd_elf64_ia64_vms_vec
197 want64=true
198 ;;
71a75f6f
MF
199 sparc64-*-freebsd* | sparc64-*-kfreebsd*-gnu)
200 targ_defvec=bfd_elf64_sparc_freebsd_vec
13285a1b 201 targ_selvecs="bfd_elf64_sparc_vec bfd_elf32_sparc_vec sunos_big_vec"
71a75f6f
MF
202 ;;
203 sparc64-*-netbsd* | sparc64-*-openbsd*)
bc11ab2b
JL
204 targ_defvec=bfd_elf64_sparc_vec
205 targ_selvecs="bfd_elf32_sparc_vec sunos_big_vec"
314e9a4e 206 want64=true
bc11ab2b 207 ;;
252b5132
RH
208#endif /* BFD64 */
209
bfff1642 210 am34-*-linux* | am33_2.0-*-linux*)
73c3cd1c
AO
211 targ_defvec=bfd_elf32_am33lin_vec
212 ;;
bfff1642 213
252b5132
RH
214 arc-*-elf*)
215 targ_defvec=bfd_elf32_littlearc_vec
216 targ_selvecs=bfd_elf32_bigarc_vec
217 ;;
218
658f2588
JT
219 armeb-*-netbsdelf*)
220 targ_defvec=bfd_elf32_bigarm_vec
221 targ_selvecs="bfd_elf32_littlearm_vec armnetbsd_vec"
222 ;;
61d0bc33
AM
223 arm-*-netbsdelf*)
224 targ_defvec=bfd_elf32_littlearm_vec
225 targ_selvecs="bfd_elf32_bigarm_vec armnetbsd_vec"
226 ;;
056a1d49 227 arm-*-netbsd* | arm-*-openbsd*)
021e3cc0 228 targ_defvec=armnetbsd_vec
4a253e81 229 targ_selvecs="bfd_elf32_littlearm_vec bfd_elf32_bigarm_vec"
021e3cc0 230 targ_underscore=yes
d0facd1b 231 targ_cflags=-D__QNXTARGET__
021e3cc0 232 ;;
7e392df6 233 arm-*-nto* | nto*arm*)
b6821651
AM
234 targ_defvec=bfd_elf32_littlearm_vec
235 targ_selvecs=bfd_elf32_bigarm_vec
7e392df6 236 ;;
252b5132
RH
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
d8adc60f 244 targ_cflags=-DARM_COFF_BUGFIX
252b5132 245 ;;
f164edfa 246 arm-wince-pe | arm-*-wince | arm-*-mingw32ce*)
7148cc28
NC
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"
17505c5c 249 targ_underscore=no
ac4b3dd8 250 targ_cflags="-DARM_WINCE -DARM_COFF_BUGFIX"
17505c5c 251 ;;
252b5132
RH
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 ;;
60bcf0fa 257 arm-*-aout | armel-*-aout)
252b5132
RH
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 ;;
ddcfc5fc
NC
270 arm-*-rtems*)
271 targ_defvec=bfd_elf32_littlearm_vec
272 targ_selvecs=bfd_elf32_bigarm_vec
273 ;;
ed84e695 274 armeb-*-elf | arm*b-*-linux-*)
1bde2d57
PB
275 targ_defvec=bfd_elf32_bigarm_vec
276 targ_selvecs=bfd_elf32_littlearm_vec
277 ;;
42b5d0ea
NC
278 arm-*-kaos* | strongarm-*-kaos*)
279 targ_defvec=bfd_elf32_littlearm_vec
280 targ_selvecs=bfd_elf32_bigarm_vec
281 ;;
ed84e695 282 arm-*-elf | arm-*-freebsd* | arm*-*-linux-* | arm*-*-conix* | \
4e7fd91e 283 arm*-*-uclinux* | arm-*-kfreebsd*-gnu | \
e5a52504 284 arm*-*-eabi* )
252b5132
RH
285 targ_defvec=bfd_elf32_littlearm_vec
286 targ_selvecs=bfd_elf32_bigarm_vec
287 ;;
4e7fd91e
PB
288 arm*-*-vxworks | arm*-*-windiss)
289 targ_defvec=bfd_elf32_littlearm_vxworks_vec
290 targ_selvecs=bfd_elf32_bigarm_vxworks_vec
291 ;;
e5a52504
MM
292 arm*-*-symbianelf*)
293 targ_defvec=bfd_elf32_littlearm_symbian_vec
294 targ_selvecs=bfd_elf32_bigarm_symbian_vec
295 ;;
24c603fa
AH
296 arm9e-*-elf)
297 targ_defvec=bfd_elf32_littlearm_vec
298 targ_selvecs=bfd_elf32_bigarm_vec
299 ;;
252b5132
RH
300
301 thumb-*-coff)
302 targ_defvec=armcoff_little_vec
303 targ_selvecs=armcoff_big_vec
304 targ_underscore=yes
305 ;;
252b5132
RH
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 ;;
077b8428
NC
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 ;;
252b5132 338
adde6300
AM
339 avr-*-*)
340 targ_defvec=bfd_elf32_avr_vec
341 ;;
342
0f64bb02
CM
343 bfin-*-*)
344 targ_defvec=bfd_elf32_bfin_vec
48d502e1
BS
345 targ_selvecs=bfd_elf32_bfinfdpic_vec
346 targ_underscore=yes
0f64bb02
CM
347 ;;
348
252b5132
RH
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
efbc813e 356 c4x-*-*coff* | tic4x-*-*coff* | tic4x-*-rtems*)
026df7c5
NC
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
81635ce4
TW
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
3d3d428f
NC
368 cr16-*-elf*)
369 targ_defvec=bfd_elf32_cr16_vec
370 targ_underscore=yes
371 ;;
372
0949843d
NC
373 cr16c-*-elf*)
374 targ_defvec=bfd_elf32_cr16c_vec
375 targ_underscore=yes
376 ;;
377
bac23f82 378 cris-*-* | crisv32-*-*)
06c15ad7 379 targ_defvec=cris_aout_vec
4da81684
HPN
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.
06c15ad7
HPN
382 ;;
383
1fe1f39c
NC
384 crx-*-elf*)
385 targ_defvec=bfd_elf32_crx_vec
386 targ_underscore=yes
387 ;;
388
252b5132
RH
389 d10v-*-*)
390 targ_defvec=bfd_elf32_d10v_vec
391 ;;
392
d172d4ba
NC
393 dlx-*-elf*)
394 targ_defvec=bfd_elf32_dlx_big_vec
395 targ_selvecs="bfd_elf32_dlx_big_vec"
396 ;;
397
252b5132
RH
398 d30v-*-*)
399 targ_defvec=bfd_elf32_d30v_vec
400 ;;
401
ebff6cd5
KH
402 fido-*-elf* )
403 targ_defvec=bfd_elf32_m68k_vec
404 targ_selvecs="m68kcoff_vec ieee_vec"
405 ;;
406
252b5132
RH
407 fr30-*-elf)
408 targ_defvec=bfd_elf32_fr30_vec
409 ;;
410
43850d5b 411 frv-*-elf)
4e5ba5b7 412 targ_defvec=bfd_elf32_frv_vec
43850d5b 413 targ_selvecs=bfd_elf32_frvfdpic_vec
4e5ba5b7
DB
414 ;;
415
43850d5b
AO
416 frv-*-*linux*)
417 targ_defvec=bfd_elf32_frvfdpic_vec
418 targ_selvecs=bfd_elf32_frv_vec
419 ;;
252b5132 420
20135e4c
NC
421 moxie-*-elf)
422 targ_defvec=bfd_elf32_moxie_vec
423 ;;
424
9a813b7a
DJ
425 h8300*-*-rtemscoff*)
426 targ_defvec=h8300coff_vec
427 targ_underscore=yes
428 ;;
429
430 h8300*-*-elf | h8300*-*-rtems*)
e01b0e69
JR
431 targ_defvec=bfd_elf32_h8300_vec
432 targ_underscore=yes
433 ;;
434
252b5132
RH
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
60bcf0fa 445#ifdef BFD64
ed84e695 446 hppa*64*-*-linux-*)
d952f17a
AM
447 targ_defvec=bfd_elf64_hppa_linux_vec
448 targ_selvecs=bfd_elf64_hppa_vec
314e9a4e 449 want64=true
edd21aca 450 ;;
d1dab720 451 hppa*64*-*-hpux11*)
e59db122 452 targ_defvec=bfd_elf64_hppa_vec
d952f17a 453 targ_selvecs=bfd_elf64_hppa_linux_vec
e59db122 454 targ_cflags=-DHPUX_LARGE_AR_IDS
314e9a4e 455 want64=true
e59db122
JL
456 ;;
457#endif
edd21aca 458
ed84e695 459 hppa*-*-linux-*)
d952f17a
AM
460 targ_defvec=bfd_elf32_hppa_linux_vec
461 targ_selvecs=bfd_elf32_hppa_vec
462 ;;
e7fbc2bf
JT
463 hppa*-*-netbsd*)
464 targ_defvec=bfd_elf32_hppa_nbsd_vec
465 targ_selvecs="bfd_elf32_hppa_vec bfd_elf32_hppa_linux_vec"
466 ;;
7e4e2059 467 hppa*-*-*elf* | hppa*-*-lites* | hppa*-*-sysv4* | hppa*-*-openbsd*)
edd21aca 468 targ_defvec=bfd_elf32_hppa_vec
d952f17a 469 targ_selvecs=bfd_elf32_hppa_linux_vec
edd21aca
AM
470 ;;
471
252b5132
RH
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
e59db122 476 ;;
252b5132
RH
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
e59db122 483 ;;
252b5132
RH
484#endif /* defined (HOST_HPPAHPUX) || defined (HOST_HPPABSD) || defined (HOST_HPPAOSF) */
485
7d3f158f 486 i370-*-*)
5b93d8bb
AM
487 targ_defvec=bfd_elf32_i370_vec
488 targ_selvecs="bfd_elf32_i370_vec"
489 ;;
80c7c40a 490 i[3-7]86-*-sco3.2v5*coff)
252b5132
RH
491 targ_defvec=i386coff_vec
492 targ_selvecs=bfd_elf32_i386_vec
493 ;;
d2b2c203 494 i[3-7]86-*-sysv4* | i[3-7]86-*-unixware* | \
80c7c40a
NC
495 i[3-7]86-*-elf | i[3-7]86-*-sco3.2v5* | \
496 i[3-7]86-*-dgux* | i[3-7]86-*-sysv5*)
252b5132
RH
497 targ_defvec=bfd_elf32_i386_vec
498 targ_selvecs=i386coff_vec
499 ;;
d2b2c203
DJ
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
504 want64=true
505 ;;
00b2bfc1
NC
506#ifdef BFD64
507 x86_64-*-solaris2*)
508 targ_defvec=bfd_elf32_i386_vec
509 targ_selvecs="bfd_elf64_x86_64_vec i386coff_vec"
510 want64=true
511 ;;
512#endif
80c7c40a 513 i[3-7]86-*-kaos*)
42b5d0ea
NC
514 targ_defvec=bfd_elf32_i386_vec
515 targ_selvecs=bfd_elf32_i386_vec
516 ;;
80c7c40a 517 i[3-7]86-*-nto*)
b6821651 518 targ_defvec=bfd_elf32_i386_vec
caf47ea6
AM
519 targ_selvecs=i386coff_vec
520 ;;
80c7c40a 521 i[3-7]86-*-aros*)
da896d3f
NC
522 targ_defvec=bfd_elf32_i386_vec
523 ;;
80c7c40a 524 i[3-7]86-*-chorus*)
8848a8d0
CF
525 targ_defvec=bfd_elf32_i386_vec
526 ;;
18c1668c
PA
527 i[3-7]86-*-dicos*)
528 targ_defvec=bfd_elf32_i386_vec
529 targ64_selvecs=bfd_elf64_x86_64_vec
530 ;;
7e4e2059 531 *-*-msdosdjgpp* | *-*-go32* )
252b5132
RH
532 targ_defvec=go32coff_vec
533 targ_selvecs="go32stubbedcoff_vec i386aout_vec"
534 ;;
80c7c40a
NC
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*)
2e9a84c8
RH
537 targ_defvec=i386coff_vec
538 ;;
9f971fcb 539 i[3-7]86-*-rtems*)
d43ded80
PB
540 targ_defvec=bfd_elf32_i386_vec
541 targ_selvecs="i386coff_vec i386aout_vec"
542 ;;
80c7c40a 543 i[3-7]86-*-darwin* | i[3-7]86-*-macos10* | i[3-7]86-*-rhapsody*)
154a1ee5
TG
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"
b1c58715
AM
546 targ_archs="bfd_i386_arch bfd_powerpc_arch bfd_rs6000_arch"
547 ;;
80c7c40a 548 i[3-7]86-sequent-bsd*)
252b5132
RH
549 targ_defvec=i386dynix_vec
550 targ_underscore=yes
551 ;;
80c7c40a 552 i[3-7]86-*-bsd*)
252b5132
RH
553 targ_defvec=i386bsd_vec
554 targ_underscore=yes
555 ;;
80c7c40a
NC
556 i[3-7]86-*-freebsdaout* | i[3-7]86-*-freebsd[12].* | \
557 i[3-7]86-*-freebsd[12])
252b5132
RH
558 targ_defvec=i386freebsd_vec
559 targ_selvecs=i386bsd_vec
560 targ_underscore=yes
561 ;;
0b3e17e9 562 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
4ada7262 563 targ_defvec=bfd_elf32_i386_freebsd_vec
92dd4511
L
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"
4ada7262
DB
566 # FreeBSD <= 4.0 supports only the old nonstandard way of ABI labelling.
567 case "${targ}" in
80c7c40a 568 i[3-7]86-*-freebsd3* | i[3-7]86-*-freebsd4 | i[3-7]86-*-freebsd4.0*)
4ada7262
DB
569 targ_cflags=-DOLD_FREEBSD_ABI_LABEL ;;
570 esac
7a50d4ac 571 ;;
4615568e 572 i[3-7]86-*-netbsdelf* | i[3-7]86-*-netbsd*-gnu* | i[3-7]86-*-knetbsd*-gnu)
0af288f3
C
573 targ_defvec=bfd_elf32_i386_vec
574 targ_selvecs=i386netbsd_vec
c1b954e2 575 targ64_selvecs=bfd_elf64_x86_64_vec
0af288f3 576 ;;
80c7c40a 577 i[3-7]86-*-netbsdpe*)
436e8db0
NC
578 targ_defvec=i386pe_vec
579 targ_selvecs="i386pe_vec i386pei_vec bfd_elf32_i386_vec"
580 ;;
7d1ebfb2
NC
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])
252b5132 583 targ_defvec=i386netbsd_vec
0af288f3 584 targ_selvecs="bfd_elf32_i386_vec i386bsd_vec"
252b5132
RH
585 targ_underscore=yes
586 ;;
7d3f158f 587 i[3-7]86-*-openbsd*)
7d1ebfb2
NC
588 targ_defvec=bfd_elf32_i386_vec
589 targ_selvecs=i386netbsd_vec
590 ;;
80c7c40a 591 i[3-7]86-*-netware*)
252b5132
RH
592 targ_defvec=bfd_elf32_i386_vec
593 targ_selvecs="nlm32_i386_vec i386coff_vec i386aout_vec"
594 ;;
80c7c40a 595 i[3-7]86-*-linux*aout*)
252b5132
RH
596 targ_defvec=i386linux_vec
597 targ_selvecs=bfd_elf32_i386_vec
598 targ_underscore=yes
599 ;;
ed84e695 600 i[3-7]86-*-linux-*)
252b5132 601 targ_defvec=bfd_elf32_i386_vec
92dd4511 602 targ_selvecs="i386linux_vec i386pei_vec"
39a2a3eb 603 targ64_selvecs=bfd_elf64_x86_64_vec
252b5132 604 ;;
956cd1d6 605#ifdef BFD64
f96fc22a
TG
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 ;;
18c1668c
PA
612 x86_64-*-dicos*)
613 targ_defvec=bfd_elf64_x86_64_vec
614 targ_selvecs="bfd_elf32_i386_vec"
615 want64=true
616 ;;
34723071
NC
617 x86_64-*-elf*)
618 targ_defvec=bfd_elf64_x86_64_vec
619 targ_selvecs="bfd_elf32_i386_vec i386coff_vec"
314e9a4e 620 want64=true
34723071 621 ;;
13dfd2d0 622 x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
9d7cbccd 623 targ_defvec=bfd_elf64_x86_64_freebsd_vec
92dd4511 624 targ_selvecs="bfd_elf32_i386_freebsd_vec i386coff_vec i386pei_vec x86_64pei_vec bfd_elf32_i386_vec bfd_elf64_x86_64_vec"
314e9a4e 625 want64=true
8a8b2d4b 626 ;;
85cfd8d3 627 x86_64-*-netbsd* | x86_64-*-openbsd*)
8a8b2d4b 628 targ_defvec=bfd_elf64_x86_64_vec
92dd4511 629 targ_selvecs="bfd_elf32_i386_vec i386netbsd_vec i386coff_vec i386pei_vec x86_64pei_vec"
314e9a4e 630 want64=true
d4af9775 631 ;;
ed84e695 632 x86_64-*-linux-*)
8d88c4ca 633 targ_defvec=bfd_elf64_x86_64_vec
92dd4511 634 targ_selvecs="bfd_elf32_i386_vec i386linux_vec i386pei_vec x86_64pei_vec"
314e9a4e 635 want64=true
8d88c4ca 636 ;;
42037fe5 637 x86_64-*-mingw*)
99ad8390 638 targ_defvec=x86_64pe_vec
170bfeb9 639 targ_selvecs="x86_64pe_vec x86_64pei_vec bfd_elf64_x86_64_vec"
99ad8390
NC
640 want64=true
641 targ_underscore=yes
642 ;;
8d88c4ca 643#endif
80c7c40a 644 i[3-7]86-*-lynxos*)
b2d65c0b
NC
645 targ_defvec=bfd_elf32_i386_vec
646 targ_selvecs="i386lynx_coff_vec i386lynx_aout_vec"
252b5132 647 ;;
80c7c40a 648 i[3-7]86-*-gnu*)
252b5132
RH
649 targ_defvec=bfd_elf32_i386_vec
650 ;;
80c7c40a 651 i[3-7]86-*-mach* | i[3-7]86-*-osf1mk*)
252b5132
RH
652 targ_defvec=i386mach3_vec
653 targ_cflags=-DSTAT_FOR_EXEC
654 targ_underscore=yes
655 ;;
80c7c40a 656 i[3-7]86-*-os9k)
252b5132
RH
657 targ_defvec=i386os9k_vec
658 ;;
80c7c40a 659 i[3-7]86-*-msdos*)
252b5132
RH
660 targ_defvec=i386aout_vec
661 targ_selvecs=i386msdos_vec
662 ;;
80c7c40a 663 i[3-7]86-*-moss*)
252b5132
RH
664 targ_defvec=bfd_elf32_i386_vec
665 targ_selvecs="i386msdos_vec i386aout_vec"
666 ;;
80c7c40a 667 i[3-7]86-*-beospe*)
252b5132
RH
668 targ_defvec=i386pe_vec
669 targ_selvecs="i386pe_vec i386pei_vec"
670 ;;
80c7c40a 671 i[3-7]86-*-beoself* | i[3-7]86-*-beos*)
252b5132
RH
672 targ_defvec=bfd_elf32_i386_vec
673 targ_selvecs="i386pe_vec i386pei_vec"
674 ;;
80c7c40a 675 i[3-7]86-*-interix*)
7d923127
ILT
676 targ_defvec=i386pei_vec
677 targ_selvecs="i386pe_vec"
0717ebb7
ILT
678 # FIXME: This should eventually be checked at runtime.
679 targ_cflags=-DSTRICT_PE_FORMAT
7d923127 680 ;;
b59bea8a
NC
681 i[3-7]86-*-rdos*)
682 targ_defvec=bfd_elf32_i386_vec
683 targ_selvecs=i386coff_vec
684 ;;
80c7c40a 685 i[3-7]86-*-mingw32* | i[3-7]86-*-cygwin* | i[3-7]86-*-winnt | i[3-7]86-*-pe)
252b5132 686 targ_defvec=i386pe_vec
16e9c715 687 targ_selvecs="i386pe_vec i386pei_vec bfd_elf32_i386_vec"
db3d41a8 688 targ_underscore=yes
252b5132 689 ;;
80c7c40a 690 i[3-7]86-none-*)
252b5132
RH
691 targ_defvec=i386coff_vec
692 ;;
80c7c40a 693 i[3-7]86-*-aout* | i[3-7]86*-*-vsta*)
252b5132
RH
694 targ_defvec=i386aout_vec
695 ;;
e26f8bd9 696 i[3-7]86-*-vxworks*)
eac338cf 697 targ_defvec=bfd_elf32_i386_vxworks_vec
957ccf44 698 targ_underscore=yes
ac352105 699 ;;
80c7c40a 700 i[3-7]86-*-chaos)
59ff2774
NC
701 targ_defvec=bfd_elf32_i386_vec
702 targ_selfvecs=i386chaos_vec
703 ;;
252b5132
RH
704
705 i860-*-mach3* | i860-*-osf1* | i860-*-coff*)
706 targ_defvec=i860coff_vec
707 ;;
9d751335
JE
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 ;;
252b5132
RH
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 ;;
0285182b 721 i960-*-vxworks5.* | i960-*-coff* | i960-*-sysv*)
252b5132
RH
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 ;;
b2ef150d
ILT
731 i960-*-elf*)
732 targ_defvec=bfd_elf32_i960_vec
733 targ_selvecs="icoff_little_vec icoff_big_vec"
734 ;;
252b5132 735
cf88bb9f
NC
736 ip2k-*-elf)
737 targ_defvec=bfd_elf32_ip2k_vec
738 ;;
739
a75473eb
SC
740 iq2000-*-elf)
741 targ_defvec=bfd_elf32_iq2000_vec
742 ;;
743
3baa454d 744 lm32-*-elf | lm32-*-rtems*)
84e94c90
NC
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
8a2a2dbb 754 m32c-*-elf | m32c-*-rtems*)
e729279b
NC
755 targ_defvec=bfd_elf32_m32c_vec
756 ;;
757
6edf0760
NC
758 m32r*le-*-linux*)
759 targ_defvec=bfd_elf32_m32rlelin_vec
760 targ_selvecs="bfd_elf32_m32rlin_vec bfd_elf32_m32rlelin_vec"
761 ;;
6edf0760
NC
762 m32r*-*-linux*)
763 targ_defvec=bfd_elf32_m32rlin_vec
764 targ_selvecs="bfd_elf32_m32rlin_vec bfd_elf32_m32rlelin_vec"
765 ;;
6edf0760
NC
766 m32r*le-*-*)
767 targ_defvec=bfd_elf32_m32rle_vec
768 targ_selvecs="bfd_elf32_m32r_vec bfd_elf32_m32rle_vec"
769 ;;
252b5132
RH
770 m32r-*-*)
771 targ_defvec=bfd_elf32_m32r_vec
772 ;;
773
60bcf0fa
NC
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
252b5132
RH
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
f4bda984 792 # We include cisco_core_big_vec here, rather than making a separate cisco
252b5132
RH
793 # configuration, so that cisco-core.c gets routinely tested at
794 # least for compilation.
f4bda984 795 targ_selvecs="cisco_core_big_vec ieee_vec"
252b5132
RH
796 targ_underscore=yes
797 ;;
b50c15dc 798 m68*-*-elf* | m68*-*-sysv4* | m68*-*-uclinux*)
252b5132
RH
799 targ_defvec=bfd_elf32_m68k_vec
800 targ_selvecs="m68kcoff_vec ieee_vec"
801 ;;
2e9a84c8 802 m68*-*-rtems*)
d43ded80 803 targ_defvec=bfd_elf32_m68k_vec
2e9a84c8
RH
804 targ_selvecs="m68kcoff_vec versados_vec ieee_vec aout0_big_vec"
805 ;;
806 m68*-*-coff* | m68*-*-sysv*)
252b5132
RH
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 ;;
ed84e695 819 m68*-*-linux-*)
252b5132
RH
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 ;;
252b5132
RH
828 m68*-hp*-netbsd*)
829 targ_defvec=m68k4knetbsd_vec
830 targ_selvecs="m68knetbsd_vec hp300bsd_vec sunos_big_vec"
831 targ_underscore=yes
832 ;;
7d3f158f 833 m68*-*-netbsdelf*)
0b69cd08
MG
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*)
252b5132
RH
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 ;;
252b5132
RH
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 ;;
a5fd0812 875 m88*-*-openbsd*)
c6f8758f
NC
876 targ_defvec=m88kopenbsd_vec
877 targ_underscore=yes
878 ;;
252b5132
RH
879 m88*-*-*)
880 targ_defvec=m88kbcs_vec
881 targ_underscore=yes
882 ;;
883
7499d566
NC
884 maxq-*-coff)
885 targ_defvec=maxqcoff_vec
886 ;;
887
252b5132
RH
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
d9352518
DB
897 mep-*-elf)
898 targ_defvec=bfd_elf32_mep_vec
899 targ_selvecs=bfd_elf32_mep_little_vec
900 ;;
901
252b5132
RH
902 mips*-big-*)
903 targ_defvec=ecoff_big_vec
904 targ_selvecs=ecoff_little_vec
905 ;;
3cb60568 906 mips*el-*-netbsd*)
aaa2ab3d
NH
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"
252b5132 909 ;;
102ab332 910 mips*-*-netbsd*)
aaa2ab3d
NH
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"
252b5132 913 ;;
252b5132
RH
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 ;;
36b45482 922#ifdef BFD64
252b5132 923 mips*-*-irix6*)
28b94e7c
KB
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"
314e9a4e 926 want64=true
252b5132 927 ;;
36b45482 928#endif
252b5132
RH
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 ;;
252b5132 941 mips*-*-sysv4*)
dd745cfa
UC
942 targ_defvec=bfd_elf32_tradbigmips_vec
943 targ_selvecs="bfd_elf32_tradlittlemips_vec ecoff_big_vec ecoff_little_vec"
252b5132
RH
944 ;;
945 mips*-*-sysv* | mips*-*-riscos*)
946 targ_defvec=ecoff_big_vec
947 targ_selvecs=ecoff_little_vec
948 ;;
0a44bf69
RS
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"
314e9a4e 953 want64=true
0a44bf69
RS
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"
314e9a4e 958 want64=true
0a44bf69
RS
959 ;;
960#endif
4be041b2
TS
961 mips*el-sde-elf*)
962 targ_defvec=bfd_elf32_tradlittlemips_vec
73ca2500 963 targ_selvecs="bfd_elf32_tradbigmips_vec bfd_elf32_ntradbigmips_vec bfd_elf32_ntradlittlemips_vec bfd_elf64_tradbigmips_vec bfd_elf64_tradlittlemips_vec"
4be041b2
TS
964 want64=true
965 ;;
966 mips*-sde-elf*)
967 targ_defvec=bfd_elf32_tradbigmips_vec
73ca2500 968 targ_selvecs="bfd_elf32_tradlittlemips_vec bfd_elf32_ntradbigmips_vec bfd_elf32_ntradlittlemips_vec bfd_elf64_tradbigmips_vec bfd_elf64_tradlittlemips_vec"
4be041b2
TS
969 want64=true
970 ;;
7e4e2059 971 mips*el-*-elf* | mips*el-*-vxworks* | mips*-*-chorus*)
252b5132
RH
972 targ_defvec=bfd_elf32_littlemips_vec
973 targ_selvecs="bfd_elf32_bigmips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec"
974 ;;
257e20bc 975 mips*-*-elf* | mips*-*-rtems* | mips*-*-vxworks | mips*-*-windiss)
252b5132
RH
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 ;;
5f417ca3
MK
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"
314e9a4e 987 want64=true
5f417ca3
MK
988 ;;
989#endif
4008bd9b 990 mips*el-*-openbsd*)
252b5132
RH
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 ;;
fdbafa10 994 mips*-*-openbsd*)
252b5132
RH
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 ;;
36b45482 998#ifdef BFD64
4008bd9b 999 mips64*el-*-linux*)
8a397dad
TS
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"
314e9a4e 1002 want64=true
4008bd9b 1003 ;;
4008bd9b 1004 mips64*-*-linux*)
8a397dad
TS
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"
314e9a4e 1007 want64=true
4008bd9b 1008 ;;
36b45482
TS
1009#endif
1010 mips*el-*-linux*)
1011 targ_defvec=bfd_elf32_tradlittlemips_vec
e9229007 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"
691120ec 1013 want64=true
36b45482 1014 ;;
4008bd9b 1015 mips*-*-linux*)
fdbafa10 1016 targ_defvec=bfd_elf32_tradbigmips_vec
e9229007 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"
691120ec 1018 want64=true
fdbafa10 1019 ;;
3c3bdf30
NC
1020#ifdef BFD64
1021 mmix-*-*)
1022 targ_defvec=bfd_elf64_mmix_vec
1023 targ_selvecs=bfd_mmo_vec
314e9a4e 1024 want64=true
3c3bdf30
NC
1025 ;;
1026#endif
252b5132
RH
1027 mn10200-*-*)
1028 targ_defvec=bfd_elf32_mn10200_vec
1029 ;;
1030
1031 mn10300-*-*)
1032 targ_defvec=bfd_elf32_mn10300_vec
73c3cd1c 1033 targ_underscore=yes
252b5132
RH
1034 ;;
1035
4970f871 1036 mt-*-elf)
d031aafb 1037 targ_defvec=bfd_elf32_mt_vec
de33e640
AH
1038 ;;
1039
2469cfa2
NC
1040 msp430-*-*)
1041 targ_defvec=bfd_elf32_msp430_vec
1042 ;;
1043
252b5132
RH
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
b3baf5d0
NC
1053 openrisc-*-elf)
1054 targ_defvec=bfd_elf32_openrisc_vec
1055 ;;
1056
0285182b 1057 or32-*-coff)
3b16e843
NC
1058 targ_defvec=or32coff_big_vec
1059 targ_underscore=yes
1060 ;;
1061
7e4e2059 1062 or32-*-elf)
3b16e843
NC
1063 targ_defvec=bfd_elf32_or32_big_vec
1064 ;;
1065
e135f41b
NC
1066 pdp11-*-*)
1067 targ_defvec=pdp11_aout_vec
1068 targ_underscore=yes
1069 ;;
1070
0bcb993b
ILT
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
f8fc3443
NC
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
e5231592 1093 powerpc-*-aix[5-9]*)
f8fc3443 1094 targ_cflags=-DAIX_WEAK_SUPPORT
eb1e0e80
NC
1095 targ_defvec=rs6000coff_vec
1096 targ_selvecs="aix5coff64_vec"
1097 want64=true
1098 ;;
8f28b845 1099#ifdef BFD64
e5231592 1100 powerpc64-*-aix[5-9]*)
f8fc3443 1101 targ_cflags=-DAIX_WEAK_SUPPORT
eb1e0e80
NC
1102 targ_defvec=aix5coff64_vec
1103 targ_selvecs="rs6000coff_vec"
1104 want64=true
1105 ;;
680f9d5c 1106#endif
eb1e0e80 1107
4603e845 1108 powerpc-*-aix* | powerpc-*-beos* | rs6000-*-*)
252b5132 1109 targ_defvec=rs6000coff_vec
102ab332
AM
1110 targ64_selvecs=rs6000coff64_vec
1111 case "${targ}" in
7d3f158f 1112 *-*-aix4.[3456789]* | *-*-aix[56789]*)
102ab332 1113 want64=true;;
3e36d993
TR
1114 *)
1115 targ_cflags=-DSMALL_ARCHIVE;;
102ab332 1116 esac
252b5132 1117 ;;
a5ac692b 1118#ifdef BFD64
beb1bf64
TR
1119 powerpc64-*-aix*)
1120 targ_defvec=rs6000coff64_vec
102ab332 1121 targ_selvecs=rs6000coff_vec
314e9a4e 1122 want64=true
beb1bf64 1123 ;;
db4ed121
NC
1124 powerpc64-*-elf* | powerpc-*-elf64* | powerpc64-*-linux* | \
1125 powerpc64-*-*bsd*)
5bd4f169
AM
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"
314e9a4e 1128 want64=true
5bd4f169
AM
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"
314e9a4e 1133 want64=true
5bd4f169 1134 ;;
a5ac692b 1135#endif
252b5132 1136 powerpc-*-*bsd* | powerpc-*-elf* | powerpc-*-sysv4* | powerpc-*-eabi* | \
ed84e695 1137 powerpc-*-solaris2* | powerpc-*-linux-* | powerpc-*-rtems* | \
9d8504b1 1138 powerpc-*-chorus*)
252b5132
RH
1139 targ_defvec=bfd_elf32_powerpc_vec
1140 targ_selvecs="rs6000coff_vec bfd_elf32_powerpcle_vec ppcboot_vec"
5bd4f169 1141 targ64_selvecs="bfd_elf64_powerpc_vec bfd_elf64_powerpcle_vec"
252b5132 1142 ;;
42b5d0ea
NC
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 ;;
b1c58715
AM
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 ;;
14bde378 1153 powerpc-*-macos*)
252b5132
RH
1154 targ_defvec=pmac_xcoff_vec
1155 ;;
b2d65c0b
NC
1156 powerpc-*-lynxos*)
1157 targ_defvec=bfd_elf32_powerpc_vec
1158 targ_selvecs="rs6000coff_vec"
1159 targ_cflags=-DSMALL_ARCHIVE
7d3f158f 1160 ;;
252b5132
RH
1161 powerpc-*-netware*)
1162 targ_defvec=bfd_elf32_powerpc_vec
1163 targ_selvecs="nlm32_powerpc_vec rs6000coff_vec"
1164 ;;
59bc061d 1165 powerpc-*-nto*)
b6821651
AM
1166 targ_defvec=bfd_elf32_powerpc_vec
1167 targ_selvecs="rs6000coff_vec bfd_elf32_powerpcle_vec ppcboot_vec"
59bc061d 1168 ;;
9d8504b1
PB
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 ;;
59bc061d 1174 powerpcle-*-nto*)
b6821651
AM
1175 targ_defvec=bfd_elf32_powerpcle_vec
1176 targ_selvecs="rs6000coff_vec bfd_elf32_powerpc_vec ppcboot_vec"
59bc061d 1177 ;;
252b5132 1178 powerpcle-*-elf* | powerpcle-*-sysv4* | powerpcle-*-eabi* | \
7e4e2059 1179 powerpcle-*-solaris2* | powerpcle-*-linux-* | powerpcle-*-vxworks*)
252b5132
RH
1180 targ_defvec=bfd_elf32_powerpcle_vec
1181 targ_selvecs="rs6000coff_vec bfd_elf32_powerpc_vec ppcboot_vec"
5bd4f169 1182 targ64_selvecs="bfd_elf64_powerpc_vec bfd_elf64_powerpcle_vec"
252b5132 1183 ;;
252b5132
RH
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
a85d7ed0
NC
1189 s390-*-linux*)
1190 targ_defvec=bfd_elf32_s390_vec
f52d1d64 1191 targ64_selvecs=bfd_elf64_s390_vec
06f2f6af 1192 want64=true
a85d7ed0
NC
1193 ;;
1194#ifdef BFD64
1195 s390x-*-linux*)
1196 targ_defvec=bfd_elf64_s390_vec
f52d1d64 1197 targ_selvecs=bfd_elf32_s390_vec
314e9a4e 1198 want64=true
a85d7ed0 1199 ;;
2fbd2a87
NC
1200 s390x-*-tpf*)
1201 targ_defvec=bfd_elf64_s390_vec
314e9a4e 1202 want64=true
2fbd2a87 1203 ;;
a85d7ed0 1204
1c0d3aa6
NC
1205 score*-*-elf*)
1206 targ_defvec=bfd_elf32_bigscore_vec
1207 targ_selvecs=bfd_elf32_littlescore_vec
1208 ;;
1209
7a33bc10
JR
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
314e9a4e 1214 want64=true
7a33bc10 1215 ;;
fbca6ad9
AO
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
314e9a4e 1220 want64=true
fbca6ad9 1221 ;;
629936c5 1222 sh64eb-*-linux*)
efacd36e
SC
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"
314e9a4e 1225 want64=true
629936c5
NC
1226 ;;
1227 sh64-*-linux*)
efacd36e
SC
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"
314e9a4e 1230 want64=true
629936c5 1231 ;;
b129bfef
AO
1232 sh-*-linux*)
1233 targ_defvec=bfd_elf32_shblin_vec
6566b43c
L
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
b129bfef 1236 ;;
6566b43c
L
1237#endif /* BFD64 */
1238
7649aa50
NC
1239 sh*eb-*-linux*)
1240 targ_defvec=bfd_elf32_shblin_vec
019dca2b 1241 targ_selvecs=bfd_elf32_shlin_vec
7649aa50
NC
1242 ;;
1243 sh*-*-linux*)
1244 targ_defvec=bfd_elf32_shlin_vec
019dca2b 1245 targ_selvecs=bfd_elf32_shblin_vec
7649aa50 1246 ;;
b129bfef 1247
ed6ba298
NS
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
5b0e55b6
JT
1256#ifdef BFD64
1257 sh5le-*-netbsd*)
1258 targ_defvec=bfd_elf32_sh64lnbsd_vec
1cddf136 1259 targ_selvecs="bfd_elf32_sh64nbsd_vec bfd_elf64_sh64lnbsd_vec bfd_elf64_sh64nbsd_vec bfd_elf32_shnbsd_vec bfd_elf32_shlnbsd_vec"
314e9a4e 1260 want64=true
5b0e55b6
JT
1261 ;;
1262 sh5-*-netbsd*)
1263 targ_defvec=bfd_elf32_sh64nbsd_vec
1cddf136 1264 targ_selvecs="bfd_elf32_sh64lnbsd_vec bfd_elf64_sh64lnbsd_vec bfd_elf64_sh64nbsd_vec bfd_elf32_shnbsd_vec bfd_elf32_shlnbsd_vec"
314e9a4e 1265 want64=true
5b0e55b6
JT
1266 ;;
1267
1268 sh64le-*-netbsd*)
1269 targ_defvec=bfd_elf64_sh64lnbsd_vec
1cddf136 1270 targ_selvecs="bfd_elf64_sh64nbsd_vec bfd_elf32_sh64lnbsd_vec bfd_elf32_sh64nbsd_vec bfd_elf32_shnbsd_vec bfd_elf32_shlnbsd_vec"
314e9a4e 1271 want64=true
5b0e55b6
JT
1272 ;;
1273 sh64-*-netbsd*)
1274 targ_defvec=bfd_elf64_sh64nbsd_vec
1cddf136 1275 targ_selvecs="bfd_elf64_sh64lnbsd_vec bfd_elf32_sh64lnbsd_vec bfd_elf32_sh64nbsd_vec bfd_elf32_shnbsd_vec bfd_elf32_shlnbsd_vec"
314e9a4e 1276 want64=true
5b0e55b6 1277 ;;
5b0e55b6 1278
cea3d58d 1279 sh*l*-*-netbsdelf*)
2051e1b5 1280 targ_defvec=bfd_elf32_shlnbsd_vec
6566b43c
L
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
2051e1b5 1283 ;;
e58ee0cd
HPN
1284 sh-*-netbsdelf*)
1285 targ_defvec=bfd_elf32_shnbsd_vec
6566b43c
L
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
e58ee0cd 1288 ;;
6566b43c
L
1289#endif
1290
8d05742f
JT
1291 sh*-*-netbsdelf*)
1292 targ_defvec=bfd_elf32_shnbsd_vec
1293 targ_selvecs="bfd_elf32_shlnbsd_vec shcoff_vec shlcoff_vec"
1294 ;;
1a320fbb 1295 sh*-*-symbianelf*)
85fbca6a
NC
1296 targ_defvec=bfd_elf32_shl_symbian_vec
1297 targ_selvecs="shlcoff_vec shlcoff_small_vec"
1298 targ_underscore=yes
7d3f158f 1299 ;;
6566b43c
L
1300
1301#ifdef BFD64
42b5d0ea 1302 shl*-*-elf* | sh[1234]l*-*-elf* | sh3el*-*-elf* | shl*-*-kaos*)
7a33bc10 1303 targ_defvec=bfd_elf32_shl_vec
6566b43c 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"
7a33bc10 1305 targ_underscore=yes
6566b43c 1306 want64=true
7a33bc10 1307 ;;
6566b43c
L
1308#endif
1309
9183ed4b
AM
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 ;;
6566b43c
L
1315
1316#ifdef BFD64
9183ed4b 1317 sh-*-elf* | sh[1234]*-elf* | sh-*-rtems* | sh-*-kaos*)
252b5132 1318 targ_defvec=bfd_elf32_sh_vec
6566b43c 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"
252b5132 1320 targ_underscore=yes
6566b43c 1321 want64=true
252b5132 1322 ;;
6566b43c
L
1323#endif
1324
ed71e111 1325 sh-*-nto*)
b6821651
AM
1326 targ_defvec=bfd_elf32_sh_vec
1327 targ_selvecs="bfd_elf32_shl_vec shcoff_vec shlcoff_vec shcoff_small_vec shlcoff_small_vec"
ed71e111
NC
1328 targ_underscore=yes
1329 ;;
a38b2659
MK
1330 sh*-*-openbsd*)
1331 targ_defvec=bfd_elf32_shlnbsd_vec
1332 targ_selvecs="bfd_elf32_shnbsd_vec shcoff_vec shlcoff_vec"
1333 ;;
17505c5c
NC
1334 sh-*-pe)
1335 targ_defvec=shlpe_vec
1336 targ_selvecs="shlpe_vec shlpei_vec"
1337 targ_underscore=yes
1338 ;;
257e20bc 1339 sh-*-vxworks)
55e6e397
RS
1340 targ_defvec=bfd_elf32_shvxworks_vec
1341 targ_selvecs="bfd_elf32_shlvxworks_vec"
257e20bc
NC
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"
2f964f43 1346 targ_underscore=yes
257e20bc 1347 ;;
9183ed4b 1348 sh-*-*)
252b5132
RH
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 ;;
8848a8d0
CF
1366 sparc*-*-chorus*)
1367 targ_defvec=bfd_elf32_sparc_vec
1368 ;;
252b5132
RH
1369 sparc-*-linux*aout*)
1370 targ_defvec=sparclinux_vec
1371 targ_selvecs="bfd_elf32_sparc_vec sunos_big_vec"
1372 targ_underscore=yes
1373 ;;
7e976ae4 1374 sparc-*-linux-* | sparcv*-*-linux-*)
252b5132 1375 targ_defvec=bfd_elf32_sparc_vec
9d23b7fe 1376 targ_selvecs="sparclinux_vec bfd_elf64_sparc_vec sunos_big_vec"
252b5132 1377 ;;
93be3c4b
AC
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 ;;
49ba19a4 1387 sparc-*-openbsd[0-2].* | sparc-*-openbsd3.[0-1])
252b5132
RH
1388 targ_defvec=sparcnetbsd_vec
1389 targ_underscore=yes
1390 ;;
49ba19a4
NC
1391 sparc-*-openbsd*)
1392 targ_defvec=bfd_elf32_sparc_vec
1393 targ_selvecs=sparcnetbsd_vec
1394 ;;
246c6687 1395 sparc-*-elf* | sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
252b5132
RH
1396 targ_defvec=bfd_elf32_sparc_vec
1397 targ_selvecs=sunos_big_vec
1398 ;;
246c6687
AO
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"
314e9a4e 1403 want64=true
246c6687
AO
1404 ;;
1405#endif
252b5132
RH
1406 sparc-*-sysv4*)
1407 targ_defvec=bfd_elf32_sparc_vec
1408 ;;
910600e9
RS
1409 sparc-*-vxworks*)
1410 targ_defvec=bfd_elf32_sparc_vxworks_vec
1411 targ_selvecs="bfd_elf32_sparc_vec sunos_big_vec"
1412 ;;
252b5132
RH
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
314e9a4e 1421 want64=true
252b5132 1422 ;;
7e976ae4 1423 sparc64*-*-linux-*)
252b5132
RH
1424 targ_defvec=bfd_elf64_sparc_vec
1425 targ_selvecs="bfd_elf32_sparc_vec sparclinux_vec sunos_big_vec"
314e9a4e 1426 want64=true
252b5132
RH
1427 ;;
1428 sparc64-*-elf*)
1429 targ_defvec=bfd_elf64_sparc_vec
1430 targ_selvecs=bfd_elf32_sparc_vec
314e9a4e 1431 want64=true
60bcf0fa 1432 ;;
252b5132
RH
1433#endif /* BFD64 */
1434 sparc*-*-coff*)
1435 targ_defvec=sparccoff_vec
1436 ;;
9f971fcb 1437 sparc*-*-rtems*)
ddcfc5fc
NC
1438 targ_defvec=bfd_elf32_sparc_vec
1439 targ_selvecs="sunos_big_vec sparccoff_vec"
1440 ;;
9f971fcb 1441 sparc*-*-*)
252b5132
RH
1442 targ_defvec=sunos_big_vec
1443 targ_underscore=yes
1444 ;;
1445
e9f53129
AM
1446 spu-*-elf)
1447 targ_defvec=bfd_elf32_spu_vec
78b8434d 1448 want64=true
e9f53129
AM
1449 ;;
1450
252b5132
RH
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
252b5132
RH
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 ;;
252b5132 1472
90ace9e9
JT
1473 vax-*-netbsdelf*)
1474 targ_defvec=bfd_elf32_vax_vec
3c2bfad6 1475 targ_selvecs="vaxnetbsd_vec vax1knetbsd_vec"
90ace9e9
JT
1476 ;;
1477
1478 vax-*-netbsdaout* | vax-*-netbsd*)
1479 targ_defvec=vaxnetbsd_vec
3c2bfad6 1480 targ_selvecs="bfd_elf32_vax_vec vax1knetbsd_vec"
90ace9e9
JT
1481 targ_underscore=yes
1482 ;;
1483
ba26fd96
AM
1484 vax-*-bsd* | vax-*-ultrix*)
1485 targ_defvec=vaxbsd_vec
1486 targ_underscore=yes
1487 ;;
1488
7d1ebfb2
NC
1489 vax-*-openbsd*)
1490 targ_defvec=vaxnetbsd_vec
1491 targ_underscore=yes
1492 ;;
1493
ed84e695 1494 vax-*-linux-*)
f8fc3443
NC
1495 targ_defvec=bfd_elf32_vax_vec
1496 ;;
1497
252b5132
RH
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
93fbbb04
GK
1510 xstormy16-*-elf)
1511 targ_defvec=bfd_elf32_xstormy16_vec
1512 ;;
1513
f8a52b59 1514 xtensa*-*-*)
e0001a05
NC
1515 targ_defvec=bfd_elf32_xtensa_le_vec
1516 targ_selvecs=bfd_elf32_xtensa_be_vec
1517 ;;
d70c5fc7
NC
1518 xc16x-*-elf)
1519 targ_defvec=bfd_elf32_xc16x_vec
1520 ;;
1521
3c9b82ba
NC
1522 z80-*-*)
1523 targ_defvec=z80coff_vec
1524 targ_underscore=no
1525 ;;
1526
252b5132
RH
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 ;;
1556esac
1557
e9e69f5a
AM
1558case "${host64}${want64}" in
1559 *true*)
1560 targ_selvecs="${targ_selvecs} ${targ64_selvecs}"
1561 ;;
1562esac
1563
252b5132
RH
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.
1568case "${targ_defvec} ${targ_selvecs}" in
8a397dad 1569 *bfd_elf64* | *bfd_elf32_n*mips*)
252b5132
RH
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 ;;
1575esac
This page took 0.676864 seconds and 4 git commands to generate.