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