OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gdb-7.2/] [bfd/] [config.bfd] - Blame information for rev 330

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.