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