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 | ;; | |
fa2b5a73 | 182 | #if defined (HOST_HPPAHPUX) || defined (HOST_HPPABSD) || defined (HOST_HPPAOSF) || defined (HOST_HPPAMPEIX) |
2b79a104 ILT |
183 | hppa*-*-bsd*) |
184 | targ_defvec=som_vec | |
185 | targ_selvecs=bfd_elf32_hppa_vec | |
186 | ;; | |
fa2b5a73 | 187 | hppa*-*-hpux* | hppa*-*-hiux* | hppa*-*-mpeix*) |
2b79a104 ILT |
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 | |
884949db | 277 | i[3456]86-*-mingw32* | i[3456]86-*-cygwin* | 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 | ;; | |
884949db ILT |
358 | m68*-*-gnu*) |
359 | targ_defvec=bfd_elf32_m68k_vec | |
360 | # targ_selvecs=m68kmach3_vec | |
361 | # targ_cflags=-DSTAT_FOR_EXEC | |
362 | ;; | |
2b79a104 ILT |
363 | m68*-*-lynxos*) |
364 | targ_defvec=m68klynx_coff_vec | |
365 | targ_selvecs=m68klynx_aout_vec | |
366 | ;; | |
11ab6da4 NH |
367 | m68*-hp*-netbsd*) |
368 | targ_defvec=m68k4knetbsd_vec | |
369 | targ_selvecs="m68knetbsd_vec hp300bsd_vec sunos_big_vec" | |
370 | targ_underscore=yes | |
371 | ;; | |
6a2922d5 | 372 | m68*-*-netbsd* | m68*-*-openbsd*) |
2b79a104 | 373 | targ_defvec=m68knetbsd_vec |
11ab6da4 | 374 | targ_selvecs="m68k4knetbsd_vec hp300bsd_vec sunos_big_vec" |
2b79a104 ILT |
375 | targ_underscore=yes |
376 | ;; | |
377 | m68*-*-sunos* | m68*-*-os68k* | m68*-*-vxworks* | m68*-netx-* | \ | |
378 | m68*-*-bsd* | m68*-*-vsta*) | |
379 | targ_defvec=sunos_big_vec | |
380 | targ_underscore=yes | |
381 | ;; | |
382 | m68*-ericsson-*) | |
383 | targ_defvec=sunos_big_vec | |
2503987b | 384 | targ_selvecs="m68kcoff_vec versados_vec tekhex_vec" |
2b79a104 ILT |
385 | targ_underscore=yes |
386 | ;; | |
767f22d5 FF |
387 | m68*-cbm-*) |
388 | targ_defvec=bfd_elf32_m68k_vec | |
389 | targ_selvecs=m68kcoff_vec | |
390 | ;; | |
d19df9b5 ILT |
391 | m68*-apple-aux*) |
392 | targ_defvec=m68kaux_coff_vec | |
393 | ;; | |
3998d526 ILT |
394 | m68*-*-psos*) |
395 | targ_defvec=bfd_elf32_m68k_vec | |
396 | targ_selvecs=ieee_vec | |
397 | targ_underscore=yes | |
398 | ;; | |
2b79a104 ILT |
399 | |
400 | m88*-harris-cxux* | m88*-*-dgux* | m88*-*-sysv4*) | |
401 | targ_defvec=bfd_elf32_m88k_vec | |
402 | targ_selvecs=m88kbcs_vec | |
403 | ;; | |
404 | m88*-*-mach3*) | |
405 | targ_defvec=m88kmach3_vec | |
406 | targ_cflags=-DSTAT_FOR_EXEC | |
407 | ;; | |
408 | m88*-*-*) | |
409 | targ_defvec=m88kbcs_vec | |
410 | targ_underscore=yes | |
411 | ;; | |
412 | ||
413 | mips*-big-*) | |
414 | targ_defvec=ecoff_big_vec | |
415 | targ_selvecs=ecoff_little_vec | |
416 | ;; | |
14bf95ea | 417 | mips-dec-netbsd* | mips*el*-*-netbsd*) |
049df0a8 | 418 | targ_defvec=bfd_elf32_littlemips_vec |
14bf95ea ILT |
419 | targ_selvecs="bfd_elf32_bigmips_vec ecoff_little_vec ecoff_big_vec" |
420 | ;; | |
421 | mips*-*-netbsd*) | |
422 | targ_defvec=bfd_elf32_bigmips_vec | |
423 | targ_selvecs="bfd_elf32_littlemips_vec ecoff_big_vec ecoff_little_vec" | |
049df0a8 | 424 | ;; |
2b79a104 ILT |
425 | mips*-dec-bsd*) |
426 | targ_defvec=aout_mips_little_vec | |
427 | targ_underscore=yes | |
428 | ;; | |
429 | mips*-dec-mach3*) | |
430 | targ_defvec=aout_mips_little_vec | |
431 | targ_cflags=-DSTAT_FOR_EXEC | |
432 | ;; | |
433 | mips*-dec-* | mips*el-*-ecoff*) | |
434 | targ_defvec=ecoff_little_vec | |
435 | targ_selvecs=ecoff_big_vec | |
436 | ;; | |
437 | mips*-*-ecoff*) | |
438 | targ_defvec=ecoff_big_vec | |
439 | targ_selvecs=ecoff_little_vec | |
440 | ;; | |
e8c249cb ILT |
441 | mips*-*-irix6*) |
442 | targ_defvec=bfd_elf32_bigmips_vec | |
443 | targ_selvecs="bfd_elf32_littlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec" | |
444 | ;; | |
2b79a104 ILT |
445 | mips*-*-irix5*) |
446 | targ_defvec=bfd_elf32_bigmips_vec | |
447 | targ_selvecs="bfd_elf32_littlemips_vec ecoff_big_vec ecoff_little_vec" | |
448 | ;; | |
449 | mips*-sgi-* | mips*-*-bsd*) | |
450 | targ_defvec=ecoff_big_vec | |
451 | targ_selvecs=ecoff_little_vec | |
452 | ;; | |
ac388f2a ILT |
453 | mips*-*-lnews*) |
454 | targ_defvec=ecoff_biglittle_vec | |
455 | targ_selvecs="ecoff_little_vec ecoff_big_vec" | |
456 | ;; | |
2b79a104 ILT |
457 | mips*-*-mach3*) |
458 | targ_defvec=aout_mips_little_vec | |
459 | targ_cflags=-DSTAT_FOR_EXEC | |
460 | ;; | |
461 | mips*-*-sysv4*) | |
462 | targ_defvec=bfd_elf32_bigmips_vec | |
463 | targ_selvecs="bfd_elf32_littlemips_vec ecoff_big_vec ecoff_little_vec" | |
464 | ;; | |
465 | mips*-*-sysv* | mips*-*-riscos*) | |
466 | targ_defvec=ecoff_big_vec | |
467 | targ_selvecs=ecoff_little_vec | |
468 | ;; | |
469 | mips*el-*-elf*) | |
470 | targ_defvec=bfd_elf32_littlemips_vec | |
9b263b79 | 471 | targ_selvecs="bfd_elf32_bigmips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec" |
2b79a104 | 472 | ;; |
161ac690 | 473 | mips*-*-elf* | mips*-*-rtems*) |
2b79a104 | 474 | targ_defvec=bfd_elf32_bigmips_vec |
9b263b79 | 475 | targ_selvecs="bfd_elf32_littlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec" |
2b79a104 | 476 | ;; |
fd8d7c31 MH |
477 | mips*-*-none) |
478 | targ_defvec=bfd_elf32_bigmips_vec | |
479 | targ_selvecs="bfd_elf32_littlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec" | |
480 | ;; | |
eee4e8ca | 481 | mips*el*-*-linux-gnu* | mips*el*-*-openbsd*) |
7c342fc5 | 482 | targ_defvec=bfd_elf32_littlemips_vec |
f0315e65 | 483 | targ_selvecs="bfd_elf32_bigmips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec ecoff_little_vec ecoff_big_vec" |
7c342fc5 | 484 | ;; |
eee4e8ca | 485 | mips*-*-linux-gnu* | mips*-*-openbsd*) |
7c342fc5 | 486 | targ_defvec=bfd_elf32_bigmips_vec |
f0315e65 | 487 | targ_selvecs="bfd_elf32_littlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec ecoff_big_vec ecoff_little_vec" |
7c342fc5 | 488 | ;; |
2b79a104 | 489 | |
ae1b99e4 JL |
490 | mn10200-*-*) |
491 | targ_defvec=bfd_elf32_mn10200_vec | |
492 | ;; | |
493 | ||
494 | mn10300-*-*) | |
495 | targ_defvec=bfd_elf32_mn10300_vec | |
efc2b064 JL |
496 | ;; |
497 | ||
2a01c351 | 498 | ns32k-pc532-mach* | ns32k-pc532-ux*) |
2b79a104 ILT |
499 | targ_defvec=pc532machaout_vec |
500 | targ_underscore=yes | |
501 | ;; | |
6a2922d5 | 502 | ns32k-*-netbsd* | ns32k-*-lites* | ns32k-*-openbsd*) |
2b79a104 ILT |
503 | targ_defvec=pc532netbsd_vec |
504 | targ_underscore=yes | |
505 | ;; | |
506 | ||
ac388f2a | 507 | powerpc-*-aix* | powerpc-*-beos*) |
2b79a104 ILT |
508 | targ_defvec=rs6000coff_vec |
509 | ;; | |
6a2922d5 | 510 | powerpc-*-*bsd* | powerpc-*-elf* | powerpc-*-sysv4* | powerpc-*-eabi* | \ |
eee4e8ca | 511 | powerpc-*-solaris2* | powerpc-*-linux-gnu* | powerpc-*-rtems*) |
2b79a104 | 512 | targ_defvec=bfd_elf32_powerpc_vec |
d6c3cfb5 | 513 | targ_selvecs="rs6000coff_vec bfd_elf32_powerpcle_vec ppcboot_vec" |
2b79a104 | 514 | ;; |
2a01c351 KR |
515 | powerpc-*-macos* | powerpc-*-mpw*) |
516 | targ_defvec=pmac_xcoff_vec | |
517 | ;; | |
2b79a104 ILT |
518 | powerpc-*-netware*) |
519 | targ_defvec=bfd_elf32_powerpc_vec | |
520 | targ_selvecs="nlm32_powerpc_vec rs6000coff_vec" | |
521 | ;; | |
522 | powerpcle-*-elf* | powerpcle-*-sysv4* | powerpcle-*-eabi* | \ | |
eee4e8ca | 523 | powerpcle-*-solaris2* | powerpcle-*-linux-gnu*) |
2b79a104 | 524 | targ_defvec=bfd_elf32_powerpcle_vec |
d6c3cfb5 | 525 | targ_selvecs="rs6000coff_vec bfd_elf32_powerpc_vec ppcboot_vec" |
2b79a104 ILT |
526 | ;; |
527 | ||
884949db | 528 | powerpcle-*-pe | powerpcle-*-winnt* | powerpcle-*-cygwin*) |
e0c10737 KK |
529 | targ_defvec=bfd_powerpcle_pe_vec |
530 | targ_selvecs="bfd_powerpcle_pei_vec bfd_powerpc_pei_vec bfd_powerpcle_pe_vec bfd_powerpc_pe_vec" | |
531 | ;; | |
532 | ||
2b79a104 ILT |
533 | rs6000-*-*) |
534 | targ_defvec=rs6000coff_vec | |
535 | ;; | |
536 | ||
d6c3cfb5 | 537 | sh-*-elf*) |
71d7d44f | 538 | targ_defvec=bfd_elf32_sh_vec |
18ed85fd | 539 | targ_selvecs="bfd_elf32_shl_vec shcoff_vec shlcoff_vec shcoff_small_vec shlcoff_small_vec" |
71d7d44f DE |
540 | targ_underscore=yes |
541 | ;; | |
d6c3cfb5 | 542 | sh-*-* | sh-*-rtems*) |
71d7d44f | 543 | targ_defvec=shcoff_vec |
18ed85fd | 544 | targ_selvecs="shcoff_vec shlcoff_vec shcoff_small_vec shlcoff_small_vec" |
71d7d44f DE |
545 | targ_underscore=yes |
546 | ;; | |
547 | ||
548 | sparclet-*-aout*) | |
549 | targ_defvec=sunos_big_vec | |
550 | targ_selvecs=sparcle_aout_vec | |
551 | targ_underscore=yes | |
552 | ;; | |
4aeed4f2 NC |
553 | sparc86x-*-aout*) |
554 | targ_defvec=sunos_big_vec | |
555 | targ_underscore=yes | |
556 | ;; | |
1142c241 | 557 | sparclite-*-elf* | sparc86x-*-elf*) |
41eca8a7 NC |
558 | targ_defvec=bfd_elf32_sparc_vec |
559 | ;; | |
6a2922d5 ILT |
560 | sparc-*-linux*aout*) |
561 | targ_defvec=sparclinux_vec | |
562 | targ_selvecs="bfd_elf32_sparc_vec sunos_big_vec" | |
563 | targ_underscore=yes | |
564 | ;; | |
eee4e8ca | 565 | sparc-*-linux-gnu*) |
6a2922d5 ILT |
566 | targ_defvec=bfd_elf32_sparc_vec |
567 | targ_selvecs="sparclinux_vec sunos_big_vec" | |
568 | ;; | |
2b79a104 ILT |
569 | sparc-*-lynxos*) |
570 | targ_defvec=sparclynx_coff_vec | |
571 | targ_selvecs=sparclynx_aout_vec | |
572 | ;; | |
6a2922d5 | 573 | sparc-*-netbsd* | sparc-*-openbsd*) |
2b79a104 ILT |
574 | targ_defvec=sparcnetbsd_vec |
575 | targ_underscore=yes | |
576 | ;; | |
f7954d86 | 577 | sparc-*-elf* | sparc-*-solaris2*) |
2b79a104 ILT |
578 | targ_defvec=bfd_elf32_sparc_vec |
579 | targ_selvecs=sunos_big_vec | |
580 | ;; | |
f7954d86 MM |
581 | sparc-*-sysv4*) |
582 | targ_defvec=bfd_elf32_sparc_vec | |
583 | ;; | |
0b3fcc1c ILT |
584 | sparc-*-netware*) |
585 | targ_defvec=bfd_elf32_sparc_vec | |
586 | targ_selvecs="nlm32_sparc_vec sunos_big_vec" | |
587 | ;; | |
588 | #ifdef BFD64 | |
767f22d5 FF |
589 | sparc64-*-aout*) |
590 | targ_defvec=sunos_big_vec | |
591 | targ_underscore=yes | |
592 | ;; | |
eee4e8ca | 593 | sparc64-*-linux-gnu*) |
0b3fcc1c ILT |
594 | targ_defvec=bfd_elf64_sparc_vec |
595 | targ_selvecs="bfd_elf32_sparc_vec sparclinux_vec sunos_big_vec" | |
596 | ;; | |
5bc513b4 DE |
597 | sparc64-*-elf*) |
598 | targ_defvec=bfd_elf64_sparc_vec | |
599 | targ_selvecs=bfd_elf32_sparc_vec | |
600 | ;; | |
dee99794 | 601 | #endif /* BFD64 */ |
2b79a104 ILT |
602 | sparc*-*-coff*) |
603 | targ_defvec=sparccoff_vec | |
604 | ;; | |
50bd50d4 | 605 | sparc*-*-* | sparc*-*-rtems*) |
2b79a104 ILT |
606 | targ_defvec=sunos_big_vec |
607 | targ_underscore=yes | |
608 | ;; | |
609 | ||
3baa24ad | 610 | #if HAVE_host_aout_vec |
2b79a104 ILT |
611 | tahoe-*-*) |
612 | targ_defvec=host_aout_vec | |
613 | targ_underscore=yes | |
614 | ;; | |
dee99794 | 615 | #endif |
cd6213ff | 616 | # start-sanitize-tic80 |
5a08c6a1 | 617 | |
fd8d7c31 | 618 | tic80*-*-*) |
cd6213ff | 619 | targ_defvec=tic80coff_vec |
76af94b9 | 620 | targ_underscore=yes |
cd6213ff FF |
621 | ;; |
622 | ||
623 | # end-sanitize-tic80 | |
20b2c808 | 624 | |
f7954d86 MM |
625 | v850-*-*) |
626 | targ_defvec=bfd_elf32_v850_vec | |
627 | ;; | |
8988d935 NC |
628 | # start-sanitize-v850e |
629 | v850e-*-*) | |
630 | targ_defvec=bfd_elf32_v850_vec | |
631 | ;; | |
0b3fcc1c | 632 | v850ea-*-*) |
8988d935 NC |
633 | targ_defvec=bfd_elf32_v850_vec |
634 | ;; | |
6b5f5d61 | 635 | # end-sanitize-v850e |
3baa24ad | 636 | #if HAVE_host_aout_vec |
dee99794 | 637 | vax-*-bsd* | vax-*-ultrix*) |
2b79a104 ILT |
638 | targ_defvec=host_aout_vec |
639 | targ_underscore=yes | |
640 | ;; | |
dee99794 | 641 | #endif |
2b79a104 | 642 | |
0dc4c667 ILT |
643 | vax*-*-*vms*) |
644 | targ_defvec=vms_vax_vec | |
645 | ;; | |
646 | ||
2b79a104 ILT |
647 | we32k-*-*) |
648 | targ_defvec=we32kcoff_vec | |
649 | ;; | |
650 | ||
651 | w65-*-*) | |
652 | targ_defvec=w65_vec | |
653 | ;; | |
654 | ||
655 | z8k*-*-*) | |
656 | targ_defvec=z8kcoff_vec | |
657 | targ_underscore=yes | |
658 | ;; | |
659 | ||
660 | *-*-ieee*) | |
661 | targ_defvec=ieee_vec | |
662 | ;; | |
663 | ||
664 | *-adobe-*) | |
dee99794 | 665 | targ_defvec=a_out_adobe_vec |
2b79a104 ILT |
666 | targ_underscore=yes |
667 | ;; | |
668 | ||
669 | *-sony-*) | |
670 | targ_defvec=newsos3_vec | |
671 | targ_underscore=yes | |
672 | ;; | |
673 | ||
674 | *-tandem-*) | |
675 | targ_defvec=m68kcoff_vec | |
676 | targ_selvecs=ieee_vec | |
677 | ;; | |
dee99794 | 678 | # END OF targmatch.h |
2b79a104 ILT |
679 | *) |
680 | echo 1>&2 "*** BFD does not support target ${targ}." | |
681 | echo 1>&2 "*** Look in bfd/config.bfd for supported targets." | |
682 | exit 1 | |
683 | ;; | |
684 | esac | |
0dc4c667 ILT |
685 | |
686 | # If we support any ELF target, then automatically add support for the | |
687 | # generic ELF targets. This permits an objdump with some ELF support | |
688 | # to be used on an arbitrary ELF file for anything other than | |
689 | # relocation information. | |
690 | case "${targ_defvec} ${targ_selvecs}" in | |
691 | *bfd_elf64*) | |
692 | targ_selvecs="${targ_selvecs} bfd_elf64_little_generic_vec bfd_elf64_big_generic_vec bfd_elf32_little_generic_vec bfd_elf32_big_generic_vec" | |
693 | ;; | |
694 | *bfd_elf32*) | |
695 | targ_selvecs="${targ_selvecs} bfd_elf32_little_generic_vec bfd_elf32_big_generic_vec" | |
696 | ;; | |
697 | esac |