Commit | Line | Data |
---|---|---|
252b5132 | 1 | # config.bfd |
5bf135a7 | 2 | # |
2571583a | 3 | # Copyright (C) 2012-2017 Free Software Foundation, Inc. |
5bf135a7 NC |
4 | # |
5 | # This file is free software; you can redistribute it and/or modify | |
6 | # it under the terms of the GNU General Public License as published by | |
7 | # the Free Software Foundation; either version 3 of the License, or | |
8 | # (at your option) any later version. | |
1b786873 | 9 | # |
5bf135a7 NC |
10 | # This program is distributed in the hope that it will be useful, |
11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 | # GNU General Public License for more details. | |
1b786873 | 14 | # |
5bf135a7 NC |
15 | # You should have received a copy of the GNU General Public License |
16 | # along with this program; see the file COPYING3. If not see | |
17 | # <http://www.gnu.org/licenses/>. | |
18 | # | |
252b5132 RH |
19 | # Convert a canonical host type into a BFD host type. |
20 | # Set shell variable targ to canonical target name, and run | |
21 | # using ``. config.bfd''. | |
22 | # Sets the following shell variables: | |
23 | # targ_defvec Default vector for this target | |
24 | # targ_selvecs Vectors to build for this target | |
e9e69f5a AM |
25 | # targ64_selvecs Vectors to build if --enable-64-bit-bfd is given |
26 | # or if host is 64 bit. | |
252b5132 RH |
27 | # targ_archs Architectures for this target |
28 | # targ_cflags $(CFLAGS) for this target (FIXME: pretty bogus) | |
29 | # targ_underscore Whether underscores are used: yes or no | |
30 | ||
31 | # Part of this file is processed by targmatch.sed to generate the | |
32 | # targmatch.h file. The #ifdef and #endif lines that appear below are | |
33 | # copied directly into targmatch.h. | |
34 | ||
35 | # The binutils c++filt program wants to know whether underscores are | |
36 | # stripped or not. That is why we set targ_underscore. c++filt uses | |
37 | # this information to choose a default. This information is | |
38 | # duplicated in the symbol_leading_char field of the BFD target | |
39 | # vector, but c++filt does not deal with object files and is not | |
40 | # linked against libbfd.a. It is not terribly important that c++filt | |
41 | # get this right; it is just convenient. | |
42 | ||
43 | targ_defvec= | |
44 | targ_selvecs= | |
e9e69f5a | 45 | targ64_selvecs= |
252b5132 RH |
46 | targ_cflags= |
47 | targ_underscore=no | |
48 | ||
91fb2a9d NC |
49 | # Catch obsolete configurations. |
50 | case $targ in | |
73589c9d CS |
51 | openrisc-*-* | or32-*-*) |
52 | echo "*** Configuration $targ is obsolete." >&2 | |
53 | echo "*** Use or1k-*-elf or or1k-*-linux as the target instead" >&2 | |
54 | exit 1 | |
55 | ;; | |
034b77cf TG |
56 | i[3-7]86-*-netbsdelf* | i[3-7]86-*-netbsd*-gnu* | i[3-7]86-*-knetbsd*-gnu | \ |
57 | mips*-*-irix5* | mips*-*-irix6*) | |
58 | # Not obsolete | |
59 | ;; | |
60 | *-*-netware* | \ | |
61 | arm-epoc-pe* | \ | |
62 | arm*-*-aout | \ | |
63 | arm*-*-coff | \ | |
64 | h8300*-*-coff | \ | |
65 | h8500*-*-coff | \ | |
66 | i[3-7]86-*-sco3.2v5*coff | \ | |
67 | i[3-7]86-*-sysv4* | i[3-7]86-*-unixware* | \ | |
68 | i[3-7]86-*-sco3.2v5* | \ | |
69 | i[3-7]86-*-dgux* | i[3-7]86-*-sysv5* | \ | |
70 | i[3-7]86-*-chorus* | \ | |
71 | i[3-7]86-*-sysv* | i[3-7]86-*-isc* | i[3-7]86-*-sco* | i[3-7]86-*-coff | \ | |
72 | i[3-7]86-*-aix* | \ | |
73 | i[3-7]86-sequent-bsd* | \ | |
74 | i[3-7]86-*-freebsdaout* | i[3-7]86-*-freebsd[12].* | \ | |
75 | i[3-7]86-*-freebsd[12] | \ | |
76 | i[3-7]86-*-netbsdaout* | i[3-7]86-*-netbsd* | \ | |
77 | i[3-7]86-*-openbsd[0-2].* | i[3-7]86-*-openbsd3.[0-3] | \ | |
78 | i[3-7]86-*-netware* | \ | |
79 | i[3-7]86-*-linux*aout* | \ | |
80 | i[3-7]86-*-mach* | i[3-7]86-*-osf1mk* | \ | |
81 | i[3-7]86-*-os9k | \ | |
82 | i[3-7]86-none-* | \ | |
83 | i[3-7]86-*-aout* | i[3-7]86*-*-vsta* | \ | |
84 | i860-*-* | \ | |
85 | i960-*-* | \ | |
86 | m68*-motorola-sysv* | m68*-hp-bsd* | m68*-*-aout* | \ | |
87 | m68*-*-coff* | m68*-*-sysv* | \ | |
88 | m68*-*-hpux* | \ | |
89 | m68*-*-linux*aout* | \ | |
90 | m68*-hp*-netbsd* | \ | |
91 | m68*-*-netbsdaout* | \ | |
92 | m68*-*-sunos* | m68*-*-os68k* | m68*-*-vxworks* | m68*-netx-* | \ | |
93 | m68*-*-bsd* | m68*-*-vsta* | \ | |
94 | m68*-ericsson-* | \ | |
95 | m68*-*-psos* | \ | |
96 | m88*-*-* | \ | |
97 | mips*-big-* | \ | |
98 | mips*-dec-* | mips*el-*-ecoff* | \ | |
99 | mips*-*-ecoff* | \ | |
100 | mips*-sgi-* | mips*-*-bsd* | \ | |
101 | mips*-*-lnews* | \ | |
102 | mips*-*-sysv* | mips*-*-riscos* | \ | |
103 | ns32k-*-* | \ | |
104 | sh*-*-symbianelf* | \ | |
105 | sh-*-rtemscoff* | \ | |
106 | sparclet-*-aout* | \ | |
107 | sparc86x-*-aout* | \ | |
108 | sparc*-*-chorus* | \ | |
109 | sparc-*-linux*aout* | \ | |
110 | sparc-*-netbsdaout* | \ | |
111 | sparc-*-openbsd[0-2].* | sparc-*-openbsd3.[0-1] | \ | |
112 | sparc-*-netware* | \ | |
113 | sparc64-*-aout* | \ | |
114 | sparc*-*-coff* | \ | |
115 | tahoe-*-* | \ | |
116 | vax-*-bsd* | vax-*-ultrix* | \ | |
117 | we32k-*-* | \ | |
118 | w65-*-* | \ | |
119 | *-*-ieee* | \ | |
120 | *-adobe-* | \ | |
121 | *-sony-* | \ | |
122 | *-tandem-* | \ | |
3ed4ff97 | 123 | i370-* | \ |
2b213129 | 124 | sh5*-*-* | sh64*-*-* | \ |
b2d65c0b | 125 | null) |
91fb2a9d NC |
126 | if test "x$enable_obsolete" != xyes; then |
127 | echo "*** Configuration $targ is obsolete." >&2 | |
128 | echo "*** Specify --enable-obsolete to build it anyway." >&2 | |
129 | echo "*** Support will be REMOVED in the next major release of BINUTILS," >&2 | |
130 | echo "*** unless a maintainer comes forward." >&2 | |
131 | exit 1 | |
132 | fi;; | |
133 | esac | |
134 | ||
7f266840 | 135 | case $targ in |
73589c9d | 136 | *-go32-rtems* | \ |
c17ae8a2 | 137 | a29k-* | \ |
73589c9d | 138 | arm-*-oabi | \ |
7e4e2059 | 139 | hppa*-*-rtems* | \ |
73589c9d | 140 | i960-*-rtems* | \ |
7e4e2059 | 141 | i[3-7]86*-*-rtemscoff* | \ |
73589c9d CS |
142 | m68*-*-lynxos* | \ |
143 | m68*-*-rtemscoff* | \ | |
144 | m68*-apollo-* | \ | |
145 | m68*-apple-aux* | \ | |
146 | m68*-bull-sysv* | \ | |
147 | maxq-*-coff | \ | |
7e4e2059 NC |
148 | mips*el-*-rtems* | \ |
149 | powerpcle-*-rtems* | \ | |
150 | sparc*-*-rtemsaout* | \ | |
73589c9d CS |
151 | sparc-*-lynxos* | \ |
152 | vax-*-vms* | \ | |
7f266840 DJ |
153 | null) |
154 | echo "*** Configuration $targ is obsolete." >&2 | |
155 | echo "*** Support has been REMOVED." >&2 | |
156 | exit 1 | |
157 | ;; | |
158 | esac | |
91fb2a9d | 159 | |
252b5132 RH |
160 | targ_cpu=`echo $targ | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
161 | case "${targ_cpu}" in | |
a06ea964 | 162 | aarch64*) targ_archs="bfd_aarch64_arch bfd_arm_arch";; |
7d3f158f | 163 | alpha*) targ_archs=bfd_alpha_arch ;; |
6b200de0 | 164 | am33_2.0*) targ_archs=bfd_mn10300_arch ;; |
886a2506 | 165 | arc*) targ_archs=bfd_arc_arch ;; |
7d3f158f | 166 | arm*) targ_archs=bfd_arm_arch ;; |
0f64bb02 | 167 | bfin*) targ_archs=bfd_bfin_arch ;; |
7d3f158f AM |
168 | c30*) targ_archs=bfd_tic30_arch ;; |
169 | c4x*) targ_archs=bfd_tic4x_arch ;; | |
170 | c54x*) targ_archs=bfd_tic54x_arch ;; | |
3d3d428f | 171 | cr16*) targ_archs=bfd_cr16_arch ;; |
bac23f82 | 172 | crisv32) targ_archs=bfd_cris_arch ;; |
7d3f158f | 173 | crx*) targ_archs=bfd_crx_arch ;; |
d172d4ba | 174 | dlx*) targ_archs=bfd_dlx_arch ;; |
ebff6cd5 | 175 | fido*) targ_archs=bfd_m68k_arch ;; |
7d3f158f AM |
176 | hppa*) targ_archs=bfd_hppa_arch ;; |
177 | i[3-7]86) targ_archs=bfd_i386_arch ;; | |
178 | i370) targ_archs=bfd_i370_arch ;; | |
84e94c90 | 179 | lm32) targ_archs=bfd_lm32_arch ;; |
6927f982 NC |
180 | m6811*|m68hc11*) targ_archs="bfd_m68hc11_arch bfd_m68hc12_arch bfd_m9s12x_arch bfd_m9s12xg_arch" ;; |
181 | m6812*|m68hc12*) targ_archs="bfd_m68hc12_arch bfd_m68hc11_arch bfd_m9s12x_arch bfd_m9s12xg_arch" ;; | |
7d3f158f AM |
182 | m68*) targ_archs=bfd_m68k_arch ;; |
183 | m88*) targ_archs=bfd_m88k_arch ;; | |
7ba29e2a | 184 | microblaze*) targ_archs=bfd_microblaze_arch ;; |
7d3f158f | 185 | mips*) targ_archs=bfd_mips_arch ;; |
35c08157 | 186 | nds32*) targ_archs=bfd_nds32_arch ;; |
36591ba1 | 187 | nios2*) targ_archs=bfd_nios2_arch ;; |
73589c9d | 188 | or1k*|or1knd*) targ_archs=bfd_or1k_arch ;; |
7d3f158f AM |
189 | pdp11*) targ_archs=bfd_pdp11_arch ;; |
190 | pj*) targ_archs="bfd_pj_arch bfd_i386_arch";; | |
191 | powerpc*) targ_archs="bfd_rs6000_arch bfd_powerpc_arch" ;; | |
889294f6 | 192 | pru*) targ_archs=bfd_pru_arch ;; |
e23eba97 | 193 | riscv*) targ_archs=bfd_riscv_arch ;; |
7d3f158f AM |
194 | rs6000) targ_archs="bfd_rs6000_arch bfd_powerpc_arch" ;; |
195 | s390*) targ_archs=bfd_s390_arch ;; | |
196 | sh*) targ_archs=bfd_sh_arch ;; | |
197 | sparc*) targ_archs=bfd_sparc_arch ;; | |
e9f53129 | 198 | spu*) targ_archs=bfd_spu_arch ;; |
aa137e4d NC |
199 | tilegx*) targ_archs=bfd_tilegx_arch ;; |
200 | tilepro*) targ_archs=bfd_tilepro_arch ;; | |
de863c74 | 201 | v850*) targ_archs="bfd_v850_arch bfd_v850_rh850_arch" ;; |
d924db55 | 202 | visium*) targ_archs=bfd_visium_arch ;; |
99ad8390 | 203 | x86_64*) targ_archs=bfd_i386_arch ;; |
7d3f158f | 204 | xtensa*) targ_archs=bfd_xtensa_arch ;; |
f6c1a2d5 | 205 | xgate) targ_archs=bfd_xgate_arch ;; |
3c9b82ba | 206 | z80|r800) targ_archs=bfd_z80_arch ;; |
7d3f158f | 207 | z8k*) targ_archs=bfd_z8k_arch ;; |
7d3f158f | 208 | *) targ_archs=bfd_${targ_cpu}_arch ;; |
252b5132 RH |
209 | esac |
210 | ||
211 | ||
212 | # WHEN ADDING ENTRIES TO THIS MATRIX: | |
213 | # Make sure that the left side always has two dashes. Otherwise you | |
214 | # can get spurious matches. Even for unambiguous cases, do this as a | |
215 | # convention, else the table becomes a real mess to understand and maintain. | |
f15398ef DJ |
216 | # |
217 | # Keep obsolete entries above the START comment, to keep them out of | |
218 | # targmatch.h. | |
252b5132 RH |
219 | |
220 | case "${targ}" in | |
f15398ef | 221 | mips*-dec-bsd*) |
279500de TS |
222 | echo "This target is obsolete and has been removed." |
223 | exit 1 | |
224 | ;; | |
225 | ||
226 | mips*-*-mach3*) | |
227 | echo "This target is obsolete and has been removed." | |
f15398ef DJ |
228 | exit 1 |
229 | ;; | |
230 | ||
231 | mips*-*-pe*) | |
279500de | 232 | echo "This target is obsolete and has been removed." |
f15398ef DJ |
233 | exit 1 |
234 | ;; | |
235 | ||
ce3c775b NC |
236 | plugin) |
237 | targ_defvec=plugin_vec | |
238 | targ_selvecs="plugin_vec" | |
239 | ;; | |
240 | ||
252b5132 RH |
241 | # START OF targmatch.h |
242 | #ifdef BFD64 | |
f075eb5e TG |
243 | aarch64-*-darwin*) |
244 | targ_defvec=aarch64_mach_o_vec | |
245 | targ_selvecs="arm_mach_o_vec mach_o_le_vec mach_o_be_vec mach_o_fat_vec" | |
246 | targ_archs="$targ_archs bfd_i386_arch bfd_powerpc_arch bfd_rs6000_arch" | |
247 | want64=true | |
248 | ;; | |
12a132db | 249 | aarch64-*-elf | aarch64-*-rtems*) |
6d00b590 AM |
250 | targ_defvec=aarch64_elf64_le_vec |
251 | targ_selvecs="aarch64_elf64_be_vec aarch64_elf32_le_vec aarch64_elf32_be_vec arm_elf32_le_vec arm_elf32_be_vec" | |
a06ea964 NC |
252 | want64=true |
253 | ;; | |
254 | aarch64_be-*-elf) | |
6d00b590 AM |
255 | targ_defvec=aarch64_elf64_be_vec |
256 | targ_selvecs="aarch64_elf64_le_vec aarch64_elf32_le_vec aarch64_elf32_be_vec arm_elf32_be_vec arm_elf32_le_vec" | |
a06ea964 NC |
257 | want64=true |
258 | ;; | |
15c7659f AT |
259 | aarch64-*-freebsd*) |
260 | targ_defvec=aarch64_elf64_le_vec | |
261 | targ_selvecs="aarch64_elf64_be_vec arm_elf32_le_vec arm_elf32_be_vec" | |
262 | want64=true | |
263 | ;; | |
d5451cd4 JC |
264 | aarch64-*-fuchsia*) |
265 | targ_defvec=aarch64_elf64_le_vec | |
266 | targ_selvecs="aarch64_elf64_be_vec arm_elf32_le_vec arm_elf32_be_vec" | |
267 | want64=true | |
268 | ;; | |
a75cf613 ES |
269 | aarch64-*-cloudabi*) |
270 | targ_defvec=aarch64_elf64_le_cloudabi_vec | |
271 | targ_selvecs=aarch64_elf64_be_cloudabi_vec | |
272 | want64=true | |
273 | ;; | |
a06ea964 | 274 | aarch64-*-linux*) |
6d00b590 AM |
275 | targ_defvec=aarch64_elf64_le_vec |
276 | targ_selvecs="aarch64_elf64_be_vec aarch64_elf32_le_vec aarch64_elf32_be_vec arm_elf32_le_vec arm_elf32_be_vec" | |
a06ea964 NC |
277 | want64=true |
278 | ;; | |
279 | aarch64_be-*-linux*) | |
6d00b590 AM |
280 | targ_defvec=aarch64_elf64_be_vec |
281 | targ_selvecs="aarch64_elf64_le_vec aarch64_elf32_le_vec aarch64_elf32_be_vec arm_elf32_be_vec arm_elf32_le_vec" | |
a06ea964 NC |
282 | want64=true |
283 | ;; | |
13dfd2d0 | 284 | alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu) |
6d00b590 AM |
285 | targ_defvec=alpha_elf64_fbsd_vec |
286 | targ_selvecs="alpha_elf64_vec alpha_ecoff_le_vec" | |
314e9a4e | 287 | want64=true |
4ada7262 DB |
288 | # FreeBSD <= 4.0 supports only the old nonstandard way of ABI labelling. |
289 | case "${targ}" in | |
290 | alpha*-*-freebsd3* | alpha*-*-freebsd4 | alpha*-*-freebsd4.0*) | |
291 | targ_cflags=-DOLD_FREEBSD_ABI_LABEL ;; | |
292 | esac | |
293 | ;; | |
294 | alpha*-*-netbsd* | alpha*-*-openbsd*) | |
6d00b590 AM |
295 | targ_defvec=alpha_elf64_vec |
296 | targ_selvecs=alpha_ecoff_le_vec | |
314e9a4e | 297 | want64=true |
252b5132 RH |
298 | ;; |
299 | alpha*-*-netware*) | |
6d00b590 AM |
300 | targ_defvec=alpha_ecoff_le_vec |
301 | targ_selvecs=alpha_nlm32_vec | |
314e9a4e | 302 | want64=true |
252b5132 | 303 | ;; |
df26367c | 304 | alpha*-*-linux*ecoff*) |
6d00b590 AM |
305 | targ_defvec=alpha_ecoff_le_vec |
306 | targ_selvecs=alpha_elf64_vec | |
314e9a4e | 307 | want64=true |
252b5132 | 308 | ;; |
ed84e695 | 309 | alpha*-*-linux-* | alpha*-*-elf*) |
6d00b590 AM |
310 | targ_defvec=alpha_elf64_vec |
311 | targ_selvecs=alpha_ecoff_le_vec | |
314e9a4e | 312 | want64=true |
252b5132 RH |
313 | ;; |
314 | alpha*-*-*vms*) | |
6d00b590 AM |
315 | targ_defvec=alpha_vms_vec |
316 | targ_selvecs=alpha_vms_lib_txt_vec | |
314e9a4e | 317 | want64=true |
252b5132 RH |
318 | ;; |
319 | alpha*-*-*) | |
6d00b590 | 320 | targ_defvec=alpha_ecoff_le_vec |
314e9a4e | 321 | want64=true |
252b5132 | 322 | ;; |
ed84e695 | 323 | ia64*-*-freebsd* | ia64*-*-netbsd* | ia64*-*-linux-* | ia64*-*-elf* | ia64*-*-kfreebsd*-gnu) |
6d00b590 AM |
324 | targ_defvec=ia64_elf64_le_vec |
325 | targ_selvecs="ia64_elf64_be_vec ia64_pei_vec" | |
314e9a4e | 326 | want64=true |
800eeca4 | 327 | ;; |
bbe66d08 | 328 | ia64*-*-hpux*) |
6d00b590 AM |
329 | targ_defvec=ia64_elf32_hpux_be_vec |
330 | targ_selvecs="ia64_elf64_hpux_be_vec" | |
314e9a4e | 331 | want64=true |
bbe66d08 | 332 | ;; |
01e1a5bc | 333 | ia64*-*-*vms*) |
6d00b590 AM |
334 | targ_defvec=ia64_elf64_vms_vec |
335 | targ_selvecs=alpha_vms_lib_txt_vec | |
01e1a5bc NC |
336 | want64=true |
337 | ;; | |
71a75f6f | 338 | sparc64-*-freebsd* | sparc64-*-kfreebsd*-gnu) |
6d00b590 AM |
339 | targ_defvec=sparc_elf64_fbsd_vec |
340 | targ_selvecs="sparc_elf64_vec sparc_elf32_vec sparc_aout_sunos_be_vec" | |
71a75f6f MF |
341 | ;; |
342 | sparc64-*-netbsd* | sparc64-*-openbsd*) | |
6d00b590 AM |
343 | targ_defvec=sparc_elf64_vec |
344 | targ_selvecs="sparc_elf32_vec sparc_aout_sunos_be_vec" | |
314e9a4e | 345 | want64=true |
bc11ab2b | 346 | ;; |
252b5132 RH |
347 | #endif /* BFD64 */ |
348 | ||
6b200de0 | 349 | am33_2.0-*-linux*) |
6d00b590 | 350 | targ_defvec=am33_elf32_linux_vec |
73c3cd1c | 351 | ;; |
bfff1642 | 352 | |
f7e8b360 NC |
353 | arc*eb-*-elf* | arc*eb-*-linux*) |
354 | targ_defvec=arc_elf32_be_vec | |
355 | targ_selvecs=arc_elf32_le_vec | |
356 | ;; | |
357 | ||
4ad0bb5f | 358 | arc*-*-elf* | arc*-*-linux*) |
6d00b590 AM |
359 | targ_defvec=arc_elf32_le_vec |
360 | targ_selvecs=arc_elf32_be_vec | |
252b5132 RH |
361 | ;; |
362 | ||
f075eb5e TG |
363 | arm-*-darwin*) |
364 | targ_defvec=arm_mach_o_vec | |
365 | targ_selvecs="mach_o_le_vec mach_o_be_vec mach_o_fat_vec" | |
366 | targ_archs="$targ_archs bfd_i386_arch bfd_powerpc_arch bfd_rs6000_arch" | |
367 | ;; | |
d5451cd4 JC |
368 | arm-*-fuchsia*) |
369 | targ_defvec=arm_elf32_le_vec | |
370 | targ_selvecs="arm_elf32_be_vec" | |
371 | ;; | |
b38cadfb | 372 | arm-*-nacl*) |
6d00b590 AM |
373 | targ_defvec=arm_elf32_nacl_le_vec |
374 | targ_selvecs="arm_elf32_nacl_be_vec i386_elf32_nacl_vec" | |
375 | targ64_selvecs="x86_64_elf32_nacl_vec x86_64_elf64_nacl_vec" | |
b38cadfb NC |
376 | targ_archs="$targ_archs bfd_i386_arch" |
377 | ;; | |
378 | armeb-*-nacl*) | |
6d00b590 AM |
379 | targ_defvec=arm_elf32_nacl_be_vec |
380 | targ_selvecs="arm_elf32_nacl_le_vec i386_elf32_nacl_vec" | |
381 | targ64_selvecs="x86_64_elf32_nacl_vec x86_64_elf64_nacl_vec" | |
b38cadfb NC |
382 | targ_archs="$targ_archs bfd_i386_arch" |
383 | ;; | |
658f2588 | 384 | armeb-*-netbsdelf*) |
6d00b590 AM |
385 | targ_defvec=arm_elf32_be_vec |
386 | targ_selvecs="arm_elf32_le_vec arm_aout_nbsd_vec" | |
658f2588 | 387 | ;; |
61d0bc33 | 388 | arm-*-netbsdelf*) |
6d00b590 AM |
389 | targ_defvec=arm_elf32_le_vec |
390 | targ_selvecs="arm_elf32_be_vec arm_aout_nbsd_vec" | |
61d0bc33 | 391 | ;; |
056a1d49 | 392 | arm-*-netbsd* | arm-*-openbsd*) |
6d00b590 AM |
393 | targ_defvec=arm_aout_nbsd_vec |
394 | targ_selvecs="arm_elf32_le_vec arm_elf32_be_vec" | |
021e3cc0 NC |
395 | targ_underscore=yes |
396 | ;; | |
7e392df6 | 397 | arm-*-nto* | nto*arm*) |
6d00b590 AM |
398 | targ_defvec=arm_elf32_le_vec |
399 | targ_selvecs=arm_elf32_be_vec | |
a7c7b2ba | 400 | targ_cflags=-D__QNXTARGET__ |
7e392df6 | 401 | ;; |
252b5132 | 402 | arm-*-riscix*) |
6d00b590 | 403 | targ_defvec=arm_aout_riscix_vec |
252b5132 RH |
404 | ;; |
405 | arm-epoc-pe*) | |
6d00b590 AM |
406 | targ_defvec=arm_pe_epoc_le_vec |
407 | targ_selvecs="arm_pe_epoc_le_vec arm_pe_epoc_be_vec arm_pei_epoc_le_vec arm_pei_epoc_be_vec" | |
252b5132 | 408 | targ_underscore=no |
d8adc60f | 409 | targ_cflags=-DARM_COFF_BUGFIX |
252b5132 | 410 | ;; |
361dff73 | 411 | arm-wince-pe | arm-*-wince | arm*-*-mingw32ce* | arm*-*-cegcc*) |
6d00b590 AM |
412 | targ_defvec=arm_pe_wince_le_vec |
413 | targ_selvecs="arm_pe_wince_le_vec arm_pe_wince_be_vec arm_pei_wince_le_vec arm_pei_wince_be_vec" | |
17505c5c | 414 | targ_underscore=no |
ac4b3dd8 | 415 | targ_cflags="-DARM_WINCE -DARM_COFF_BUGFIX" |
17505c5c | 416 | ;; |
252b5132 | 417 | arm-*-pe*) |
6d00b590 AM |
418 | targ_defvec=arm_pe_le_vec |
419 | targ_selvecs="arm_pe_le_vec arm_pe_be_vec arm_pei_le_vec arm_pei_be_vec" | |
252b5132 RH |
420 | targ_underscore=yes |
421 | ;; | |
60bcf0fa | 422 | arm-*-aout | armel-*-aout) |
6d00b590 AM |
423 | targ_defvec=arm_aout_le_vec |
424 | targ_selvecs=arm_aout_be_vec | |
252b5132 RH |
425 | ;; |
426 | armeb-*-aout) | |
6d00b590 AM |
427 | targ_defvec=arm_aout_be_vec |
428 | targ_selvecs=arm_aout_le_vec | |
252b5132 RH |
429 | ;; |
430 | arm-*-coff) | |
6d00b590 AM |
431 | targ_defvec=arm_coff_le_vec |
432 | targ_selvecs=arm_coff_be_vec | |
252b5132 RH |
433 | targ_underscore=yes |
434 | ;; | |
a2bea324 KS |
435 | arm-*-phoenix*) |
436 | targ_defvec=arm_elf32_le_vec | |
437 | targ_selvecs=arm_elf32_be_vec | |
438 | ;; | |
ddcfc5fc | 439 | arm-*-rtems*) |
6d00b590 AM |
440 | targ_defvec=arm_elf32_le_vec |
441 | targ_selvecs=arm_elf32_be_vec | |
ddcfc5fc | 442 | ;; |
01e6c1a4 | 443 | armeb-*-elf | arm*b-*-freebsd* | arm*b-*-linux-* | armeb-*-eabi*) |
6d00b590 AM |
444 | targ_defvec=arm_elf32_be_vec |
445 | targ_selvecs=arm_elf32_le_vec | |
1bde2d57 | 446 | ;; |
8c5fc800 | 447 | arm-*-kaos*) |
6d00b590 AM |
448 | targ_defvec=arm_elf32_le_vec |
449 | targ_selvecs=arm_elf32_be_vec | |
42b5d0ea | 450 | ;; |
e59bc75b | 451 | arm-*-elf | arm*-*-freebsd* | arm*-*-linux-* | arm*-*-conix* | \ |
4e7fd91e | 452 | arm*-*-uclinux* | arm-*-kfreebsd*-gnu | \ |
e5a52504 | 453 | arm*-*-eabi* ) |
6d00b590 AM |
454 | targ_defvec=arm_elf32_le_vec |
455 | targ_selvecs=arm_elf32_be_vec | |
252b5132 | 456 | ;; |
4e7fd91e | 457 | arm*-*-vxworks | arm*-*-windiss) |
6d00b590 AM |
458 | targ_defvec=arm_elf32_vxworks_le_vec |
459 | targ_selvecs=arm_elf32_vxworks_be_vec | |
4e7fd91e | 460 | ;; |
e5a52504 | 461 | arm*-*-symbianelf*) |
6d00b590 AM |
462 | targ_defvec=arm_elf32_symbian_le_vec |
463 | targ_selvecs=arm_elf32_symbian_be_vec | |
e5a52504 | 464 | ;; |
24c603fa | 465 | arm9e-*-elf) |
6d00b590 AM |
466 | targ_defvec=arm_elf32_le_vec |
467 | targ_selvecs=arm_elf32_be_vec | |
24c603fa | 468 | ;; |
252b5132 | 469 | |
adde6300 | 470 | avr-*-*) |
6d00b590 | 471 | targ_defvec=avr_elf32_vec |
adde6300 AM |
472 | ;; |
473 | ||
0f64bb02 | 474 | bfin-*-*) |
6d00b590 AM |
475 | targ_defvec=bfin_elf32_vec |
476 | targ_selvecs=bfin_elf32_fdpic_vec | |
48d502e1 | 477 | targ_underscore=yes |
0f64bb02 CM |
478 | ;; |
479 | ||
252b5132 RH |
480 | c30-*-*aout* | tic30-*-*aout*) |
481 | targ_defvec=tic30_aout_vec | |
482 | ;; | |
483 | c30-*-*coff* | tic30-*-*coff*) | |
484 | targ_defvec=tic30_coff_vec | |
485 | ;; | |
486 | ||
efbc813e | 487 | c4x-*-*coff* | tic4x-*-*coff* | tic4x-*-rtems*) |
026df7c5 NC |
488 | targ_defvec=tic4x_coff1_vec |
489 | targ_selvecs="tic4x_coff1_beh_vec tic4x_coff2_vec tic4x_coff2_beh_vec tic4x_coff0_vec tic4x_coff0_beh_vec" | |
490 | targ_underscore=yes | |
491 | ;; | |
492 | ||
81635ce4 TW |
493 | c54x*-*-*coff* | tic54x-*-*coff*) |
494 | targ_defvec=tic54x_coff1_vec | |
495 | targ_selvecs="tic54x_coff1_beh_vec tic54x_coff2_vec tic54x_coff2_beh_vec tic54x_coff0_vec tic54x_coff0_beh_vec" | |
496 | targ_underscore=yes | |
497 | ;; | |
498 | ||
bab4becb | 499 | cr16-*-elf* | cr16*-*-uclinux*) |
6d00b590 | 500 | targ_defvec=cr16_elf32_vec |
3d3d428f NC |
501 | targ_underscore=yes |
502 | ;; | |
503 | ||
0949843d | 504 | cr16c-*-elf*) |
6d00b590 | 505 | targ_defvec=cr16c_elf32_vec |
0949843d NC |
506 | targ_underscore=yes |
507 | ;; | |
508 | ||
bac23f82 | 509 | cris-*-* | crisv32-*-*) |
06c15ad7 | 510 | targ_defvec=cris_aout_vec |
6d00b590 AM |
511 | targ_selvecs="cris_elf32_us_vec cris_elf32_vec ieee_vec" |
512 | targ_underscore=yes # Note: not true for cris_elf32_vec. | |
06c15ad7 HPN |
513 | ;; |
514 | ||
1fe1f39c | 515 | crx-*-elf*) |
6d00b590 | 516 | targ_defvec=crx_elf32_vec |
1fe1f39c NC |
517 | targ_underscore=yes |
518 | ;; | |
519 | ||
252b5132 | 520 | d10v-*-*) |
6d00b590 | 521 | targ_defvec=d10v_elf32_vec |
252b5132 RH |
522 | ;; |
523 | ||
d172d4ba | 524 | dlx-*-elf*) |
6d00b590 AM |
525 | targ_defvec=dlx_elf32_be_vec |
526 | targ_selvecs="dlx_elf32_be_vec" | |
d172d4ba NC |
527 | ;; |
528 | ||
252b5132 | 529 | d30v-*-*) |
6d00b590 | 530 | targ_defvec=d30v_elf32_vec |
252b5132 RH |
531 | ;; |
532 | ||
cfb8c092 | 533 | epiphany-*-elf) |
6d00b590 | 534 | targ_defvec=epiphany_elf32_vec |
cfb8c092 NC |
535 | ;; |
536 | ||
ebff6cd5 | 537 | fido-*-elf* ) |
6d00b590 AM |
538 | targ_defvec=m68k_elf32_vec |
539 | targ_selvecs="m68k_coff_vec ieee_vec" | |
ebff6cd5 KH |
540 | ;; |
541 | ||
252b5132 | 542 | fr30-*-elf) |
6d00b590 | 543 | targ_defvec=fr30_elf32_vec |
252b5132 RH |
544 | ;; |
545 | ||
43850d5b | 546 | frv-*-elf) |
6d00b590 AM |
547 | targ_defvec=frv_elf32_vec |
548 | targ_selvecs=frv_elf32_fdpic_vec | |
4e5ba5b7 DB |
549 | ;; |
550 | ||
43850d5b | 551 | frv-*-*linux*) |
6d00b590 AM |
552 | targ_defvec=frv_elf32_fdpic_vec |
553 | targ_selvecs=frv_elf32_vec | |
43850d5b | 554 | ;; |
252b5132 | 555 | |
730fbaf8 | 556 | moxie-*-elf | moxie-*-rtems* | moxie-*-uclinux) |
6d00b590 AM |
557 | targ_defvec=moxie_elf32_be_vec |
558 | targ_selvecs=moxie_elf32_le_vec | |
20135e4c NC |
559 | ;; |
560 | ||
48494700 AG |
561 | moxie-*-moxiebox*) |
562 | targ_defvec=moxie_elf32_le_vec | |
563 | ;; | |
564 | ||
9a813b7a | 565 | h8300*-*-rtemscoff*) |
6d00b590 | 566 | targ_defvec=h8300_coff_vec |
9a813b7a DJ |
567 | targ_underscore=yes |
568 | ;; | |
569 | ||
570 | h8300*-*-elf | h8300*-*-rtems*) | |
6d00b590 | 571 | targ_defvec=h8300_elf32_vec |
e01b0e69 JR |
572 | targ_underscore=yes |
573 | ;; | |
574 | ||
5518c738 YS |
575 | h8300*-*-linux*) |
576 | targ_defvec=h8300_elf32_linux_vec | |
577 | ;; | |
578 | ||
252b5132 | 579 | h8300*-*-*) |
6d00b590 | 580 | targ_defvec=h8300_coff_vec |
252b5132 RH |
581 | targ_underscore=yes |
582 | ;; | |
583 | ||
584 | h8500-*-*) | |
6d00b590 | 585 | targ_defvec=h8500_coff_vec |
252b5132 RH |
586 | targ_underscore=yes |
587 | ;; | |
588 | ||
60bcf0fa | 589 | #ifdef BFD64 |
ed84e695 | 590 | hppa*64*-*-linux-*) |
6d00b590 AM |
591 | targ_defvec=hppa_elf64_linux_vec |
592 | targ_selvecs=hppa_elf64_vec | |
314e9a4e | 593 | want64=true |
edd21aca | 594 | ;; |
d1dab720 | 595 | hppa*64*-*-hpux11*) |
6d00b590 AM |
596 | targ_defvec=hppa_elf64_vec |
597 | targ_selvecs=hppa_elf64_linux_vec | |
e59db122 | 598 | targ_cflags=-DHPUX_LARGE_AR_IDS |
314e9a4e | 599 | want64=true |
e59db122 JL |
600 | ;; |
601 | #endif | |
edd21aca | 602 | |
ed84e695 | 603 | hppa*-*-linux-*) |
6d00b590 AM |
604 | targ_defvec=hppa_elf32_linux_vec |
605 | targ_selvecs=hppa_elf32_vec | |
d952f17a | 606 | ;; |
e7fbc2bf | 607 | hppa*-*-netbsd*) |
6d00b590 AM |
608 | targ_defvec=hppa_elf32_nbsd_vec |
609 | targ_selvecs="hppa_elf32_vec hppa_elf32_linux_vec" | |
e7fbc2bf | 610 | ;; |
7e4e2059 | 611 | hppa*-*-*elf* | hppa*-*-lites* | hppa*-*-sysv4* | hppa*-*-openbsd*) |
6d00b590 AM |
612 | targ_defvec=hppa_elf32_vec |
613 | targ_selvecs=hppa_elf32_linux_vec | |
edd21aca AM |
614 | ;; |
615 | ||
252b5132 | 616 | hppa*-*-bsd*) |
6d00b590 AM |
617 | targ_defvec=hppa_som_vec |
618 | targ_selvecs=hppa_elf32_vec | |
e59db122 | 619 | ;; |
252b5132 | 620 | hppa*-*-hpux* | hppa*-*-hiux* | hppa*-*-mpeix*) |
6d00b590 | 621 | targ_defvec=hppa_som_vec |
252b5132 RH |
622 | ;; |
623 | hppa*-*-osf*) | |
6d00b590 AM |
624 | targ_defvec=hppa_som_vec |
625 | targ_selvecs=hppa_elf32_vec | |
e59db122 | 626 | ;; |
252b5132 | 627 | |
7d3f158f | 628 | i370-*-*) |
6d00b590 AM |
629 | targ_defvec=i370_elf32_vec |
630 | targ_selvecs="i370_elf32_vec" | |
5b93d8bb | 631 | ;; |
3ed4ff97 | 632 | |
80c7c40a | 633 | i[3-7]86-*-sco3.2v5*coff) |
6d00b590 AM |
634 | targ_defvec=i386_coff_vec |
635 | targ_selvecs=i386_elf32_vec | |
252b5132 | 636 | ;; |
d2b2c203 | 637 | i[3-7]86-*-sysv4* | i[3-7]86-*-unixware* | \ |
b633b725 | 638 | i[3-7]86-*-elf* | i[3-7]86-*-sco3.2v5* | \ |
80c7c40a | 639 | i[3-7]86-*-dgux* | i[3-7]86-*-sysv5*) |
6d00b590 | 640 | targ_defvec=i386_elf32_vec |
bf64a951 | 641 | targ_selvecs="iamcu_elf32_vec i386_coff_vec" |
252b5132 | 642 | ;; |
d2b2c203 | 643 | i[3-7]86-*-solaris2*) |
6d00b590 | 644 | targ_defvec=i386_elf32_sol2_vec |
d00c2bc9 L |
645 | targ_selvecs="iamcu_elf32_vec i386_coff_vec i386_pei_vec" |
646 | targ64_selvecs="x86_64_elf64_sol2_vec l1om_elf64_vec k1om_elf64_vec x86_64_pei_vec" | |
d2b2c203 DJ |
647 | want64=true |
648 | ;; | |
00b2bfc1 NC |
649 | #ifdef BFD64 |
650 | x86_64-*-solaris2*) | |
6d00b590 | 651 | targ_defvec=i386_elf32_sol2_vec |
d00c2bc9 | 652 | targ_selvecs="x86_64_elf64_sol2_vec l1om_elf64_vec k1om_elf64_vec iamcu_elf32_vec i386_coff_vec i386_pei_vec x86_64_pei_vec" |
00b2bfc1 NC |
653 | want64=true |
654 | ;; | |
655 | #endif | |
80c7c40a | 656 | i[3-7]86-*-kaos*) |
6d00b590 AM |
657 | targ_defvec=i386_elf32_vec |
658 | targ_selvecs=i386_elf32_vec | |
42b5d0ea | 659 | ;; |
80c7c40a | 660 | i[3-7]86-*-nto*) |
6d00b590 | 661 | targ_defvec=i386_elf32_vec |
bf64a951 | 662 | targ_selvecs="iamcu_elf32_vec i386_coff_vec" |
caf47ea6 | 663 | ;; |
80c7c40a | 664 | i[3-7]86-*-aros*) |
6d00b590 | 665 | targ_defvec=i386_elf32_vec |
bf64a951 | 666 | targ_selvecs=iamcu_elf32_vec |
da896d3f | 667 | ;; |
80c7c40a | 668 | i[3-7]86-*-chorus*) |
6d00b590 | 669 | targ_defvec=i386_elf32_vec |
bf64a951 | 670 | targ_selvecs=iamcu_elf32_vec |
8848a8d0 | 671 | ;; |
18c1668c | 672 | i[3-7]86-*-dicos*) |
6d00b590 | 673 | targ_defvec=i386_elf32_vec |
bf64a951 | 674 | targ_selvecs=iamcu_elf32_vec |
6d00b590 | 675 | targ64_selvecs="x86_64_elf64_vec l1om_elf64_vec k1om_elf64_vec" |
18c1668c | 676 | ;; |
7e4e2059 | 677 | *-*-msdosdjgpp* | *-*-go32* ) |
6d00b590 AM |
678 | targ_defvec=i386_coff_go32_vec |
679 | targ_selvecs="i386_coff_go32stubbed_vec i386_aout_vec" | |
252b5132 | 680 | ;; |
80c7c40a NC |
681 | i[3-7]86-*-sysv* | i[3-7]86-*-isc* | i[3-7]86-*-sco* | i[3-7]86-*-coff | \ |
682 | i[3-7]86-*-aix*) | |
6d00b590 | 683 | targ_defvec=i386_coff_vec |
2e9a84c8 | 684 | ;; |
9f971fcb | 685 | i[3-7]86-*-rtems*) |
6d00b590 | 686 | targ_defvec=i386_elf32_vec |
bf64a951 | 687 | targ_selvecs="iamcu_elf32_vec i386_coff_vec i386_aout_vec" |
d43ded80 | 688 | ;; |
80c7c40a | 689 | i[3-7]86-*-darwin* | i[3-7]86-*-macos10* | i[3-7]86-*-rhapsody*) |
6d00b590 | 690 | targ_defvec=i386_mach_o_vec |
618b7301 | 691 | targ_selvecs="mach_o_le_vec mach_o_be_vec mach_o_fat_vec pef_vec pef_xlib_vec sym_vec" |
6d00b590 | 692 | targ64_selvecs=x86_64_mach_o_vec |
618b7301 | 693 | targ_archs="$targ_archs bfd_powerpc_arch bfd_rs6000_arch" |
b1c58715 | 694 | ;; |
76d4c1cb | 695 | i[3-7]86-sequent-bsd*) |
6d00b590 | 696 | targ_defvec=i386_aout_dynix_vec |
252b5132 RH |
697 | targ_underscore=yes |
698 | ;; | |
80c7c40a | 699 | i[3-7]86-*-bsd*) |
6d00b590 | 700 | targ_defvec=i386_aout_bsd_vec |
252b5132 RH |
701 | targ_underscore=yes |
702 | ;; | |
5b806d27 | 703 | i[3-7]86-*-dragonfly*) |
6d00b590 | 704 | targ_defvec=i386_elf32_vec |
bf64a951 | 705 | targ_selvecs=iamcu_elf32_vec |
6d00b590 | 706 | targ64_selvecs="x86_64_elf64_vec l1om_elf64_vec k1om_elf64_vec" |
5b806d27 | 707 | ;; |
80c7c40a NC |
708 | i[3-7]86-*-freebsdaout* | i[3-7]86-*-freebsd[12].* | \ |
709 | i[3-7]86-*-freebsd[12]) | |
6d00b590 AM |
710 | targ_defvec=i386_aout_fbsd_vec |
711 | targ_selvecs=i386_aout_bsd_vec | |
252b5132 RH |
712 | targ_underscore=yes |
713 | ;; | |
5b806d27 | 714 | i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu) |
6d00b590 | 715 | targ_defvec=i386_elf32_fbsd_vec |
bf64a951 | 716 | targ_selvecs="i386_elf32_vec iamcu_elf32_vec i386_pei_vec i386_coff_vec" |
6d00b590 | 717 | targ64_selvecs="x86_64_elf64_fbsd_vec x86_64_elf64_vec x86_64_pei_vec l1om_elf64_vec l1om_elf64_fbsd_vec k1om_elf64_vec k1om_elf64_fbsd_vec" |
4ada7262 DB |
718 | # FreeBSD <= 4.0 supports only the old nonstandard way of ABI labelling. |
719 | case "${targ}" in | |
80c7c40a | 720 | i[3-7]86-*-freebsd3* | i[3-7]86-*-freebsd4 | i[3-7]86-*-freebsd4.0*) |
4ada7262 DB |
721 | targ_cflags=-DOLD_FREEBSD_ABI_LABEL ;; |
722 | esac | |
7a50d4ac | 723 | ;; |
4615568e | 724 | i[3-7]86-*-netbsdelf* | i[3-7]86-*-netbsd*-gnu* | i[3-7]86-*-knetbsd*-gnu) |
6d00b590 | 725 | targ_defvec=i386_elf32_vec |
bf64a951 | 726 | targ_selvecs="i386_aout_nbsd_vec iamcu_elf32_vec" |
6d00b590 | 727 | targ64_selvecs="x86_64_elf64_vec l1om_elf64_vec k1om_elf64_vec" |
0af288f3 | 728 | ;; |
80c7c40a | 729 | i[3-7]86-*-netbsdpe*) |
6d00b590 | 730 | targ_defvec=i386_pe_vec |
bf64a951 | 731 | targ_selvecs="i386_pe_vec i386_pei_vec i386_elf32_vec iamcu_elf32_vec" |
436e8db0 | 732 | ;; |
7d1ebfb2 NC |
733 | i[3-7]86-*-netbsdaout* | i[3-7]86-*-netbsd* | \ |
734 | i[3-7]86-*-openbsd[0-2].* | i[3-7]86-*-openbsd3.[0-3]) | |
6d00b590 | 735 | targ_defvec=i386_aout_nbsd_vec |
bf64a951 | 736 | targ_selvecs="i386_elf32_vec iamcu_elf32_vec i386_aout_bsd_vec" |
252b5132 RH |
737 | targ_underscore=yes |
738 | ;; | |
7d3f158f | 739 | i[3-7]86-*-openbsd*) |
6d00b590 | 740 | targ_defvec=i386_elf32_vec |
bf64a951 | 741 | targ_selvecs="iamcu_elf32_vec i386_aout_nbsd_vec" |
7d1ebfb2 | 742 | ;; |
80c7c40a | 743 | i[3-7]86-*-netware*) |
6d00b590 | 744 | targ_defvec=i386_elf32_vec |
bf64a951 | 745 | targ_selvecs="iamcu_elf32_vec i386_nlm32_vec i386_coff_vec i386_aout_vec" |
252b5132 | 746 | ;; |
80c7c40a | 747 | i[3-7]86-*-linux*aout*) |
6d00b590 | 748 | targ_defvec=i386_aout_linux_vec |
bf64a951 | 749 | targ_selvecs="i386_elf32_vec iamcu_elf32_vec" |
252b5132 RH |
750 | targ_underscore=yes |
751 | ;; | |
ed84e695 | 752 | i[3-7]86-*-linux-*) |
6d00b590 | 753 | targ_defvec=i386_elf32_vec |
bf64a951 | 754 | targ_selvecs="iamcu_elf32_vec i386_aout_linux_vec i386_pei_vec" |
6d00b590 | 755 | targ64_selvecs="x86_64_elf64_vec x86_64_elf32_vec x86_64_pei_vec l1om_elf64_vec k1om_elf64_vec" |
252b5132 | 756 | ;; |
a27e4371 | 757 | i[3-7]86-*-nacl*) |
6d00b590 AM |
758 | targ_defvec=i386_elf32_nacl_vec |
759 | targ_selvecs="arm_elf32_nacl_be_vec arm_elf32_nacl_le_vec" | |
760 | targ64_selvecs="x86_64_elf64_nacl_vec x86_64_elf32_nacl_vec" | |
b38cadfb | 761 | targ_archs="$targ_archs bfd_arm_arch" |
a27e4371 | 762 | ;; |
956cd1d6 | 763 | #ifdef BFD64 |
6036f486 ES |
764 | x86_64-*-cloudabi*) |
765 | targ_defvec=x86_64_elf64_cloudabi_vec | |
766 | want64=true | |
767 | ;; | |
f96fc22a | 768 | x86_64-*-darwin*) |
6d00b590 AM |
769 | targ_defvec=x86_64_mach_o_vec |
770 | targ_selvecs="i386_mach_o_vec mach_o_le_vec mach_o_be_vec mach_o_fat_vec pef_vec pef_xlib_vec sym_vec" | |
618b7301 | 771 | targ_archs="$targ_archs bfd_powerpc_arch bfd_rs6000_arch" |
f96fc22a TG |
772 | want64=true |
773 | ;; | |
18c1668c | 774 | x86_64-*-dicos*) |
6d00b590 | 775 | targ_defvec=x86_64_elf64_vec |
bf64a951 | 776 | targ_selvecs="i386_elf32_vec iamcu_elf32_vec l1om_elf64_vec k1om_elf64_vec" |
18c1668c PA |
777 | want64=true |
778 | ;; | |
d5451cd4 | 779 | x86_64-*-elf* | x86_64-*-rtems* | x86_64-*-fuchsia) |
6d00b590 | 780 | targ_defvec=x86_64_elf64_vec |
bf64a951 | 781 | targ_selvecs="i386_elf32_vec iamcu_elf32_vec x86_64_elf32_vec l1om_elf64_vec k1om_elf64_vec" |
314e9a4e | 782 | want64=true |
34723071 | 783 | ;; |
5b806d27 | 784 | x86_64-*-dragonfly*) |
6d00b590 | 785 | targ_defvec=x86_64_elf64_vec |
bf64a951 | 786 | targ_selvecs="i386_elf32_vec iamcu_elf32_vec l1om_elf64_vec k1om_elf64_vec" |
5b806d27 NC |
787 | want64=true |
788 | ;; | |
13dfd2d0 | 789 | x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu) |
6d00b590 | 790 | targ_defvec=x86_64_elf64_fbsd_vec |
bf64a951 | 791 | targ_selvecs="i386_elf32_fbsd_vec iamcu_elf32_vec i386_coff_vec i386_pei_vec x86_64_pei_vec i386_elf32_vec x86_64_elf64_vec l1om_elf64_vec l1om_elf64_fbsd_vec k1om_elf64_vec k1om_elf64_fbsd_vec" |
314e9a4e | 792 | want64=true |
8a8b2d4b | 793 | ;; |
85cfd8d3 | 794 | x86_64-*-netbsd* | x86_64-*-openbsd*) |
6d00b590 | 795 | targ_defvec=x86_64_elf64_vec |
bf64a951 | 796 | targ_selvecs="i386_elf32_vec iamcu_elf32_vec i386_aout_nbsd_vec i386_coff_vec i386_pei_vec x86_64_pei_vec l1om_elf64_vec k1om_elf64_vec" |
314e9a4e | 797 | want64=true |
d4af9775 | 798 | ;; |
ed84e695 | 799 | x86_64-*-linux-*) |
6d00b590 | 800 | targ_defvec=x86_64_elf64_vec |
bf64a951 | 801 | targ_selvecs="i386_elf32_vec iamcu_elf32_vec x86_64_elf32_vec i386_aout_linux_vec i386_pei_vec x86_64_pei_vec l1om_elf64_vec k1om_elf64_vec" |
314e9a4e | 802 | want64=true |
8d88c4ca | 803 | ;; |
8059fb19 | 804 | x86_64-*-nacl*) |
6d00b590 AM |
805 | targ_defvec=x86_64_elf32_nacl_vec |
806 | targ_selvecs="i386_elf32_nacl_vec x86_64_elf64_nacl_vec arm_elf32_nacl_be_vec arm_elf32_nacl_le_vec" | |
b38cadfb | 807 | targ_archs="$targ_archs bfd_arm_arch" |
8059fb19 RM |
808 | want64=true |
809 | ;; | |
48385e38 | 810 | x86_64-*-mingw* | x86_64-*-pe | x86_64-*-pep | x86_64-*-cygwin) |
6d00b590 | 811 | targ_defvec=x86_64_pe_vec |
bf64a951 | 812 | targ_selvecs="x86_64_pe_vec x86_64_pei_vec x86_64_pe_be_vec x86_64_elf64_vec l1om_elf64_vec k1om_elf64_vec i386_pe_vec i386_pei_vec i386_elf32_vec iamcu_elf32_vec" |
99ad8390 | 813 | want64=true |
ef72a554 | 814 | targ_underscore=no |
99ad8390 | 815 | ;; |
79056107 | 816 | x86_64-*-rdos*) |
6d00b590 | 817 | targ_defvec=x86_64_elf64_vec |
79056107 AM |
818 | want64=true |
819 | ;; | |
8d88c4ca | 820 | #endif |
80c7c40a | 821 | i[3-7]86-*-lynxos*) |
6d00b590 | 822 | targ_defvec=i386_elf32_vec |
bf64a951 | 823 | targ_selvecs="iamcu_elf32_vec i386_coff_lynx_vec i386_aout_lynx_vec" |
252b5132 | 824 | ;; |
80c7c40a | 825 | i[3-7]86-*-gnu*) |
6d00b590 | 826 | targ_defvec=i386_elf32_vec |
bf64a951 | 827 | targ_selvecs=iamcu_elf32_vec |
252b5132 | 828 | ;; |
80c7c40a | 829 | i[3-7]86-*-mach* | i[3-7]86-*-osf1mk*) |
6d00b590 | 830 | targ_defvec=i386_aout_mach3_vec |
252b5132 RH |
831 | targ_cflags=-DSTAT_FOR_EXEC |
832 | targ_underscore=yes | |
833 | ;; | |
80c7c40a | 834 | i[3-7]86-*-os9k) |
6d00b590 | 835 | targ_defvec=i386_aout_os9k_vec |
252b5132 | 836 | ;; |
80c7c40a | 837 | i[3-7]86-*-msdos*) |
6d00b590 AM |
838 | targ_defvec=i386_aout_vec |
839 | targ_selvecs=i386_msdos_vec | |
252b5132 | 840 | ;; |
80c7c40a | 841 | i[3-7]86-*-moss*) |
6d00b590 | 842 | targ_defvec=i386_elf32_vec |
bf64a951 | 843 | targ_selvecs="iamcu_elf32_vec i386_msdos_vec i386_aout_vec" |
252b5132 | 844 | ;; |
80c7c40a | 845 | i[3-7]86-*-beospe*) |
6d00b590 AM |
846 | targ_defvec=i386_pe_vec |
847 | targ_selvecs="i386_pe_vec i386_pei_vec" | |
252b5132 | 848 | ;; |
80c7c40a | 849 | i[3-7]86-*-beoself* | i[3-7]86-*-beos*) |
6d00b590 | 850 | targ_defvec=i386_elf32_vec |
bf64a951 | 851 | targ_selvecs="iamcu_elf32_vec i386_pe_vec i386_pei_vec" |
252b5132 | 852 | ;; |
80c7c40a | 853 | i[3-7]86-*-interix*) |
6d00b590 AM |
854 | targ_defvec=i386_pei_vec |
855 | targ_selvecs="i386_pe_vec" | |
0717ebb7 ILT |
856 | # FIXME: This should eventually be checked at runtime. |
857 | targ_cflags=-DSTRICT_PE_FORMAT | |
7d923127 | 858 | ;; |
b59bea8a | 859 | i[3-7]86-*-rdos*) |
6d00b590 | 860 | targ_defvec=i386_elf32_vec |
bf64a951 | 861 | targ_selvecs="iamcu_elf32_vec i386_coff_vec" |
b59bea8a | 862 | ;; |
80c7c40a | 863 | i[3-7]86-*-mingw32* | i[3-7]86-*-cygwin* | i[3-7]86-*-winnt | i[3-7]86-*-pe) |
6d00b590 | 864 | targ_defvec=i386_pe_vec |
bf64a951 | 865 | targ_selvecs="i386_pe_vec i386_pei_vec i386_elf32_vec iamcu_elf32_vec" |
db3d41a8 | 866 | targ_underscore=yes |
252b5132 | 867 | ;; |
80c7c40a | 868 | i[3-7]86-none-*) |
6d00b590 | 869 | targ_defvec=i386_coff_vec |
252b5132 | 870 | ;; |
80c7c40a | 871 | i[3-7]86-*-aout* | i[3-7]86*-*-vsta*) |
6d00b590 | 872 | targ_defvec=i386_aout_vec |
252b5132 | 873 | ;; |
e26f8bd9 | 874 | i[3-7]86-*-vxworks*) |
6d00b590 | 875 | targ_defvec=i386_elf32_vxworks_vec |
957ccf44 | 876 | targ_underscore=yes |
ac352105 | 877 | ;; |
80c7c40a | 878 | i[3-7]86-*-chaos) |
6d00b590 | 879 | targ_defvec=i386_elf32_vec |
bf64a951 | 880 | targ_selfvecs="iamcu_elf32_vec i386chaos_vec" |
59ff2774 | 881 | ;; |
252b5132 RH |
882 | |
883 | i860-*-mach3* | i860-*-osf1* | i860-*-coff*) | |
6d00b590 | 884 | targ_defvec=i860_coff_vec |
252b5132 | 885 | ;; |
9d751335 | 886 | i860-stardent-sysv4* | i860-stardent-elf*) |
6d00b590 AM |
887 | targ_defvec=i860_elf32_le_vec |
888 | targ_selvecs="i860_elf32_vec i860_elf32_le_vec" | |
9d751335 | 889 | ;; |
252b5132 | 890 | i860-*-sysv4* | i860-*-elf*) |
6d00b590 | 891 | targ_defvec=i860_elf32_vec |
252b5132 RH |
892 | ;; |
893 | ||
894 | i960-*-vxworks4* | i960-*-vxworks5.0) | |
6d00b590 AM |
895 | targ_defvec=bout_le_vec |
896 | targ_selvecs="bout_be_vec icoff_le_vec icoff_be_vec ieee_vec" | |
252b5132 RH |
897 | targ_underscore=yes |
898 | ;; | |
0285182b | 899 | i960-*-vxworks5.* | i960-*-coff* | i960-*-sysv*) |
6d00b590 AM |
900 | targ_defvec=icoff_le_vec |
901 | targ_selvecs="icoff_be_vec bout_le_vec bout_be_vec ieee_vec" | |
252b5132 RH |
902 | targ_underscore=yes |
903 | ;; | |
904 | i960-*-vxworks* | i960-*-aout* | i960-*-bout* | i960-*-nindy*) | |
6d00b590 AM |
905 | targ_defvec=bout_le_vec |
906 | targ_selvecs="bout_be_vec icoff_le_vec icoff_be_vec ieee_vec" | |
252b5132 RH |
907 | targ_underscore=yes |
908 | ;; | |
b2ef150d | 909 | i960-*-elf*) |
6d00b590 AM |
910 | targ_defvec=i960_elf32_vec |
911 | targ_selvecs="icoff_le_vec icoff_be_vec" | |
b2ef150d | 912 | ;; |
252b5132 | 913 | |
cf88bb9f | 914 | ip2k-*-elf) |
6d00b590 | 915 | targ_defvec=ip2k_elf32_vec |
cf88bb9f NC |
916 | ;; |
917 | ||
a75473eb | 918 | iq2000-*-elf) |
6d00b590 | 919 | targ_defvec=iq2000_elf32_vec |
a75473eb SC |
920 | ;; |
921 | ||
3baa454d | 922 | lm32-*-elf | lm32-*-rtems*) |
6d00b590 AM |
923 | targ_defvec=lm32_elf32_vec |
924 | targ_selvecs=lm32_elf32_fdpic_vec | |
84e94c90 | 925 | ;; |
a27e4371 | 926 | |
84e94c90 | 927 | lm32-*-*linux*) |
6d00b590 AM |
928 | targ_defvec=lm32_elf32_fdpic_vec |
929 | targ_selvecs=lm32_elf32_vec | |
84e94c90 | 930 | ;; |
a27e4371 | 931 | |
8a2a2dbb | 932 | m32c-*-elf | m32c-*-rtems*) |
6d00b590 | 933 | targ_defvec=m32c_elf32_vec |
e729279b NC |
934 | ;; |
935 | ||
6edf0760 | 936 | m32r*le-*-linux*) |
6d00b590 AM |
937 | targ_defvec=m32r_elf32_linux_le_vec |
938 | targ_selvecs="m32r_elf32_linux_vec m32r_elf32_linux_le_vec" | |
6edf0760 | 939 | ;; |
6edf0760 | 940 | m32r*-*-linux*) |
6d00b590 AM |
941 | targ_defvec=m32r_elf32_linux_vec |
942 | targ_selvecs="m32r_elf32_linux_vec m32r_elf32_linux_le_vec" | |
6edf0760 | 943 | ;; |
6edf0760 | 944 | m32r*le-*-*) |
6d00b590 AM |
945 | targ_defvec=m32r_elf32_le_vec |
946 | targ_selvecs="m32r_elf32_vec m32r_elf32_le_vec" | |
6edf0760 | 947 | ;; |
252b5132 | 948 | m32r-*-*) |
6d00b590 | 949 | targ_defvec=m32r_elf32_vec |
252b5132 RH |
950 | ;; |
951 | ||
60bcf0fa | 952 | m68hc11-*-* | m6811-*-*) |
6d00b590 AM |
953 | targ_defvec=m68hc11_elf32_vec |
954 | targ_selvecs="m68hc11_elf32_vec m68hc12_elf32_vec" | |
60bcf0fa NC |
955 | ;; |
956 | m68hc12-*-* | m6812-*-*) | |
6d00b590 AM |
957 | targ_defvec=m68hc12_elf32_vec |
958 | targ_selvecs="m68hc11_elf32_vec m68hc12_elf32_vec" | |
60bcf0fa NC |
959 | ;; |
960 | ||
252b5132 | 961 | m68*-motorola-sysv*) |
6d00b590 | 962 | targ_defvec=m68k_coff_sysv_vec |
252b5132 RH |
963 | ;; |
964 | m68*-hp-bsd*) | |
6d00b590 | 965 | targ_defvec=m68k_aout_hp300bsd_vec |
252b5132 RH |
966 | targ_underscore=yes |
967 | ;; | |
968 | m68*-*-aout*) | |
6d00b590 AM |
969 | targ_defvec=aout0_be_vec |
970 | # We include core_cisco_be_vec here, rather than making a separate cisco | |
252b5132 RH |
971 | # configuration, so that cisco-core.c gets routinely tested at |
972 | # least for compilation. | |
6d00b590 | 973 | targ_selvecs="core_cisco_be_vec ieee_vec" |
252b5132 RH |
974 | targ_underscore=yes |
975 | ;; | |
b50c15dc | 976 | m68*-*-elf* | m68*-*-sysv4* | m68*-*-uclinux*) |
6d00b590 AM |
977 | targ_defvec=m68k_elf32_vec |
978 | targ_selvecs="m68k_coff_vec ieee_vec" | |
252b5132 | 979 | ;; |
2e9a84c8 | 980 | m68*-*-rtems*) |
6d00b590 AM |
981 | targ_defvec=m68k_elf32_vec |
982 | targ_selvecs="m68k_coff_vec m68k_versados_vec ieee_vec aout0_be_vec" | |
2e9a84c8 RH |
983 | ;; |
984 | m68*-*-coff* | m68*-*-sysv*) | |
6d00b590 AM |
985 | targ_defvec=m68k_coff_vec |
986 | targ_selvecs="m68k_coff_vec m68k_versados_vec ieee_vec" | |
252b5132 RH |
987 | ;; |
988 | m68*-*-hpux*) | |
6d00b590 | 989 | targ_defvec=m68k_aout_hp300hpux_vec |
252b5132 RH |
990 | targ_underscore=yes |
991 | ;; | |
992 | m68*-*-linux*aout*) | |
6d00b590 AM |
993 | targ_defvec=m68k_aout_linux_vec |
994 | targ_selvecs=m68k_elf32_vec | |
252b5132 RH |
995 | targ_underscore=yes |
996 | ;; | |
ed84e695 | 997 | m68*-*-linux-*) |
6d00b590 AM |
998 | targ_defvec=m68k_elf32_vec |
999 | targ_selvecs=m68k_aout_linux_vec | |
252b5132 RH |
1000 | ;; |
1001 | m68*-*-gnu*) | |
6d00b590 | 1002 | targ_defvec=m68k_elf32_vec |
252b5132 RH |
1003 | # targ_selvecs=m68kmach3_vec |
1004 | # targ_cflags=-DSTAT_FOR_EXEC | |
1005 | ;; | |
252b5132 | 1006 | m68*-hp*-netbsd*) |
6d00b590 AM |
1007 | targ_defvec=m68k_aout_4knbsd_vec |
1008 | targ_selvecs="m68k_aout_nbsd_vec m68k_aout_hp300bsd_vec sparc_aout_sunos_be_vec" | |
252b5132 RH |
1009 | targ_underscore=yes |
1010 | ;; | |
7d3f158f | 1011 | m68*-*-netbsdelf*) |
6d00b590 AM |
1012 | targ_defvec=m68k_elf32_vec |
1013 | targ_selvecs="m68k_aout_nbsd_vec m68k_aout_4knbsd_vec m68k_aout_hp300bsd_vec sparc_aout_sunos_be_vec" | |
0b69cd08 MG |
1014 | ;; |
1015 | m68*-*-netbsdaout* | m68*-*-netbsd*) | |
6d00b590 AM |
1016 | targ_defvec=m68k_aout_nbsd_vec |
1017 | targ_selvecs="m68k_aout_4knbsd_vec m68k_elf32_vec m68k_aout_hp300bsd_vec sparc_aout_sunos_be_vec" | |
0b69cd08 MG |
1018 | targ_underscore=yes |
1019 | ;; | |
1020 | m68*-*-openbsd*) | |
6d00b590 AM |
1021 | targ_defvec=m68k_aout_nbsd_vec |
1022 | targ_selvecs="m68k_aout_4knbsd_vec m68k_aout_hp300bsd_vec sparc_aout_sunos_be_vec" | |
252b5132 RH |
1023 | targ_underscore=yes |
1024 | ;; | |
1025 | m68*-*-sunos* | m68*-*-os68k* | m68*-*-vxworks* | m68*-netx-* | \ | |
1026 | m68*-*-bsd* | m68*-*-vsta*) | |
6d00b590 | 1027 | targ_defvec=sparc_aout_sunos_be_vec |
252b5132 RH |
1028 | targ_underscore=yes |
1029 | ;; | |
1030 | m68*-ericsson-*) | |
6d00b590 AM |
1031 | targ_defvec=sparc_aout_sunos_be_vec |
1032 | targ_selvecs="m68k_coff_vec m68k_versados_vec tekhex_vec" | |
252b5132 RH |
1033 | targ_underscore=yes |
1034 | ;; | |
1035 | m68*-cbm-*) | |
6d00b590 AM |
1036 | targ_defvec=m68k_elf32_vec |
1037 | targ_selvecs=m68k_coff_vec | |
252b5132 | 1038 | ;; |
252b5132 | 1039 | m68*-*-psos*) |
6d00b590 | 1040 | targ_defvec=m68k_elf32_vec |
252b5132 RH |
1041 | targ_selvecs=ieee_vec |
1042 | targ_underscore=yes | |
1043 | ;; | |
1044 | ||
1045 | m88*-harris-cxux* | m88*-*-dgux* | m88*-*-sysv4*) | |
6d00b590 AM |
1046 | targ_defvec=m88k_elf32_vec |
1047 | targ_selvecs=m88k_coff_bcs_vec | |
252b5132 RH |
1048 | ;; |
1049 | m88*-*-mach3*) | |
6d00b590 | 1050 | targ_defvec=m88k_aout_mach3_vec |
252b5132 RH |
1051 | targ_cflags=-DSTAT_FOR_EXEC |
1052 | ;; | |
a5fd0812 | 1053 | m88*-*-openbsd*) |
6d00b590 | 1054 | targ_defvec=m88k_aout_obsd_vec |
c6f8758f NC |
1055 | targ_underscore=yes |
1056 | ;; | |
252b5132 | 1057 | m88*-*-*) |
6d00b590 | 1058 | targ_defvec=m88k_coff_bcs_vec |
252b5132 RH |
1059 | targ_underscore=yes |
1060 | ;; | |
1061 | ||
1062 | mcore-*-elf) | |
6d00b590 AM |
1063 | targ_defvec=mcore_elf32_be_vec |
1064 | targ_selvecs="mcore_elf32_be_vec mcore_elf32_le_vec" | |
252b5132 RH |
1065 | ;; |
1066 | mcore-*-pe) | |
6d00b590 AM |
1067 | targ_defvec=mcore_pe_be_vec |
1068 | targ_selvecs="mcore_pe_be_vec mcore_pe_le_vec mcore_pei_be_vec mcore_pei_le_vec" | |
252b5132 RH |
1069 | ;; |
1070 | ||
d9352518 | 1071 | mep-*-elf) |
6d00b590 AM |
1072 | targ_defvec=mep_elf32_vec |
1073 | targ_selvecs=mep_elf32_le_vec | |
d9352518 DB |
1074 | ;; |
1075 | ||
a3c62988 | 1076 | metag-*-*) |
6d00b590 | 1077 | targ_defvec=metag_elf32_vec |
a3c62988 NC |
1078 | targ_underscore=yes |
1079 | ;; | |
1080 | ||
f23200ad | 1081 | microblazeel*-*) |
6d00b590 AM |
1082 | targ_defvec=microblaze_elf32_le_vec |
1083 | targ_selvecs=microblaze_elf32_vec | |
f23200ad ME |
1084 | ;; |
1085 | ||
7ba29e2a | 1086 | microblaze*-*) |
6d00b590 AM |
1087 | targ_defvec=microblaze_elf32_vec |
1088 | targ_selvecs=microblaze_elf32_le_vec | |
7ba29e2a NC |
1089 | ;; |
1090 | ||
252b5132 | 1091 | mips*-big-*) |
6d00b590 AM |
1092 | targ_defvec=mips_ecoff_be_vec |
1093 | targ_selvecs=mips_ecoff_le_vec | |
252b5132 | 1094 | ;; |
42429eac | 1095 | #ifdef BFD64 |
3cb60568 | 1096 | mips*el-*-netbsd*) |
6d00b590 AM |
1097 | targ_defvec=mips_elf32_trad_le_vec |
1098 | targ_selvecs="mips_elf32_trad_be_vec mips_elf64_trad_be_vec mips_elf64_trad_le_vec mips_ecoff_le_vec mips_ecoff_be_vec" | |
252b5132 | 1099 | ;; |
102ab332 | 1100 | mips*-*-netbsd*) |
6d00b590 AM |
1101 | targ_defvec=mips_elf32_trad_be_vec |
1102 | targ_selvecs="mips_elf32_trad_le_vec mips_elf64_trad_be_vec mips_elf64_trad_le_vec mips_ecoff_be_vec mips_ecoff_le_vec" | |
252b5132 | 1103 | ;; |
42429eac | 1104 | #endif |
252b5132 | 1105 | mips*-dec-* | mips*el-*-ecoff*) |
6d00b590 AM |
1106 | targ_defvec=mips_ecoff_le_vec |
1107 | targ_selvecs=mips_ecoff_be_vec | |
252b5132 RH |
1108 | ;; |
1109 | mips*-*-ecoff*) | |
6d00b590 AM |
1110 | targ_defvec=mips_ecoff_be_vec |
1111 | targ_selvecs=mips_ecoff_le_vec | |
252b5132 | 1112 | ;; |
36b45482 | 1113 | #ifdef BFD64 |
252b5132 | 1114 | mips*-*-irix6*) |
6d00b590 AM |
1115 | targ_defvec=mips_elf32_n_be_vec |
1116 | targ_selvecs="mips_elf32_n_le_vec mips_elf32_be_vec mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec" | |
252b5132 | 1117 | ;; |
e407c74b | 1118 | mips64*-ps2-elf*) |
6d00b590 AM |
1119 | targ_defvec=mips_elf32_n_le_vec |
1120 | targ_selvecs="mips_elf32_n_le_vec mips_elf32_n_be_vec mips_elf32_be_vec mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec" | |
e407c74b | 1121 | ;; |
e407c74b | 1122 | mips*-ps2-elf*) |
6d00b590 AM |
1123 | targ_defvec=mips_elf32_le_vec |
1124 | targ_selvecs="mips_elf32_be_vec mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec" | |
e407c74b | 1125 | ;; |
252b5132 | 1126 | mips*-*-irix5*) |
6d00b590 AM |
1127 | targ_defvec=mips_elf32_be_vec |
1128 | targ_selvecs="mips_elf32_le_vec mips_ecoff_be_vec mips_ecoff_le_vec" | |
252b5132 | 1129 | ;; |
42429eac | 1130 | #endif |
252b5132 | 1131 | mips*-sgi-* | mips*-*-bsd*) |
6d00b590 AM |
1132 | targ_defvec=mips_ecoff_be_vec |
1133 | targ_selvecs=mips_ecoff_le_vec | |
252b5132 RH |
1134 | ;; |
1135 | mips*-*-lnews*) | |
6d00b590 AM |
1136 | targ_defvec=mips_ecoff_bele_vec |
1137 | targ_selvecs="mips_ecoff_le_vec mips_ecoff_be_vec" | |
252b5132 | 1138 | ;; |
42429eac | 1139 | #ifdef BFD64 |
252b5132 | 1140 | mips*-*-sysv4*) |
6d00b590 AM |
1141 | targ_defvec=mips_elf32_trad_be_vec |
1142 | targ_selvecs="mips_elf32_trad_le_vec mips_ecoff_be_vec mips_ecoff_le_vec" | |
252b5132 | 1143 | ;; |
42429eac | 1144 | #endif |
252b5132 | 1145 | mips*-*-sysv* | mips*-*-riscos*) |
6d00b590 AM |
1146 | targ_defvec=mips_ecoff_be_vec |
1147 | targ_selvecs=mips_ecoff_le_vec | |
252b5132 | 1148 | ;; |
0a44bf69 RS |
1149 | #ifdef BFD64 |
1150 | mips*el-*-vxworks*) | |
6d00b590 AM |
1151 | targ_defvec=mips_elf32_vxworks_le_vec |
1152 | targ_selvecs="mips_elf32_le_vec mips_elf32_vxworks_be_vec mips_elf32_be_vec mips_elf64_be_vec mips_elf64_le_vec" | |
0a44bf69 RS |
1153 | ;; |
1154 | mips*-*-vxworks*) | |
6d00b590 AM |
1155 | targ_defvec=mips_elf32_vxworks_be_vec |
1156 | targ_selvecs="mips_elf32_be_vec mips_elf32_vxworks_le_vec mips_elf32_be_vec mips_elf64_be_vec mips_elf64_le_vec" | |
0a44bf69 | 1157 | ;; |
a27e4371 | 1158 | mips*el-sde-elf*) |
6d00b590 AM |
1159 | targ_defvec=mips_elf32_trad_le_vec |
1160 | targ_selvecs="mips_elf32_trad_be_vec mips_elf32_ntrad_be_vec mips_elf32_ntrad_le_vec mips_elf64_trad_be_vec mips_elf64_trad_le_vec" | |
a27e4371 | 1161 | ;; |
a9d58c06 | 1162 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
6d00b590 AM |
1163 | targ_defvec=mips_elf32_trad_be_vec |
1164 | targ_selvecs="mips_elf32_trad_le_vec mips_elf32_ntrad_be_vec mips_elf32_ntrad_le_vec mips_elf64_trad_be_vec mips_elf64_trad_le_vec" | |
4be041b2 | 1165 | ;; |
9cc0123f | 1166 | mips*el-*-elf* | mips*-*-chorus*) |
6d00b590 AM |
1167 | targ_defvec=mips_elf32_le_vec |
1168 | targ_selvecs="mips_elf32_be_vec mips_elf64_be_vec mips_elf64_le_vec" | |
252b5132 | 1169 | ;; |
9cc0123f | 1170 | mips*-*-elf* | mips*-*-rtems* | mips*-*-windiss | mips*-*-none) |
6d00b590 AM |
1171 | targ_defvec=mips_elf32_be_vec |
1172 | targ_selvecs="mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec" | |
252b5132 | 1173 | ;; |
5f417ca3 | 1174 | mips64*-*-openbsd*) |
6d00b590 AM |
1175 | targ_defvec=mips_elf64_trad_be_vec |
1176 | targ_selvecs="mips_elf32_ntrad_le_vec mips_elf32_ntrad_be_vec mips_elf32_trad_le_vec mips_elf32_trad_be_vec mips_elf64_trad_le_vec" | |
5f417ca3 | 1177 | ;; |
4008bd9b | 1178 | mips*el-*-openbsd*) |
6d00b590 AM |
1179 | targ_defvec=mips_elf32_le_vec |
1180 | targ_selvecs="mips_elf32_be_vec mips_elf64_be_vec mips_elf64_le_vec mips_ecoff_le_vec mips_ecoff_be_vec" | |
252b5132 | 1181 | ;; |
fdbafa10 | 1182 | mips*-*-openbsd*) |
6d00b590 AM |
1183 | targ_defvec=mips_elf32_be_vec |
1184 | targ_selvecs="mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec mips_ecoff_be_vec mips_ecoff_le_vec" | |
252b5132 | 1185 | ;; |
4008bd9b | 1186 | mips64*el-*-linux*) |
6d00b590 AM |
1187 | targ_defvec=mips_elf32_ntrad_le_vec |
1188 | targ_selvecs="mips_elf32_ntrad_be_vec mips_elf32_trad_le_vec mips_elf32_trad_be_vec mips_elf64_trad_le_vec mips_elf64_trad_be_vec" | |
4008bd9b | 1189 | ;; |
4008bd9b | 1190 | mips64*-*-linux*) |
6d00b590 AM |
1191 | targ_defvec=mips_elf32_ntrad_be_vec |
1192 | targ_selvecs="mips_elf32_ntrad_le_vec mips_elf32_trad_be_vec mips_elf32_trad_le_vec mips_elf64_trad_be_vec mips_elf64_trad_le_vec" | |
4008bd9b | 1193 | ;; |
36b45482 | 1194 | mips*el-*-linux*) |
6d00b590 AM |
1195 | targ_defvec=mips_elf32_trad_le_vec |
1196 | targ_selvecs="mips_elf32_trad_be_vec mips_ecoff_le_vec mips_ecoff_be_vec mips_elf32_ntrad_le_vec mips_elf64_trad_le_vec mips_elf32_ntrad_be_vec mips_elf64_trad_be_vec" | |
36b45482 | 1197 | ;; |
4008bd9b | 1198 | mips*-*-linux*) |
6d00b590 AM |
1199 | targ_defvec=mips_elf32_trad_be_vec |
1200 | targ_selvecs="mips_elf32_trad_le_vec mips_ecoff_be_vec mips_ecoff_le_vec mips_elf32_ntrad_be_vec mips_elf64_trad_be_vec mips_elf32_ntrad_le_vec mips_elf64_trad_le_vec" | |
fdbafa10 | 1201 | ;; |
aeffff67 RS |
1202 | mips64*el-*-freebsd* | mips64*el-*-kfreebsd*-gnu) |
1203 | # FreeBSD vectors | |
6d00b590 AM |
1204 | targ_defvec=mips_elf32_ntradfbsd_le_vec |
1205 | targ_selvecs="mips_elf32_ntradfbsd_be_vec mips_elf32_tradfbsd_le_vec mips_elf32_tradfbsd_be_vec mips_elf64_tradfbsd_le_vec mips_elf64_tradfbsd_be_vec" | |
aeffff67 | 1206 | # Generic vectors |
6d00b590 | 1207 | targ_selvecs="${targ_selvecs} mips_elf32_ntrad_le_vec mips_elf32_ntrad_be_vec mips_elf32_trad_le_vec mips_elf32_trad_be_vec mips_elf64_trad_le_vec mips_elf64_trad_be_vec" |
aeffff67 RS |
1208 | ;; |
1209 | mips64*-*-freebsd* | mips64*-*-kfreebsd*-gnu) | |
1210 | # FreeBSD vectors | |
6d00b590 AM |
1211 | targ_defvec=mips_elf32_ntradfbsd_be_vec |
1212 | targ_selvecs="mips_elf32_ntradfbsd_le_vec mips_elf32_tradfbsd_be_vec mips_elf32_tradfbsd_le_vec mips_elf64_tradfbsd_be_vec mips_elf64_tradfbsd_le_vec" | |
aeffff67 | 1213 | # Generic vectors |
6d00b590 | 1214 | targ_selvecs="${targ_selvecs} mips_elf32_ntrad_be_vec mips_elf32_ntrad_le_vec mips_elf32_trad_be_vec mips_elf32_trad_le_vec mips_elf64_trad_be_vec mips_elf64_trad_le_vec" |
aeffff67 | 1215 | ;; |
aeffff67 RS |
1216 | mips*el-*-freebsd* | mips*el-*-kfreebsd*-gnu) |
1217 | # FreeBSD vectors | |
6d00b590 AM |
1218 | targ_defvec=mips_elf32_tradfbsd_le_vec |
1219 | targ_selvecs="mips_elf32_tradfbsd_be_vec mips_elf32_ntradfbsd_le_vec mips_elf64_tradfbsd_le_vec mips_elf32_ntradfbsd_be_vec mips_elf64_tradfbsd_be_vec" | |
aeffff67 | 1220 | # Generic vectors |
6d00b590 | 1221 | targ_selvecs="${targ_selvecs} mips_elf32_trad_le_vec mips_elf32_trad_be_vec mips_elf32_ntrad_le_vec mips_elf64_trad_le_vec mips_elf32_ntrad_be_vec mips_elf64_trad_be_vec" |
aeffff67 RS |
1222 | ;; |
1223 | mips*-*-freebsd* | mips*-*-kfreebsd*-gnu) | |
1224 | # FreeBSD vectors | |
6d00b590 AM |
1225 | targ_defvec=mips_elf32_tradfbsd_be_vec |
1226 | targ_selvecs="mips_elf32_tradfbsd_le_vec mips_elf32_ntradfbsd_be_vec mips_elf64_tradfbsd_be_vec mips_elf32_ntradfbsd_le_vec mips_elf64_tradfbsd_le_vec" | |
aeffff67 | 1227 | # Generic vectors |
6d00b590 | 1228 | targ_selvecs="${targ_selvecs} mips_elf32_trad_be_vec mips_elf32_trad_le_vec mips_elf32_ntrad_be_vec mips_elf64_trad_be_vec mips_elf32_ntrad_le_vec mips_elf64_trad_le_vec" |
aeffff67 | 1229 | ;; |
3c3bdf30 | 1230 | mmix-*-*) |
6d00b590 AM |
1231 | targ_defvec=mmix_elf64_vec |
1232 | targ_selvecs=mmix_mmo_vec | |
314e9a4e | 1233 | want64=true |
3c3bdf30 NC |
1234 | ;; |
1235 | #endif | |
252b5132 | 1236 | mn10200-*-*) |
6d00b590 | 1237 | targ_defvec=mn10200_elf32_vec |
252b5132 RH |
1238 | ;; |
1239 | ||
1240 | mn10300-*-*) | |
6d00b590 | 1241 | targ_defvec=mn10300_elf32_vec |
73c3cd1c | 1242 | targ_underscore=yes |
252b5132 RH |
1243 | ;; |
1244 | ||
4970f871 | 1245 | mt-*-elf) |
6d00b590 | 1246 | targ_defvec=mt_elf32_vec |
de33e640 AH |
1247 | ;; |
1248 | ||
2469cfa2 | 1249 | msp430-*-*) |
6d00b590 AM |
1250 | targ_defvec=msp430_elf32_vec |
1251 | targ_selvecs=msp430_elf32_ti_vec | |
2469cfa2 NC |
1252 | ;; |
1253 | ||
35c08157 | 1254 | nds32*le-*-linux*) |
6d00b590 AM |
1255 | targ_defvec=nds32_elf32_linux_le_vec |
1256 | targ_selvecs=nds32_elf32_linux_be_vec | |
35c08157 KLC |
1257 | ;; |
1258 | ||
1259 | nds32*be-*-linux*) | |
6d00b590 AM |
1260 | targ_defvec=nds32_elf32_linux_be_vec |
1261 | targ_selvecs=nds32_elf32_linux_le_vec | |
35c08157 KLC |
1262 | ;; |
1263 | ||
1264 | nds32*le-*-*) | |
6d00b590 AM |
1265 | targ_defvec=nds32_elf32_le_vec |
1266 | targ_selvecs=nds32_elf32_be_vec | |
35c08157 KLC |
1267 | ;; |
1268 | ||
1269 | nds32*be-*-*) | |
6d00b590 AM |
1270 | targ_defvec=nds32_elf32_be_vec |
1271 | targ_selvecs=nds32_elf32_le_vec | |
35c08157 KLC |
1272 | ;; |
1273 | ||
252b5132 | 1274 | ns32k-pc532-mach* | ns32k-pc532-ux*) |
6d00b590 | 1275 | targ_defvec=ns32k_aout_pc532mach_vec |
252b5132 RH |
1276 | targ_underscore=yes |
1277 | ;; | |
1278 | ns32k-*-netbsd* | ns32k-*-lites* | ns32k-*-openbsd*) | |
6d00b590 | 1279 | targ_defvec=ns32k_aout_pc532nbsd_vec |
252b5132 RH |
1280 | targ_underscore=yes |
1281 | ;; | |
1282 | ||
36591ba1 | 1283 | nios2eb-*-*) |
6d00b590 AM |
1284 | targ_defvec=nios2_elf32_be_vec |
1285 | targ_selvecs=nios2_elf32_le_vec | |
36591ba1 SL |
1286 | ;; |
1287 | ||
1288 | nios2el-*-*) | |
6d00b590 AM |
1289 | targ_defvec=nios2_elf32_le_vec |
1290 | targ_selvecs=nios2_elf32_be_vec | |
36591ba1 SL |
1291 | ;; |
1292 | ||
1293 | nios2-*-*) | |
6d00b590 AM |
1294 | targ_defvec=nios2_elf32_le_vec |
1295 | targ_selvecs=nios2_elf32_be_vec | |
36591ba1 SL |
1296 | ;; |
1297 | ||
3d52a869 | 1298 | or1k-*-elf | or1k-*-linux* | or1k-*-rtems*) |
6d00b590 | 1299 | targ_defvec=or1k_elf32_vec |
3b16e843 NC |
1300 | ;; |
1301 | ||
0d6d4c82 | 1302 | or1knd-*-elf | or1knd-*-linux* | or1knd-*-rtems*) |
6d00b590 | 1303 | targ_defvec=or1k_elf32_vec |
3b16e843 NC |
1304 | ;; |
1305 | ||
e135f41b NC |
1306 | pdp11-*-*) |
1307 | targ_defvec=pdp11_aout_vec | |
1308 | targ_underscore=yes | |
1309 | ;; | |
1310 | ||
0bcb993b | 1311 | pj-*-*) |
6d00b590 AM |
1312 | targ_defvec=pj_elf32_vec |
1313 | targ_selvecs="pj_elf32_vec pj_elf32_le_vec" | |
0bcb993b ILT |
1314 | ;; |
1315 | ||
1316 | pjl-*-*) | |
6d00b590 | 1317 | targ_defvec=pj_elf32_le_vec |
bf64a951 | 1318 | targ_selvecs="pj_elf32_le_vec pj_elf32_vec i386_elf32_vec iamcu_elf32_vec" |
0bcb993b ILT |
1319 | ;; |
1320 | ||
9a9e2ca3 | 1321 | powerpc-*-aix5.[01] | rs6000-*-aix5.[01]) |
6d00b590 AM |
1322 | targ_defvec=rs6000_xcoff_vec |
1323 | targ_selvecs="rs6000_xcoff64_aix_vec" | |
f8fc3443 NC |
1324 | want64=true |
1325 | ;; | |
1326 | #ifdef BFD64 | |
9a9e2ca3 | 1327 | powerpc64-*-aix5.[01] | rs6000-*-aix5.[01]) |
6d00b590 AM |
1328 | targ_defvec=rs6000_xcoff64_aix_vec |
1329 | targ_selvecs="rs6000_xcoff_vec" | |
f8fc3443 NC |
1330 | want64=true |
1331 | ;; | |
1332 | #endif | |
9a9e2ca3 | 1333 | powerpc-*-aix[5-9]* | rs6000-*-aix[5-9]*) |
f8fc3443 | 1334 | targ_cflags=-DAIX_WEAK_SUPPORT |
6d00b590 AM |
1335 | targ_defvec=rs6000_xcoff_vec |
1336 | targ_selvecs="rs6000_xcoff64_aix_vec" | |
eb1e0e80 NC |
1337 | want64=true |
1338 | ;; | |
8f28b845 | 1339 | #ifdef BFD64 |
9a9e2ca3 | 1340 | powerpc64-*-aix[5-9]* | rs6000-*-aix[5-9]*) |
f8fc3443 | 1341 | targ_cflags=-DAIX_WEAK_SUPPORT |
6d00b590 AM |
1342 | targ_defvec=rs6000_xcoff64_aix_vec |
1343 | targ_selvecs="rs6000_xcoff_vec" | |
eb1e0e80 NC |
1344 | want64=true |
1345 | ;; | |
680f9d5c | 1346 | #endif |
eb1e0e80 | 1347 | |
4603e845 | 1348 | powerpc-*-aix* | powerpc-*-beos* | rs6000-*-*) |
6d00b590 AM |
1349 | targ_defvec=rs6000_xcoff_vec |
1350 | targ64_selvecs=rs6000_xcoff64_vec | |
102ab332 | 1351 | case "${targ}" in |
7d3f158f | 1352 | *-*-aix4.[3456789]* | *-*-aix[56789]*) |
102ab332 | 1353 | want64=true;; |
3e36d993 TR |
1354 | *) |
1355 | targ_cflags=-DSMALL_ARCHIVE;; | |
102ab332 | 1356 | esac |
252b5132 | 1357 | ;; |
a5ac692b | 1358 | #ifdef BFD64 |
beb1bf64 | 1359 | powerpc64-*-aix*) |
6d00b590 AM |
1360 | targ_defvec=rs6000_xcoff64_vec |
1361 | targ_selvecs=rs6000_xcoff_vec | |
314e9a4e | 1362 | want64=true |
beb1bf64 | 1363 | ;; |
7b8e7dad | 1364 | powerpc64-*-freebsd*) |
6d00b590 AM |
1365 | targ_defvec=powerpc_elf64_fbsd_vec |
1366 | targ_selvecs="powerpc_elf64_vec powerpc_elf32_vec powerpc_elf32_fbsd_vec powerpc_elf32_le_vec rs6000_xcoff_vec rs6000_xcoff64_vec rs6000_xcoff64_aix_vec" | |
7b8e7dad AM |
1367 | want64=true |
1368 | ;; | |
db4ed121 NC |
1369 | powerpc64-*-elf* | powerpc-*-elf64* | powerpc64-*-linux* | \ |
1370 | powerpc64-*-*bsd*) | |
6d00b590 AM |
1371 | targ_defvec=powerpc_elf64_vec |
1372 | targ_selvecs="powerpc_elf64_le_vec powerpc_elf32_vec powerpc_elf32_le_vec rs6000_xcoff_vec rs6000_xcoff64_vec rs6000_xcoff64_aix_vec" | |
314e9a4e | 1373 | want64=true |
5bd4f169 | 1374 | ;; |
49926cd0 AM |
1375 | powerpc64le-*-elf* | powerpcle-*-elf64* | powerpc64le-*-linux* | \ |
1376 | powerpc64le-*-*bsd*) | |
6d00b590 AM |
1377 | targ_defvec=powerpc_elf64_le_vec |
1378 | targ_selvecs="powerpc_elf64_vec powerpc_elf32_le_vec powerpc_elf32_vec rs6000_xcoff_vec rs6000_xcoff64_vec rs6000_xcoff64_aix_vec" | |
314e9a4e | 1379 | want64=true |
5bd4f169 | 1380 | ;; |
a5ac692b | 1381 | #endif |
7b8e7dad | 1382 | powerpc-*-*freebsd*) |
6d00b590 AM |
1383 | targ_defvec=powerpc_elf32_fbsd_vec |
1384 | targ_selvecs="rs6000_xcoff_vec powerpc_elf32_vec powerpc_elf32_le_vec powerpc_boot_vec" | |
1385 | targ64_selvecs="powerpc_elf64_vec powerpc_elf64_le_vec powerpc_elf64_fbsd_vec" | |
7b8e7dad | 1386 | ;; |
252b5132 | 1387 | powerpc-*-*bsd* | powerpc-*-elf* | powerpc-*-sysv4* | powerpc-*-eabi* | \ |
ed84e695 | 1388 | powerpc-*-solaris2* | powerpc-*-linux-* | powerpc-*-rtems* | \ |
9d8504b1 | 1389 | powerpc-*-chorus*) |
6d00b590 AM |
1390 | targ_defvec=powerpc_elf32_vec |
1391 | targ_selvecs="rs6000_xcoff_vec powerpc_elf32_le_vec powerpc_boot_vec" | |
1392 | targ64_selvecs="powerpc_elf64_vec powerpc_elf64_le_vec" | |
252b5132 | 1393 | ;; |
42b5d0ea | 1394 | powerpc-*-kaos*) |
6d00b590 AM |
1395 | targ_defvec=powerpc_elf32_vec |
1396 | targ_selvecs="powerpc_elf32_le_vec powerpc_boot_vec" | |
1397 | targ64_selvecs="powerpc_elf64_vec powerpc_elf64_le_vec" | |
42b5d0ea | 1398 | ;; |
b1c58715 AM |
1399 | powerpc-*-darwin* | powerpc-*-macos10* | powerpc-*-rhapsody*) |
1400 | targ_defvec=mach_o_be_vec | |
1401 | targ_selvecs="mach_o_be_vec mach_o_le_vec mach_o_fat_vec pef_vec pef_xlib_vec sym_vec" | |
618b7301 | 1402 | targ_archs="$targ_archs bfd_i386_arch" |
b1c58715 | 1403 | ;; |
14bde378 | 1404 | powerpc-*-macos*) |
6d00b590 | 1405 | targ_defvec=powerpc_xcoff_vec |
252b5132 | 1406 | ;; |
b2d65c0b | 1407 | powerpc-*-lynxos*) |
6d00b590 AM |
1408 | targ_defvec=powerpc_elf32_vec |
1409 | targ_selvecs="rs6000_xcoff_vec" | |
b2d65c0b | 1410 | targ_cflags=-DSMALL_ARCHIVE |
7d3f158f | 1411 | ;; |
252b5132 | 1412 | powerpc-*-netware*) |
6d00b590 AM |
1413 | targ_defvec=powerpc_elf32_vec |
1414 | targ_selvecs="powerpc_nlm32_vec rs6000_xcoff_vec" | |
252b5132 | 1415 | ;; |
59bc061d | 1416 | powerpc-*-nto*) |
6d00b590 AM |
1417 | targ_defvec=powerpc_elf32_vec |
1418 | targ_selvecs="rs6000_xcoff_vec powerpc_elf32_le_vec powerpc_boot_vec" | |
59bc061d | 1419 | ;; |
9d8504b1 | 1420 | powerpc-*-vxworks* | powerpc-*-windiss*) |
6d00b590 AM |
1421 | targ_defvec=powerpc_elf32_vxworks_vec |
1422 | targ_selvecs="rs6000_xcoff_vec powerpc_elf32_vec powerpc_elf32_le_vec powerpc_boot_vec" | |
1423 | targ64_selvecs="powerpc_elf64_vec powerpc_elf64_le_vec" | |
9d8504b1 | 1424 | ;; |
59bc061d | 1425 | powerpcle-*-nto*) |
6d00b590 AM |
1426 | targ_defvec=powerpc_elf32_le_vec |
1427 | targ_selvecs="rs6000_xcoff_vec powerpc_elf32_vec powerpc_boot_vec" | |
59bc061d | 1428 | ;; |
252b5132 | 1429 | powerpcle-*-elf* | powerpcle-*-sysv4* | powerpcle-*-eabi* | \ |
7e4e2059 | 1430 | powerpcle-*-solaris2* | powerpcle-*-linux-* | powerpcle-*-vxworks*) |
6d00b590 AM |
1431 | targ_defvec=powerpc_elf32_le_vec |
1432 | targ_selvecs="rs6000_xcoff_vec powerpc_elf32_vec powerpc_boot_vec" | |
1433 | targ64_selvecs="powerpc_elf64_vec powerpc_elf64_le_vec" | |
252b5132 | 1434 | ;; |
252b5132 | 1435 | powerpcle-*-pe | powerpcle-*-winnt* | powerpcle-*-cygwin*) |
6d00b590 AM |
1436 | targ_defvec=powerpc_pe_le_vec |
1437 | targ_selvecs="powerpc_pei_le_vec powerpc_pei_vec powerpc_pe_le_vec powerpc_pe_vec" | |
252b5132 RH |
1438 | ;; |
1439 | ||
889294f6 DD |
1440 | pru-*-*) |
1441 | targ_defvec=pru_elf32_vec | |
1442 | targ_underscore=yes | |
1443 | ;; | |
1444 | ||
e23eba97 NC |
1445 | #ifdef BFD64 |
1446 | riscv32-*-*) | |
1447 | targ_defvec=riscv_elf32_vec | |
1448 | targ_selvecs="riscv_elf32_vec" | |
1449 | want64=true | |
1450 | ;; | |
1451 | ||
1452 | riscv64-*-*) | |
1453 | targ_defvec=riscv_elf64_vec | |
1454 | targ_selvecs="riscv_elf32_vec riscv_elf64_vec" | |
1455 | want64=true | |
1456 | ;; | |
1457 | #endif | |
1458 | ||
99c513f6 | 1459 | rl78-*-elf) |
6d00b590 | 1460 | targ_defvec=rl78_elf32_vec |
99c513f6 DD |
1461 | ;; |
1462 | ||
c7927a3c | 1463 | rx-*-elf) |
6d00b590 AM |
1464 | targ_defvec=rx_elf32_le_vec |
1465 | targ_selvecs="rx_elf32_be_vec rx_elf32_le_vec rx_elf32_be_ns_vec" | |
c7927a3c NC |
1466 | ;; |
1467 | ||
a85d7ed0 | 1468 | s390-*-linux*) |
6d00b590 AM |
1469 | targ_defvec=s390_elf32_vec |
1470 | targ64_selvecs=s390_elf64_vec | |
06f2f6af | 1471 | want64=true |
a85d7ed0 NC |
1472 | ;; |
1473 | #ifdef BFD64 | |
1474 | s390x-*-linux*) | |
6d00b590 AM |
1475 | targ_defvec=s390_elf64_vec |
1476 | targ_selvecs=s390_elf32_vec | |
314e9a4e | 1477 | want64=true |
a85d7ed0 | 1478 | ;; |
2fbd2a87 | 1479 | s390x-*-tpf*) |
6d00b590 | 1480 | targ_defvec=s390_elf64_vec |
314e9a4e | 1481 | want64=true |
2fbd2a87 | 1482 | ;; |
a85d7ed0 | 1483 | |
1c0d3aa6 | 1484 | score*-*-elf*) |
6d00b590 AM |
1485 | targ_defvec=score_elf32_be_vec |
1486 | targ_selvecs=score_elf32_le_vec | |
1c0d3aa6 NC |
1487 | ;; |
1488 | ||
7a33bc10 | 1489 | sh64l*-*-elf*) |
6d00b590 AM |
1490 | targ_defvec=sh64_elf32_le_vec |
1491 | targ_selvecs="sh64_elf32_vec sh64_elf64_le_vec sh64_elf64_vec sh_elf32_le_vec sh_elf32_vec" | |
7a33bc10 | 1492 | targ_underscore=yes |
314e9a4e | 1493 | want64=true |
7a33bc10 | 1494 | ;; |
fbca6ad9 | 1495 | sh64-*-elf*) |
6d00b590 AM |
1496 | targ_defvec=sh64_elf32_vec |
1497 | targ_selvecs="sh64_elf32_le_vec sh64_elf64_vec sh64_elf64_le_vec sh_elf32_vec sh_elf32_le_vec" | |
fbca6ad9 | 1498 | targ_underscore=yes |
314e9a4e | 1499 | want64=true |
fbca6ad9 | 1500 | ;; |
629936c5 | 1501 | sh64eb-*-linux*) |
6d00b590 AM |
1502 | targ_defvec=sh64_elf32_linux_be_vec |
1503 | targ_selvecs="sh64_elf32_linux_vec sh64_elf64_linux_be_vec sh64_elf64_linux_vec sh_elf32_linux_be_vec sh_elf32_linux_vec" | |
314e9a4e | 1504 | want64=true |
629936c5 NC |
1505 | ;; |
1506 | sh64-*-linux*) | |
6d00b590 AM |
1507 | targ_defvec=sh64_elf32_linux_vec |
1508 | targ_selvecs="sh64_elf32_linux_be_vec sh64_elf64_linux_vec sh64_elf64_linux_be_vec sh_elf32_linux_vec sh_elf32_linux_be_vec" | |
314e9a4e | 1509 | want64=true |
629936c5 | 1510 | ;; |
b129bfef | 1511 | sh-*-linux*) |
6d00b590 AM |
1512 | targ_defvec=sh_elf32_linux_be_vec |
1513 | targ_selvecs="sh_elf32_linux_vec sh64_elf32_linux_vec sh64_elf32_linux_be_vec sh64_elf64_linux_vec sh64_elf64_linux_be_vec" | |
de48f481 | 1514 | targ_selvecs="${targ_selvecs} sh_elf32_fdpic_le_vec sh_elf32_fdpic_be_vec" |
6566b43c | 1515 | want64=true |
b129bfef | 1516 | ;; |
6566b43c L |
1517 | #endif /* BFD64 */ |
1518 | ||
7649aa50 | 1519 | sh*eb-*-linux*) |
6d00b590 AM |
1520 | targ_defvec=sh_elf32_linux_be_vec |
1521 | targ_selvecs=sh_elf32_linux_vec | |
de48f481 | 1522 | targ_selvecs="${targ_selvecs} sh_elf32_fdpic_le_vec sh_elf32_fdpic_be_vec" |
7649aa50 NC |
1523 | ;; |
1524 | sh*-*-linux*) | |
6d00b590 AM |
1525 | targ_defvec=sh_elf32_linux_vec |
1526 | targ_selvecs=sh_elf32_linux_be_vec | |
de48f481 | 1527 | targ_selvecs="${targ_selvecs} sh_elf32_fdpic_le_vec sh_elf32_fdpic_be_vec" |
7649aa50 | 1528 | ;; |
b129bfef | 1529 | |
ed6ba298 | 1530 | sh-*-uclinux* | sh[12]-*-uclinux*) |
6d00b590 AM |
1531 | targ_defvec=sh_elf32_vec |
1532 | targ_selvecs="sh_elf32_le_vec sh_elf32_linux_be_vec sh_elf32_linux_vec sh_elf32_fdpic_le_vec sh_elf32_fdpic_be_vec" | |
ed6ba298 | 1533 | #ifdef BFD64 |
6d00b590 | 1534 | targ_selvecs="${targ_selvecs} sh64_elf32_linux_vec sh64_elf32_linux_be_vec sh64_elf64_linux_vec sh64_elf64_linux_be_vec" |
ed6ba298 NS |
1535 | #endif |
1536 | ;; | |
1537 | ||
5b0e55b6 JT |
1538 | #ifdef BFD64 |
1539 | sh5le-*-netbsd*) | |
6d00b590 AM |
1540 | targ_defvec=sh64_elf32_nbsd_le_vec |
1541 | targ_selvecs="sh64_elf32_nbsd_vec sh64_elf64_nbsd_le_vec sh64_elf64_nbsd_vec sh_elf32_nbsd_vec sh_elf32_nbsd_le_vec" | |
314e9a4e | 1542 | want64=true |
5b0e55b6 JT |
1543 | ;; |
1544 | sh5-*-netbsd*) | |
6d00b590 AM |
1545 | targ_defvec=sh64_elf32_nbsd_vec |
1546 | targ_selvecs="sh64_elf32_nbsd_le_vec sh64_elf64_nbsd_le_vec sh64_elf64_nbsd_vec sh_elf32_nbsd_vec sh_elf32_nbsd_le_vec" | |
314e9a4e | 1547 | want64=true |
5b0e55b6 JT |
1548 | ;; |
1549 | ||
1550 | sh64le-*-netbsd*) | |
6d00b590 AM |
1551 | targ_defvec=sh64_elf64_nbsd_le_vec |
1552 | targ_selvecs="sh64_elf64_nbsd_vec sh64_elf32_nbsd_le_vec sh64_elf32_nbsd_vec sh_elf32_nbsd_vec sh_elf32_nbsd_le_vec" | |
314e9a4e | 1553 | want64=true |
5b0e55b6 JT |
1554 | ;; |
1555 | sh64-*-netbsd*) | |
6d00b590 AM |
1556 | targ_defvec=sh64_elf64_nbsd_vec |
1557 | targ_selvecs="sh64_elf64_nbsd_le_vec sh64_elf32_nbsd_le_vec sh64_elf32_nbsd_vec sh_elf32_nbsd_vec sh_elf32_nbsd_le_vec" | |
314e9a4e | 1558 | want64=true |
5b0e55b6 | 1559 | ;; |
5b0e55b6 | 1560 | |
cea3d58d | 1561 | sh*l*-*-netbsdelf*) |
6d00b590 AM |
1562 | targ_defvec=sh_elf32_nbsd_le_vec |
1563 | targ_selvecs="sh_elf32_nbsd_vec sh_coff_vec sh_coff_le_vec sh64_elf32_nbsd_le_vec sh64_elf32_nbsd_vec sh64_elf64_nbsd_le_vec sh64_elf64_nbsd_vec" | |
6566b43c | 1564 | want64=true |
2051e1b5 | 1565 | ;; |
e58ee0cd | 1566 | sh-*-netbsdelf*) |
6d00b590 AM |
1567 | targ_defvec=sh_elf32_nbsd_vec |
1568 | targ_selvecs="sh_elf32_nbsd_le_vec sh_coff_vec sh_coff_le_vec sh64_elf32_nbsd_le_vec sh64_elf32_nbsd_vec sh64_elf64_nbsd_le_vec sh64_elf64_nbsd_vec" | |
6566b43c | 1569 | want64=true |
e58ee0cd | 1570 | ;; |
6566b43c L |
1571 | #endif |
1572 | ||
8d05742f | 1573 | sh*-*-netbsdelf*) |
6d00b590 AM |
1574 | targ_defvec=sh_elf32_nbsd_vec |
1575 | targ_selvecs="sh_elf32_nbsd_le_vec sh_coff_vec sh_coff_le_vec" | |
8d05742f | 1576 | ;; |
1a320fbb | 1577 | sh*-*-symbianelf*) |
6d00b590 AM |
1578 | targ_defvec=sh_elf32_symbian_le_vec |
1579 | targ_selvecs="sh_coff_le_vec sh_coff_small_le_vec" | |
85fbca6a | 1580 | targ_underscore=yes |
7d3f158f | 1581 | ;; |
6566b43c L |
1582 | |
1583 | #ifdef BFD64 | |
42b5d0ea | 1584 | shl*-*-elf* | sh[1234]l*-*-elf* | sh3el*-*-elf* | shl*-*-kaos*) |
6d00b590 AM |
1585 | targ_defvec=sh_elf32_le_vec |
1586 | targ_selvecs="sh_elf32_vec sh_coff_le_vec sh_coff_vec sh_coff_small_le_vec sh_coff_small_vec sh64_elf32_vec sh64_elf32_le_vec sh64_elf64_vec sh64_elf64_le_vec" | |
7a33bc10 | 1587 | targ_underscore=yes |
6566b43c | 1588 | want64=true |
7a33bc10 | 1589 | ;; |
6566b43c L |
1590 | #endif |
1591 | ||
9183ed4b | 1592 | sh-*-rtemscoff*) |
6d00b590 AM |
1593 | targ_defvec=sh_coff_vec |
1594 | targ_selvecs="sh_coff_vec sh_coff_le_vec sh_coff_small_vec sh_coff_small_le_vec" | |
9183ed4b AM |
1595 | targ_underscore=yes |
1596 | ;; | |
6566b43c L |
1597 | |
1598 | #ifdef BFD64 | |
9183ed4b | 1599 | sh-*-elf* | sh[1234]*-elf* | sh-*-rtems* | sh-*-kaos*) |
6d00b590 AM |
1600 | targ_defvec=sh_elf32_vec |
1601 | targ_selvecs="sh_elf32_le_vec sh_coff_vec sh_coff_le_vec sh_coff_small_vec sh_coff_small_le_vec sh64_elf32_vec sh64_elf32_le_vec sh64_elf64_vec sh64_elf64_le_vec" | |
252b5132 | 1602 | targ_underscore=yes |
6566b43c | 1603 | want64=true |
252b5132 | 1604 | ;; |
6566b43c L |
1605 | #endif |
1606 | ||
ed71e111 | 1607 | sh-*-nto*) |
6d00b590 AM |
1608 | targ_defvec=sh_elf32_vec |
1609 | targ_selvecs="sh_elf32_le_vec sh_coff_vec sh_coff_le_vec sh_coff_small_vec sh_coff_small_le_vec" | |
ed71e111 NC |
1610 | targ_underscore=yes |
1611 | ;; | |
a38b2659 | 1612 | sh*-*-openbsd*) |
6d00b590 AM |
1613 | targ_defvec=sh_elf32_nbsd_le_vec |
1614 | targ_selvecs="sh_elf32_nbsd_vec sh_coff_vec sh_coff_le_vec" | |
a38b2659 | 1615 | ;; |
17505c5c | 1616 | sh-*-pe) |
6d00b590 AM |
1617 | targ_defvec=sh_pe_le_vec |
1618 | targ_selvecs="sh_pe_le_vec sh_pei_le_vec" | |
17505c5c NC |
1619 | targ_underscore=yes |
1620 | ;; | |
257e20bc | 1621 | sh-*-vxworks) |
6d00b590 AM |
1622 | targ_defvec=sh_elf32_vxworks_vec |
1623 | targ_selvecs="sh_elf32_vxworks_le_vec" | |
257e20bc NC |
1624 | # FIXME None of the following are actually used on this target, but |
1625 | # they're necessary for coff-sh.c (which is unconditionally used) to be | |
1626 | # compiled correctly. | |
6d00b590 | 1627 | targ_selvecs="$targ_selvecs sh_coff_vec sh_coff_le_vec sh_coff_small_vec sh_coff_small_le_vec" |
2f964f43 | 1628 | targ_underscore=yes |
257e20bc | 1629 | ;; |
9183ed4b | 1630 | sh-*-*) |
6d00b590 AM |
1631 | targ_defvec=sh_coff_vec |
1632 | targ_selvecs="sh_coff_vec sh_coff_le_vec sh_coff_small_vec sh_coff_small_le_vec" | |
252b5132 RH |
1633 | targ_underscore=yes |
1634 | ;; | |
1635 | ||
1636 | sparclet-*-aout*) | |
6d00b590 AM |
1637 | targ_defvec=sparc_aout_sunos_be_vec |
1638 | targ_selvecs=sparc_aout_le_vec | |
252b5132 RH |
1639 | targ_underscore=yes |
1640 | ;; | |
1641 | sparc86x-*-aout*) | |
6d00b590 | 1642 | targ_defvec=sparc_aout_sunos_be_vec |
252b5132 RH |
1643 | targ_underscore=yes |
1644 | ;; | |
1645 | sparclite-*-elf* | sparc86x-*-elf*) | |
6d00b590 | 1646 | targ_defvec=sparc_elf32_vec |
252b5132 | 1647 | ;; |
8848a8d0 | 1648 | sparc*-*-chorus*) |
6d00b590 | 1649 | targ_defvec=sparc_elf32_vec |
8848a8d0 | 1650 | ;; |
252b5132 | 1651 | sparc-*-linux*aout*) |
6d00b590 AM |
1652 | targ_defvec=sparc_aout_linux_vec |
1653 | targ_selvecs="sparc_elf32_vec sparc_aout_sunos_be_vec" | |
252b5132 RH |
1654 | targ_underscore=yes |
1655 | ;; | |
7e976ae4 | 1656 | sparc-*-linux-* | sparcv*-*-linux-*) |
6d00b590 AM |
1657 | targ_defvec=sparc_elf32_vec |
1658 | targ_selvecs="sparc_aout_linux_vec sparc_elf64_vec sparc_aout_sunos_be_vec" | |
252b5132 | 1659 | ;; |
93be3c4b | 1660 | sparc-*-netbsdelf*) |
6d00b590 AM |
1661 | targ_defvec=sparc_elf32_vec |
1662 | targ_selvecs=sparc_aout_nbsd_vec | |
93be3c4b AC |
1663 | ;; |
1664 | sparc-*-netbsdaout* | sparc-*-netbsd*) | |
6d00b590 AM |
1665 | targ_defvec=sparc_aout_nbsd_vec |
1666 | targ_selvecs=sparc_elf32_vec | |
93be3c4b AC |
1667 | targ_underscore=yes |
1668 | ;; | |
49ba19a4 | 1669 | sparc-*-openbsd[0-2].* | sparc-*-openbsd3.[0-1]) |
6d00b590 | 1670 | targ_defvec=sparc_aout_nbsd_vec |
252b5132 RH |
1671 | targ_underscore=yes |
1672 | ;; | |
49ba19a4 | 1673 | sparc-*-openbsd*) |
6d00b590 AM |
1674 | targ_defvec=sparc_elf32_vec |
1675 | targ_selvecs=sparc_aout_nbsd_vec | |
49ba19a4 | 1676 | ;; |
1360ba76 | 1677 | sparc-*-elf*) |
6d00b590 AM |
1678 | targ_defvec=sparc_elf32_vec |
1679 | targ_selvecs=sparc_aout_sunos_be_vec | |
252b5132 | 1680 | ;; |
1360ba76 | 1681 | sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*) |
6d00b590 AM |
1682 | targ_defvec=sparc_elf32_sol2_vec |
1683 | targ_selvecs=sparc_aout_sunos_be_vec | |
1360ba76 | 1684 | ;; |
246c6687 AO |
1685 | #ifdef BFD64 |
1686 | sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*) | |
6d00b590 AM |
1687 | targ_defvec=sparc_elf32_sol2_vec |
1688 | targ_selvecs="sparc_elf64_sol2_vec sparc_aout_sunos_be_vec" | |
314e9a4e | 1689 | want64=true |
246c6687 AO |
1690 | ;; |
1691 | #endif | |
252b5132 | 1692 | sparc-*-sysv4*) |
6d00b590 | 1693 | targ_defvec=sparc_elf32_vec |
252b5132 | 1694 | ;; |
910600e9 | 1695 | sparc-*-vxworks*) |
6d00b590 AM |
1696 | targ_defvec=sparc_elf32_vxworks_vec |
1697 | targ_selvecs="sparc_elf32_vec sparc_aout_sunos_be_vec" | |
910600e9 | 1698 | ;; |
252b5132 | 1699 | sparc-*-netware*) |
6d00b590 AM |
1700 | targ_defvec=sparc_elf32_vec |
1701 | targ_selvecs="sparc_nlm32_vec sparc_aout_sunos_be_vec" | |
252b5132 RH |
1702 | ;; |
1703 | #ifdef BFD64 | |
1704 | sparc64-*-aout*) | |
6d00b590 | 1705 | targ_defvec=sparc_aout_sunos_be_vec |
252b5132 | 1706 | targ_underscore=yes |
314e9a4e | 1707 | want64=true |
252b5132 | 1708 | ;; |
7e976ae4 | 1709 | sparc64*-*-linux-*) |
6d00b590 AM |
1710 | targ_defvec=sparc_elf64_vec |
1711 | targ_selvecs="sparc_elf32_vec sparc_aout_linux_vec sparc_aout_sunos_be_vec" | |
314e9a4e | 1712 | want64=true |
252b5132 | 1713 | ;; |
9203b09a | 1714 | sparc64-*-elf* | sparc64-*-rtems* ) |
6d00b590 AM |
1715 | targ_defvec=sparc_elf64_vec |
1716 | targ_selvecs=sparc_elf32_vec | |
314e9a4e | 1717 | want64=true |
60bcf0fa | 1718 | ;; |
252b5132 RH |
1719 | #endif /* BFD64 */ |
1720 | sparc*-*-coff*) | |
6d00b590 | 1721 | targ_defvec=sparc_coff_vec |
252b5132 | 1722 | ;; |
9203b09a | 1723 | sparc-*-rtems*) |
6d00b590 AM |
1724 | targ_defvec=sparc_elf32_vec |
1725 | targ_selvecs="sparc_aout_sunos_be_vec sparc_coff_vec" | |
ddcfc5fc | 1726 | ;; |
9f971fcb | 1727 | sparc*-*-*) |
6d00b590 | 1728 | targ_defvec=sparc_aout_sunos_be_vec |
252b5132 RH |
1729 | targ_underscore=yes |
1730 | ;; | |
1731 | ||
e9f53129 | 1732 | spu-*-elf) |
6d00b590 | 1733 | targ_defvec=spu_elf32_vec |
78b8434d | 1734 | want64=true |
e9f53129 AM |
1735 | ;; |
1736 | ||
6d00b590 | 1737 | #if HAVE_aout_vec |
252b5132 | 1738 | tahoe-*-*) |
6d00b590 | 1739 | targ_defvec=aout_vec |
252b5132 RH |
1740 | targ_underscore=yes |
1741 | ;; | |
1742 | #endif | |
1743 | ||
2a616379 | 1744 | tic6x-*-elf) |
6d00b590 AM |
1745 | targ_defvec=tic6x_elf32_c6000_le_vec |
1746 | targ_selvecs="tic6x_elf32_c6000_be_vec tic6x_elf32_le_vec tic6x_elf32_be_vec" | |
2a616379 BS |
1747 | ;; |
1748 | ||
1749 | tic6x-*-uclinux) | |
6d00b590 AM |
1750 | targ_defvec=tic6x_elf32_linux_le_vec |
1751 | targ_selvecs="tic6x_elf32_linux_be_vec tic6x_elf32_le_vec tic6x_elf32_be_vec" | |
40b36596 JM |
1752 | ;; |
1753 | ||
252b5132 | 1754 | tic80*-*-*) |
6d00b590 | 1755 | targ_defvec=tic80_coff_vec |
252b5132 RH |
1756 | targ_underscore=yes |
1757 | ;; | |
1758 | ||
aa137e4d NC |
1759 | #ifdef BFD64 |
1760 | tilegx-*-*) | |
6d00b590 AM |
1761 | targ_defvec=tilegx_elf64_le_vec |
1762 | targ_selvecs="tilegx_elf64_be_vec tilegx_elf32_be_vec tilegx_elf32_le_vec" | |
fb6cedde WL |
1763 | ;; |
1764 | tilegxbe-*-*) | |
6d00b590 AM |
1765 | targ_defvec=tilegx_elf64_be_vec |
1766 | targ_selvecs="tilegx_elf64_le_vec tilegx_elf32_be_vec tilegx_elf32_le_vec" | |
aa137e4d NC |
1767 | ;; |
1768 | #endif | |
1769 | ||
1770 | tilepro-*-*) | |
6d00b590 | 1771 | targ_defvec=tilepro_elf32_vec |
aa137e4d NC |
1772 | ;; |
1773 | ||
3f8107ab AM |
1774 | ft32*-*-*) |
1775 | targ_defvec=ft32_elf32_vec | |
1776 | ;; | |
1777 | ||
1cd986c5 | 1778 | v850*-*-*) |
6d00b590 AM |
1779 | targ_defvec=v850_elf32_vec |
1780 | targ_selvecs="v800_elf32_vec" | |
252b5132 | 1781 | ;; |
252b5132 | 1782 | |
90ace9e9 | 1783 | vax-*-netbsdelf*) |
6d00b590 AM |
1784 | targ_defvec=vax_elf32_vec |
1785 | targ_selvecs="vax_aout_nbsd_vec vax_aout_1knbsd_vec" | |
90ace9e9 JT |
1786 | ;; |
1787 | ||
1788 | vax-*-netbsdaout* | vax-*-netbsd*) | |
6d00b590 AM |
1789 | targ_defvec=vax_aout_nbsd_vec |
1790 | targ_selvecs="vax_elf32_vec vax_aout_1knbsd_vec" | |
90ace9e9 JT |
1791 | targ_underscore=yes |
1792 | ;; | |
1793 | ||
ba26fd96 | 1794 | vax-*-bsd* | vax-*-ultrix*) |
6d00b590 | 1795 | targ_defvec=vax_aout_bsd_vec |
ba26fd96 AM |
1796 | targ_underscore=yes |
1797 | ;; | |
1798 | ||
7d1ebfb2 | 1799 | vax-*-openbsd*) |
6d00b590 | 1800 | targ_defvec=vax_aout_nbsd_vec |
7d1ebfb2 NC |
1801 | targ_underscore=yes |
1802 | ;; | |
1803 | ||
ed84e695 | 1804 | vax-*-linux-*) |
6d00b590 | 1805 | targ_defvec=vax_elf32_vec |
f8fc3443 NC |
1806 | ;; |
1807 | ||
d924db55 EB |
1808 | visium-*-elf) |
1809 | targ_defvec=visium_elf32_vec | |
1810 | ;; | |
1b786873 | 1811 | |
252b5132 | 1812 | we32k-*-*) |
6d00b590 | 1813 | targ_defvec=we32k_coff_vec |
252b5132 RH |
1814 | ;; |
1815 | ||
1816 | w65-*-*) | |
6d00b590 | 1817 | targ_defvec=w65_coff_vec |
252b5132 | 1818 | ;; |
1b786873 | 1819 | |
f6c1a2d5 | 1820 | xgate-*-*) |
6d00b590 AM |
1821 | targ_defvec=xgate_elf32_vec |
1822 | targ_selvecs="xgate_elf32_vec" | |
f6c1a2d5 | 1823 | ;; |
1b786873 | 1824 | |
93fbbb04 | 1825 | xstormy16-*-elf) |
6d00b590 | 1826 | targ_defvec=xstormy16_elf32_vec |
93fbbb04 GK |
1827 | ;; |
1828 | ||
f8a52b59 | 1829 | xtensa*-*-*) |
6d00b590 AM |
1830 | targ_defvec=xtensa_elf32_le_vec |
1831 | targ_selvecs=xtensa_elf32_be_vec | |
e0001a05 | 1832 | ;; |
d70c5fc7 | 1833 | xc16x-*-elf) |
6d00b590 | 1834 | targ_defvec=xc16x_elf32_vec |
d70c5fc7 | 1835 | ;; |
a27e4371 | 1836 | |
3c9b82ba | 1837 | z80-*-*) |
6d00b590 | 1838 | targ_defvec=z80_coff_vec |
3c9b82ba NC |
1839 | targ_underscore=no |
1840 | ;; | |
1841 | ||
252b5132 | 1842 | z8k*-*-*) |
6d00b590 | 1843 | targ_defvec=z8k_coff_vec |
252b5132 RH |
1844 | targ_underscore=yes |
1845 | ;; | |
1846 | ||
1847 | *-*-ieee*) | |
1848 | targ_defvec=ieee_vec | |
1849 | ;; | |
1850 | ||
1851 | *-adobe-*) | |
6d00b590 | 1852 | targ_defvec=aout_adobe_vec |
252b5132 RH |
1853 | targ_underscore=yes |
1854 | ;; | |
1855 | ||
1856 | *-sony-*) | |
6d00b590 | 1857 | targ_defvec=m68k_aout_newsos3_vec |
252b5132 RH |
1858 | targ_underscore=yes |
1859 | ;; | |
1860 | ||
1861 | *-tandem-*) | |
6d00b590 | 1862 | targ_defvec=m68k_coff_vec |
252b5132 RH |
1863 | targ_selvecs=ieee_vec |
1864 | ;; | |
1865 | # END OF targmatch.h | |
1866 | *) | |
1867 | echo 1>&2 "*** BFD does not support target ${targ}." | |
1868 | echo 1>&2 "*** Look in bfd/config.bfd for supported targets." | |
1869 | exit 1 | |
1870 | ;; | |
1871 | esac | |
1872 | ||
42429eac RS |
1873 | # All MIPS ELF targets need a 64-bit bfd_vma. |
1874 | case "${targ_defvec} ${targ_selvecs}" in | |
6d00b590 | 1875 | *mips_elf*) |
42429eac RS |
1876 | want64=true |
1877 | ;; | |
1878 | esac | |
1879 | ||
e9e69f5a AM |
1880 | case "${host64}${want64}" in |
1881 | *true*) | |
1882 | targ_selvecs="${targ_selvecs} ${targ64_selvecs}" | |
1883 | ;; | |
1884 | esac | |
1885 | ||
252b5132 RH |
1886 | # If we support any ELF target, then automatically add support for the |
1887 | # generic ELF targets. This permits an objdump with some ELF support | |
1888 | # to be used on an arbitrary ELF file for anything other than | |
1889 | # relocation information. | |
1890 | case "${targ_defvec} ${targ_selvecs}" in | |
6d00b590 AM |
1891 | *elf64* | *mips_elf32_n*) |
1892 | targ_selvecs="${targ_selvecs} elf64_le_vec elf64_be_vec elf32_le_vec elf32_be_vec" | |
252b5132 | 1893 | ;; |
6d00b590 AM |
1894 | *elf32*) |
1895 | targ_selvecs="${targ_selvecs} elf32_le_vec elf32_be_vec" | |
252b5132 RH |
1896 | ;; |
1897 | esac | |
8a9036a4 | 1898 | |
bf64a951 L |
1899 | # If we support Intel MCU target, then add support for bfd_iamcu_arch. |
1900 | case "${targ_defvec} ${targ_selvecs}" in | |
1901 | *iamcu_elf32*) | |
1902 | targ_archs="$targ_archs bfd_iamcu_arch" | |
1903 | ;; | |
1904 | esac | |
1905 | ||
8a9036a4 L |
1906 | # If we support Intel L1OM target, then add support for bfd_l1om_arch. |
1907 | case "${targ_defvec} ${targ_selvecs}" in | |
6d00b590 | 1908 | *l1om_elf64*) |
8a9036a4 L |
1909 | targ_archs="$targ_archs bfd_l1om_arch" |
1910 | ;; | |
1911 | esac | |
7a9068fe L |
1912 | |
1913 | # If we support Intel K1OM target, then add support for bfd_k1om_arch. | |
1914 | case "${targ_defvec} ${targ_selvecs}" in | |
6d00b590 | 1915 | *k1om_elf64*) |
7a9068fe L |
1916 | targ_archs="$targ_archs bfd_k1om_arch" |
1917 | ;; | |
1918 | esac |