]>
Commit | Line | Data |
---|---|---|
252b5132 RH |
1 | # 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 | |
e9e69f5a AM |
8 | # targ64_selvecs Vectors to build if --enable-64-bit-bfd is given |
9 | # or if host is 64 bit. | |
252b5132 RH |
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= | |
e9e69f5a | 28 | targ64_selvecs= |
252b5132 RH |
29 | targ_cflags= |
30 | targ_underscore=no | |
31 | ||
32 | targ_cpu=`echo $targ | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
33 | case "${targ_cpu}" in | |
7649aa50 NC |
34 | alpha*) targ_archs=bfd_alpha_arch ;; |
35 | arm*) targ_archs=bfd_arm_arch ;; | |
36 | c30*) targ_archs=bfd_tic30_arch ;; | |
37 | c54x*) targ_archs=bfd_tic54x_arch ;; | |
d172d4ba | 38 | dlx*) targ_archs=bfd_dlx_arch ;; |
7649aa50 NC |
39 | hppa*) targ_archs=bfd_hppa_arch ;; |
40 | i[3456]86) targ_archs=bfd_i386_arch ;; | |
41 | i370) targ_archs=bfd_i370_arch ;; | |
60bcf0fa NC |
42 | m6811*|m68hc11*) targ_archs="bfd_m68hc11_arch bfd_m68hc12_arch" ;; |
43 | m6812*|m68hc12*) targ_archs="bfd_m68hc12_arch bfd_m68hc11_arch" ;; | |
7649aa50 NC |
44 | m68*) targ_archs=bfd_m68k_arch ;; |
45 | m88*) targ_archs=bfd_m88k_arch ;; | |
46 | mips*) targ_archs=bfd_mips_arch ;; | |
3b16e843 | 47 | or32*) targ_archs=bfd_or32_arch ;; |
7649aa50 NC |
48 | pdp11*) targ_archs=bfd_pdp11_arch ;; |
49 | pj*) targ_archs="bfd_pj_arch bfd_i386_arch";; | |
50 | powerpc*) targ_archs="bfd_rs6000_arch bfd_powerpc_arch" ;; | |
51 | rs6000) targ_archs="bfd_rs6000_arch bfd_powerpc_arch" ;; | |
52 | s390*) targ_archs=bfd_s390_arch ;; | |
53 | sh*) targ_archs=bfd_sh_arch ;; | |
54 | sparc*) targ_archs=bfd_sparc_arch ;; | |
55 | strongarm*) targ_archs=bfd_arm_arch ;; | |
56 | thumb*) targ_archs=bfd_arm_arch ;; | |
57 | v850*) targ_archs=bfd_v850_arch ;; | |
58 | x86_64) targ_archs=bfd_i386_arch ;; | |
59 | xscale*) targ_archs=bfd_arm_arch ;; | |
60 | z8k*) targ_archs=bfd_z8k_arch ;; | |
61 | *) targ_archs=bfd_${targ_cpu}_arch ;; | |
252b5132 RH |
62 | esac |
63 | ||
64 | ||
65 | # WHEN ADDING ENTRIES TO THIS MATRIX: | |
66 | # Make sure that the left side always has two dashes. Otherwise you | |
67 | # can get spurious matches. Even for unambiguous cases, do this as a | |
68 | # convention, else the table becomes a real mess to understand and maintain. | |
69 | ||
70 | case "${targ}" in | |
71 | # START OF targmatch.h | |
72 | #ifdef BFD64 | |
690cc98b | 73 | alpha*-*-netbsd* | alpha*-*-freebsd* | alpha*-*-openbsd*) |
252b5132 RH |
74 | targ_defvec=bfd_elf64_alpha_vec |
75 | targ_selvecs=ecoffalpha_little_vec | |
76 | ;; | |
77 | alpha*-*-netware*) | |
78 | targ_defvec=ecoffalpha_little_vec | |
79 | targ_selvecs=nlm32_alpha_vec | |
80 | ;; | |
81 | alpha*-*-linuxecoff*) | |
82 | targ_defvec=ecoffalpha_little_vec | |
83 | targ_selvecs=bfd_elf64_alpha_vec | |
84 | ;; | |
85 | alpha*-*-linux-gnu* | alpha*-*-elf*) | |
86 | targ_defvec=bfd_elf64_alpha_vec | |
87 | targ_selvecs=ecoffalpha_little_vec | |
88 | ;; | |
89 | alpha*-*-*vms*) | |
90 | targ_defvec=vms_alpha_vec | |
91 | ;; | |
92 | alpha*-*-*) | |
93 | targ_defvec=ecoffalpha_little_vec | |
94 | ;; | |
7b6dab7f TW |
95 | ia64*-*-aix*) |
96 | targ_defvec=bfd_elf64_ia64_aix_little_vec | |
97 | targ_selvecs="bfd_elf64_ia64_aix_big_vec bfd_efi_app_ia64_vec" | |
98 | ;; | |
9596feea | 99 | ia64*-*-freebsd* | ia64*-*-netbsd* | ia64*-*-linux-gnu* | ia64*-*-elf*) |
800eeca4 JW |
100 | targ_defvec=bfd_elf64_ia64_little_vec |
101 | targ_selvecs="bfd_elf64_ia64_big_vec bfd_efi_app_ia64_vec" | |
102 | ;; | |
bbe66d08 | 103 | ia64*-*-hpux*) |
fcf12726 AM |
104 | targ_defvec=bfd_elf32_ia64_hpux_big_vec |
105 | targ_selvecs="bfd_elf64_ia64_hpux_big_vec" | |
bbe66d08 | 106 | ;; |
690cc98b | 107 | sparc64-*-freebsd* | sparc64-*-netbsd* | sparc64-*-openbsd*) |
bc11ab2b JL |
108 | targ_defvec=bfd_elf64_sparc_vec |
109 | targ_selvecs="bfd_elf32_sparc_vec sunos_big_vec" | |
110 | ;; | |
252b5132 RH |
111 | #endif /* BFD64 */ |
112 | ||
113 | arc-*-elf*) | |
114 | targ_defvec=bfd_elf32_littlearc_vec | |
115 | targ_selvecs=bfd_elf32_bigarc_vec | |
116 | ;; | |
117 | ||
658f2588 JT |
118 | armeb-*-netbsdelf*) |
119 | targ_defvec=bfd_elf32_bigarm_vec | |
120 | targ_selvecs="bfd_elf32_littlearm_vec armnetbsd_vec" | |
121 | ;; | |
61d0bc33 AM |
122 | arm-*-netbsdelf*) |
123 | targ_defvec=bfd_elf32_littlearm_vec | |
124 | targ_selvecs="bfd_elf32_bigarm_vec armnetbsd_vec" | |
125 | ;; | |
056a1d49 | 126 | arm-*-netbsd* | arm-*-openbsd*) |
021e3cc0 | 127 | targ_defvec=armnetbsd_vec |
4a253e81 | 128 | targ_selvecs="bfd_elf32_littlearm_vec bfd_elf32_bigarm_vec" |
021e3cc0 NC |
129 | targ_underscore=yes |
130 | ;; | |
7e392df6 NC |
131 | arm-*-nto* | nto*arm*) |
132 | targ_defvec=bfd_elf32_littlearmqnx_vec | |
133 | targ_selvecs=bfd_elf32_bigarmqnx_vec | |
134 | ;; | |
252b5132 RH |
135 | arm-*-riscix*) |
136 | targ_defvec=riscix_vec | |
137 | ;; | |
138 | arm-epoc-pe*) | |
139 | targ_defvec=arm_epoc_pe_little_vec | |
140 | targ_selvecs="arm_epoc_pe_little_vec arm_epoc_pe_big_vec arm_epoc_pei_little_vec arm_epoc_pei_big_vec" | |
141 | targ_underscore=no | |
d8adc60f | 142 | targ_cflags=-DARM_COFF_BUGFIX |
252b5132 | 143 | ;; |
17505c5c NC |
144 | arm-wince-pe | arm-*-wince) |
145 | targ_defvec=armpe_little_vec | |
146 | targ_selvecs="armpe_little_vec armpe_big_vec armpei_little_vec armpei_big_vec" | |
147 | targ_underscore=no | |
148 | targ_cflags=-DARM_WINCE | |
149 | ;; | |
252b5132 RH |
150 | arm-*-pe*) |
151 | targ_defvec=armpe_little_vec | |
152 | targ_selvecs="armpe_little_vec armpe_big_vec armpei_little_vec armpei_big_vec" | |
153 | targ_underscore=yes | |
154 | ;; | |
60bcf0fa | 155 | arm-*-aout | armel-*-aout) |
252b5132 RH |
156 | targ_defvec=aout_arm_little_vec |
157 | targ_selvecs=aout_arm_big_vec | |
158 | ;; | |
159 | armeb-*-aout) | |
160 | targ_defvec=aout_arm_big_vec | |
161 | targ_selvecs=aout_arm_little_vec | |
162 | ;; | |
87748b32 NC |
163 | arm-*-vxworks*) |
164 | targ_defvec=armcoff_little_vec | |
165 | targ_selvecs=armcoff_big_vec | |
166 | targ_underscore=yes | |
d8adc60f | 167 | targ_cflags=-DARM_COFF_BUGFIX |
87748b32 | 168 | ;; |
252b5132 RH |
169 | arm-*-coff) |
170 | targ_defvec=armcoff_little_vec | |
171 | targ_selvecs=armcoff_big_vec | |
172 | targ_underscore=yes | |
173 | ;; | |
ddcfc5fc NC |
174 | arm-*-rtems*) |
175 | targ_defvec=bfd_elf32_littlearm_vec | |
176 | targ_selvecs=bfd_elf32_bigarm_vec | |
177 | ;; | |
1bde2d57 PB |
178 | armeb-*-elf | arm*b-*-linux-gnu*) |
179 | targ_defvec=bfd_elf32_bigarm_vec | |
180 | targ_selvecs=bfd_elf32_littlearm_vec | |
181 | ;; | |
d4af9775 | 182 | arm-*-elf | arm-*-freebsd* | arm*-*-linux-gnu* | arm*-*-conix* | arm*-*-uclinux*) |
252b5132 RH |
183 | targ_defvec=bfd_elf32_littlearm_vec |
184 | targ_selvecs=bfd_elf32_bigarm_vec | |
185 | ;; | |
24c603fa AH |
186 | arm9e-*-elf) |
187 | targ_defvec=bfd_elf32_littlearm_vec | |
188 | targ_selvecs=bfd_elf32_bigarm_vec | |
189 | ;; | |
252b5132 RH |
190 | arm-*-oabi) |
191 | targ_defvec=bfd_elf32_littlearm_oabi_vec | |
192 | targ_selvecs=bfd_elf32_bigarm_oabi_vec | |
193 | ;; | |
194 | ||
195 | thumb-*-coff) | |
196 | targ_defvec=armcoff_little_vec | |
197 | targ_selvecs=armcoff_big_vec | |
198 | targ_underscore=yes | |
199 | ;; | |
200 | thumb-*-oabi) | |
201 | targ_defvec=bfd_elf32_littlearm_oabi_vec | |
202 | targ_selvecs=bfd_elf32_bigarm_oabi_vec | |
203 | ;; | |
204 | thumb-*-elf) | |
205 | targ_defvec=bfd_elf32_littlearm_vec | |
206 | targ_selvecs=bfd_elf32_bigarm_vec | |
207 | ;; | |
208 | thumb-epoc-pe*) | |
209 | targ_defvec=arm_epoc_pe_little_vec | |
210 | targ_selvecs="arm_epoc_pe_little_vec arm_epoc_pe_big_vec arm_epoc_pei_little_vec arm_epoc_pei_big_vec" | |
211 | targ_underscore=no | |
212 | ;; | |
213 | thumb-*-pe*) | |
214 | targ_defvec=armpe_little_vec | |
215 | targ_selvecs="armpe_little_vec armpe_big_vec armpei_little_vec armpei_big_vec" | |
216 | targ_underscore=yes | |
217 | ;; | |
218 | strongarm-*-elf) | |
219 | targ_defvec=bfd_elf32_littlearm_vec | |
220 | targ_selvecs=bfd_elf32_bigarm_vec | |
221 | ;; | |
222 | strongarm-*-coff) | |
223 | targ_defvec=armcoff_little_vec | |
224 | targ_selvecs=armcoff_big_vec | |
225 | targ_underscore=yes | |
226 | ;; | |
077b8428 NC |
227 | xscale-*-elf) |
228 | targ_defvec=bfd_elf32_littlearm_vec | |
229 | targ_selvecs=bfd_elf32_bigarm_vec | |
230 | ;; | |
231 | xscale-*-coff) | |
232 | targ_defvec=armcoff_little_vec | |
233 | targ_selvecs=armcoff_big_vec | |
234 | targ_underscore=yes | |
235 | ;; | |
252b5132 RH |
236 | |
237 | a29k-*-ebmon* | a29k-*-udi* | a29k-*-coff* | a29k-*-sym1* | \ | |
ddcfc5fc | 238 | a29k-*-vxworks* | a29k-*-sysv* | a29k-*rtems*) |
252b5132 RH |
239 | targ_defvec=a29kcoff_big_vec |
240 | targ_selvecs=sunos_big_vec | |
241 | targ_underscore=yes | |
242 | ;; | |
243 | a29k-*-aout* | a29k-*-bsd* | a29k-*-vsta*) | |
244 | targ_defvec=sunos_big_vec | |
245 | targ_underscore=yes | |
246 | ;; | |
247 | ||
adde6300 AM |
248 | avr-*-*) |
249 | targ_defvec=bfd_elf32_avr_vec | |
250 | ;; | |
251 | ||
252b5132 RH |
252 | c30-*-*aout* | tic30-*-*aout*) |
253 | targ_defvec=tic30_aout_vec | |
254 | ;; | |
255 | c30-*-*coff* | tic30-*-*coff*) | |
256 | targ_defvec=tic30_coff_vec | |
257 | ;; | |
258 | ||
81635ce4 TW |
259 | c54x*-*-*coff* | tic54x-*-*coff*) |
260 | targ_defvec=tic54x_coff1_vec | |
261 | targ_selvecs="tic54x_coff1_beh_vec tic54x_coff2_vec tic54x_coff2_beh_vec tic54x_coff0_vec tic54x_coff0_beh_vec" | |
262 | targ_underscore=yes | |
263 | ;; | |
264 | ||
06c15ad7 HPN |
265 | cris-*-*) |
266 | targ_defvec=cris_aout_vec | |
4da81684 HPN |
267 | targ_selvecs="bfd_elf32_us_cris_vec bfd_elf32_cris_vec ieee_vec" |
268 | targ_underscore=yes # Note: not true for bfd_elf32_cris_vec. | |
06c15ad7 HPN |
269 | ;; |
270 | ||
252b5132 RH |
271 | d10v-*-*) |
272 | targ_defvec=bfd_elf32_d10v_vec | |
273 | ;; | |
274 | ||
d172d4ba NC |
275 | dlx-*-elf*) |
276 | targ_defvec=bfd_elf32_dlx_big_vec | |
277 | targ_selvecs="bfd_elf32_dlx_big_vec" | |
278 | ;; | |
279 | ||
252b5132 RH |
280 | d30v-*-*) |
281 | targ_defvec=bfd_elf32_d30v_vec | |
282 | ;; | |
283 | ||
284 | fr30-*-elf) | |
285 | targ_defvec=bfd_elf32_fr30_vec | |
286 | ;; | |
287 | ||
4e5ba5b7 DB |
288 | frv-*-elf) |
289 | targ_defvec=bfd_elf32_frv_vec | |
290 | ;; | |
291 | ||
252b5132 | 292 | |
e01b0e69 JR |
293 | h8300*-*-elf) |
294 | targ_defvec=bfd_elf32_h8300_vec | |
295 | targ_underscore=yes | |
296 | ;; | |
297 | ||
252b5132 RH |
298 | h8300*-*-*) |
299 | targ_defvec=h8300coff_vec | |
300 | targ_underscore=yes | |
301 | ;; | |
302 | ||
303 | h8500-*-*) | |
304 | targ_defvec=h8500coff_vec | |
305 | targ_underscore=yes | |
306 | ;; | |
307 | ||
60bcf0fa | 308 | #ifdef BFD64 |
edd21aca | 309 | hppa*64*-*-linux-gnu*) |
d952f17a AM |
310 | targ_defvec=bfd_elf64_hppa_linux_vec |
311 | targ_selvecs=bfd_elf64_hppa_vec | |
edd21aca | 312 | ;; |
d1dab720 | 313 | hppa*64*-*-hpux11*) |
e59db122 | 314 | targ_defvec=bfd_elf64_hppa_vec |
d952f17a | 315 | targ_selvecs=bfd_elf64_hppa_linux_vec |
e59db122 JL |
316 | targ_cflags=-DHPUX_LARGE_AR_IDS |
317 | ;; | |
318 | #endif | |
edd21aca | 319 | |
d952f17a AM |
320 | hppa*-*-linux-gnu*) |
321 | targ_defvec=bfd_elf32_hppa_linux_vec | |
322 | targ_selvecs=bfd_elf32_hppa_vec | |
323 | ;; | |
690cc98b | 324 | hppa*-*-*elf* | hppa*-*-lites* | hppa*-*-netbsd* | hppa*-*-sysv4* | hppa*-*-rtems* | hppa*-*-openbsd*) |
edd21aca | 325 | targ_defvec=bfd_elf32_hppa_vec |
d952f17a | 326 | targ_selvecs=bfd_elf32_hppa_linux_vec |
edd21aca AM |
327 | ;; |
328 | ||
252b5132 RH |
329 | #if defined (HOST_HPPAHPUX) || defined (HOST_HPPABSD) || defined (HOST_HPPAOSF) || defined (HOST_HPPAMPEIX) |
330 | hppa*-*-bsd*) | |
331 | targ_defvec=som_vec | |
332 | targ_selvecs=bfd_elf32_hppa_vec | |
e59db122 | 333 | ;; |
252b5132 RH |
334 | hppa*-*-hpux* | hppa*-*-hiux* | hppa*-*-mpeix*) |
335 | targ_defvec=som_vec | |
336 | ;; | |
337 | hppa*-*-osf*) | |
338 | targ_defvec=som_vec | |
339 | targ_selvecs=bfd_elf32_hppa_vec | |
e59db122 | 340 | ;; |
252b5132 RH |
341 | #endif /* defined (HOST_HPPAHPUX) || defined (HOST_HPPABSD) || defined (HOST_HPPAOSF) */ |
342 | ||
5b93d8bb AM |
343 | i370-*-*) |
344 | targ_defvec=bfd_elf32_i370_vec | |
345 | targ_selvecs="bfd_elf32_i370_vec" | |
346 | ;; | |
252b5132 RH |
347 | i[3456]86-*-sco3.2v5*coff) |
348 | targ_defvec=i386coff_vec | |
349 | targ_selvecs=bfd_elf32_i386_vec | |
350 | ;; | |
4766cbee | 351 | i[3456]86-*-sysv4* | i[3456]86-*-unixware* | i[3456]86-*-solaris2* | \ |
7a50d4ac | 352 | i[3456]86-*-elf | i[3456]86-*-sco3.2v5* | \ |
252b5132 RH |
353 | i[3456]86-*-dgux* | i[3456]86-*-sysv5*) |
354 | targ_defvec=bfd_elf32_i386_vec | |
355 | targ_selvecs=i386coff_vec | |
356 | ;; | |
caf47ea6 AM |
357 | i[3456]86-*-nto-qnx*) |
358 | targ_defvec=bfd_elf32_i386qnx_vec | |
359 | targ_selvecs=i386coff_vec | |
360 | ;; | |
8848a8d0 CF |
361 | i[3456]86-*-chorus*) |
362 | targ_defvec=bfd_elf32_i386_vec | |
363 | ;; | |
252b5132 RH |
364 | i[3456]86-*-msdosdjgpp* | i[3456]*-*-go32* | i[3456]86-go32-rtems* ) |
365 | targ_defvec=go32coff_vec | |
366 | targ_selvecs="go32stubbedcoff_vec i386aout_vec" | |
367 | ;; | |
368 | i[3456]86-*-sysv* | i[3456]86-*-isc* | i[3456]86-*-sco* | i[3456]86-*-coff | \ | |
2e9a84c8 RH |
369 | i[3456]86-*-aix*) |
370 | targ_defvec=i386coff_vec | |
371 | ;; | |
d43ded80 | 372 | i[3456]86*-*-rtemscoff*) |
252b5132 | 373 | targ_defvec=i386coff_vec |
2e9a84c8 | 374 | targ_selvecs="bfd_elf32_i386_vec i386aout_vec" |
252b5132 | 375 | ;; |
d43ded80 PB |
376 | i[3456]86-*-rtemself* | i[3456]86-*-rtems*) |
377 | targ_defvec=bfd_elf32_i386_vec | |
378 | targ_selvecs="i386coff_vec i386aout_vec" | |
379 | ;; | |
2e9a84c8 | 380 | i[3456]86-sequent-bsd*) |
252b5132 RH |
381 | targ_defvec=i386dynix_vec |
382 | targ_underscore=yes | |
383 | ;; | |
384 | i[3456]86-*-bsd*) | |
385 | targ_defvec=i386bsd_vec | |
386 | targ_underscore=yes | |
387 | ;; | |
7a50d4ac ILT |
388 | i[3456]86-*-freebsdaout* | i[3456]86-*-freebsd[12].* | \ |
389 | i[3456]86-*-freebsd[12]) | |
252b5132 RH |
390 | targ_defvec=i386freebsd_vec |
391 | targ_selvecs=i386bsd_vec | |
392 | targ_underscore=yes | |
393 | ;; | |
7a50d4ac ILT |
394 | i[3456]86-*-freebsd*) |
395 | targ_defvec=bfd_elf32_i386_vec | |
396 | targ_selvecs=i386coff_vec | |
397 | ;; | |
0af288f3 C |
398 | i[3456]86-*-netbsdelf*) |
399 | targ_defvec=bfd_elf32_i386_vec | |
400 | targ_selvecs=i386netbsd_vec | |
401 | ;; | |
436e8db0 NC |
402 | i[3456]86-*-netbsdpe*) |
403 | targ_defvec=i386pe_vec | |
404 | targ_selvecs="i386pe_vec i386pei_vec bfd_elf32_i386_vec" | |
405 | ;; | |
0af288f3 | 406 | i[3456]86-*-netbsdaout* | i[3456]86-*-netbsd* | i[3456]86-*-openbsd*) |
252b5132 | 407 | targ_defvec=i386netbsd_vec |
0af288f3 | 408 | targ_selvecs="bfd_elf32_i386_vec i386bsd_vec" |
252b5132 RH |
409 | targ_underscore=yes |
410 | ;; | |
411 | i[3456]86-*-netware*) | |
412 | targ_defvec=bfd_elf32_i386_vec | |
413 | targ_selvecs="nlm32_i386_vec i386coff_vec i386aout_vec" | |
414 | ;; | |
415 | i[3456]86-*-linux*aout*) | |
416 | targ_defvec=i386linux_vec | |
417 | targ_selvecs=bfd_elf32_i386_vec | |
418 | targ_underscore=yes | |
419 | ;; | |
420 | i[3456]86-*-linux-gnu*) | |
421 | targ_defvec=bfd_elf32_i386_vec | |
fac41780 | 422 | targ_selvecs="i386linux_vec bfd_efi_app_ia32_vec" |
252b5132 | 423 | ;; |
956cd1d6 | 424 | #ifdef BFD64 |
d4af9775 DB |
425 | x86_64-*-freebsd*) |
426 | targ_defvec=bfd_elf64_x86_64_vec | |
427 | targ_selvecs="bfd_elf32_i386_vec i386coff_vec bfd_efi_app_ia32_vec" | |
8a8b2d4b AJ |
428 | ;; |
429 | x86_64-*-netbsd*) | |
430 | targ_defvec=bfd_elf64_x86_64_vec | |
431 | targ_selvecs="bfd_elf32_i386_vec i386netbsd_vec i386coff_vec bfd_efi_app_ia32_vec" | |
d4af9775 | 432 | ;; |
8d88c4ca NC |
433 | x86_64-*-linux-gnu*) |
434 | targ_defvec=bfd_elf64_x86_64_vec | |
435 | targ_selvecs="bfd_elf32_i386_vec i386linux_vec bfd_efi_app_ia32_vec" | |
436 | ;; | |
437 | #endif | |
252b5132 RH |
438 | i[3456]86-*-lynxos*) |
439 | targ_defvec=i386lynx_coff_vec | |
440 | targ_selvecs=i386lynx_aout_vec | |
441 | ;; | |
442 | i[3456]86-*-gnu*) | |
443 | targ_defvec=bfd_elf32_i386_vec | |
444 | ;; | |
445 | i[3456]86-*-mach* | i[3456]86-*-osf1mk*) | |
446 | targ_defvec=i386mach3_vec | |
447 | targ_cflags=-DSTAT_FOR_EXEC | |
448 | targ_underscore=yes | |
449 | ;; | |
450 | i[3456]86-*-os9k) | |
451 | targ_defvec=i386os9k_vec | |
452 | ;; | |
453 | i[3456]86-*-msdos*) | |
454 | targ_defvec=i386aout_vec | |
455 | targ_selvecs=i386msdos_vec | |
456 | ;; | |
457 | i[3456]86-*-moss*) | |
458 | targ_defvec=bfd_elf32_i386_vec | |
459 | targ_selvecs="i386msdos_vec i386aout_vec" | |
460 | ;; | |
461 | i[3456]86-*-beospe*) | |
462 | targ_defvec=i386pe_vec | |
463 | targ_selvecs="i386pe_vec i386pei_vec" | |
464 | ;; | |
465 | i[3456]86-*-beoself* | i[3456]86-*-beos*) | |
466 | targ_defvec=bfd_elf32_i386_vec | |
467 | targ_selvecs="i386pe_vec i386pei_vec" | |
468 | ;; | |
7d923127 ILT |
469 | i[3456]86-*-interix*) |
470 | targ_defvec=i386pei_vec | |
471 | targ_selvecs="i386pe_vec" | |
0717ebb7 ILT |
472 | # FIXME: This should eventually be checked at runtime. |
473 | targ_cflags=-DSTRICT_PE_FORMAT | |
7d923127 | 474 | ;; |
252b5132 RH |
475 | i[3456]86-*-mingw32* | i[3456]86-*-cygwin* | i[3456]86-*-winnt | i[3456]86-*-pe) |
476 | targ_defvec=i386pe_vec | |
16e9c715 | 477 | targ_selvecs="i386pe_vec i386pei_vec bfd_elf32_i386_vec" |
252b5132 RH |
478 | ;; |
479 | i[3456]86-none-*) | |
480 | targ_defvec=i386coff_vec | |
481 | ;; | |
482 | i[3456]86-*-aout* | i[3456]86*-*-vsta*) | |
483 | targ_defvec=i386aout_vec | |
484 | ;; | |
ac352105 ILT |
485 | i[3456]86-*-vxworks*) |
486 | targ_defvec=i386aout_vec | |
957ccf44 | 487 | targ_underscore=yes |
ac352105 | 488 | ;; |
59ff2774 NC |
489 | i[3456]86-*-chaos) |
490 | targ_defvec=bfd_elf32_i386_vec | |
491 | targ_selfvecs=i386chaos_vec | |
492 | ;; | |
252b5132 RH |
493 | |
494 | i860-*-mach3* | i860-*-osf1* | i860-*-coff*) | |
495 | targ_defvec=i860coff_vec | |
496 | ;; | |
9d751335 JE |
497 | i860-stardent-sysv4* | i860-stardent-elf*) |
498 | targ_defvec=bfd_elf32_i860_little_vec | |
499 | targ_selvecs="bfd_elf32_i860_vec bfd_elf32_i860_little_vec" | |
500 | ;; | |
252b5132 RH |
501 | i860-*-sysv4* | i860-*-elf*) |
502 | targ_defvec=bfd_elf32_i860_vec | |
503 | ;; | |
504 | ||
505 | i960-*-vxworks4* | i960-*-vxworks5.0) | |
506 | targ_defvec=b_out_vec_little_host | |
507 | targ_selvecs="b_out_vec_big_host icoff_little_vec icoff_big_vec ieee_vec" | |
508 | targ_underscore=yes | |
509 | ;; | |
510 | i960-*-vxworks5.* | i960-*-coff* | i960-*-sysv* | i960-*-rtems*) | |
511 | targ_defvec=icoff_little_vec | |
512 | targ_selvecs="icoff_big_vec b_out_vec_little_host b_out_vec_big_host ieee_vec" | |
513 | targ_underscore=yes | |
514 | ;; | |
515 | i960-*-vxworks* | i960-*-aout* | i960-*-bout* | i960-*-nindy*) | |
516 | targ_defvec=b_out_vec_little_host | |
517 | targ_selvecs="b_out_vec_big_host icoff_little_vec icoff_big_vec ieee_vec" | |
518 | targ_underscore=yes | |
519 | ;; | |
b2ef150d ILT |
520 | i960-*-elf*) |
521 | targ_defvec=bfd_elf32_i960_vec | |
522 | targ_selvecs="icoff_little_vec icoff_big_vec" | |
523 | ;; | |
252b5132 | 524 | |
cf88bb9f NC |
525 | ip2k-*-elf) |
526 | targ_defvec=bfd_elf32_ip2k_vec | |
527 | ;; | |
528 | ||
252b5132 RH |
529 | m32r-*-*) |
530 | targ_defvec=bfd_elf32_m32r_vec | |
531 | ;; | |
532 | ||
60bcf0fa NC |
533 | m68hc11-*-* | m6811-*-*) |
534 | targ_defvec=bfd_elf32_m68hc11_vec | |
535 | targ_selvecs="bfd_elf32_m68hc11_vec bfd_elf32_m68hc12_vec" | |
536 | ;; | |
537 | m68hc12-*-* | m6812-*-*) | |
538 | targ_defvec=bfd_elf32_m68hc12_vec | |
539 | targ_selvecs="bfd_elf32_m68hc11_vec bfd_elf32_m68hc12_vec" | |
540 | ;; | |
541 | ||
252b5132 RH |
542 | m68*-apollo-*) |
543 | targ_defvec=apollocoff_vec | |
544 | ;; | |
545 | m68*-bull-sysv*) | |
546 | targ_defvec=m68kcoffun_vec | |
547 | targ_underscore=yes | |
548 | ;; | |
549 | m68*-motorola-sysv*) | |
550 | targ_defvec=m68ksysvcoff_vec | |
551 | ;; | |
552 | m68*-hp-bsd*) | |
553 | targ_defvec=hp300bsd_vec | |
554 | targ_underscore=yes | |
555 | ;; | |
556 | m68*-*-aout*) | |
557 | targ_defvec=aout0_big_vec | |
f4bda984 | 558 | # We include cisco_core_big_vec here, rather than making a separate cisco |
252b5132 RH |
559 | # configuration, so that cisco-core.c gets routinely tested at |
560 | # least for compilation. | |
f4bda984 | 561 | targ_selvecs="cisco_core_big_vec ieee_vec" |
252b5132 RH |
562 | targ_underscore=yes |
563 | ;; | |
d43ded80 PB |
564 | m68*-*-rtemscoff*) |
565 | targ_defvec=m68kcoff_vec | |
566 | targ_selvecs="m68kcoff_vec versados_vec ieee_vec aout0_big_vec" | |
567 | ;; | |
252b5132 RH |
568 | m68*-*-elf* | m68*-*-sysv4*) |
569 | targ_defvec=bfd_elf32_m68k_vec | |
570 | targ_selvecs="m68kcoff_vec ieee_vec" | |
571 | ;; | |
2e9a84c8 | 572 | m68*-*-rtems*) |
d43ded80 | 573 | targ_defvec=bfd_elf32_m68k_vec |
2e9a84c8 RH |
574 | targ_selvecs="m68kcoff_vec versados_vec ieee_vec aout0_big_vec" |
575 | ;; | |
576 | m68*-*-coff* | m68*-*-sysv*) | |
252b5132 RH |
577 | targ_defvec=m68kcoff_vec |
578 | targ_selvecs="m68kcoff_vec versados_vec ieee_vec" | |
579 | ;; | |
580 | m68*-*-hpux*) | |
581 | targ_defvec=hp300hpux_vec | |
582 | targ_underscore=yes | |
583 | ;; | |
584 | m68*-*-linux*aout*) | |
585 | targ_defvec=m68klinux_vec | |
586 | targ_selvecs=bfd_elf32_m68k_vec | |
587 | targ_underscore=yes | |
588 | ;; | |
589 | m68*-*-linux-gnu*) | |
590 | targ_defvec=bfd_elf32_m68k_vec | |
591 | targ_selvecs=m68klinux_vec | |
592 | ;; | |
593 | m68*-*-gnu*) | |
594 | targ_defvec=bfd_elf32_m68k_vec | |
595 | # targ_selvecs=m68kmach3_vec | |
596 | # targ_cflags=-DSTAT_FOR_EXEC | |
597 | ;; | |
598 | m68*-*-lynxos*) | |
599 | targ_defvec=m68klynx_coff_vec | |
600 | targ_selvecs=m68klynx_aout_vec | |
601 | ;; | |
602 | m68*-hp*-netbsd*) | |
603 | targ_defvec=m68k4knetbsd_vec | |
604 | targ_selvecs="m68knetbsd_vec hp300bsd_vec sunos_big_vec" | |
605 | targ_underscore=yes | |
606 | ;; | |
0b69cd08 MG |
607 | m68*-*-netbsdelf*) |
608 | targ_defvec=bfd_elf32_m68k_vec | |
609 | targ_selvecs="m68knetbsd_vec m68k4knetbsd_vec hp300bsd_vec sunos_big_vec" | |
610 | ;; | |
611 | m68*-*-netbsdaout* | m68*-*-netbsd*) | |
612 | targ_defvec=m68knetbsd_vec | |
613 | targ_selvecs="m68k4knetbsd_vec bfd_elf32_m68k_vec hp300bsd_vec sunos_big_vec" | |
614 | targ_underscore=yes | |
615 | ;; | |
616 | m68*-*-openbsd*) | |
252b5132 RH |
617 | targ_defvec=m68knetbsd_vec |
618 | targ_selvecs="m68k4knetbsd_vec hp300bsd_vec sunos_big_vec" | |
619 | targ_underscore=yes | |
620 | ;; | |
621 | m68*-*-sunos* | m68*-*-os68k* | m68*-*-vxworks* | m68*-netx-* | \ | |
622 | m68*-*-bsd* | m68*-*-vsta*) | |
623 | targ_defvec=sunos_big_vec | |
624 | targ_underscore=yes | |
625 | ;; | |
626 | m68*-ericsson-*) | |
627 | targ_defvec=sunos_big_vec | |
628 | targ_selvecs="m68kcoff_vec versados_vec tekhex_vec" | |
629 | targ_underscore=yes | |
630 | ;; | |
631 | m68*-cbm-*) | |
632 | targ_defvec=bfd_elf32_m68k_vec | |
633 | targ_selvecs=m68kcoff_vec | |
634 | ;; | |
635 | m68*-apple-aux*) | |
636 | targ_defvec=m68kaux_coff_vec | |
637 | ;; | |
638 | m68*-*-psos*) | |
639 | targ_defvec=bfd_elf32_m68k_vec | |
640 | targ_selvecs=ieee_vec | |
641 | targ_underscore=yes | |
642 | ;; | |
643 | ||
644 | m88*-harris-cxux* | m88*-*-dgux* | m88*-*-sysv4*) | |
645 | targ_defvec=bfd_elf32_m88k_vec | |
646 | targ_selvecs=m88kbcs_vec | |
647 | ;; | |
648 | m88*-*-mach3*) | |
649 | targ_defvec=m88kmach3_vec | |
650 | targ_cflags=-DSTAT_FOR_EXEC | |
651 | ;; | |
652 | m88*-*-*) | |
653 | targ_defvec=m88kbcs_vec | |
654 | targ_underscore=yes | |
655 | ;; | |
656 | ||
657 | mcore-*-elf) | |
658 | targ_defvec=bfd_elf32_mcore_big_vec | |
659 | targ_selvecs="bfd_elf32_mcore_big_vec bfd_elf32_mcore_little_vec" | |
660 | ;; | |
661 | mcore-*-pe) | |
662 | targ_defvec=mcore_pe_big_vec | |
663 | targ_selvecs="mcore_pe_big_vec mcore_pe_little_vec mcore_pei_big_vec mcore_pei_little_vec" | |
664 | ;; | |
665 | ||
666 | mips*-big-*) | |
667 | targ_defvec=ecoff_big_vec | |
668 | targ_selvecs=ecoff_little_vec | |
669 | ;; | |
3cb60568 | 670 | mips*el-*-netbsd*) |
252b5132 RH |
671 | targ_defvec=bfd_elf32_littlemips_vec |
672 | targ_selvecs="bfd_elf32_bigmips_vec ecoff_little_vec ecoff_big_vec" | |
673 | ;; | |
102ab332 | 674 | mips*-*-netbsd*) |
252b5132 RH |
675 | targ_defvec=bfd_elf32_bigmips_vec |
676 | targ_selvecs="bfd_elf32_littlemips_vec ecoff_big_vec ecoff_little_vec" | |
677 | ;; | |
678 | mips*-dec-bsd*) | |
679 | targ_defvec=aout_mips_little_vec | |
680 | targ_underscore=yes | |
681 | ;; | |
682 | mips*-dec-mach3*) | |
683 | targ_defvec=aout_mips_little_vec | |
684 | targ_cflags=-DSTAT_FOR_EXEC | |
685 | ;; | |
686 | mips*-dec-* | mips*el-*-ecoff*) | |
687 | targ_defvec=ecoff_little_vec | |
688 | targ_selvecs=ecoff_big_vec | |
689 | ;; | |
690 | mips*-*-ecoff*) | |
691 | targ_defvec=ecoff_big_vec | |
692 | targ_selvecs=ecoff_little_vec | |
693 | ;; | |
36b45482 | 694 | #ifdef BFD64 |
252b5132 RH |
695 | mips*-*-irix6*) |
696 | targ_defvec=bfd_elf32_bigmips_vec | |
697 | targ_selvecs="bfd_elf32_littlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec" | |
698 | ;; | |
36b45482 | 699 | #endif |
252b5132 RH |
700 | mips*-*-irix5*) |
701 | targ_defvec=bfd_elf32_bigmips_vec | |
702 | targ_selvecs="bfd_elf32_littlemips_vec ecoff_big_vec ecoff_little_vec" | |
703 | ;; | |
704 | mips*-sgi-* | mips*-*-bsd*) | |
705 | targ_defvec=ecoff_big_vec | |
706 | targ_selvecs=ecoff_little_vec | |
707 | ;; | |
708 | mips*-*-lnews*) | |
709 | targ_defvec=ecoff_biglittle_vec | |
710 | targ_selvecs="ecoff_little_vec ecoff_big_vec" | |
711 | ;; | |
712 | mips*-*-mach3*) | |
713 | targ_defvec=aout_mips_little_vec | |
714 | targ_cflags=-DSTAT_FOR_EXEC | |
715 | ;; | |
17505c5c NC |
716 | mips*-*-pe*) |
717 | targ_defvec=mipslpe_vec | |
718 | targ_selvecs="mipslpei_vec mipslpei_vec ecoff_little_vec ecoff_big_vec" | |
719 | targ_underscore=yes | |
720 | ;; | |
252b5132 | 721 | mips*-*-sysv4*) |
dd745cfa UC |
722 | targ_defvec=bfd_elf32_tradbigmips_vec |
723 | targ_selvecs="bfd_elf32_tradlittlemips_vec ecoff_big_vec ecoff_little_vec" | |
252b5132 RH |
724 | ;; |
725 | mips*-*-sysv* | mips*-*-riscos*) | |
726 | targ_defvec=ecoff_big_vec | |
727 | targ_selvecs=ecoff_little_vec | |
728 | ;; | |
8848a8d0 | 729 | mips*el-*-elf* | mips*el-*-rtems* | mips*el-*-vxworks* | mips*-*-chorus*) |
252b5132 RH |
730 | targ_defvec=bfd_elf32_littlemips_vec |
731 | targ_selvecs="bfd_elf32_bigmips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec" | |
732 | ;; | |
733 | mips*-*-elf* | mips*-*-rtems* | mips*-*-vxworks*) | |
734 | targ_defvec=bfd_elf32_bigmips_vec | |
735 | targ_selvecs="bfd_elf32_littlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec" | |
736 | ;; | |
737 | mips*-*-none) | |
738 | targ_defvec=bfd_elf32_bigmips_vec | |
739 | targ_selvecs="bfd_elf32_littlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec" | |
740 | ;; | |
4008bd9b | 741 | mips*el-*-openbsd*) |
252b5132 RH |
742 | targ_defvec=bfd_elf32_littlemips_vec |
743 | targ_selvecs="bfd_elf32_bigmips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec ecoff_little_vec ecoff_big_vec" | |
744 | ;; | |
fdbafa10 | 745 | mips*-*-openbsd*) |
252b5132 RH |
746 | targ_defvec=bfd_elf32_bigmips_vec |
747 | targ_selvecs="bfd_elf32_littlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec ecoff_big_vec ecoff_little_vec" | |
748 | ;; | |
36b45482 | 749 | #ifdef BFD64 |
4008bd9b TS |
750 | mips64*el-*-linux*) |
751 | targ_defvec=bfd_elf32_tradlittlemips_vec | |
752 | targ_selvecs="bfd_elf32_tradbigmips_vec bfd_elf64_tradlittlemips_vec bfd_elf64_tradbigmips_vec" | |
753 | ;; | |
4008bd9b TS |
754 | mips64*-*-linux*) |
755 | targ_defvec=bfd_elf32_tradbigmips_vec | |
756 | targ_selvecs="bfd_elf32_tradlittlemips_vec bfd_elf64_tradbigmips_vec bfd_elf64_tradlittlemips_vec" | |
757 | ;; | |
36b45482 TS |
758 | #endif |
759 | mips*el-*-linux*) | |
760 | targ_defvec=bfd_elf32_tradlittlemips_vec | |
761 | targ_selvecs="bfd_elf32_tradbigmips_vec bfd_elf64_tradlittlemips_vec bfd_elf64_tradbigmips_vec ecoff_little_vec ecoff_big_vec" | |
762 | ;; | |
4008bd9b | 763 | mips*-*-linux*) |
fdbafa10 | 764 | targ_defvec=bfd_elf32_tradbigmips_vec |
d8fe1fed | 765 | targ_selvecs="bfd_elf32_tradlittlemips_vec bfd_elf64_tradbigmips_vec bfd_elf64_tradlittlemips_vec ecoff_big_vec ecoff_little_vec" |
fdbafa10 | 766 | ;; |
3c3bdf30 NC |
767 | #ifdef BFD64 |
768 | mmix-*-*) | |
769 | targ_defvec=bfd_elf64_mmix_vec | |
770 | targ_selvecs=bfd_mmo_vec | |
771 | ;; | |
772 | #endif | |
252b5132 RH |
773 | mn10200-*-*) |
774 | targ_defvec=bfd_elf32_mn10200_vec | |
775 | ;; | |
776 | ||
777 | mn10300-*-*) | |
778 | targ_defvec=bfd_elf32_mn10300_vec | |
779 | ;; | |
780 | ||
781 | ns32k-pc532-mach* | ns32k-pc532-ux*) | |
782 | targ_defvec=pc532machaout_vec | |
783 | targ_underscore=yes | |
784 | ;; | |
785 | ns32k-*-netbsd* | ns32k-*-lites* | ns32k-*-openbsd*) | |
786 | targ_defvec=pc532netbsd_vec | |
787 | targ_underscore=yes | |
788 | ;; | |
789 | ||
b3baf5d0 NC |
790 | openrisc-*-elf) |
791 | targ_defvec=bfd_elf32_openrisc_vec | |
792 | ;; | |
793 | ||
3b16e843 NC |
794 | or32-*-coff | or32-*-rtems*) |
795 | targ_defvec=or32coff_big_vec | |
796 | targ_underscore=yes | |
797 | ;; | |
798 | ||
799 | or32-*-elf) | |
800 | targ_defvec=bfd_elf32_or32_big_vec | |
801 | ;; | |
802 | ||
e135f41b NC |
803 | pdp11-*-*) |
804 | targ_defvec=pdp11_aout_vec | |
805 | targ_underscore=yes | |
806 | ;; | |
807 | ||
0bcb993b ILT |
808 | pj-*-*) |
809 | targ_defvec=bfd_elf32_pj_vec | |
810 | targ_selvecs="bfd_elf32_pj_vec bfd_elf32_pjl_vec" | |
811 | ;; | |
812 | ||
813 | pjl-*-*) | |
814 | targ_defvec=bfd_elf32_pjl_vec | |
815 | targ_selvecs="bfd_elf32_pjl_vec bfd_elf32_pj_vec bfd_elf32_i386_vec" | |
816 | ;; | |
817 | ||
eb1e0e80 NC |
818 | powerpc-*-aix5*) |
819 | targ_defvec=rs6000coff_vec | |
820 | targ_selvecs="aix5coff64_vec" | |
821 | want64=true | |
822 | ;; | |
8f28b845 | 823 | #ifdef BFD64 |
eb1e0e80 NC |
824 | powerpc64-*-aix5*) |
825 | targ_defvec=aix5coff64_vec | |
826 | targ_selvecs="rs6000coff_vec" | |
827 | want64=true | |
828 | ;; | |
680f9d5c | 829 | #endif |
eb1e0e80 | 830 | |
4603e845 | 831 | powerpc-*-aix* | powerpc-*-beos* | rs6000-*-*) |
252b5132 | 832 | targ_defvec=rs6000coff_vec |
102ab332 AM |
833 | targ64_selvecs=rs6000coff64_vec |
834 | case "${targ}" in | |
eb1e0e80 | 835 | *-*-aix4.[3456789]* | *-*-aix[56789]*) |
102ab332 | 836 | want64=true;; |
3e36d993 TR |
837 | |
838 | *) | |
839 | targ_cflags=-DSMALL_ARCHIVE;; | |
102ab332 | 840 | esac |
252b5132 | 841 | ;; |
a5ac692b | 842 | #ifdef BFD64 |
beb1bf64 TR |
843 | powerpc64-*-aix*) |
844 | targ_defvec=rs6000coff64_vec | |
102ab332 | 845 | targ_selvecs=rs6000coff_vec |
beb1bf64 | 846 | ;; |
5bd4f169 AM |
847 | powerpc64-*-elf* | powerpc-*-elf64* | powerpc64-*-linux*) |
848 | targ_defvec=bfd_elf64_powerpc_vec | |
849 | targ_selvecs="bfd_elf64_powerpcle_vec bfd_elf32_powerpc_vec bfd_elf32_powerpcle_vec rs6000coff_vec rs6000coff64_vec" | |
850 | ;; | |
851 | powerpc64le-*-elf* | powerpcle-*-elf64*) | |
852 | targ_defvec=bfd_elf64_powerpcle_vec | |
853 | targ_selvecs="bfd_elf64_powerpc_vec bfd_elf32_powerpcle_vec bfd_elf32_powerpc_vec rs6000coff_vec rs6000coff64_vec" | |
854 | ;; | |
a5ac692b | 855 | #endif |
252b5132 RH |
856 | powerpc-*-*bsd* | powerpc-*-elf* | powerpc-*-sysv4* | powerpc-*-eabi* | \ |
857 | powerpc-*-solaris2* | powerpc-*-linux-gnu* | powerpc-*-rtems* | \ | |
09c2219b | 858 | powerpc-*-chorus* | powerpc-*-vxworks* | powerpc-*-windiss*) |
252b5132 RH |
859 | targ_defvec=bfd_elf32_powerpc_vec |
860 | targ_selvecs="rs6000coff_vec bfd_elf32_powerpcle_vec ppcboot_vec" | |
5bd4f169 | 861 | targ64_selvecs="bfd_elf64_powerpc_vec bfd_elf64_powerpcle_vec" |
252b5132 RH |
862 | ;; |
863 | powerpc-*-macos* | powerpc-*-mpw*) | |
864 | targ_defvec=pmac_xcoff_vec | |
865 | ;; | |
866 | powerpc-*-netware*) | |
867 | targ_defvec=bfd_elf32_powerpc_vec | |
868 | targ_selvecs="nlm32_powerpc_vec rs6000coff_vec" | |
869 | ;; | |
870 | powerpcle-*-elf* | powerpcle-*-sysv4* | powerpcle-*-eabi* | \ | |
2e9a84c8 RH |
871 | powerpcle-*-solaris2* | powerpcle-*-linux-gnu* | powerpcle-*-vxworks* |\ |
872 | powerpcle-*-rtems*) | |
252b5132 RH |
873 | targ_defvec=bfd_elf32_powerpcle_vec |
874 | targ_selvecs="rs6000coff_vec bfd_elf32_powerpc_vec ppcboot_vec" | |
5bd4f169 | 875 | targ64_selvecs="bfd_elf64_powerpc_vec bfd_elf64_powerpcle_vec" |
252b5132 RH |
876 | ;; |
877 | ||
878 | powerpcle-*-pe | powerpcle-*-winnt* | powerpcle-*-cygwin*) | |
879 | targ_defvec=bfd_powerpcle_pe_vec | |
880 | targ_selvecs="bfd_powerpcle_pei_vec bfd_powerpc_pei_vec bfd_powerpcle_pe_vec bfd_powerpc_pe_vec" | |
881 | ;; | |
882 | ||
a85d7ed0 NC |
883 | s390-*-linux*) |
884 | targ_defvec=bfd_elf32_s390_vec | |
885 | ;; | |
886 | #ifdef BFD64 | |
887 | s390x-*-linux*) | |
888 | targ_defvec=bfd_elf64_s390_vec | |
889 | ;; | |
890 | #endif | |
891 | ||
fbca6ad9 | 892 | #ifdef BFD64 |
7a33bc10 JR |
893 | sh64l*-*-elf*) |
894 | targ_defvec=bfd_elf32_sh64l_vec | |
895 | targ_selvecs="bfd_elf32_sh64_vec bfd_elf64_sh64l_vec bfd_elf64_sh64_vec bfd_elf32_shl_vec bfd_elf32_sh_vec" | |
896 | targ_underscore=yes | |
897 | ;; | |
fbca6ad9 AO |
898 | sh64-*-elf*) |
899 | targ_defvec=bfd_elf32_sh64_vec | |
900 | targ_selvecs="bfd_elf32_sh64l_vec bfd_elf64_sh64_vec bfd_elf64_sh64l_vec bfd_elf32_sh_vec bfd_elf32_shl_vec" | |
901 | targ_underscore=yes | |
902 | ;; | |
629936c5 NC |
903 | sh64eb-*-linux*) |
904 | targ_defvec=bfd_elf32_shblin_vec | |
905 | targ_selvecs="bfd_elf32_shblin_vec bfd_elf32_sh64_vec bfd_elf64_sh64_vec bfd_elf32_sh_vec" | |
906 | ;; | |
907 | sh64-*-linux*) | |
908 | targ_defvec=bfd_elf32_shlin_vec | |
909 | targ_selvecs="bfd_elf32_shlin_vec bfd_elf32_sh64l_vec bfd_elf64_sh64l_vec bfd_elf32_shl_vec" | |
910 | ;; | |
fbca6ad9 AO |
911 | #endif /* BFD64 */ |
912 | ||
b129bfef AO |
913 | sh-*-linux*) |
914 | targ_defvec=bfd_elf32_shblin_vec | |
915 | targ_selvecs=bfd_elf32_shlin_vec | |
e58ee0cd HPN |
916 | #ifdef BFD64 |
917 | targ_selvecs="${targ_selvecs} bfd_elf32_sh64_vec bfd_elf32_sh64l_vec bfd_elf64_sh64_vec bfd_elf64_sh64l_vec" | |
918 | #endif | |
b129bfef | 919 | ;; |
7649aa50 NC |
920 | sh*eb-*-linux*) |
921 | targ_defvec=bfd_elf32_shblin_vec | |
922 | ;; | |
923 | sh*-*-linux*) | |
924 | targ_defvec=bfd_elf32_shlin_vec | |
925 | ;; | |
b129bfef | 926 | |
5b0e55b6 JT |
927 | #ifdef BFD64 |
928 | sh5le-*-netbsd*) | |
929 | targ_defvec=bfd_elf32_sh64lnbsd_vec | |
930 | targ_selvecs="bfd_elf32_sh64nbsd_vec bfd_elf64_sh64lnbsd_vec bfd_elf64_sh64nbsd_vec" | |
931 | ;; | |
932 | sh5-*-netbsd*) | |
933 | targ_defvec=bfd_elf32_sh64nbsd_vec | |
934 | targ_selvecs="bfd_elf32_sh64lnbsd_vec bfd_elf64_sh64lnbsd_vec bfd_elf64_sh64nbsd_vec" | |
935 | ;; | |
936 | ||
937 | sh64le-*-netbsd*) | |
938 | targ_defvec=bfd_elf64_sh64lnbsd_vec | |
939 | targ_selvecs="bfd_elf64_sh64nbsd_vec bfd_elf32_sh64lnbsd_vec bfd_elf32_sh64nbsd_vec" | |
940 | ;; | |
941 | sh64-*-netbsd*) | |
942 | targ_defvec=bfd_elf64_sh64nbsd_vec | |
943 | targ_selvecs="bfd_elf64_sh64lnbsd_vec bfd_elf32_sh64lnbsd_vec bfd_elf32_sh64nbsd_vec" | |
944 | ;; | |
945 | #endif | |
946 | ||
2051e1b5 JT |
947 | shle-*-netbsdelf*) |
948 | targ_defvec=bfd_elf32_shlnbsd_vec | |
949 | targ_selvecs="bfd_elf32_shnbsd_vec shcoff_vec shlcoff_vec" | |
950 | #ifdef BFD64 | |
951 | targ_selvecs="${targ_selvecs} bfd_elf32_sh64_vec bfd_elf32_sh64l_vec bfd_elf64_sh64_vec bfd_elf64_sh64l_vec" | |
952 | #endif | |
953 | ;; | |
8d05742f JT |
954 | sh*le-*-netbsdelf*) |
955 | targ_defvec=bfd_elf32_shlnbsd_vec | |
956 | targ_selvecs="bfd_elf32_shnbsd_vec shcoff_vec shlcoff_vec" | |
957 | ;; | |
e58ee0cd HPN |
958 | sh-*-netbsdelf*) |
959 | targ_defvec=bfd_elf32_shnbsd_vec | |
960 | targ_selvecs="bfd_elf32_shlnbsd_vec shcoff_vec shlcoff_vec" | |
961 | #ifdef BFD64 | |
962 | targ_selvecs="${targ_selvecs} bfd_elf32_sh64_vec bfd_elf32_sh64l_vec bfd_elf64_sh64_vec bfd_elf64_sh64l_vec" | |
963 | #endif | |
964 | ;; | |
8d05742f JT |
965 | sh*-*-netbsdelf*) |
966 | targ_defvec=bfd_elf32_shnbsd_vec | |
967 | targ_selvecs="bfd_elf32_shlnbsd_vec shcoff_vec shlcoff_vec" | |
968 | ;; | |
969 | ||
5d9b5481 | 970 | shl*-*-elf* | sh[1234]l*-*-elf* | sh3el*-*-elf*) |
7a33bc10 JR |
971 | targ_defvec=bfd_elf32_shl_vec |
972 | targ_selvecs="bfd_elf32_sh_vec shlcoff_vec shcoff_vec shlcoff_small_vec shcoff_small_vec" | |
973 | #ifdef BFD64 | |
974 | targ_selvecs="${targ_selvecs} bfd_elf32_sh64_vec bfd_elf32_sh64l_vec bfd_elf64_sh64_vec bfd_elf64_sh64l_vec" | |
975 | #endif | |
976 | targ_underscore=yes | |
977 | ;; | |
5d9b5481 | 978 | sh-*-elf* | sh[1234]*-elf* | sh-*-rtemself*) |
252b5132 RH |
979 | targ_defvec=bfd_elf32_sh_vec |
980 | targ_selvecs="bfd_elf32_shl_vec shcoff_vec shlcoff_vec shcoff_small_vec shlcoff_small_vec" | |
e58ee0cd HPN |
981 | #ifdef BFD64 |
982 | targ_selvecs="${targ_selvecs} bfd_elf32_sh64_vec bfd_elf32_sh64l_vec bfd_elf64_sh64_vec bfd_elf64_sh64l_vec" | |
983 | #endif | |
252b5132 RH |
984 | targ_underscore=yes |
985 | ;; | |
17505c5c NC |
986 | sh-*-pe) |
987 | targ_defvec=shlpe_vec | |
988 | targ_selvecs="shlpe_vec shlpei_vec" | |
989 | targ_underscore=yes | |
990 | ;; | |
252b5132 RH |
991 | sh-*-* | sh-*-rtems*) |
992 | targ_defvec=shcoff_vec | |
993 | targ_selvecs="shcoff_vec shlcoff_vec shcoff_small_vec shlcoff_small_vec" | |
994 | targ_underscore=yes | |
995 | ;; | |
996 | ||
997 | sparclet-*-aout*) | |
998 | targ_defvec=sunos_big_vec | |
999 | targ_selvecs=sparcle_aout_vec | |
1000 | targ_underscore=yes | |
1001 | ;; | |
1002 | sparc86x-*-aout*) | |
1003 | targ_defvec=sunos_big_vec | |
1004 | targ_underscore=yes | |
1005 | ;; | |
1006 | sparclite-*-elf* | sparc86x-*-elf*) | |
1007 | targ_defvec=bfd_elf32_sparc_vec | |
1008 | ;; | |
8848a8d0 CF |
1009 | sparc*-*-chorus*) |
1010 | targ_defvec=bfd_elf32_sparc_vec | |
1011 | ;; | |
252b5132 RH |
1012 | sparc-*-linux*aout*) |
1013 | targ_defvec=sparclinux_vec | |
1014 | targ_selvecs="bfd_elf32_sparc_vec sunos_big_vec" | |
1015 | targ_underscore=yes | |
1016 | ;; | |
1017 | sparc-*-linux-gnu*) | |
1018 | targ_defvec=bfd_elf32_sparc_vec | |
9d23b7fe | 1019 | targ_selvecs="sparclinux_vec bfd_elf64_sparc_vec sunos_big_vec" |
252b5132 RH |
1020 | ;; |
1021 | sparc-*-lynxos*) | |
1022 | targ_defvec=sparclynx_coff_vec | |
1023 | targ_selvecs=sparclynx_aout_vec | |
1024 | ;; | |
93be3c4b AC |
1025 | sparc-*-netbsdelf*) |
1026 | targ_defvec=bfd_elf32_sparc_vec | |
1027 | targ_selvecs=sparcnetbsd_vec | |
1028 | ;; | |
1029 | sparc-*-netbsdaout* | sparc-*-netbsd*) | |
1030 | targ_defvec=sparcnetbsd_vec | |
1031 | targ_selvecs=bfd_elf32_sparc_vec | |
1032 | targ_underscore=yes | |
1033 | ;; | |
1034 | sparc-*-openbsd*) | |
252b5132 RH |
1035 | targ_defvec=sparcnetbsd_vec |
1036 | targ_underscore=yes | |
1037 | ;; | |
246c6687 | 1038 | sparc-*-elf* | sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*) |
252b5132 RH |
1039 | targ_defvec=bfd_elf32_sparc_vec |
1040 | targ_selvecs=sunos_big_vec | |
1041 | ;; | |
246c6687 AO |
1042 | #ifdef BFD64 |
1043 | sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*) | |
1044 | targ_defvec=bfd_elf32_sparc_vec | |
1045 | targ_selvecs="bfd_elf64_sparc_vec sunos_big_vec" | |
1046 | ;; | |
1047 | #endif | |
252b5132 RH |
1048 | sparc-*-sysv4*) |
1049 | targ_defvec=bfd_elf32_sparc_vec | |
1050 | ;; | |
1051 | sparc-*-netware*) | |
1052 | targ_defvec=bfd_elf32_sparc_vec | |
1053 | targ_selvecs="nlm32_sparc_vec sunos_big_vec" | |
1054 | ;; | |
1055 | #ifdef BFD64 | |
1056 | sparc64-*-aout*) | |
1057 | targ_defvec=sunos_big_vec | |
1058 | targ_underscore=yes | |
1059 | ;; | |
1060 | sparc64-*-linux-gnu*) | |
1061 | targ_defvec=bfd_elf64_sparc_vec | |
1062 | targ_selvecs="bfd_elf32_sparc_vec sparclinux_vec sunos_big_vec" | |
1063 | ;; | |
1064 | sparc64-*-elf*) | |
1065 | targ_defvec=bfd_elf64_sparc_vec | |
1066 | targ_selvecs=bfd_elf32_sparc_vec | |
60bcf0fa | 1067 | ;; |
252b5132 RH |
1068 | #endif /* BFD64 */ |
1069 | sparc*-*-coff*) | |
1070 | targ_defvec=sparccoff_vec | |
1071 | ;; | |
ddcfc5fc NC |
1072 | sparc*-*-rtemsaout*) |
1073 | targ_defvec=sunos_big_vec | |
1074 | targ_selvecs="bfd_elf32_sparc_vec sparccoff_vec" | |
1075 | targ_underscore=yes | |
1076 | ;; | |
1077 | sparc*-*-rtems* | sparc*-*-rtemself*) | |
1078 | targ_defvec=bfd_elf32_sparc_vec | |
1079 | targ_selvecs="sunos_big_vec sparccoff_vec" | |
1080 | ;; | |
252b5132 RH |
1081 | sparc*-*-* | sparc*-*-rtems*) |
1082 | targ_defvec=sunos_big_vec | |
1083 | targ_underscore=yes | |
1084 | ;; | |
1085 | ||
1086 | #if HAVE_host_aout_vec | |
1087 | tahoe-*-*) | |
1088 | targ_defvec=host_aout_vec | |
1089 | targ_underscore=yes | |
1090 | ;; | |
1091 | #endif | |
1092 | ||
1093 | tic80*-*-*) | |
1094 | targ_defvec=tic80coff_vec | |
1095 | targ_underscore=yes | |
1096 | ;; | |
1097 | ||
1098 | ||
1099 | v850-*-*) | |
1100 | targ_defvec=bfd_elf32_v850_vec | |
1101 | ;; | |
1102 | v850e-*-*) | |
1103 | targ_defvec=bfd_elf32_v850_vec | |
1104 | ;; | |
1105 | v850ea-*-*) | |
1106 | targ_defvec=bfd_elf32_v850_vec | |
1107 | ;; | |
252b5132 | 1108 | |
90ace9e9 JT |
1109 | vax-*-netbsdelf*) |
1110 | targ_defvec=bfd_elf32_vax_vec | |
3c2bfad6 | 1111 | targ_selvecs="vaxnetbsd_vec vax1knetbsd_vec" |
90ace9e9 JT |
1112 | ;; |
1113 | ||
1114 | vax-*-netbsdaout* | vax-*-netbsd*) | |
1115 | targ_defvec=vaxnetbsd_vec | |
3c2bfad6 | 1116 | targ_selvecs="bfd_elf32_vax_vec vax1knetbsd_vec" |
90ace9e9 JT |
1117 | targ_underscore=yes |
1118 | ;; | |
1119 | ||
ba26fd96 AM |
1120 | vax-*-bsd* | vax-*-ultrix*) |
1121 | targ_defvec=vaxbsd_vec | |
1122 | targ_underscore=yes | |
1123 | ;; | |
1124 | ||
252b5132 RH |
1125 | vax*-*-*vms*) |
1126 | targ_defvec=vms_vax_vec | |
1127 | ;; | |
1128 | ||
1129 | we32k-*-*) | |
1130 | targ_defvec=we32kcoff_vec | |
1131 | ;; | |
1132 | ||
1133 | w65-*-*) | |
1134 | targ_defvec=w65_vec | |
1135 | ;; | |
1136 | ||
93fbbb04 GK |
1137 | xstormy16-*-elf) |
1138 | targ_defvec=bfd_elf32_xstormy16_vec | |
1139 | ;; | |
1140 | ||
252b5132 RH |
1141 | z8k*-*-*) |
1142 | targ_defvec=z8kcoff_vec | |
1143 | targ_underscore=yes | |
1144 | ;; | |
1145 | ||
1146 | *-*-ieee*) | |
1147 | targ_defvec=ieee_vec | |
1148 | ;; | |
1149 | ||
1150 | *-adobe-*) | |
1151 | targ_defvec=a_out_adobe_vec | |
1152 | targ_underscore=yes | |
1153 | ;; | |
1154 | ||
1155 | *-sony-*) | |
1156 | targ_defvec=newsos3_vec | |
1157 | targ_underscore=yes | |
1158 | ;; | |
1159 | ||
1160 | *-tandem-*) | |
1161 | targ_defvec=m68kcoff_vec | |
1162 | targ_selvecs=ieee_vec | |
1163 | ;; | |
1164 | # END OF targmatch.h | |
1165 | *) | |
1166 | echo 1>&2 "*** BFD does not support target ${targ}." | |
1167 | echo 1>&2 "*** Look in bfd/config.bfd for supported targets." | |
1168 | exit 1 | |
1169 | ;; | |
1170 | esac | |
1171 | ||
e9e69f5a AM |
1172 | case "${host64}${want64}" in |
1173 | *true*) | |
1174 | targ_selvecs="${targ_selvecs} ${targ64_selvecs}" | |
1175 | ;; | |
1176 | esac | |
1177 | ||
252b5132 RH |
1178 | # If we support any ELF target, then automatically add support for the |
1179 | # generic ELF targets. This permits an objdump with some ELF support | |
1180 | # to be used on an arbitrary ELF file for anything other than | |
1181 | # relocation information. | |
1182 | case "${targ_defvec} ${targ_selvecs}" in | |
1183 | *bfd_elf64*) | |
1184 | targ_selvecs="${targ_selvecs} bfd_elf64_little_generic_vec bfd_elf64_big_generic_vec bfd_elf32_little_generic_vec bfd_elf32_big_generic_vec" | |
1185 | ;; | |
1186 | *bfd_elf32*) | |
1187 | targ_selvecs="${targ_selvecs} bfd_elf32_little_generic_vec bfd_elf32_big_generic_vec" | |
1188 | ;; | |
1189 | esac |