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

Subversion Repositories open8_urisc

[/] [open8_urisc/] [trunk/] [gnu/] [binutils/] [bfd/] [config.bfd] - Blame information for rev 125

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

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

powered by: WebSVN 2.1.0

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