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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [bfd/] [config.bfd] - Blame information for rev 1767

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

Line No. Rev Author Line
1 578 markom
# 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
#  targ_archs           Architectures for this target
9
#  targ_cflags          $(CFLAGS) for this target (FIXME: pretty bogus)
10
#  targ_underscore      Whether underscores are used: yes or no
11
 
12
# Part of this file is processed by targmatch.sed to generate the
13
# targmatch.h file.  The #ifdef and #endif lines that appear below are
14
# copied directly into targmatch.h.
15
 
16
# The binutils c++filt program wants to know whether underscores are
17
# stripped or not.  That is why we set targ_underscore.  c++filt uses
18
# this information to choose a default.  This information is
19
# duplicated in the symbol_leading_char field of the BFD target
20
# vector, but c++filt does not deal with object files and is not
21
# linked against libbfd.a.  It is not terribly important that c++filt
22
# get this right; it is just convenient.
23
 
24
targ_defvec=
25
targ_selvecs=
26
targ_cflags=
27
targ_underscore=no
28
 
29
targ_cpu=`echo $targ | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
30
case "${targ_cpu}" in
31
alpha*) targ_archs=bfd_alpha_arch ;;
32
arm*)   targ_archs=bfd_arm_arch ;;
33
strongarm*) targ_archs=bfd_arm_arch ;;
34
thumb*) targ_archs=bfd_arm_arch ;;
35
xscale*) targ_archs=bfd_arm_arch ;;
36
c30*)   targ_archs=bfd_tic30_arch ;;
37
c54x*)  targ_archs=bfd_tic54x_arch ;;
38
hppa*)  targ_archs=bfd_hppa_arch ;;
39
x86_64) targ_archs=bfd_i386_arch ;;
40
i[3456]86) targ_archs=bfd_i386_arch ;;
41
i370)   targ_archs=bfd_i370_arch ;;
42
m6811*|m68hc11*) targ_archs="bfd_m68hc11_arch bfd_m68hc12_arch" ;;
43
m6812*|m68hc12*) targ_archs="bfd_m68hc12_arch bfd_m68hc11_arch" ;;
44
m68*)   targ_archs=bfd_m68k_arch ;;
45
m88*)   targ_archs=bfd_m88k_arch ;;
46
mips*)  targ_archs=bfd_mips_arch ;;
47
or32*)  targ_archs=bfd_or32_arch ;;
48
or16*)  targ_archs=bfd_or16_arch ;;
49
pdp11*) targ_archs=bfd_pdp11_arch ;;
50
pj*)    targ_archs="bfd_pj_arch bfd_i386_arch";;
51
powerpc*) targ_archs="bfd_rs6000_arch bfd_powerpc_arch" ;;
52
s390*)  targ_archs=bfd_s390_arch ;;
53
rs6000) targ_archs="bfd_rs6000_arch bfd_powerpc_arch" ;;
54
sparc*) targ_archs=bfd_sparc_arch ;;
55
v850*)  targ_archs=bfd_v850_arch ;;
56
z8k*)   targ_archs=bfd_z8k_arch ;;
57
*)      targ_archs=bfd_${targ_cpu}_arch ;;
58
esac
59
 
60
 
61
# WHEN ADDING ENTRIES TO THIS MATRIX:
62
#  Make sure that the left side always has two dashes.  Otherwise you
63
#  can get spurious matches.  Even for unambiguous cases, do this as a
64
#  convention, else the table becomes a real mess to understand and maintain.
65
 
66
case "${targ}" in
67
# START OF targmatch.h
68
#ifdef BFD64
69
  alpha*-*-netbsd* | alpha*-*-freebsd*)
70
    targ_defvec=bfd_elf64_alpha_vec
71
    targ_selvecs=ecoffalpha_little_vec
72
    ;;
73
  alpha*-*-netware*)
74
    targ_defvec=ecoffalpha_little_vec
75
    targ_selvecs=nlm32_alpha_vec
76
    ;;
77
  alpha*-*-linuxecoff*)
78
    targ_defvec=ecoffalpha_little_vec
79
    targ_selvecs=bfd_elf64_alpha_vec
80
    ;;
81
  alpha*-*-linux-gnu* | alpha*-*-elf*)
82
    targ_defvec=bfd_elf64_alpha_vec
83
    targ_selvecs=ecoffalpha_little_vec
84
    ;;
85
  alpha*-*-*vms*)
86
    targ_defvec=vms_alpha_vec
87
    ;;
88
  alpha*-*-*)
89
    targ_defvec=ecoffalpha_little_vec
90
    ;;
91
  ia64*-*-aix*)
92
    targ_defvec=bfd_elf64_ia64_aix_little_vec
93
    targ_selvecs="bfd_elf64_ia64_aix_big_vec bfd_efi_app_ia64_vec"
94
    ;;
95
  ia64*-*-freebsd* | ia64*-*-linux-gnu* | ia64*-*-elf*)
96
    targ_defvec=bfd_elf64_ia64_little_vec
97
    targ_selvecs="bfd_elf64_ia64_big_vec bfd_efi_app_ia64_vec"
98
    ;;
99
  ia64*-*-hpux*)
100
    targ_defvec=bfd_elf64_ia64_big_vec
101
    targ_selvecs="bfd_elf32_ia64_big_vec"
102
    ;;
103
  sparc64-*-freebsd* | sparc64-*-netbsd*)
104
    targ_defvec=bfd_elf64_sparc_vec
105
    targ_selvecs="bfd_elf32_sparc_vec sunos_big_vec"
106
    ;;
107
#endif /* BFD64 */
108
 
109
  arc-*-elf*)
110
    targ_defvec=bfd_elf32_littlearc_vec
111
    targ_selvecs=bfd_elf32_bigarc_vec
112
    ;;
113
 
114
  arm-*-netbsd*)
115
    targ_defvec=armnetbsd_vec
116
    targ_underscore=yes
117
    ;;
118
  arm-*-riscix*)
119
    targ_defvec=riscix_vec
120
    ;;
121
  arm-epoc-pe*)
122
    targ_defvec=arm_epoc_pe_little_vec
123
    targ_selvecs="arm_epoc_pe_little_vec arm_epoc_pe_big_vec arm_epoc_pei_little_vec arm_epoc_pei_big_vec"
124
    targ_underscore=no
125
    ;;
126
  arm-wince-pe | arm-*-wince)
127
    targ_defvec=armpe_little_vec
128
    targ_selvecs="armpe_little_vec armpe_big_vec armpei_little_vec armpei_big_vec"
129
    targ_underscore=no
130
    targ_cflags=-DARM_WINCE
131
    ;;
132
  arm-*-pe*)
133
    targ_defvec=armpe_little_vec
134
    targ_selvecs="armpe_little_vec armpe_big_vec armpei_little_vec armpei_big_vec"
135
    targ_underscore=yes
136
    ;;
137
  arm-*-aout | armel-*-aout)
138
    targ_defvec=aout_arm_little_vec
139
    targ_selvecs=aout_arm_big_vec
140
    ;;
141
  armeb-*-aout)
142
    targ_defvec=aout_arm_big_vec
143
    targ_selvecs=aout_arm_little_vec
144
    ;;
145
  arm-*-vxworks*)
146
    targ_defvec=armcoff_little_vec
147
    targ_selvecs=armcoff_big_vec
148
    targ_underscore=yes
149
    targ_cflags=-DVXWORKS
150
    ;;
151
  arm-*-coff)
152
    targ_defvec=armcoff_little_vec
153
    targ_selvecs=armcoff_big_vec
154
    targ_underscore=yes
155
    ;;
156
  arm-*-rtems*)
157
    targ_defvec=bfd_elf32_littlearm_vec
158
    targ_selvecs=bfd_elf32_bigarm_vec
159
    ;;
160
  armeb-*-elf | arm*b-*-linux-gnu*)
161
    targ_defvec=bfd_elf32_bigarm_vec
162
    targ_selvecs=bfd_elf32_littlearm_vec
163
    ;;
164
  arm-*-elf | arm-*-freebsd* | arm*-*-linux-gnu* | arm*-*-conix* | arm*-*-uclinux*)
165
    targ_defvec=bfd_elf32_littlearm_vec
166
    targ_selvecs=bfd_elf32_bigarm_vec
167
    ;;
168
  arm-*-oabi)
169
    targ_defvec=bfd_elf32_littlearm_oabi_vec
170
    targ_selvecs=bfd_elf32_bigarm_oabi_vec
171
    ;;
172
 
173
  thumb-*-coff)
174
    targ_defvec=armcoff_little_vec
175
    targ_selvecs=armcoff_big_vec
176
    targ_underscore=yes
177
    ;;
178
  thumb-*-oabi)
179
    targ_defvec=bfd_elf32_littlearm_oabi_vec
180
    targ_selvecs=bfd_elf32_bigarm_oabi_vec
181
    ;;
182
  thumb-*-elf)
183
    targ_defvec=bfd_elf32_littlearm_vec
184
    targ_selvecs=bfd_elf32_bigarm_vec
185
    ;;
186
  thumb-epoc-pe*)
187
    targ_defvec=arm_epoc_pe_little_vec
188
    targ_selvecs="arm_epoc_pe_little_vec arm_epoc_pe_big_vec arm_epoc_pei_little_vec arm_epoc_pei_big_vec"
189
    targ_underscore=no
190
    ;;
191
  thumb-*-pe*)
192
    targ_defvec=armpe_little_vec
193
    targ_selvecs="armpe_little_vec armpe_big_vec armpei_little_vec armpei_big_vec"
194
    targ_underscore=yes
195
    ;;
196
  strongarm-*-elf)
197
    targ_defvec=bfd_elf32_littlearm_vec
198
    targ_selvecs=bfd_elf32_bigarm_vec
199
    ;;
200
  strongarm-*-coff)
201
    targ_defvec=armcoff_little_vec
202
    targ_selvecs=armcoff_big_vec
203
    targ_underscore=yes
204
    ;;
205
  xscale-*-elf)
206
    targ_defvec=bfd_elf32_littlearm_vec
207
    targ_selvecs=bfd_elf32_bigarm_vec
208
    ;;
209
  xscale-*-coff)
210
    targ_defvec=armcoff_little_vec
211
    targ_selvecs=armcoff_big_vec
212
    targ_underscore=yes
213
    ;;
214
 
215
  a29k-*-ebmon* | a29k-*-udi* | a29k-*-coff* | a29k-*-sym1* | \
216
  a29k-*-vxworks* | a29k-*-sysv* | a29k-*rtems*)
217
    targ_defvec=a29kcoff_big_vec
218
    targ_selvecs=sunos_big_vec
219
    targ_underscore=yes
220
    ;;
221
  a29k-*-aout* | a29k-*-bsd* | a29k-*-vsta*)
222
    targ_defvec=sunos_big_vec
223
    targ_underscore=yes
224
    ;;
225
 
226
  avr-*-*)
227
    targ_defvec=bfd_elf32_avr_vec
228
    ;;
229
 
230
  c30-*-*aout* | tic30-*-*aout*)
231
    targ_defvec=tic30_aout_vec
232
    ;;
233
  c30-*-*coff* | tic30-*-*coff*)
234
    targ_defvec=tic30_coff_vec
235
    ;;
236
 
237
  c54x*-*-*coff* | tic54x-*-*coff*)
238
    targ_defvec=tic54x_coff1_vec
239
    targ_selvecs="tic54x_coff1_beh_vec tic54x_coff2_vec tic54x_coff2_beh_vec tic54x_coff0_vec tic54x_coff0_beh_vec"
240
    targ_underscore=yes
241
    ;;
242
 
243
  cris-*-*)
244
    targ_defvec=cris_aout_vec
245
    targ_selvecs="bfd_elf32_us_cris_vec bfd_elf32_cris_vec ieee_vec"
246
    targ_underscore=yes # Note: not true for bfd_elf32_cris_vec.
247
    ;;
248
 
249
  d10v-*-*)
250
    targ_defvec=bfd_elf32_d10v_vec
251
    ;;
252
 
253
  d30v-*-*)
254
    targ_defvec=bfd_elf32_d30v_vec
255
    ;;
256
 
257
  fr30-*-elf)
258
    targ_defvec=bfd_elf32_fr30_vec
259
    ;;
260
 
261
 
262
  h8300*-*-*)
263
    targ_defvec=h8300coff_vec
264
    targ_underscore=yes
265
    ;;
266
 
267
  h8500-*-*)
268
    targ_defvec=h8500coff_vec
269
    targ_underscore=yes
270
    ;;
271
 
272
#ifdef BFD64
273
  hppa*64*-*-linux-gnu*)
274
    targ_defvec=bfd_elf64_hppa_linux_vec
275
    targ_selvecs=bfd_elf64_hppa_vec
276
    ;;
277
  hppa*64*-*-hpux11*)
278
    targ_defvec=bfd_elf64_hppa_vec
279
    targ_selvecs=bfd_elf64_hppa_linux_vec
280
    targ_cflags=-DHPUX_LARGE_AR_IDS
281
    ;;
282
#endif
283
 
284
  hppa*-*-linux-gnu*)
285
    targ_defvec=bfd_elf32_hppa_linux_vec
286
    targ_selvecs=bfd_elf32_hppa_vec
287
    ;;
288
  hppa*-*-*elf* | hppa*-*-lites* | hppa*-*-sysv4* | hppa*-*-rtems*)
289
    targ_defvec=bfd_elf32_hppa_vec
290
    targ_selvecs=bfd_elf32_hppa_linux_vec
291
    ;;
292
 
293
#if defined (HOST_HPPAHPUX) || defined (HOST_HPPABSD) || defined (HOST_HPPAOSF) || defined (HOST_HPPAMPEIX)
294
  hppa*-*-bsd*)
295
    targ_defvec=som_vec
296
    targ_selvecs=bfd_elf32_hppa_vec
297
    ;;
298
  hppa*-*-hpux* | hppa*-*-hiux* | hppa*-*-mpeix*)
299
    targ_defvec=som_vec
300
    ;;
301
  hppa*-*-osf*)
302
    targ_defvec=som_vec
303
    targ_selvecs=bfd_elf32_hppa_vec
304
    ;;
305
#endif /* defined (HOST_HPPAHPUX) || defined (HOST_HPPABSD) || defined (HOST_HPPAOSF) */
306
 
307
  i370-*-*)
308
    targ_defvec=bfd_elf32_i370_vec
309
    targ_selvecs="bfd_elf32_i370_vec"
310
    ;;
311
  i[3456]86-*-sco3.2v5*coff)
312
    targ_defvec=i386coff_vec
313
    targ_selvecs=bfd_elf32_i386_vec
314
    ;;
315
  i[3456]86-*-sysv4* | i[3456]86-*-unixware* | i[3456]86-*-solaris2* | \
316
  i[3456]86-*-elf | i[3456]86-*-sco3.2v5* | \
317
  i[3456]86-*-dgux* | i[3456]86-*-sysv5*)
318
    targ_defvec=bfd_elf32_i386_vec
319
    targ_selvecs=i386coff_vec
320
    ;;
321
  i[3456]86-*-rtemself*)
322
    targ_defvec=bfd_elf32_i386_vec
323
    targ_selvecs="i386coff_vec i386aout_vec"
324
    ;;
325
  i[3456]86-*-chorus*)
326
    targ_defvec=bfd_elf32_i386_vec
327
    ;;
328
  i[3456]86-*-msdosdjgpp* | i[3456]*-*-go32* | i[3456]86-go32-rtems* )
329
    targ_defvec=go32coff_vec
330
    targ_selvecs="go32stubbedcoff_vec i386aout_vec"
331
    ;;
332
  i[3456]86-*-sysv* | i[3456]86-*-isc* | i[3456]86-*-sco* | i[3456]86-*-coff | \
333
  i[3456]86-*-aix*)
334
    targ_defvec=i386coff_vec
335
    ;;
336
  i[3456]86*-*-rtems*)
337
    targ_defvec=i386coff_vec
338
    targ_selvecs="bfd_elf32_i386_vec i386aout_vec"
339
    ;;
340
 i[3456]86-sequent-bsd*)
341
    targ_defvec=i386dynix_vec
342
    targ_underscore=yes
343
    ;;
344
  i[3456]86-*-bsd*)
345
    targ_defvec=i386bsd_vec
346
    targ_underscore=yes
347
    ;;
348
  i[3456]86-*-freebsdaout* | i[3456]86-*-freebsd[12].* | \
349
  i[3456]86-*-freebsd[12])
350
    targ_defvec=i386freebsd_vec
351
    targ_selvecs=i386bsd_vec
352
    targ_underscore=yes
353
    ;;
354
  i[3456]86-*-freebsd*)
355
    targ_defvec=bfd_elf32_i386_vec
356
    targ_selvecs=i386coff_vec
357
    ;;
358
  i[3456]86-*-netbsdelf*)
359
    targ_defvec=bfd_elf32_i386_vec
360
    targ_selvecs=i386netbsd_vec
361
    ;;
362
  i[3456]86-*-netbsdaout* | i[3456]86-*-netbsd* | i[3456]86-*-openbsd*)
363
    targ_defvec=i386netbsd_vec
364
    targ_selvecs="bfd_elf32_i386_vec i386bsd_vec"
365
    targ_underscore=yes
366
    ;;
367
  i[3456]86-*-netware*)
368
    targ_defvec=bfd_elf32_i386_vec
369
    targ_selvecs="nlm32_i386_vec i386coff_vec i386aout_vec"
370
    ;;
371
  i[3456]86-*-linux*aout*)
372
    targ_defvec=i386linux_vec
373
    targ_selvecs=bfd_elf32_i386_vec
374
    targ_underscore=yes
375
    ;;
376
  i[3456]86-*-linux-gnu*)
377
    targ_defvec=bfd_elf32_i386_vec
378
    targ_selvecs="i386linux_vec bfd_efi_app_ia32_vec"
379
    ;;
380
#ifdef BFD64
381
  x86_64-*-freebsd*)
382
    targ_defvec=bfd_elf64_x86_64_vec
383
    targ_selvecs="bfd_elf32_i386_vec i386coff_vec bfd_efi_app_ia32_vec"
384
    ;;
385
  x86_64-*-linux-gnu*)
386
    targ_defvec=bfd_elf64_x86_64_vec
387
    targ_selvecs="bfd_elf32_i386_vec i386linux_vec bfd_efi_app_ia32_vec"
388
    ;;
389
#endif
390
  i[3456]86-*-lynxos*)
391
    targ_defvec=i386lynx_coff_vec
392
    targ_selvecs=i386lynx_aout_vec
393
    ;;
394
  i[3456]86-*-gnu*)
395
    targ_defvec=bfd_elf32_i386_vec
396
    ;;
397
  i[3456]86-*-mach* | i[3456]86-*-osf1mk*)
398
    targ_defvec=i386mach3_vec
399
    targ_cflags=-DSTAT_FOR_EXEC
400
    targ_underscore=yes
401
    ;;
402
  i[3456]86-*-os9k)
403
    targ_defvec=i386os9k_vec
404
    ;;
405
  i[3456]86-*-msdos*)
406
    targ_defvec=i386aout_vec
407
    targ_selvecs=i386msdos_vec
408
    ;;
409
  i[3456]86-*-moss*)
410
    targ_defvec=bfd_elf32_i386_vec
411
    targ_selvecs="i386msdos_vec i386aout_vec"
412
    ;;
413
  i[3456]86-*-beospe*)
414
    targ_defvec=i386pe_vec
415
    targ_selvecs="i386pe_vec i386pei_vec"
416
    ;;
417
  i[3456]86-*-beoself* | i[3456]86-*-beos*)
418
    targ_defvec=bfd_elf32_i386_vec
419
    targ_selvecs="i386pe_vec i386pei_vec"
420
    ;;
421
  i[3456]86-*-interix*)
422
    targ_defvec=i386pei_vec
423
    targ_selvecs="i386pe_vec"
424
    # FIXME: This should eventually be checked at runtime.
425
    targ_cflags=-DSTRICT_PE_FORMAT
426
    ;;
427
  i[3456]86-*-mingw32* | i[3456]86-*-cygwin* | i[3456]86-*-winnt | i[3456]86-*-pe)
428
    targ_defvec=i386pe_vec
429
    targ_selvecs="i386pe_vec i386pei_vec bfd_elf32_i386_vec"
430
    ;;
431
  i[3456]86-none-*)
432
    targ_defvec=i386coff_vec
433
    ;;
434
  i[3456]86-*-aout* | i[3456]86*-*-vsta*)
435
    targ_defvec=i386aout_vec
436
    ;;
437
  i[3456]86-*-vxworks*)
438
    targ_defvec=i386aout_vec
439
    targ_underscore=yes
440
    ;;
441
  i[3456]86-*-chaos)
442
    targ_defvec=bfd_elf32_i386_vec
443
    targ_selfvecs=i386chaos_vec
444
    ;;
445
 
446
  i860-*-mach3* | i860-*-osf1* | i860-*-coff*)
447
    targ_defvec=i860coff_vec
448
    ;;
449
  i860-stardent-sysv4* | i860-stardent-elf*)
450
    targ_defvec=bfd_elf32_i860_little_vec
451
    targ_selvecs="bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
452
    ;;
453
  i860-*-sysv4* | i860-*-elf*)
454
    targ_defvec=bfd_elf32_i860_vec
455
    ;;
456
 
457
  i960-*-vxworks4* | i960-*-vxworks5.0)
458
    targ_defvec=b_out_vec_little_host
459
    targ_selvecs="b_out_vec_big_host icoff_little_vec icoff_big_vec ieee_vec"
460
    targ_underscore=yes
461
    ;;
462
  i960-*-vxworks5.* | i960-*-coff* | i960-*-sysv* | i960-*-rtems*)
463
    targ_defvec=icoff_little_vec
464
    targ_selvecs="icoff_big_vec b_out_vec_little_host b_out_vec_big_host ieee_vec"
465
    targ_underscore=yes
466
    ;;
467
  i960-*-vxworks* | i960-*-aout* | i960-*-bout* | i960-*-nindy*)
468
    targ_defvec=b_out_vec_little_host
469
    targ_selvecs="b_out_vec_big_host icoff_little_vec icoff_big_vec ieee_vec"
470
    targ_underscore=yes
471
    ;;
472
  i960-*-elf*)
473
    targ_defvec=bfd_elf32_i960_vec
474
    targ_selvecs="icoff_little_vec icoff_big_vec"
475
    ;;
476
 
477
  m32r-*-*)
478
    targ_defvec=bfd_elf32_m32r_vec
479
    ;;
480
 
481
  m68hc11-*-* | m6811-*-*)
482
    targ_defvec=bfd_elf32_m68hc11_vec
483
    targ_selvecs="bfd_elf32_m68hc11_vec bfd_elf32_m68hc12_vec"
484
    ;;
485
  m68hc12-*-* | m6812-*-*)
486
    targ_defvec=bfd_elf32_m68hc12_vec
487
    targ_selvecs="bfd_elf32_m68hc11_vec bfd_elf32_m68hc12_vec"
488
    ;;
489
 
490
  m68*-apollo-*)
491
    targ_defvec=apollocoff_vec
492
    ;;
493
  m68*-bull-sysv*)
494
    targ_defvec=m68kcoffun_vec
495
    targ_underscore=yes
496
    ;;
497
  m68*-motorola-sysv*)
498
    targ_defvec=m68ksysvcoff_vec
499
    ;;
500
  m68*-hp-bsd*)
501
    targ_defvec=hp300bsd_vec
502
    targ_underscore=yes
503
    ;;
504
  m68*-*-aout*)
505
    targ_defvec=aout0_big_vec
506
    # We include cisco_core_big_vec here, rather than making a separate cisco
507
    # configuration, so that cisco-core.c gets routinely tested at
508
    # least for compilation.
509
    targ_selvecs="cisco_core_big_vec ieee_vec"
510
    targ_underscore=yes
511
    ;;
512
  m68*-*-elf* | m68*-*-sysv4*)
513
    targ_defvec=bfd_elf32_m68k_vec
514
    targ_selvecs="m68kcoff_vec ieee_vec"
515
    ;;
516
  m68*-*-rtems*)
517
    targ_defvec=m68kcoff_vec
518
    targ_selvecs="m68kcoff_vec versados_vec ieee_vec aout0_big_vec"
519
    ;;
520
  m68*-*-coff* | m68*-*-sysv*)
521
    targ_defvec=m68kcoff_vec
522
    targ_selvecs="m68kcoff_vec versados_vec ieee_vec"
523
    ;;
524
  m68*-*-hpux*)
525
    targ_defvec=hp300hpux_vec
526
    targ_underscore=yes
527
    ;;
528
  m68*-*-linux*aout*)
529
    targ_defvec=m68klinux_vec
530
    targ_selvecs=bfd_elf32_m68k_vec
531
    targ_underscore=yes
532
    ;;
533
  m68*-*-linux-gnu*)
534
    targ_defvec=bfd_elf32_m68k_vec
535
    targ_selvecs=m68klinux_vec
536
    ;;
537
  m68*-*-gnu*)
538
    targ_defvec=bfd_elf32_m68k_vec
539
    # targ_selvecs=m68kmach3_vec
540
    # targ_cflags=-DSTAT_FOR_EXEC
541
    ;;
542
  m68*-*-lynxos*)
543
    targ_defvec=m68klynx_coff_vec
544
    targ_selvecs=m68klynx_aout_vec
545
    ;;
546
  m68*-hp*-netbsd*)
547
    targ_defvec=m68k4knetbsd_vec
548
    targ_selvecs="m68knetbsd_vec hp300bsd_vec sunos_big_vec"
549
    targ_underscore=yes
550
    ;;
551
  m68*-*-netbsd* | m68*-*-openbsd*)
552
    targ_defvec=m68knetbsd_vec
553
    targ_selvecs="m68k4knetbsd_vec hp300bsd_vec sunos_big_vec"
554
    targ_underscore=yes
555
    ;;
556
  m68*-*-sunos* | m68*-*-os68k* | m68*-*-vxworks* | m68*-netx-* | \
557
  m68*-*-bsd* | m68*-*-vsta*)
558
    targ_defvec=sunos_big_vec
559
    targ_underscore=yes
560
    ;;
561
  m68*-ericsson-*)
562
    targ_defvec=sunos_big_vec
563
    targ_selvecs="m68kcoff_vec versados_vec tekhex_vec"
564
    targ_underscore=yes
565
    ;;
566
  m68*-cbm-*)
567
    targ_defvec=bfd_elf32_m68k_vec
568
    targ_selvecs=m68kcoff_vec
569
    ;;
570
  m68*-apple-aux*)
571
    targ_defvec=m68kaux_coff_vec
572
    ;;
573
  m68*-*-psos*)
574
    targ_defvec=bfd_elf32_m68k_vec
575
    targ_selvecs=ieee_vec
576
    targ_underscore=yes
577
    ;;
578
 
579
  m88*-harris-cxux* | m88*-*-dgux* | m88*-*-sysv4*)
580
    targ_defvec=bfd_elf32_m88k_vec
581
    targ_selvecs=m88kbcs_vec
582
    ;;
583
  m88*-*-mach3*)
584
    targ_defvec=m88kmach3_vec
585
    targ_cflags=-DSTAT_FOR_EXEC
586
    ;;
587
  m88*-*-*)
588
    targ_defvec=m88kbcs_vec
589
    targ_underscore=yes
590
    ;;
591
 
592
  mcore-*-elf)
593
    targ_defvec=bfd_elf32_mcore_big_vec
594
    targ_selvecs="bfd_elf32_mcore_big_vec bfd_elf32_mcore_little_vec"
595
    ;;
596
  mcore-*-pe)
597
    targ_defvec=mcore_pe_big_vec
598
    targ_selvecs="mcore_pe_big_vec mcore_pe_little_vec mcore_pei_big_vec mcore_pei_little_vec"
599
    ;;
600
 
601
  mips*-big-*)
602
    targ_defvec=ecoff_big_vec
603
    targ_selvecs=ecoff_little_vec
604
    ;;
605
  mips-dec-netbsd* | mips*el*-*-netbsd*)
606
    targ_defvec=bfd_elf32_littlemips_vec
607
    targ_selvecs="bfd_elf32_bigmips_vec ecoff_little_vec ecoff_big_vec"
608
    ;;
609
 mips*-*-netbsd*)
610
    targ_defvec=bfd_elf32_bigmips_vec
611
    targ_selvecs="bfd_elf32_littlemips_vec ecoff_big_vec ecoff_little_vec"
612
    ;;
613
  mips*-dec-bsd*)
614
    targ_defvec=aout_mips_little_vec
615
    targ_underscore=yes
616
    ;;
617
  mips*-dec-mach3*)
618
    targ_defvec=aout_mips_little_vec
619
    targ_cflags=-DSTAT_FOR_EXEC
620
    ;;
621
  mips*-dec-* | mips*el-*-ecoff*)
622
    targ_defvec=ecoff_little_vec
623
    targ_selvecs=ecoff_big_vec
624
    ;;
625
  mips*-*-ecoff*)
626
    targ_defvec=ecoff_big_vec
627
    targ_selvecs=ecoff_little_vec
628
    ;;
629
  mips*-*-irix6*)
630
    targ_defvec=bfd_elf32_bigmips_vec
631
    targ_selvecs="bfd_elf32_littlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec"
632
    ;;
633
  mips*-*-irix5*)
634
    targ_defvec=bfd_elf32_bigmips_vec
635
    targ_selvecs="bfd_elf32_littlemips_vec ecoff_big_vec ecoff_little_vec"
636
    ;;
637
  mips*-sgi-* | mips*-*-bsd*)
638
    targ_defvec=ecoff_big_vec
639
    targ_selvecs=ecoff_little_vec
640
    ;;
641
  mips*-*-lnews*)
642
    targ_defvec=ecoff_biglittle_vec
643
    targ_selvecs="ecoff_little_vec ecoff_big_vec"
644
    ;;
645
  mips*-*-mach3*)
646
    targ_defvec=aout_mips_little_vec
647
    targ_cflags=-DSTAT_FOR_EXEC
648
    ;;
649
  mips*-*-pe*)
650
    targ_defvec=mipslpe_vec
651
    targ_selvecs="mipslpei_vec mipslpei_vec ecoff_little_vec ecoff_big_vec"
652
    targ_underscore=yes
653
    ;;
654
  mips*-*-sysv4*)
655
    targ_defvec=bfd_elf32_tradbigmips_vec
656
    targ_selvecs="bfd_elf32_tradlittlemips_vec ecoff_big_vec ecoff_little_vec"
657
    ;;
658
  mips*-*-sysv* | mips*-*-riscos*)
659
    targ_defvec=ecoff_big_vec
660
    targ_selvecs=ecoff_little_vec
661
    ;;
662
  mips*el-*-elf* | mips*el-*-rtems* | mips*el-*-vxworks* | mips*-*-chorus*)
663
    targ_defvec=bfd_elf32_littlemips_vec
664
    targ_selvecs="bfd_elf32_bigmips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec"
665
    ;;
666
  mips*-*-elf* | mips*-*-rtems* | mips*-*-vxworks*)
667
    targ_defvec=bfd_elf32_bigmips_vec
668
    targ_selvecs="bfd_elf32_littlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec"
669
    ;;
670
  mips*-*-none)
671
    targ_defvec=bfd_elf32_bigmips_vec
672
    targ_selvecs="bfd_elf32_littlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec"
673
    ;;
674
  mips*el*-*-openbsd*)
675
    targ_defvec=bfd_elf32_littlemips_vec
676
    targ_selvecs="bfd_elf32_bigmips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec ecoff_little_vec ecoff_big_vec"
677
    ;;
678
  mips*el*-*-linux-gnu*)
679
    targ_defvec=bfd_elf32_tradlittlemips_vec
680
    targ_selvecs="bfd_elf32_tradbigmips_vec bfd_elf64_tradlittlemips_vec bfd_elf64_tradbigmips_vec ecoff_little_vec ecoff_big_vec"
681
    ;;
682
  mips*-*-openbsd*)
683
    targ_defvec=bfd_elf32_bigmips_vec
684
    targ_selvecs="bfd_elf32_littlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec ecoff_big_vec ecoff_little_vec"
685
    ;;
686
  mips*-*-linux-gnu*)
687
    targ_defvec=bfd_elf32_tradbigmips_vec
688
    targ_selvecs="bfd_elf32_tradlittlemips_vec bfd_elf64_tradbigmips_vec bfd_elf64_tradlittlemips_vec ecoff_big_vec ecoff_little_vec"
689
    ;;
690
  mn10200-*-*)
691
    targ_defvec=bfd_elf32_mn10200_vec
692
    ;;
693
 
694
  mn10300-*-*)
695
    targ_defvec=bfd_elf32_mn10300_vec
696
    ;;
697
 
698
  ns32k-pc532-mach* | ns32k-pc532-ux*)
699
    targ_defvec=pc532machaout_vec
700
    targ_underscore=yes
701
    ;;
702
  ns32k-*-netbsd* | ns32k-*-lites* | ns32k-*-openbsd*)
703
    targ_defvec=pc532netbsd_vec
704
    targ_underscore=yes
705
    ;;
706
 
707
  openrisc-*-elf)
708
    targ_defvec=bfd_elf32_openrisc_vec
709
    ;;
710
 
711
  or32-*-coff | or32-*-rtems*)
712
    targ_defvec=or32coff_big_vec
713
    targ_underscores=yes
714
    ;;
715
 
716
  pdp11-*-*)
717
    targ_defvec=pdp11_aout_vec
718
    targ_underscore=yes
719
    ;;
720
 
721
  pj-*-*)
722
    targ_defvec=bfd_elf32_pj_vec
723
    targ_selvecs="bfd_elf32_pj_vec bfd_elf32_pjl_vec"
724
    ;;
725
 
726
  pjl-*-*)
727
    targ_defvec=bfd_elf32_pjl_vec
728
    targ_selvecs="bfd_elf32_pjl_vec bfd_elf32_pj_vec bfd_elf32_i386_vec"
729
    ;;
730
 
731
  powerpc-*-aix* | powerpc-*-beos* | rs6000-*-*)
732
    targ_defvec=rs6000coff_vec
733
#ifdef BFD64
734
    targ_selvecs="rs6000coff64_vec"
735
#endif
736
    ;;
737
#ifdef BFD64
738
  powerpc64-*-aix*)
739
    targ_defvec=rs6000coff64_vec
740
    targ_selvecs="rs6000coff_vec"
741
    ;;
742
#endif
743
  powerpc-*-*bsd* | powerpc-*-elf* | powerpc-*-sysv4* | powerpc-*-eabi* | \
744
  powerpc-*-solaris2* | powerpc-*-linux-gnu* | powerpc-*-rtems* | \
745
  powerpc-*-chorus* | powerpc-*-vxworks*)
746
    targ_defvec=bfd_elf32_powerpc_vec
747
    targ_selvecs="rs6000coff_vec bfd_elf32_powerpcle_vec ppcboot_vec"
748
    ;;
749
  powerpc-*-macos* | powerpc-*-mpw*)
750
    targ_defvec=pmac_xcoff_vec
751
    ;;
752
  powerpc-*-netware*)
753
    targ_defvec=bfd_elf32_powerpc_vec
754
    targ_selvecs="nlm32_powerpc_vec rs6000coff_vec"
755
    ;;
756
  powerpcle-*-elf* | powerpcle-*-sysv4* | powerpcle-*-eabi* | \
757
  powerpcle-*-solaris2* | powerpcle-*-linux-gnu* | powerpcle-*-vxworks* |\
758
  powerpcle-*-rtems*)
759
    targ_defvec=bfd_elf32_powerpcle_vec
760
    targ_selvecs="rs6000coff_vec bfd_elf32_powerpc_vec ppcboot_vec"
761
    ;;
762
 
763
  powerpcle-*-pe | powerpcle-*-winnt* | powerpcle-*-cygwin*)
764
    targ_defvec=bfd_powerpcle_pe_vec
765
    targ_selvecs="bfd_powerpcle_pei_vec bfd_powerpc_pei_vec bfd_powerpcle_pe_vec bfd_powerpc_pe_vec"
766
    ;;
767
 
768
  s390-*-linux*)
769
    targ_defvec=bfd_elf32_s390_vec
770
    ;;
771
#ifdef BFD64
772
  s390x-*-linux*)
773
    targ_defvec=bfd_elf64_s390_vec
774
    ;;
775
#endif
776
 
777
  sh-*-linux*)
778
    targ_defvec=bfd_elf32_shblin_vec
779
    targ_selvecs=bfd_elf32_shlin_vec
780
    ;;
781
 
782
  sh-*-elf* | sh-*-rtemself*)
783
    targ_defvec=bfd_elf32_sh_vec
784
    targ_selvecs="bfd_elf32_shl_vec shcoff_vec shlcoff_vec shcoff_small_vec shlcoff_small_vec"
785
    targ_underscore=yes
786
    ;;
787
  sh-*-pe)
788
    targ_defvec=shlpe_vec
789
    targ_selvecs="shlpe_vec shlpei_vec"
790
    targ_underscore=yes
791
    ;;
792
  sh-*-* | sh-*-rtems*)
793
    targ_defvec=shcoff_vec
794
    targ_selvecs="shcoff_vec shlcoff_vec shcoff_small_vec shlcoff_small_vec"
795
    targ_underscore=yes
796
    ;;
797
 
798
  sparclet-*-aout*)
799
    targ_defvec=sunos_big_vec
800
    targ_selvecs=sparcle_aout_vec
801
    targ_underscore=yes
802
    ;;
803
  sparc86x-*-aout*)
804
    targ_defvec=sunos_big_vec
805
    targ_underscore=yes
806
    ;;
807
  sparclite-*-elf* | sparc86x-*-elf*)
808
    targ_defvec=bfd_elf32_sparc_vec
809
    ;;
810
  sparc*-*-chorus*)
811
    targ_defvec=bfd_elf32_sparc_vec
812
    ;;
813
  sparc-*-linux*aout*)
814
    targ_defvec=sparclinux_vec
815
    targ_selvecs="bfd_elf32_sparc_vec sunos_big_vec"
816
    targ_underscore=yes
817
    ;;
818
  sparc-*-linux-gnu*)
819
    targ_defvec=bfd_elf32_sparc_vec
820
    targ_selvecs="sparclinux_vec bfd_elf64_sparc_vec sunos_big_vec"
821
    ;;
822
  sparc-*-lynxos*)
823
    targ_defvec=sparclynx_coff_vec
824
    targ_selvecs=sparclynx_aout_vec
825
    ;;
826
  sparc-*-netbsdelf*)
827
    targ_defvec=bfd_elf32_sparc_vec
828
    targ_selvecs=sparcnetbsd_vec
829
    ;;
830
  sparc-*-netbsdaout* | sparc-*-netbsd*)
831
    targ_defvec=sparcnetbsd_vec
832
    targ_selvecs=bfd_elf32_sparc_vec
833
    targ_underscore=yes
834
    ;;
835
  sparc-*-openbsd*)
836
    targ_defvec=sparcnetbsd_vec
837
    targ_underscore=yes
838
    ;;
839
  sparc-*-elf* | sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
840
    targ_defvec=bfd_elf32_sparc_vec
841
    targ_selvecs=sunos_big_vec
842
    ;;
843
#ifdef BFD64
844
  sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*)
845
    targ_defvec=bfd_elf32_sparc_vec
846
    targ_selvecs="bfd_elf64_sparc_vec sunos_big_vec"
847
    ;;
848
#endif
849
  sparc-*-sysv4*)
850
    targ_defvec=bfd_elf32_sparc_vec
851
    ;;
852
  sparc-*-netware*)
853
    targ_defvec=bfd_elf32_sparc_vec
854
    targ_selvecs="nlm32_sparc_vec sunos_big_vec"
855
    ;;
856
#ifdef BFD64
857
  sparc64-*-aout*)
858
    targ_defvec=sunos_big_vec
859
    targ_underscore=yes
860
    ;;
861
  sparc64-*-linux-gnu*)
862
    targ_defvec=bfd_elf64_sparc_vec
863
    targ_selvecs="bfd_elf32_sparc_vec sparclinux_vec sunos_big_vec"
864
    ;;
865
  sparc64-*-elf*)
866
    targ_defvec=bfd_elf64_sparc_vec
867
    targ_selvecs=bfd_elf32_sparc_vec
868
    ;;
869
#endif /* BFD64 */
870
  sparc*-*-coff*)
871
    targ_defvec=sparccoff_vec
872
    ;;
873
  sparc*-*-rtemsaout*)
874
    targ_defvec=sunos_big_vec
875
    targ_selvecs="bfd_elf32_sparc_vec sparccoff_vec"
876
    targ_underscore=yes
877
    ;;
878
  sparc*-*-rtems* | sparc*-*-rtemself*)
879
    targ_defvec=bfd_elf32_sparc_vec
880
    targ_selvecs="sunos_big_vec sparccoff_vec"
881
    ;;
882
  sparc*-*-* | sparc*-*-rtems*)
883
    targ_defvec=sunos_big_vec
884
    targ_underscore=yes
885
    ;;
886
 
887
#if HAVE_host_aout_vec
888
  tahoe-*-*)
889
    targ_defvec=host_aout_vec
890
    targ_underscore=yes
891
    ;;
892
#endif
893
 
894
  tic80*-*-*)
895
    targ_defvec=tic80coff_vec
896
    targ_underscore=yes
897
    ;;
898
 
899
 
900
  v850-*-*)
901
    targ_defvec=bfd_elf32_v850_vec
902
    ;;
903
  v850e-*-*)
904
    targ_defvec=bfd_elf32_v850_vec
905
    ;;
906
  v850ea-*-*)
907
    targ_defvec=bfd_elf32_v850_vec
908
    ;;
909
#if HAVE_host_aout_vec
910
  vax-*-bsd* | vax-*-ultrix*)
911
    targ_defvec=host_aout_vec
912
    targ_underscore=yes
913
    ;;
914
#endif
915
 
916
  vax*-*-*vms*)
917
    targ_defvec=vms_vax_vec
918
    ;;
919
 
920
  we32k-*-*)
921
    targ_defvec=we32kcoff_vec
922
    ;;
923
 
924
  w65-*-*)
925
    targ_defvec=w65_vec
926
    ;;
927
 
928
  z8k*-*-*)
929
    targ_defvec=z8kcoff_vec
930
    targ_underscore=yes
931
    ;;
932
 
933
  *-*-ieee*)
934
    targ_defvec=ieee_vec
935
    ;;
936
 
937
  *-adobe-*)
938
    targ_defvec=a_out_adobe_vec
939
    targ_underscore=yes
940
    ;;
941
 
942
  *-sony-*)
943
    targ_defvec=newsos3_vec
944
    targ_underscore=yes
945
    ;;
946
 
947
  *-tandem-*)
948
    targ_defvec=m68kcoff_vec
949
    targ_selvecs=ieee_vec
950
    ;;
951
# END OF targmatch.h
952
  *)
953
    echo 1>&2 "*** BFD does not support target ${targ}."
954
    echo 1>&2 "*** Look in bfd/config.bfd for supported targets."
955
    exit 1
956
    ;;
957
esac
958
 
959
# If we support any ELF target, then automatically add support for the
960
# generic ELF targets.  This permits an objdump with some ELF support
961
# to be used on an arbitrary ELF file for anything other than
962
# relocation information.
963
case "${targ_defvec} ${targ_selvecs}" in
964
  *bfd_elf64*)
965
    targ_selvecs="${targ_selvecs} bfd_elf64_little_generic_vec bfd_elf64_big_generic_vec bfd_elf32_little_generic_vec bfd_elf32_big_generic_vec"
966
    ;;
967
  *bfd_elf32*)
968
    targ_selvecs="${targ_selvecs} bfd_elf32_little_generic_vec bfd_elf32_big_generic_vec"
969
    ;;
970
esac

powered by: WebSVN 2.1.0

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