remove d30v sanitization
[deliverable/binutils-gdb.git] / bfd / config.bfd
CommitLineData
49df10b1
DM
1# config.bfd
2# Convert a canonical host type into a BFD host type.
2b79a104
ILT
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)
2503987b 10# targ_underscore Whether underscores are used: yes or no
49df10b1 11
dee99794
ILT
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
1fb83be6 16# The binutils c++filt program wants to know whether underscores are
2b79a104
ILT
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
24targ_defvec=
25targ_selvecs=
26targ_cflags=
27targ_underscore=no
28
2503987b 29targ_cpu=`echo $targ | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2b79a104 30case "${targ_cpu}" in
ba2934ce 31alpha*) targ_archs=bfd_alpha_arch ;;
2b79a104 32arm*) targ_archs=bfd_arm_arch ;;
eee4e8ca 33c30*) targ_archs=bfd_tic30_arch ;;
0b3fcc1c 34thumb*) targ_archs=bfd_arm_arch ;;
2b79a104 35hppa*) targ_archs=bfd_hppa_arch ;;
f7954d86 36i[3456]86) targ_archs=bfd_i386_arch ;;
2b79a104
ILT
37m68*) targ_archs=bfd_m68k_arch ;;
38m88*) targ_archs=bfd_m88k_arch ;;
39mips*) targ_archs=bfd_mips_arch ;;
40powerpc*) targ_archs="bfd_rs6000_arch bfd_powerpc_arch" ;;
41rs6000) targ_archs="bfd_rs6000_arch bfd_powerpc_arch" ;;
1142c241 42sparc*) targ_archs=bfd_sparc_arch ;;
8988d935 43v850*) targ_archs=bfd_v850_arch ;;
2b79a104
ILT
44z8k*) targ_archs=bfd_z8k_arch ;;
45*) targ_archs=bfd_${targ_cpu}_arch ;;
46esac
1fb83be6 47
41eca8a7
NC
48# start-sanitize-sky
49case "${targ}" in
50 mips64r5900-sky-elf*) targ_archs="${targ_archs} bfd_dvp_arch" ;;
51esac
52# end-sanitize-sky
53
49df10b1
DM
54# WHEN ADDING ENTRIES TO THIS MATRIX:
55# Make sure that the left side always has two dashes. Otherwise you
56# can get spurious matches. Even for unambiguous cases, do this as a
57# convention, else the table becomes a real mess to understand and maintain.
58
2b79a104 59case "${targ}" in
dee99794
ILT
60# START OF targmatch.h
61#ifdef BFD64
eee4e8ca
ILT
62 alpha*-*-netbsd*)
63 targ_defvec=bfd_elf64_alpha_vec
64 targ_selvecs=ecoffalpha_little_vec
65 ;;
6b5f5d61 66 alpha*-*-netware*)
2b79a104
ILT
67 targ_defvec=ecoffalpha_little_vec
68 targ_selvecs=nlm32_alpha_vec
69 ;;
6b5f5d61 70 alpha*-*-linuxecoff*)
e8f46717
ILT
71 targ_defvec=ecoffalpha_little_vec
72 targ_selvecs=bfd_elf64_alpha_vec
73 ;;
eee4e8ca 74 alpha*-*-linux-gnu* | alpha*-*-elf*)
e8f46717
ILT
75 targ_defvec=bfd_elf64_alpha_vec
76 targ_selvecs=ecoffalpha_little_vec
77 ;;
6b5f5d61 78 alpha*-*-*vms*)
0dc4c667 79 targ_defvec=vms_alpha_vec
e8f46717 80 ;;
6b5f5d61 81 alpha*-*-*)
2b79a104
ILT
82 targ_defvec=ecoffalpha_little_vec
83 ;;
dee99794 84#endif /* BFD64 */
2b79a104 85
2b79a104
ILT
86 arc-*-elf*)
87 targ_defvec=bfd_elf32_littlearc_vec
50bd50d4 88 targ_selvecs=bfd_elf32_bigarc_vec
2b79a104 89 ;;
76af94b9 90
2b79a104
ILT
91 arm-*-riscix*)
92 targ_defvec=riscix_vec
93 ;;
94 arm-*-pe*)
95 targ_defvec=armpe_little_vec
96 targ_selvecs="armpe_little_vec armpe_big_vec armpei_little_vec armpei_big_vec"
97 targ_underscore=yes
98 ;;
bd676d26 99 arm-*-aout | armel-*-aout)
2b79a104
ILT
100 targ_defvec=aout_arm_little_vec
101 targ_selvecs=aout_arm_big_vec
102 ;;
103 armeb-*-aout)
104 targ_defvec=aout_arm_big_vec
105 targ_selvecs=aout_arm_little_vec
106 ;;
a11e10fe
DE
107 arm-*-coff)
108 targ_defvec=armcoff_little_vec
109 targ_selvecs=armcoff_big_vec
110 targ_underscore=yes
111 ;;
0b3fcc1c
ILT
112 thumb-*-coff)
113 targ_defvec=armcoff_little_vec
114 targ_selvecs=armcoff_big_vec
115 targ_underscore=yes
116 ;;
d6c3cfb5 117 thumb-*-pe*)
41eca8a7
NC
118 targ_defvec=armpe_little_vec
119 targ_selvecs="armpe_little_vec armpe_big_vec armpei_little_vec armpei_big_vec"
120 targ_underscore=yes
d6c3cfb5 121 ;;
2b79a104
ILT
122 a29k-*-ebmon* | a29k-*-udi* | a29k-*-coff* | a29k-*-sym1* | \
123 a29k-*-vxworks* | a29k-*-sysv*)
124 targ_defvec=a29kcoff_big_vec
125 targ_selvecs=sunos_big_vec
126 targ_underscore=yes
127 ;;
128 a29k-*-aout* | a29k-*-bsd* | a29k-*-vsta*)
129 targ_defvec=sunos_big_vec
130 targ_underscore=yes
131 ;;
132
eee4e8ca
ILT
133 c30-*-*aout* | tic30-*-*aout*)
134 targ_defvec=tic30_aout_vec
135 ;;
136 c30-*-*coff* | tic30-*-*coff*)
137 targ_defvec=tic30_coff_vec
138 ;;
139
50bd50d4
MH
140 d10v-*-*)
141 targ_defvec=bfd_elf32_d10v_vec
142 ;;
50bd50d4 143
fd8d7c31
MH
144 d30v-*-*)
145 targ_defvec=bfd_elf32_d30v_vec
146 ;;
fd8d7c31 147
41eca8a7
NC
148# start-sanitize-sky
149 dvp-*-*)
150 targ_defvec=bfd_elf32_littlemips_vec
151 targ_selvecs=bfd_elf64_littlemips_vec
152 ;;
153# end-sanitize-sky
154
2b79a104
ILT
155 h8300*-*-*)
156 targ_defvec=h8300coff_vec
157 targ_underscore=yes
158 ;;
159
160 h8500-*-*)
161 targ_defvec=h8500coff_vec
162 targ_underscore=yes
163 ;;
164
6a2922d5 165 hppa*-*-*elf* | hppa*-*-lites* | hppa*-*-sysv4* | hppa*-*-rtems*)
2b79a104
ILT
166 targ_defvec=bfd_elf32_hppa_vec
167 ;;
dee99794 168#if defined (HOST_HPPAHPUX) || defined (HOST_HPPABSD) || defined (HOST_HPPAOSF)
2b79a104
ILT
169 hppa*-*-bsd*)
170 targ_defvec=som_vec
171 targ_selvecs=bfd_elf32_hppa_vec
172 ;;
173 hppa*-*-hpux* | hppa*-*-hiux*)
174 targ_defvec=som_vec
175 ;;
176 hppa*-*-osf*)
177 targ_defvec=som_vec
178 targ_selvecs=bfd_elf32_hppa_vec
179 ;;
dee99794 180#endif /* defined (HOST_HPPAHPUX) || defined (HOST_HPPABSD) || defined (HOST_HPPAOSF) */
2b79a104 181
a3e62cc0
ILT
182 i[3456]86-*-sco3.2v5*coff)
183 targ_defvec=i386coff_vec
1142c241 184 targ_selvecs=bfd_elf32_i386_vec
a3e62cc0 185 ;;
f7954d86 186 i[3456]86-*-sysv4* | i[3456]86-*-unixware | i[3456]86-*-solaris2* | \
a3e62cc0 187 i[3456]86-*-elf | i[3456]86-*-sco3.2v5* | i[3456]86-*-freebsdelf* | \
1142c241 188 i[3456]86-*-dgux* | i[3456]86-*-sysv5*)
2b79a104
ILT
189 targ_defvec=bfd_elf32_i386_vec
190 targ_selvecs=i386coff_vec
191 ;;
0b3fcc1c 192 i[3456]86-*-msdosdjgpp* | i[3456]*-*-go32* | i[3456]86-go32-rtems* )
76af94b9
DE
193 targ_defvec=go32coff_vec
194 targ_selvecs="go32stubbedcoff_vec i386aout_vec"
195 ;;
f7954d86 196 i[3456]86-*-sysv* | i[3456]86-*-isc* | i[3456]86-*-sco* | i[3456]86-*-coff | \
76af94b9 197 i[3456]86-*-aix* | i[3456]86*-*-rtems*)
2b79a104
ILT
198 targ_defvec=i386coff_vec
199 ;;
f7954d86 200 i[3456]86-sequent-bsd*)
2b79a104
ILT
201 targ_defvec=i386dynix_vec
202 targ_underscore=yes
203 ;;
f7954d86 204 i[3456]86-*-bsd*)
2b79a104
ILT
205 targ_defvec=i386bsd_vec
206 targ_underscore=yes
207 ;;
f7954d86 208 i[3456]86-*-freebsd*)
767f22d5
FF
209 targ_defvec=i386freebsd_vec
210 targ_selvecs=i386bsd_vec
211 targ_underscore=yes
212 ;;
6a2922d5 213 i[3456]86-*-netbsd* | i[3456]86-*-openbsd*)
2b79a104
ILT
214 targ_defvec=i386netbsd_vec
215 targ_selvecs=i386bsd_vec
216 targ_underscore=yes
217 ;;
f7954d86 218 i[3456]86-*-netware*)
2b79a104
ILT
219 targ_defvec=bfd_elf32_i386_vec
220 targ_selvecs="nlm32_i386_vec i386coff_vec i386aout_vec"
221 ;;
6a2922d5 222 i[3456]86-*-linux*aout*)
2b79a104
ILT
223 targ_defvec=i386linux_vec
224 targ_selvecs=bfd_elf32_i386_vec
225 targ_underscore=yes
226 ;;
eee4e8ca 227 i[3456]86-*-linux-gnu*)
2b79a104
ILT
228 targ_defvec=bfd_elf32_i386_vec
229 targ_selvecs=i386linux_vec
2b79a104 230 ;;
f7954d86 231 i[3456]86-*-lynxos*)
2b79a104
ILT
232 targ_defvec=i386lynx_coff_vec
233 targ_selvecs=i386lynx_aout_vec
234 ;;
f7954d86 235 i[3456]86-*-gnu*)
2b79a104 236 targ_defvec=bfd_elf32_i386_vec
2b79a104 237 ;;
f7954d86 238 i[3456]86-*-mach* | i[3456]86-*-osf1mk*)
2b79a104
ILT
239 targ_defvec=i386mach3_vec
240 targ_cflags=-DSTAT_FOR_EXEC
241 targ_underscore=yes
242 ;;
f7954d86 243 i[3456]86-*-os9k)
2b79a104
ILT
244 targ_defvec=i386os9k_vec
245 ;;
f7954d86 246 i[3456]86-*-msdos*)
2b79a104
ILT
247 targ_defvec=i386aout_vec
248 targ_selvecs=i386msdos_vec
249 ;;
f7954d86 250 i[3456]86-*-moss*)
2b79a104
ILT
251 targ_defvec=bfd_elf32_i386_vec
252 targ_selvecs="i386msdos_vec i386aout_vec"
253 ;;
6767a3ab
ILT
254# start-sanitize-beos
255 i[3456]86-*-beospe*)
256 targ_defvec=i386pe_vec
257 targ_selvecs="i386pe_vec i386pei_vec"
258 ;;
259 i[3456]86-*-beoself* | i[3456]86-*-beos*)
260 targ_defvec=bfd_elf32_i386_vec
261 ;;
262# end-sanitize-beos
847b9629 263 i[3456]86-*-mingw32* | i[3456]86-*-cygwin32* | i[3456]86-*-winnt | i[3456]86-*-pe)
049df0a8 264 targ_defvec=i386pe_vec
2b79a104
ILT
265 targ_selvecs="i386pe_vec i386pei_vec"
266 ;;
f7954d86 267 i[3456]86-none-*)
2b79a104
ILT
268 targ_defvec=i386coff_vec
269 ;;
f7954d86 270 i[3456]86-*-aout* | i[3456]86*-*-vsta*)
588512c6 271 targ_defvec=i386aout_vec
2b79a104
ILT
272 ;;
273
767f22d5
FF
274 i860-*-mach3* | i860-*-osf1* | i860-*-coff*)
275 targ_defvec=i860coff_vec
276 ;;
277 i860-*-sysv4* | i860-*-elf*)
2b79a104
ILT
278 targ_defvec=bfd_elf32_i860_vec
279 ;;
280
281 i960-*-vxworks4* | i960-*-vxworks5.0)
282 targ_defvec=b_out_vec_little_host
3998d526 283 targ_selvecs="b_out_vec_big_host icoff_little_vec icoff_big_vec ieee_vec"
2b79a104
ILT
284 targ_underscore=yes
285 ;;
50bd50d4 286 i960-*-vxworks5.* | i960-*-coff* | i960-*-sysv* | i960-*-rtems*)
2b79a104 287 targ_defvec=icoff_little_vec
3998d526 288 targ_selvecs="icoff_big_vec b_out_vec_little_host b_out_vec_big_host ieee_vec"
2b79a104
ILT
289 targ_underscore=yes
290 ;;
291 i960-*-vxworks* | i960-*-aout* | i960-*-bout* | i960-*-nindy*)
292 targ_defvec=b_out_vec_little_host
3998d526 293 targ_selvecs="b_out_vec_big_host icoff_little_vec icoff_big_vec ieee_vec"
2b79a104
ILT
294 targ_underscore=yes
295 ;;
49df10b1 296
161ac690
ILT
297 m32r-*-*)
298 targ_defvec=bfd_elf32_m32r_vec
299 ;;
161ac690 300
2b79a104
ILT
301 m68*-apollo-*)
302 targ_defvec=apollocoff_vec
303 ;;
304 m68*-bull-sysv*)
305 targ_defvec=m68kcoffun_vec
306 targ_underscore=yes
307 ;;
ac388f2a
ILT
308 m68*-motorola-sysv*)
309 targ_defvec=m68ksysvcoff_vec
310 ;;
2b79a104
ILT
311 m68*-hp-bsd*)
312 targ_defvec=hp300bsd_vec
313 targ_underscore=yes
314 ;;
315 m68*-*-aout*)
316 targ_defvec=aout0_big_vec
3998d526 317 # We include cisco_core_vec here, rather than making a separate cisco
2b79a104
ILT
318 # configuration, so that cisco-core.c gets routinely tested at
319 # least for compilation.
3998d526 320 targ_selvecs="cisco_core_vec ieee_vec"
2b79a104
ILT
321 targ_underscore=yes
322 ;;
767f22d5 323 m68*-*-elf* | m68*-*-sysv4*)
2b79a104 324 targ_defvec=bfd_elf32_m68k_vec
3998d526 325 targ_selvecs="m68kcoff_vec ieee_vec"
2b79a104 326 ;;
50bd50d4 327 m68*-*-coff* | m68*-*-sysv* | m68*-*-rtems*)
2b79a104 328 targ_defvec=m68kcoff_vec
3998d526 329 targ_selvecs="m68kcoff_vec versados_vec ieee_vec"
2b79a104
ILT
330 ;;
331 m68*-*-hpux*)
332 targ_defvec=hp300hpux_vec
333 targ_underscore=yes
334 ;;
6a2922d5 335 m68*-*-linux*aout*)
3998d526
ILT
336 targ_defvec=m68klinux_vec
337 targ_selvecs=bfd_elf32_m68k_vec
338 targ_underscore=yes
339 ;;
eee4e8ca 340 m68*-*-linux-gnu*)
3998d526
ILT
341 targ_defvec=bfd_elf32_m68k_vec
342 targ_selvecs=m68klinux_vec
343 ;;
2b79a104
ILT
344 m68*-*-lynxos*)
345 targ_defvec=m68klynx_coff_vec
346 targ_selvecs=m68klynx_aout_vec
347 ;;
11ab6da4
NH
348 m68*-hp*-netbsd*)
349 targ_defvec=m68k4knetbsd_vec
350 targ_selvecs="m68knetbsd_vec hp300bsd_vec sunos_big_vec"
351 targ_underscore=yes
352 ;;
6a2922d5 353 m68*-*-netbsd* | m68*-*-openbsd*)
2b79a104 354 targ_defvec=m68knetbsd_vec
11ab6da4 355 targ_selvecs="m68k4knetbsd_vec hp300bsd_vec sunos_big_vec"
2b79a104
ILT
356 targ_underscore=yes
357 ;;
358 m68*-*-sunos* | m68*-*-os68k* | m68*-*-vxworks* | m68*-netx-* | \
359 m68*-*-bsd* | m68*-*-vsta*)
360 targ_defvec=sunos_big_vec
361 targ_underscore=yes
362 ;;
363 m68*-ericsson-*)
364 targ_defvec=sunos_big_vec
2503987b 365 targ_selvecs="m68kcoff_vec versados_vec tekhex_vec"
2b79a104
ILT
366 targ_underscore=yes
367 ;;
767f22d5
FF
368 m68*-cbm-*)
369 targ_defvec=bfd_elf32_m68k_vec
370 targ_selvecs=m68kcoff_vec
371 ;;
d19df9b5
ILT
372 m68*-apple-aux*)
373 targ_defvec=m68kaux_coff_vec
374 ;;
3998d526
ILT
375 m68*-*-psos*)
376 targ_defvec=bfd_elf32_m68k_vec
377 targ_selvecs=ieee_vec
378 targ_underscore=yes
379 ;;
2b79a104
ILT
380
381 m88*-harris-cxux* | m88*-*-dgux* | m88*-*-sysv4*)
382 targ_defvec=bfd_elf32_m88k_vec
383 targ_selvecs=m88kbcs_vec
384 ;;
385 m88*-*-mach3*)
386 targ_defvec=m88kmach3_vec
387 targ_cflags=-DSTAT_FOR_EXEC
388 ;;
389 m88*-*-*)
390 targ_defvec=m88kbcs_vec
391 targ_underscore=yes
392 ;;
393
394 mips*-big-*)
395 targ_defvec=ecoff_big_vec
396 targ_selvecs=ecoff_little_vec
397 ;;
14bf95ea 398 mips-dec-netbsd* | mips*el*-*-netbsd*)
049df0a8 399 targ_defvec=bfd_elf32_littlemips_vec
14bf95ea
ILT
400 targ_selvecs="bfd_elf32_bigmips_vec ecoff_little_vec ecoff_big_vec"
401 ;;
402 mips*-*-netbsd*)
403 targ_defvec=bfd_elf32_bigmips_vec
404 targ_selvecs="bfd_elf32_littlemips_vec ecoff_big_vec ecoff_little_vec"
049df0a8 405 ;;
2b79a104
ILT
406 mips*-dec-bsd*)
407 targ_defvec=aout_mips_little_vec
408 targ_underscore=yes
409 ;;
410 mips*-dec-mach3*)
411 targ_defvec=aout_mips_little_vec
412 targ_cflags=-DSTAT_FOR_EXEC
413 ;;
414 mips*-dec-* | mips*el-*-ecoff*)
415 targ_defvec=ecoff_little_vec
416 targ_selvecs=ecoff_big_vec
417 ;;
418 mips*-*-ecoff*)
419 targ_defvec=ecoff_big_vec
420 targ_selvecs=ecoff_little_vec
421 ;;
e8c249cb
ILT
422 mips*-*-irix6*)
423 targ_defvec=bfd_elf32_bigmips_vec
424 targ_selvecs="bfd_elf32_littlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec"
425 ;;
2b79a104
ILT
426 mips*-*-irix5*)
427 targ_defvec=bfd_elf32_bigmips_vec
428 targ_selvecs="bfd_elf32_littlemips_vec ecoff_big_vec ecoff_little_vec"
429 ;;
430 mips*-sgi-* | mips*-*-bsd*)
431 targ_defvec=ecoff_big_vec
432 targ_selvecs=ecoff_little_vec
433 ;;
ac388f2a
ILT
434 mips*-*-lnews*)
435 targ_defvec=ecoff_biglittle_vec
436 targ_selvecs="ecoff_little_vec ecoff_big_vec"
437 ;;
2b79a104
ILT
438 mips*-*-mach3*)
439 targ_defvec=aout_mips_little_vec
440 targ_cflags=-DSTAT_FOR_EXEC
441 ;;
442 mips*-*-sysv4*)
443 targ_defvec=bfd_elf32_bigmips_vec
444 targ_selvecs="bfd_elf32_littlemips_vec ecoff_big_vec ecoff_little_vec"
445 ;;
446 mips*-*-sysv* | mips*-*-riscos*)
447 targ_defvec=ecoff_big_vec
448 targ_selvecs=ecoff_little_vec
449 ;;
450 mips*el-*-elf*)
451 targ_defvec=bfd_elf32_littlemips_vec
9b263b79 452 targ_selvecs="bfd_elf32_bigmips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec"
2b79a104 453 ;;
161ac690 454 mips*-*-elf* | mips*-*-rtems*)
2b79a104 455 targ_defvec=bfd_elf32_bigmips_vec
9b263b79 456 targ_selvecs="bfd_elf32_littlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec"
2b79a104 457 ;;
fd8d7c31
MH
458 mips*-*-none)
459 targ_defvec=bfd_elf32_bigmips_vec
460 targ_selvecs="bfd_elf32_littlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec"
461 ;;
eee4e8ca 462 mips*el*-*-linux-gnu* | mips*el*-*-openbsd*)
7c342fc5 463 targ_defvec=bfd_elf32_littlemips_vec
f0315e65 464 targ_selvecs="bfd_elf32_bigmips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec ecoff_little_vec ecoff_big_vec"
7c342fc5 465 ;;
eee4e8ca 466 mips*-*-linux-gnu* | mips*-*-openbsd*)
7c342fc5 467 targ_defvec=bfd_elf32_bigmips_vec
f0315e65 468 targ_selvecs="bfd_elf32_littlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec ecoff_big_vec ecoff_little_vec"
7c342fc5 469 ;;
2b79a104 470
ae1b99e4
JL
471 mn10200-*-*)
472 targ_defvec=bfd_elf32_mn10200_vec
473 ;;
474
475 mn10300-*-*)
476 targ_defvec=bfd_elf32_mn10300_vec
efc2b064
JL
477 ;;
478
2a01c351 479 ns32k-pc532-mach* | ns32k-pc532-ux*)
2b79a104
ILT
480 targ_defvec=pc532machaout_vec
481 targ_underscore=yes
482 ;;
6a2922d5 483 ns32k-*-netbsd* | ns32k-*-lites* | ns32k-*-openbsd*)
2b79a104
ILT
484 targ_defvec=pc532netbsd_vec
485 targ_underscore=yes
486 ;;
487
ac388f2a 488 powerpc-*-aix* | powerpc-*-beos*)
2b79a104
ILT
489 targ_defvec=rs6000coff_vec
490 ;;
6a2922d5 491 powerpc-*-*bsd* | powerpc-*-elf* | powerpc-*-sysv4* | powerpc-*-eabi* | \
eee4e8ca 492 powerpc-*-solaris2* | powerpc-*-linux-gnu* | powerpc-*-rtems*)
2b79a104 493 targ_defvec=bfd_elf32_powerpc_vec
d6c3cfb5 494 targ_selvecs="rs6000coff_vec bfd_elf32_powerpcle_vec ppcboot_vec"
2b79a104 495 ;;
2a01c351
KR
496 powerpc-*-macos* | powerpc-*-mpw*)
497 targ_defvec=pmac_xcoff_vec
498 ;;
2b79a104
ILT
499 powerpc-*-netware*)
500 targ_defvec=bfd_elf32_powerpc_vec
501 targ_selvecs="nlm32_powerpc_vec rs6000coff_vec"
502 ;;
503 powerpcle-*-elf* | powerpcle-*-sysv4* | powerpcle-*-eabi* | \
eee4e8ca 504 powerpcle-*-solaris2* | powerpcle-*-linux-gnu*)
2b79a104 505 targ_defvec=bfd_elf32_powerpcle_vec
d6c3cfb5 506 targ_selvecs="rs6000coff_vec bfd_elf32_powerpc_vec ppcboot_vec"
2b79a104
ILT
507 ;;
508
847b9629 509 powerpcle-*-pe | powerpcle-*-winnt* | powerpcle-*-cygwin32*)
e0c10737
KK
510 targ_defvec=bfd_powerpcle_pe_vec
511 targ_selvecs="bfd_powerpcle_pei_vec bfd_powerpc_pei_vec bfd_powerpcle_pe_vec bfd_powerpc_pe_vec"
512 ;;
513
2b79a104
ILT
514 rs6000-*-*)
515 targ_defvec=rs6000coff_vec
516 ;;
517
d6c3cfb5 518 sh-*-elf*)
71d7d44f 519 targ_defvec=bfd_elf32_sh_vec
18ed85fd 520 targ_selvecs="bfd_elf32_shl_vec shcoff_vec shlcoff_vec shcoff_small_vec shlcoff_small_vec"
71d7d44f
DE
521 targ_underscore=yes
522 ;;
d6c3cfb5 523 sh-*-* | sh-*-rtems*)
71d7d44f 524 targ_defvec=shcoff_vec
18ed85fd 525 targ_selvecs="shcoff_vec shlcoff_vec shcoff_small_vec shlcoff_small_vec"
71d7d44f
DE
526 targ_underscore=yes
527 ;;
528
529 sparclet-*-aout*)
530 targ_defvec=sunos_big_vec
531 targ_selvecs=sparcle_aout_vec
532 targ_underscore=yes
533 ;;
1142c241 534 sparclite-*-elf* | sparc86x-*-elf*)
41eca8a7
NC
535 targ_defvec=bfd_elf32_sparc_vec
536 ;;
6a2922d5
ILT
537 sparc-*-linux*aout*)
538 targ_defvec=sparclinux_vec
539 targ_selvecs="bfd_elf32_sparc_vec sunos_big_vec"
540 targ_underscore=yes
541 ;;
eee4e8ca 542 sparc-*-linux-gnu*)
6a2922d5
ILT
543 targ_defvec=bfd_elf32_sparc_vec
544 targ_selvecs="sparclinux_vec sunos_big_vec"
545 ;;
2b79a104
ILT
546 sparc-*-lynxos*)
547 targ_defvec=sparclynx_coff_vec
548 targ_selvecs=sparclynx_aout_vec
549 ;;
6a2922d5 550 sparc-*-netbsd* | sparc-*-openbsd*)
2b79a104
ILT
551 targ_defvec=sparcnetbsd_vec
552 targ_underscore=yes
553 ;;
f7954d86 554 sparc-*-elf* | sparc-*-solaris2*)
2b79a104
ILT
555 targ_defvec=bfd_elf32_sparc_vec
556 targ_selvecs=sunos_big_vec
557 ;;
f7954d86
MM
558 sparc-*-sysv4*)
559 targ_defvec=bfd_elf32_sparc_vec
560 ;;
0b3fcc1c
ILT
561 sparc-*-netware*)
562 targ_defvec=bfd_elf32_sparc_vec
563 targ_selvecs="nlm32_sparc_vec sunos_big_vec"
564 ;;
565#ifdef BFD64
767f22d5
FF
566 sparc64-*-aout*)
567 targ_defvec=sunos_big_vec
568 targ_underscore=yes
569 ;;
eee4e8ca 570 sparc64-*-linux-gnu*)
0b3fcc1c
ILT
571 targ_defvec=bfd_elf64_sparc_vec
572 targ_selvecs="bfd_elf32_sparc_vec sparclinux_vec sunos_big_vec"
573 ;;
5bc513b4
DE
574 sparc64-*-elf*)
575 targ_defvec=bfd_elf64_sparc_vec
576 targ_selvecs=bfd_elf32_sparc_vec
577 ;;
dee99794 578#endif /* BFD64 */
2b79a104
ILT
579 sparc*-*-coff*)
580 targ_defvec=sparccoff_vec
581 ;;
50bd50d4 582 sparc*-*-* | sparc*-*-rtems*)
2b79a104
ILT
583 targ_defvec=sunos_big_vec
584 targ_underscore=yes
585 ;;
586
3baa24ad 587#if HAVE_host_aout_vec
2b79a104
ILT
588 tahoe-*-*)
589 targ_defvec=host_aout_vec
590 targ_underscore=yes
591 ;;
dee99794 592#endif
cd6213ff 593# start-sanitize-tic80
5a08c6a1 594
fd8d7c31 595 tic80*-*-*)
cd6213ff 596 targ_defvec=tic80coff_vec
76af94b9 597 targ_underscore=yes
cd6213ff
FF
598 ;;
599
600# end-sanitize-tic80
20b2c808 601
f7954d86
MM
602 v850-*-*)
603 targ_defvec=bfd_elf32_v850_vec
604 ;;
8988d935
NC
605# start-sanitize-v850e
606 v850e-*-*)
607 targ_defvec=bfd_elf32_v850_vec
608 ;;
0b3fcc1c 609 v850ea-*-*)
8988d935
NC
610 targ_defvec=bfd_elf32_v850_vec
611 ;;
6b5f5d61 612# end-sanitize-v850e
3baa24ad 613#if HAVE_host_aout_vec
dee99794 614 vax-*-bsd* | vax-*-ultrix*)
2b79a104
ILT
615 targ_defvec=host_aout_vec
616 targ_underscore=yes
617 ;;
dee99794 618#endif
2b79a104 619
0dc4c667
ILT
620 vax*-*-*vms*)
621 targ_defvec=vms_vax_vec
622 ;;
623
2b79a104
ILT
624 we32k-*-*)
625 targ_defvec=we32kcoff_vec
626 ;;
627
628 w65-*-*)
629 targ_defvec=w65_vec
630 ;;
631
632 z8k*-*-*)
633 targ_defvec=z8kcoff_vec
634 targ_underscore=yes
635 ;;
636
637 *-*-ieee*)
638 targ_defvec=ieee_vec
639 ;;
640
641 *-adobe-*)
dee99794 642 targ_defvec=a_out_adobe_vec
2b79a104
ILT
643 targ_underscore=yes
644 ;;
645
646 *-sony-*)
647 targ_defvec=newsos3_vec
648 targ_underscore=yes
649 ;;
650
651 *-tandem-*)
652 targ_defvec=m68kcoff_vec
653 targ_selvecs=ieee_vec
654 ;;
dee99794 655# END OF targmatch.h
2b79a104
ILT
656 *)
657 echo 1>&2 "*** BFD does not support target ${targ}."
658 echo 1>&2 "*** Look in bfd/config.bfd for supported targets."
659 exit 1
660 ;;
661esac
0dc4c667
ILT
662
663# If we support any ELF target, then automatically add support for the
664# generic ELF targets. This permits an objdump with some ELF support
665# to be used on an arbitrary ELF file for anything other than
666# relocation information.
667case "${targ_defvec} ${targ_selvecs}" in
668 *bfd_elf64*)
669 targ_selvecs="${targ_selvecs} bfd_elf64_little_generic_vec bfd_elf64_big_generic_vec bfd_elf32_little_generic_vec bfd_elf32_big_generic_vec"
670 ;;
671 *bfd_elf32*)
672 targ_selvecs="${targ_selvecs} bfd_elf32_little_generic_vec bfd_elf32_big_generic_vec"
673 ;;
674esac
This page took 0.21166 seconds and 4 git commands to generate.