Add support for DragonFlyBSD target.
[binutils.git] / bfd / config.bfd
Commit [+]AuthorDateLineData
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001# config.bfd
2# Convert a canonical host type into a BFD host type.
3# Set shell variable targ to canonical target name, and run
4# using ``. config.bfd''.
5# Sets the following shell variables:
6# targ_defvec Default vector for this target
7# targ_selvecs Vectors to build for this target
1d775656
AM
Alan Modra2001-08-17 04:17:18 +00008# targ64_selvecs Vectors to build if --enable-64-bit-bfd is given
9# or if host is 64 bit.
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +000010# targ_archs Architectures for this target
11# targ_cflags $(CFLAGS) for this target (FIXME: pretty bogus)
12# targ_underscore Whether underscores are used: yes or no
13
14# Part of this file is processed by targmatch.sed to generate the
15# targmatch.h file. The #ifdef and #endif lines that appear below are
16# copied directly into targmatch.h.
17
18# The binutils c++filt program wants to know whether underscores are
19# stripped or not. That is why we set targ_underscore. c++filt uses
20# this information to choose a default. This information is
21# duplicated in the symbol_leading_char field of the BFD target
22# vector, but c++filt does not deal with object files and is not
23# linked against libbfd.a. It is not terribly important that c++filt
24# get this right; it is just convenient.
25
26targ_defvec=
27targ_selvecs=
1d775656 Alan Modra2001-08-17 04:17:18 +000028targ64_selvecs=
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +000029targ_cflags=
30targ_underscore=no
31
9a6f3f60
NC
Nick Clifton2003-08-01 08:35:04 +000032# Catch obsolete configurations.
33case $targ in
c7939691 Nick Clifton2004-05-17 19:50:16 +000034 null)
9a6f3f60
NC
Nick Clifton2003-08-01 08:35:04 +000035 if test "x$enable_obsolete" != xyes; then
36 echo "*** Configuration $targ is obsolete." >&2
37 echo "*** Specify --enable-obsolete to build it anyway." >&2
38 echo "*** Support will be REMOVED in the next major release of BINUTILS," >&2
39 echo "*** unless a maintainer comes forward." >&2
40 exit 1
41 fi;;
42esac
43
5b93327f Daniel Jacobowitz2004-11-04 15:54:50 +000044case $targ in
872529bd
NC
Nick Clifton2006-11-10 07:53:33 +000045 m68*-apple-aux* | \
46 m68*-apollo-* | \
47 m68*-bull-sysv* | \
48 m68*-*-rtemscoff* | \
1bd90188 Alan Modra2010-06-29 04:17:18 +000049 maxq-*-coff | \
872529bd
NC
Nick Clifton2006-11-10 07:53:33 +000050 i960-*-rtems* | \
51 or32-*-rtems* | \
4915960e
NC
Nick Clifton2005-01-31 17:18:51 +000052 m68*-*-lynxos* | \
53 sparc-*-lynxos* | \
54 vax-*-vms* | \
5b93327f
DJ
Daniel Jacobowitz2004-11-04 15:54:50 +000055 arm-*-oabi | \
56 thumb-*-oabi | \
db44caee Alan Modra2005-08-18 03:51:51 +000057 a29k-* | \
986624f5
NC
Nick Clifton2005-07-08 11:17:16 +000058 hppa*-*-rtems* | \
59 *-go32-rtems* | \
60 i[3-7]86*-*-rtemscoff* | \
61 mips*el-*-rtems* | \
62 powerpcle-*-rtems* | \
63 sparc*-*-rtemsaout* | \
5b93327f
DJ
Daniel Jacobowitz2004-11-04 15:54:50 +000064 null)
65 echo "*** Configuration $targ is obsolete." >&2
66 echo "*** Support has been REMOVED." >&2
67 exit 1
68 ;;
69esac
9a6f3f60 Nick Clifton2003-08-01 08:35:04 +000070
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +000071targ_cpu=`echo $targ | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
72case "${targ_cpu}" in
9516425b Alan Modra2004-10-15 05:47:11 +000073alpha*) targ_archs=bfd_alpha_arch ;;
5d3a298a Nick Clifton2007-10-19 17:31:31 +000074am34*|am33_2.0*) targ_archs=bfd_mn10300_arch ;;
9516425b Alan Modra2004-10-15 05:47:11 +000075arm*) targ_archs=bfd_arm_arch ;;
1a35c4a0 Catherine Moore2005-09-30 15:36:41 +000076bfin*) targ_archs=bfd_bfin_arch ;;
9516425b
AM
Alan Modra2004-10-15 05:47:11 +000077c30*) targ_archs=bfd_tic30_arch ;;
78c4x*) targ_archs=bfd_tic4x_arch ;;
79c54x*) targ_archs=bfd_tic54x_arch ;;
c71c5ca9 Nick Clifton2007-06-29 14:09:34 +000080cr16*) targ_archs=bfd_cr16_arch ;;
81d77732 Hans-Peter Nilsson2004-11-04 14:58:13 +000081crisv32) targ_archs=bfd_cris_arch ;;
9516425b Alan Modra2004-10-15 05:47:11 +000082crx*) targ_archs=bfd_crx_arch ;;
ba57705f Nick Clifton2002-05-28 14:08:47 +000083dlx*) targ_archs=bfd_dlx_arch ;;
d9f3ac4f Kazu Hirata2006-12-24 02:48:59 +000084fido*) targ_archs=bfd_m68k_arch ;;
9516425b
AM
Alan Modra2004-10-15 05:47:11 +000085hppa*) targ_archs=bfd_hppa_arch ;;
86i[3-7]86) targ_archs=bfd_i386_arch ;;
87i370) targ_archs=bfd_i370_arch ;;
76f66765 Nick Clifton2008-12-23 19:10:25 +000088lm32) targ_archs=bfd_lm32_arch ;;
1848baaa
NC
Nick Clifton2000-06-19 01:22:44 +000089m6811*|m68hc11*) targ_archs="bfd_m68hc11_arch bfd_m68hc12_arch" ;;
90m6812*|m68hc12*) targ_archs="bfd_m68hc12_arch bfd_m68hc11_arch" ;;
9516425b
AM
Alan Modra2004-10-15 05:47:11 +000091m68*) targ_archs=bfd_m68k_arch ;;
92m88*) targ_archs=bfd_m88k_arch ;;
ad627b38 Nick Clifton2009-08-06 17:38:04 +000093microblaze*) targ_archs=bfd_microblaze_arch ;;
9516425b Alan Modra2004-10-15 05:47:11 +000094mips*) targ_archs=bfd_mips_arch ;;
37f4530e Nick Clifton2002-01-31 17:33:08 +000095or32*) targ_archs=bfd_or32_arch ;;
9516425b
AM
Alan Modra2004-10-15 05:47:11 +000096pdp11*) targ_archs=bfd_pdp11_arch ;;
97pj*) targ_archs="bfd_pj_arch bfd_i386_arch";;
98powerpc*) targ_archs="bfd_rs6000_arch bfd_powerpc_arch" ;;
99rs6000) targ_archs="bfd_rs6000_arch bfd_powerpc_arch" ;;
100s390*) targ_archs=bfd_s390_arch ;;
101sh*) targ_archs=bfd_sh_arch ;;
102sparc*) targ_archs=bfd_sparc_arch ;;
999aabcd Alan Modra2006-10-25 06:49:21 +0000103spu*) targ_archs=bfd_spu_arch ;;
9516425b
AM
Alan Modra2004-10-15 05:47:11 +0000104strongarm*) targ_archs=bfd_arm_arch ;;
105thumb*) targ_archs=bfd_arm_arch ;;
106v850*) targ_archs=bfd_v850_arch ;;
a5285462 Nick Clifton2006-09-20 11:35:11 +0000107x86_64*) targ_archs=bfd_i386_arch ;;
9516425b
AM
Alan Modra2004-10-15 05:47:11 +0000108xscale*) targ_archs=bfd_arm_arch ;;
109xtensa*) targ_archs=bfd_xtensa_arch ;;
d35e1486 Nick Clifton2005-10-25 17:40:19 +0000110z80|r800) targ_archs=bfd_z80_arch ;;
9516425b Alan Modra2004-10-15 05:47:11 +0000111z8k*) targ_archs=bfd_z8k_arch ;;
9516425b Alan Modra2004-10-15 05:47:11 +0000112*) targ_archs=bfd_${targ_cpu}_arch ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000113esac
114
115
116# WHEN ADDING ENTRIES TO THIS MATRIX:
117# Make sure that the left side always has two dashes. Otherwise you
118# can get spurious matches. Even for unambiguous cases, do this as a
119# convention, else the table becomes a real mess to understand and maintain.
72d0302f
DJ
Daniel Jacobowitz2003-06-02 19:25:51 +0000120#
121# Keep obsolete entries above the START comment, to keep them out of
122# targmatch.h.
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000123
124case "${targ}" in
72d0302f Daniel Jacobowitz2003-06-02 19:25:51 +0000125 mips*-dec-bsd*)
8c2d1c75
TS
Thiemo Seufer2004-04-11 04:07:46 +0000126 echo "This target is obsolete and has been removed."
127 exit 1
128 ;;
129
130 mips*-*-mach3*)
131 echo "This target is obsolete and has been removed."
72d0302f
DJ
Daniel Jacobowitz2003-06-02 19:25:51 +0000132 exit 1
133 ;;
134
135 mips*-*-pe*)
8c2d1c75 Thiemo Seufer2004-04-11 04:07:46 +0000136 echo "This target is obsolete and has been removed."
72d0302f
DJ
Daniel Jacobowitz2003-06-02 19:25:51 +0000137 exit 1
138 ;;
139
dbda9fe8
NC
Nick Clifton2009-05-26 14:12:03 +0000140 plugin)
141 targ_defvec=plugin_vec
142 targ_selvecs="plugin_vec"
143 ;;
144
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000145# START OF targmatch.h
146#ifdef BFD64
ba480a60 Nick Clifton2003-09-03 09:32:21 +0000147 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
52f8b93c David O'Brien2002-09-17 02:24:40 +0000148 targ_defvec=bfd_elf64_alpha_freebsd_vec
07eca6f5 Alan Modra2007-10-18 09:13:51 +0000149 targ_selvecs="bfd_elf64_alpha_vec ecoffalpha_little_vec"
d1f2db2b H.J. Lu2006-05-25 01:03:09 +0000150 want64=true
52f8b93c
DB
David O'Brien2002-09-17 02:24:40 +0000151 # FreeBSD <= 4.0 supports only the old nonstandard way of ABI labelling.
152 case "${targ}" in
153 alpha*-*-freebsd3* | alpha*-*-freebsd4 | alpha*-*-freebsd4.0*)
154 targ_cflags=-DOLD_FREEBSD_ABI_LABEL ;;
155 esac
156 ;;
157 alpha*-*-netbsd* | alpha*-*-openbsd*)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000158 targ_defvec=bfd_elf64_alpha_vec
159 targ_selvecs=ecoffalpha_little_vec
d1f2db2b H.J. Lu2006-05-25 01:03:09 +0000160 want64=true
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000161 ;;
162 alpha*-*-netware*)
163 targ_defvec=ecoffalpha_little_vec
164 targ_selvecs=nlm32_alpha_vec
d1f2db2b H.J. Lu2006-05-25 01:03:09 +0000165 want64=true
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000166 ;;
167 alpha*-*-linuxecoff*)
168 targ_defvec=ecoffalpha_little_vec
169 targ_selvecs=bfd_elf64_alpha_vec
d1f2db2b H.J. Lu2006-05-25 01:03:09 +0000170 want64=true
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000171 ;;
e429753a Nick Clifton2005-03-23 15:35:50 +0000172 alpha*-*-linux-* | alpha*-*-elf*)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000173 targ_defvec=bfd_elf64_alpha_vec
174 targ_selvecs=ecoffalpha_little_vec
d1f2db2b H.J. Lu2006-05-25 01:03:09 +0000175 want64=true
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000176 ;;
177 alpha*-*-*vms*)
178 targ_defvec=vms_alpha_vec
d1f2db2b H.J. Lu2006-05-25 01:03:09 +0000179 want64=true
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000180 ;;
181 alpha*-*-*)
182 targ_defvec=ecoffalpha_little_vec
d1f2db2b H.J. Lu2006-05-25 01:03:09 +0000183 want64=true
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000184 ;;
e429753a Nick Clifton2005-03-23 15:35:50 +0000185 ia64*-*-freebsd* | ia64*-*-netbsd* | ia64*-*-linux-* | ia64*-*-elf* | ia64*-*-kfreebsd*-gnu)
54aab81f Jim Wilson2000-04-21 20:22:24 +0000186 targ_defvec=bfd_elf64_ia64_little_vec
36438cff H.J. Lu2009-04-17 13:46:18 +0000187 targ_selvecs="bfd_elf64_ia64_big_vec bfd_pei_ia64_vec"
d1f2db2b H.J. Lu2006-05-25 01:03:09 +0000188 want64=true
54aab81f Jim Wilson2000-04-21 20:22:24 +0000189 ;;
b9815469 Jim Wilson2000-11-07 00:43:26 +0000190 ia64*-*-hpux*)
fff83094
AM
Alan Modra2001-12-19 02:14:37 +0000191 targ_defvec=bfd_elf32_ia64_hpux_big_vec
192 targ_selvecs="bfd_elf64_ia64_hpux_big_vec"
d1f2db2b H.J. Lu2006-05-25 01:03:09 +0000193 want64=true
b9815469 Jim Wilson2000-11-07 00:43:26 +0000194 ;;
2d19ed8b
NC
Nick Clifton2009-01-15 12:42:52 +0000195 ia64*-*-*vms*)
196 targ_defvec=bfd_elf64_ia64_vms_vec
197 want64=true
198 ;;
ebcb8d85
MF
Mike Frysinger2006-10-18 23:58:52 +0000199 sparc64-*-freebsd* | sparc64-*-kfreebsd*-gnu)
200 targ_defvec=bfd_elf64_sparc_freebsd_vec
07eca6f5 Alan Modra2007-10-18 09:13:51 +0000201 targ_selvecs="bfd_elf64_sparc_vec bfd_elf32_sparc_vec sunos_big_vec"
ebcb8d85
MF
Mike Frysinger2006-10-18 23:58:52 +0000202 ;;
203 sparc64-*-netbsd* | sparc64-*-openbsd*)
b6cf0250
JL
Jeff Law2000-04-21 21:50:52 +0000204 targ_defvec=bfd_elf64_sparc_vec
205 targ_selvecs="bfd_elf32_sparc_vec sunos_big_vec"
d1f2db2b H.J. Lu2006-05-25 01:03:09 +0000206 want64=true
b6cf0250 Jeff Law2000-04-21 21:50:52 +0000207 ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000208#endif /* BFD64 */
209
5d3a298a Nick Clifton2007-10-19 17:31:31 +0000210 am34-*-linux* | am33_2.0-*-linux*)
9b143545
AO
Alexandre Oliva2003-07-10 04:44:37 +0000211 targ_defvec=bfd_elf32_am33lin_vec
212 ;;
5d3a298a Nick Clifton2007-10-19 17:31:31 +0000213
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000214 arc-*-elf*)
215 targ_defvec=bfd_elf32_littlearc_vec
216 targ_selvecs=bfd_elf32_bigarc_vec
217 ;;
218
5c6e816a
JT
Jason Thorpe2002-05-21 15:11:04 +0000219 armeb-*-netbsdelf*)
220 targ_defvec=bfd_elf32_bigarm_vec
221 targ_selvecs="bfd_elf32_littlearm_vec armnetbsd_vec"
222 ;;
3dee169f
AM
Alan Modra2001-12-20 03:18:23 +0000223 arm-*-netbsdelf*)
224 targ_defvec=bfd_elf32_littlearm_vec
225 targ_selvecs="bfd_elf32_bigarm_vec armnetbsd_vec"
226 ;;
d9f0a86d Nick Clifton2001-09-14 11:46:40 +0000227 arm-*-netbsd* | arm-*-openbsd*)
5ffbbe8c Nick Clifton1999-08-24 15:16:53 +0000228 targ_defvec=armnetbsd_vec
3acb11c4 Jason Thorpe2002-05-29 21:10:18 +0000229 targ_selvecs="bfd_elf32_littlearm_vec bfd_elf32_bigarm_vec"
5ffbbe8c Nick Clifton1999-08-24 15:16:53 +0000230 targ_underscore=yes
c109a75b Nick Clifton2003-07-12 11:16:46 +0000231 targ_cflags=-D__QNXTARGET__
5ffbbe8c Nick Clifton1999-08-24 15:16:53 +0000232 ;;
f6b2c369 Nick Clifton2002-07-30 17:32:30 +0000233 arm-*-nto* | nto*arm*)
12db8afb
AM
Alan Modra2002-11-06 11:38:35 +0000234 targ_defvec=bfd_elf32_littlearm_vec
235 targ_selvecs=bfd_elf32_bigarm_vec
f6b2c369 Nick Clifton2002-07-30 17:32:30 +0000236 ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000237 arm-*-riscix*)
238 targ_defvec=riscix_vec
239 ;;
240 arm-epoc-pe*)
241 targ_defvec=arm_epoc_pe_little_vec
242 targ_selvecs="arm_epoc_pe_little_vec arm_epoc_pe_big_vec arm_epoc_pei_little_vec arm_epoc_pei_big_vec"
243 targ_underscore=no
c3ee84fa Nick Clifton2001-08-01 15:18:32 +0000244 targ_cflags=-DARM_COFF_BUGFIX
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000245 ;;
46d15c41 Dave Korn2009-06-18 02:11:03 +0000246 arm-wince-pe | arm-*-wince | arm*-*-mingw32ce* | arm*-*-cegcc*)
c82ef6a9
NC
Nick Clifton2006-08-21 08:12:46 +0000247 targ_defvec=arm_wince_pe_little_vec
248 targ_selvecs="arm_wince_pe_little_vec arm_wince_pe_big_vec arm_wince_pei_little_vec arm_wince_pei_big_vec"
20278ee4 Nick Clifton2000-02-28 18:56:11 +0000249 targ_underscore=no
f2cecbc5 Nick Clifton2003-07-17 14:27:38 +0000250 targ_cflags="-DARM_WINCE -DARM_COFF_BUGFIX"
20278ee4 Nick Clifton2000-02-28 18:56:11 +0000251 ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000252 arm-*-pe*)
253 targ_defvec=armpe_little_vec
254 targ_selvecs="armpe_little_vec armpe_big_vec armpei_little_vec armpei_big_vec"
255 targ_underscore=yes
256 ;;
1848baaa Nick Clifton2000-06-19 01:22:44 +0000257 arm-*-aout | armel-*-aout)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000258 targ_defvec=aout_arm_little_vec
259 targ_selvecs=aout_arm_big_vec
260 ;;
261 armeb-*-aout)
262 targ_defvec=aout_arm_big_vec
263 targ_selvecs=aout_arm_little_vec
264 ;;
265 arm-*-coff)
266 targ_defvec=armcoff_little_vec
267 targ_selvecs=armcoff_big_vec
268 targ_underscore=yes
269 ;;
3b280d32
NC
Nick Clifton2000-12-01 18:37:16 +0000270 arm-*-rtems*)
271 targ_defvec=bfd_elf32_littlearm_vec
272 targ_selvecs=bfd_elf32_bigarm_vec
273 ;;
e429753a Nick Clifton2005-03-23 15:35:50 +0000274 armeb-*-elf | arm*b-*-linux-*)
e5d3db55
PB
Phil Blundell2000-05-14 18:49:34 +0000275 targ_defvec=bfd_elf32_bigarm_vec
276 targ_selvecs=bfd_elf32_littlearm_vec
277 ;;
f707eb84
NC
Nick Clifton2003-02-11 13:47:08 +0000278 arm-*-kaos* | strongarm-*-kaos*)
279 targ_defvec=bfd_elf32_littlearm_vec
280 targ_selvecs=bfd_elf32_bigarm_vec
281 ;;
e429753a Nick Clifton2005-03-23 15:35:50 +0000282 arm-*-elf | arm-*-freebsd* | arm*-*-linux-* | arm*-*-conix* | \
e513ba5d Paul Brook2005-01-06 16:18:25 +0000283 arm*-*-uclinux* | arm-*-kfreebsd*-gnu | \
66b7c0dd Mark Mitchell2004-09-03 17:15:44 +0000284 arm*-*-eabi* )
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000285 targ_defvec=bfd_elf32_littlearm_vec
286 targ_selvecs=bfd_elf32_bigarm_vec
287 ;;
e513ba5d
PB
Paul Brook2005-01-06 16:18:25 +0000288 arm*-*-vxworks | arm*-*-windiss)
289 targ_defvec=bfd_elf32_littlearm_vxworks_vec
290 targ_selvecs=bfd_elf32_bigarm_vxworks_vec
291 ;;
66b7c0dd
MM
Mark Mitchell2004-09-03 17:15:44 +0000292 arm*-*-symbianelf*)
293 targ_defvec=bfd_elf32_littlearm_symbian_vec
294 targ_selvecs=bfd_elf32_bigarm_symbian_vec
295 ;;
0542ac57
AH
Aldy Hernandez2001-10-08 19:11:36 +0000296 arm9e-*-elf)
297 targ_defvec=bfd_elf32_littlearm_vec
298 targ_selvecs=bfd_elf32_bigarm_vec
299 ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000300
301 thumb-*-coff)
302 targ_defvec=armcoff_little_vec
303 targ_selvecs=armcoff_big_vec
304 targ_underscore=yes
305 ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000306 thumb-*-elf)
307 targ_defvec=bfd_elf32_littlearm_vec
308 targ_selvecs=bfd_elf32_bigarm_vec
309 ;;
310 thumb-epoc-pe*)
311 targ_defvec=arm_epoc_pe_little_vec
312 targ_selvecs="arm_epoc_pe_little_vec arm_epoc_pe_big_vec arm_epoc_pei_little_vec arm_epoc_pei_big_vec"
313 targ_underscore=no
314 ;;
315 thumb-*-pe*)
316 targ_defvec=armpe_little_vec
317 targ_selvecs="armpe_little_vec armpe_big_vec armpei_little_vec armpei_big_vec"
318 targ_underscore=yes
319 ;;
320 strongarm-*-elf)
321 targ_defvec=bfd_elf32_littlearm_vec
322 targ_selvecs=bfd_elf32_bigarm_vec
323 ;;
324 strongarm-*-coff)
325 targ_defvec=armcoff_little_vec
326 targ_selvecs=armcoff_big_vec
327 targ_underscore=yes
328 ;;
38edf6c2
NC
Nick Clifton2000-11-25 00:21:40 +0000329 xscale-*-elf)
330 targ_defvec=bfd_elf32_littlearm_vec
331 targ_selvecs=bfd_elf32_bigarm_vec
332 ;;
333 xscale-*-coff)
334 targ_defvec=armcoff_little_vec
335 targ_selvecs=armcoff_big_vec
336 targ_underscore=yes
337 ;;
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000338
eb62019a
AM
Alan Modra2000-03-27 08:39:14 +0000339 avr-*-*)
340 targ_defvec=bfd_elf32_avr_vec
341 ;;
342
1a35c4a0
CM
Catherine Moore2005-09-30 15:36:41 +0000343 bfin-*-*)
344 targ_defvec=bfd_elf32_bfin_vec
65a4b3b8
BS
Bernd Schmidt2006-03-26 00:38:42 +0000345 targ_selvecs=bfd_elf32_bfinfdpic_vec
346 targ_underscore=yes
1a35c4a0
CM
Catherine Moore2005-09-30 15:36:41 +0000347 ;;
348
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000349 c30-*-*aout* | tic30-*-*aout*)
350 targ_defvec=tic30_aout_vec
351 ;;
352 c30-*-*coff* | tic30-*-*coff*)
353 targ_defvec=tic30_coff_vec
354 ;;
355
ca9e3b94 Nick Clifton2003-06-20 08:36:19 +0000356 c4x-*-*coff* | tic4x-*-*coff* | tic4x-*-rtems*)
74be271c
NC
Nick Clifton2002-08-28 10:38:51 +0000357 targ_defvec=tic4x_coff1_vec
358 targ_selvecs="tic4x_coff1_beh_vec tic4x_coff2_vec tic4x_coff2_beh_vec tic4x_coff0_vec tic4x_coff0_beh_vec"
359 targ_underscore=yes
360 ;;
361
482a616e
TW
Timothy Wall2000-04-07 17:06:58 +0000362 c54x*-*-*coff* | tic54x-*-*coff*)
363 targ_defvec=tic54x_coff1_vec
364 targ_selvecs="tic54x_coff1_beh_vec tic54x_coff2_vec tic54x_coff2_beh_vec tic54x_coff0_vec tic54x_coff0_beh_vec"
365 targ_underscore=yes
366 ;;
367
c71c5ca9
NC
Nick Clifton2007-06-29 14:09:34 +0000368 cr16-*-elf*)
369 targ_defvec=bfd_elf32_cr16_vec
370 targ_underscore=yes
371 ;;
372
ed2dd403
NC
Nick Clifton2004-03-30 14:04:32 +0000373 cr16c-*-elf*)
374 targ_defvec=bfd_elf32_cr16c_vec
375 targ_underscore=yes
376 ;;
377
81d77732 Hans-Peter Nilsson2004-11-04 14:58:13 +0000378 cris-*-* | crisv32-*-*)
cd6f7291 Hans-Peter Nilsson2000-07-20 16:21:07 +0000379 targ_defvec=cris_aout_vec
fe961436
HPN
Hans-Peter Nilsson2000-09-29 17:05:22 +0000380 targ_selvecs="bfd_elf32_us_cris_vec bfd_elf32_cris_vec ieee_vec"
381 targ_underscore=yes # Note: not true for bfd_elf32_cris_vec.
cd6f7291
HPN
Hans-Peter Nilsson2000-07-20 16:21:07 +0000382 ;;
383
13e82919
NC
Nick Clifton2004-07-07 17:28:53 +0000384 crx-*-elf*)
385 targ_defvec=bfd_elf32_crx_vec
386 targ_underscore=yes
387 ;;
388
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000389 d10v-*-*)
390 targ_defvec=bfd_elf32_d10v_vec
391 ;;
392
ba57705f
NC
Nick Clifton2002-05-28 14:08:47 +0000393 dlx-*-elf*)
394 targ_defvec=bfd_elf32_dlx_big_vec
395 targ_selvecs="bfd_elf32_dlx_big_vec"
396 ;;
397
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000398 d30v-*-*)
399 targ_defvec=bfd_elf32_d30v_vec
400 ;;
401
d9f3ac4f
KH
Kazu Hirata2006-12-24 02:48:59 +0000402 fido-*-elf* )
403 targ_defvec=bfd_elf32_m68k_vec
404 targ_selvecs="m68kcoff_vec ieee_vec"
405 ;;
406
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000407 fr30-*-elf)
408 targ_defvec=bfd_elf32_fr30_vec
409 ;;
410
9db4e192 Alexandre Oliva2004-05-06 02:46:29 +0000411 frv-*-elf)
7031b448 Dave Brolley2002-06-18 21:10:55 +0000412 targ_defvec=bfd_elf32_frv_vec
9db4e192 Alexandre Oliva2004-05-06 02:46:29 +0000413 targ_selvecs=bfd_elf32_frvfdpic_vec
7031b448
DB
Dave Brolley2002-06-18 21:10:55 +0000414 ;;
415
9db4e192
AO
Alexandre Oliva2004-05-06 02:46:29 +0000416 frv-*-*linux*)
417 targ_defvec=bfd_elf32_frvfdpic_vec
418 targ_selvecs=bfd_elf32_frv_vec
419 ;;
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000420
27a7e36c Anthony Green2010-07-30 07:32:16 +0000421 moxie-*-elf | moxie-*-rtems | moxie-*-uclinux)
dd0adf18
NC
Nick Clifton2009-04-16 15:39:48 +0000422 targ_defvec=bfd_elf32_moxie_vec
423 ;;
424
3fd91a1e
DJ
Daniel Jacobowitz2005-04-29 18:41:45 +0000425 h8300*-*-rtemscoff*)
426 targ_defvec=h8300coff_vec
427 targ_underscore=yes
428 ;;
429
430 h8300*-*-elf | h8300*-*-rtems*)
4ff50093
JR
Joern Rennecke2001-08-29 01:33:52 +0000431 targ_defvec=bfd_elf32_h8300_vec
432 targ_underscore=yes
433 ;;
434
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000435 h8300*-*-*)
436 targ_defvec=h8300coff_vec
437 targ_underscore=yes
438 ;;
439
440 h8500-*-*)
441 targ_defvec=h8500coff_vec
442 targ_underscore=yes
443 ;;
444
1848baaa Nick Clifton2000-06-19 01:22:44 +0000445#ifdef BFD64
e429753a Nick Clifton2005-03-23 15:35:50 +0000446 hppa*64*-*-linux-*)
82e19deb
AM
Alan Modra2001-01-14 11:12:53 +0000447 targ_defvec=bfd_elf64_hppa_linux_vec
448 targ_selvecs=bfd_elf64_hppa_vec
d1f2db2b H.J. Lu2006-05-25 01:03:09 +0000449 want64=true
ce7625cd Alan Modra2000-07-09 07:23:07 +0000450 ;;
1a54dbc8 Jeff Law2000-05-18 16:55:34 +0000451 hppa*64*-*-hpux11*)
e5f13ef3 Jeff Law2000-04-24 08:31:33 +0000452 targ_defvec=bfd_elf64_hppa_vec
82e19deb Alan Modra2001-01-14 11:12:53 +0000453 targ_selvecs=bfd_elf64_hppa_linux_vec
e5f13ef3 Jeff Law2000-04-24 08:31:33 +0000454 targ_cflags=-DHPUX_LARGE_AR_IDS
d1f2db2b H.J. Lu2006-05-25 01:03:09 +0000455 want64=true
e5f13ef3
JL
Jeff Law2000-04-24 08:31:33 +0000456 ;;
457#endif
ce7625cd Alan Modra2000-07-09 07:23:07 +0000458
e429753a Nick Clifton2005-03-23 15:35:50 +0000459 hppa*-*-linux-*)
82e19deb
AM
Alan Modra2001-01-14 11:12:53 +0000460 targ_defvec=bfd_elf32_hppa_linux_vec
461 targ_selvecs=bfd_elf32_hppa_vec
462 ;;
b73d1fb0
JT
Jason Thorpe2004-07-29 03:48:13 +0000463 hppa*-*-netbsd*)
464 targ_defvec=bfd_elf32_hppa_nbsd_vec
465 targ_selvecs="bfd_elf32_hppa_vec bfd_elf32_hppa_linux_vec"
466 ;;
986624f5 Nick Clifton2005-07-08 11:17:16 +0000467 hppa*-*-*elf* | hppa*-*-lites* | hppa*-*-sysv4* | hppa*-*-openbsd*)
ce7625cd Alan Modra2000-07-09 07:23:07 +0000468 targ_defvec=bfd_elf32_hppa_vec
82e19deb Alan Modra2001-01-14 11:12:53 +0000469 targ_selvecs=bfd_elf32_hppa_linux_vec
ce7625cd
AM
Alan Modra2000-07-09 07:23:07 +0000470 ;;
471
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000472 hppa*-*-bsd*)
473 targ_defvec=som_vec
474 targ_selvecs=bfd_elf32_hppa_vec
e5f13ef3 Jeff Law2000-04-24 08:31:33 +0000475 ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000476 hppa*-*-hpux* | hppa*-*-hiux* | hppa*-*-mpeix*)
477 targ_defvec=som_vec
478 ;;
479 hppa*-*-osf*)
480 targ_defvec=som_vec
481 targ_selvecs=bfd_elf32_hppa_vec
e5f13ef3 Jeff Law2000-04-24 08:31:33 +0000482 ;;
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000483
9516425b Alan Modra2004-10-15 05:47:11 +0000484 i370-*-*)
13f160c0
AM
Alan Modra2000-02-23 13:52:23 +0000485 targ_defvec=bfd_elf32_i370_vec
486 targ_selvecs="bfd_elf32_i370_vec"
487 ;;
e653f63c Nick Clifton2003-05-16 16:30:27 +0000488 i[3-7]86-*-sco3.2v5*coff)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000489 targ_defvec=i386coff_vec
490 targ_selvecs=bfd_elf32_i386_vec
491 ;;
9f17dd73 Daniel Jacobowitz2004-10-08 13:55:11 +0000492 i[3-7]86-*-sysv4* | i[3-7]86-*-unixware* | \
e653f63c
NC
Nick Clifton2003-05-16 16:30:27 +0000493 i[3-7]86-*-elf | i[3-7]86-*-sco3.2v5* | \
494 i[3-7]86-*-dgux* | i[3-7]86-*-sysv5*)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000495 targ_defvec=bfd_elf32_i386_vec
496 targ_selvecs=i386coff_vec
497 ;;
9f17dd73 Daniel Jacobowitz2004-10-08 13:55:11 +0000498 i[3-7]86-*-solaris2*)
cd7bebbc
RO
Rainer Orth2010-03-05 19:48:52 +0000499 targ_defvec=bfd_elf32_i386_sol2_vec
500 targ_selvecs="i386coff_vec"
501 targ64_selvecs="bfd_elf64_x86_64_sol2_vec bfd_elf64_l1om_vec"
9f17dd73
DJ
Daniel Jacobowitz2004-10-08 13:55:11 +0000502 want64=true
503 ;;
e901473c
NC
Nick Clifton2008-01-28 16:57:22 +0000504#ifdef BFD64
505 x86_64-*-solaris2*)
cd7bebbc
RO
Rainer Orth2010-03-05 19:48:52 +0000506 targ_defvec=bfd_elf32_i386_sol2_vec
507 targ_selvecs="bfd_elf64_x86_64_sol2_vec bfd_elf64_l1om_vec i386coff_vec"
e901473c
NC
Nick Clifton2008-01-28 16:57:22 +0000508 want64=true
509 ;;
510#endif
e653f63c Nick Clifton2003-05-16 16:30:27 +0000511 i[3-7]86-*-kaos*)
f707eb84
NC
Nick Clifton2003-02-11 13:47:08 +0000512 targ_defvec=bfd_elf32_i386_vec
513 targ_selvecs=bfd_elf32_i386_vec
514 ;;
e653f63c Nick Clifton2003-05-16 16:30:27 +0000515 i[3-7]86-*-nto*)
12db8afb Alan Modra2002-11-06 11:38:35 +0000516 targ_defvec=bfd_elf32_i386_vec
389fa153
AM
Alan Modra2002-05-31 02:59:47 +0000517 targ_selvecs=i386coff_vec
518 ;;
e653f63c Nick Clifton2003-05-16 16:30:27 +0000519 i[3-7]86-*-aros*)
89f649ba
NC
Nick Clifton2003-01-21 16:08:31 +0000520 targ_defvec=bfd_elf32_i386_vec
521 ;;
e653f63c Nick Clifton2003-05-16 16:30:27 +0000522 i[3-7]86-*-chorus*)
b9e0e817
CF
Christopher Faylor2000-11-06 18:47:14 +0000523 targ_defvec=bfd_elf32_i386_vec
524 ;;
5d0afde8
PA
Pedro Alves2008-04-16 18:02:01 +0000525 i[3-7]86-*-dicos*)
526 targ_defvec=bfd_elf32_i386_vec
a98cc4b0 H.J. Lu2009-07-25 14:58:58 +0000527 targ64_selvecs="bfd_elf64_x86_64_vec bfd_elf64_l1om_vec"
5d0afde8 Pedro Alves2008-04-16 18:02:01 +0000528 ;;
986624f5 Nick Clifton2005-07-08 11:17:16 +0000529 *-*-msdosdjgpp* | *-*-go32* )
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000530 targ_defvec=go32coff_vec
531 targ_selvecs="go32stubbedcoff_vec i386aout_vec"
532 ;;
e653f63c
NC
Nick Clifton2003-05-16 16:30:27 +0000533 i[3-7]86-*-sysv* | i[3-7]86-*-isc* | i[3-7]86-*-sco* | i[3-7]86-*-coff | \
534 i[3-7]86-*-aix*)
130804ab
RH
Richard Henderson1999-05-13 09:49:09 +0000535 targ_defvec=i386coff_vec
536 ;;
18fdf7f2 Nick Clifton2005-07-22 10:34:30 +0000537 i[3-7]86-*-rtems*)
cbcb5e4b
PB
Phil Blundell2001-08-29 18:47:28 +0000538 targ_defvec=bfd_elf32_i386_vec
539 targ_selvecs="i386coff_vec i386aout_vec"
540 ;;
e653f63c Nick Clifton2003-05-16 16:30:27 +0000541 i[3-7]86-*-darwin* | i[3-7]86-*-macos10* | i[3-7]86-*-rhapsody*)
fd4ff6c3 Tristan Gingold2009-06-05 09:19:44 +0000542 targ_defvec=mach_o_i386_vec
a7e1cdcb
TG
Tristan Gingold2010-01-13 11:49:36 +0000543 targ_selvecs="mach_o_le_vec mach_o_be_vec mach_o_fat_vec pef_vec pef_xlib_vec sym_vec"
544 targ_archs="$targ_archs bfd_powerpc_arch bfd_rs6000_arch"
6f40d2d5 Alan Modra2002-11-13 01:45:42 +0000545 ;;
e653f63c Nick Clifton2003-05-16 16:30:27 +0000546 i[3-7]86-sequent-bsd*)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000547 targ_defvec=i386dynix_vec
548 targ_underscore=yes
549 ;;
e653f63c Nick Clifton2003-05-16 16:30:27 +0000550 i[3-7]86-*-bsd*)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000551 targ_defvec=i386bsd_vec
552 targ_underscore=yes
553 ;;
9f9a0b1a
NC
Nick Clifton2011-03-28 11:18:20 +0000554 i[3-7]86-*-dragonfly*)
555 targ_defvec=bfd_elf32_i386_vec
556 targ64_selvecs="bfd_elf64_x86_64_vec bfd_elf64_l1om_vec"
557 ;;
e653f63c
NC
Nick Clifton2003-05-16 16:30:27 +0000558 i[3-7]86-*-freebsdaout* | i[3-7]86-*-freebsd[12].* | \
559 i[3-7]86-*-freebsd[12])
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000560 targ_defvec=i386freebsd_vec
561 targ_selvecs=i386bsd_vec
562 targ_underscore=yes
563 ;;
9f9a0b1a Nick Clifton2011-03-28 11:18:20 +0000564 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
52f8b93c David O'Brien2002-09-17 02:24:40 +0000565 targ_defvec=bfd_elf32_i386_freebsd_vec
36438cff H.J. Lu2009-04-17 13:46:18 +0000566 targ_selvecs="bfd_elf32_i386_vec i386pei_vec i386coff_vec"
a98cc4b0 H.J. Lu2009-07-25 14:58:58 +0000567 targ64_selvecs="bfd_elf64_x86_64_freebsd_vec bfd_elf64_x86_64_vec x86_64pei_vec bfd_elf64_l1om_vec bfd_elf64_l1om_freebsd_vec"
52f8b93c
DB
David O'Brien2002-09-17 02:24:40 +0000568 # FreeBSD <= 4.0 supports only the old nonstandard way of ABI labelling.
569 case "${targ}" in
e653f63c Nick Clifton2003-05-16 16:30:27 +0000570 i[3-7]86-*-freebsd3* | i[3-7]86-*-freebsd4 | i[3-7]86-*-freebsd4.0*)
52f8b93c
DB
David O'Brien2002-09-17 02:24:40 +0000571 targ_cflags=-DOLD_FREEBSD_ABI_LABEL ;;
572 esac
c274116e Ian Lance Taylor1999-06-12 13:06:26 +0000573 ;;
605624ac Nick Clifton2003-10-06 09:12:39 +0000574 i[3-7]86-*-netbsdelf* | i[3-7]86-*-netbsd*-gnu* | i[3-7]86-*-knetbsd*-gnu)
7eb931c2
C
J.T. Conklin2000-06-01 22:06:18 +0000575 targ_defvec=bfd_elf32_i386_vec
576 targ_selvecs=i386netbsd_vec
a98cc4b0 H.J. Lu2009-07-25 14:58:58 +0000577 targ64_selvecs="bfd_elf64_x86_64_vec bfd_elf64_l1om_vec"
7eb931c2 J.T. Conklin2000-06-01 22:06:18 +0000578 ;;
e653f63c Nick Clifton2003-05-16 16:30:27 +0000579 i[3-7]86-*-netbsdpe*)
7f113509
NC
Nick Clifton2002-05-24 09:26:58 +0000580 targ_defvec=i386pe_vec
581 targ_selvecs="i386pe_vec i386pei_vec bfd_elf32_i386_vec"
582 ;;
c3d65ecb
NC
Nick Clifton2003-06-12 07:21:50 +0000583 i[3-7]86-*-netbsdaout* | i[3-7]86-*-netbsd* | \
584 i[3-7]86-*-openbsd[0-2].* | i[3-7]86-*-openbsd3.[0-3])
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000585 targ_defvec=i386netbsd_vec
7eb931c2 J.T. Conklin2000-06-01 22:06:18 +0000586 targ_selvecs="bfd_elf32_i386_vec i386bsd_vec"
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000587 targ_underscore=yes
588 ;;
9516425b Alan Modra2004-10-15 05:47:11 +0000589 i[3-7]86-*-openbsd*)
c3d65ecb
NC
Nick Clifton2003-06-12 07:21:50 +0000590 targ_defvec=bfd_elf32_i386_vec
591 targ_selvecs=i386netbsd_vec
592 ;;
e653f63c Nick Clifton2003-05-16 16:30:27 +0000593 i[3-7]86-*-netware*)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000594 targ_defvec=bfd_elf32_i386_vec
595 targ_selvecs="nlm32_i386_vec i386coff_vec i386aout_vec"
596 ;;
e653f63c Nick Clifton2003-05-16 16:30:27 +0000597 i[3-7]86-*-linux*aout*)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000598 targ_defvec=i386linux_vec
599 targ_selvecs=bfd_elf32_i386_vec
600 targ_underscore=yes
601 ;;
e429753a Nick Clifton2005-03-23 15:35:50 +0000602 i[3-7]86-*-linux-*)
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000603 targ_defvec=bfd_elf32_i386_vec
36438cff H.J. Lu2009-04-17 13:46:18 +0000604 targ_selvecs="i386linux_vec i386pei_vec"
c4f7d3b9 H.J. Lu2010-12-31 00:33:30 +0000605 targ64_selvecs="bfd_elf64_x86_64_vec bfd_elf32_x86_64_vec bfd_elf64_l1om_vec"
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000606 ;;
aeac6069 Thiemo Seufer2001-12-04 14:38:48 +0000607#ifdef BFD64
576008d7 Tristan Gingold2008-12-02 09:18:45 +0000608 x86_64-*-darwin*)
a7e1cdcb Tristan Gingold2010-01-13 11:49:36 +0000609 targ_defvec=mach_o_x86_64_vec
c03e1178 Tristan Gingold2009-10-08 12:46:16 +0000610 targ_selvecs="mach_o_i386_vec mach_o_le_vec mach_o_be_vec mach_o_fat_vec pef_vec pef_xlib_vec sym_vec"
a7e1cdcb Tristan Gingold2010-01-13 11:49:36 +0000611 targ_archs="$targ_archs bfd_powerpc_arch bfd_rs6000_arch"
576008d7
TG
Tristan Gingold2008-12-02 09:18:45 +0000612 want64=true
613 ;;
5d0afde8
PA
Pedro Alves2008-04-16 18:02:01 +0000614 x86_64-*-dicos*)
615 targ_defvec=bfd_elf64_x86_64_vec
a98cc4b0 H.J. Lu2009-07-25 14:58:58 +0000616 targ_selvecs="bfd_elf32_i386_vec bfd_elf64_l1om_vec"
5d0afde8
PA
Pedro Alves2008-04-16 18:02:01 +0000617 want64=true
618 ;;
245c7dc0
NC
Nick Clifton2005-03-15 14:14:08 +0000619 x86_64-*-elf*)
620 targ_defvec=bfd_elf64_x86_64_vec
a98cc4b0 H.J. Lu2009-07-25 14:58:58 +0000621 targ_selvecs="bfd_elf32_i386_vec bfd_elf64_l1om_vec i386coff_vec"
d1f2db2b H.J. Lu2006-05-25 01:03:09 +0000622 want64=true
245c7dc0 Nick Clifton2005-03-15 14:14:08 +0000623 ;;
9f9a0b1a
NC
Nick Clifton2011-03-28 11:18:20 +0000624 x86_64-*-dragonfly*)
625 targ_defvec=bfd_elf64_x86_64_vec
626 targ_selvecs="bfd_elf32_i386_vec bfd_elf64_l1om_vec"
627 want64=true
628 ;;
ba480a60 Nick Clifton2003-09-03 09:32:21 +0000629 x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
a9e9ddc8 Nick Clifton2006-08-02 16:25:14 +0000630 targ_defvec=bfd_elf64_x86_64_freebsd_vec
a98cc4b0 H.J. Lu2009-07-25 14:58:58 +0000631 targ_selvecs="bfd_elf32_i386_freebsd_vec i386coff_vec i386pei_vec x86_64pei_vec bfd_elf32_i386_vec bfd_elf64_x86_64_vec bfd_elf64_l1om_vec bfd_elf64_l1om_freebsd_vec"
d1f2db2b H.J. Lu2006-05-25 01:03:09 +0000632 want64=true
d2f77cb4 Andreas Jaeger2002-01-04 14:49:06 +0000633 ;;
c98cd69b Mark Kettenis2004-03-13 12:33:48 +0000634 x86_64-*-netbsd* | x86_64-*-openbsd*)
d2f77cb4 Andreas Jaeger2002-01-04 14:49:06 +0000635 targ_defvec=bfd_elf64_x86_64_vec
a98cc4b0 H.J. Lu2009-07-25 14:58:58 +0000636 targ_selvecs="bfd_elf32_i386_vec i386netbsd_vec i386coff_vec i386pei_vec x86_64pei_vec bfd_elf64_l1om_vec"
d1f2db2b H.J. Lu2006-05-25 01:03:09 +0000637 want64=true
f4935467 David O'Brien2001-02-19 06:33:41 +0000638 ;;
e429753a Nick Clifton2005-03-23 15:35:50 +0000639 x86_64-*-linux-*)
1512a2b1 Nick Clifton2000-11-30 19:30:33 +0000640 targ_defvec=bfd_elf64_x86_64_vec
c4f7d3b9 H.J. Lu2010-12-31 00:33:30 +0000641 targ_selvecs="bfd_elf32_i386_vec bfd_elf32_x86_64_vec i386linux_vec i386pei_vec x86_64pei_vec bfd_elf64_l1om_vec"
d1f2db2b H.J. Lu2006-05-25 01:03:09 +0000642 want64=true
1512a2b1 Nick Clifton2000-11-30 19:30:33 +0000643 ;;
fd5e9524 Nick Clifton2007-01-08 17:21:50 +0000644 x86_64-*-mingw*)
a5285462 Nick Clifton2006-09-20 11:35:11 +0000645 targ_defvec=x86_64pe_vec
f63df64f Richard Henderson2010-09-02 22:54:41 +0000646 targ_selvecs="x86_64pe_vec x86_64pei_vec bfd_elf64_x86_64_vec bfd_elf64_l1om_vec i386pe_vec i386pei_vec bfd_elf32_i386_vec"
a5285462 Nick Clifton2006-09-20 11:35:11 +0000647 want64=true
1fa52323 Kai Tietz2010-04-27 17:25:59 +0000648 targ_underscore=no
a5285462 Nick Clifton2006-09-20 11:35:11 +0000649 ;;
1512a2b1 Nick Clifton2000-11-30 19:30:33 +0000650#endif
e653f63c Nick Clifton2003-05-16 16:30:27 +0000651 i[3-7]86-*-lynxos*)
c7939691
NC
Nick Clifton2004-05-17 19:50:16 +0000652 targ_defvec=bfd_elf32_i386_vec
653 targ_selvecs="i386lynx_coff_vec i386lynx_aout_vec"
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000654 ;;
e653f63c Nick Clifton2003-05-16 16:30:27 +0000655 i[3-7]86-*-gnu*)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000656 targ_defvec=bfd_elf32_i386_vec
657 ;;
e653f63c Nick Clifton2003-05-16 16:30:27 +0000658 i[3-7]86-*-mach* | i[3-7]86-*-osf1mk*)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000659 targ_defvec=i386mach3_vec
660 targ_cflags=-DSTAT_FOR_EXEC
661 targ_underscore=yes
662 ;;
e653f63c Nick Clifton2003-05-16 16:30:27 +0000663 i[3-7]86-*-os9k)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000664 targ_defvec=i386os9k_vec
665 ;;
e653f63c Nick Clifton2003-05-16 16:30:27 +0000666 i[3-7]86-*-msdos*)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000667 targ_defvec=i386aout_vec
668 targ_selvecs=i386msdos_vec
669 ;;
e653f63c Nick Clifton2003-05-16 16:30:27 +0000670 i[3-7]86-*-moss*)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000671 targ_defvec=bfd_elf32_i386_vec
672 targ_selvecs="i386msdos_vec i386aout_vec"
673 ;;
e653f63c Nick Clifton2003-05-16 16:30:27 +0000674 i[3-7]86-*-beospe*)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000675 targ_defvec=i386pe_vec
676 targ_selvecs="i386pe_vec i386pei_vec"
677 ;;
e653f63c Nick Clifton2003-05-16 16:30:27 +0000678 i[3-7]86-*-beoself* | i[3-7]86-*-beos*)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000679 targ_defvec=bfd_elf32_i386_vec
680 targ_selvecs="i386pe_vec i386pei_vec"
681 ;;
e653f63c Nick Clifton2003-05-16 16:30:27 +0000682 i[3-7]86-*-interix*)
d9d8e596
ILT
Ian Lance Taylor1999-07-24 02:35:30 +0000683 targ_defvec=i386pei_vec
684 targ_selvecs="i386pe_vec"
5d26b438
ILT
Ian Lance Taylor1999-09-11 23:46:09 +0000685 # FIXME: This should eventually be checked at runtime.
686 targ_cflags=-DSTRICT_PE_FORMAT
d9d8e596 Ian Lance Taylor1999-07-24 02:35:30 +0000687 ;;
4afe48d7
NC
Nick Clifton2005-12-27 17:42:45 +0000688 i[3-7]86-*-rdos*)
689 targ_defvec=bfd_elf32_i386_vec
690 targ_selvecs=i386coff_vec
691 ;;
e653f63c Nick Clifton2003-05-16 16:30:27 +0000692 i[3-7]86-*-mingw32* | i[3-7]86-*-cygwin* | i[3-7]86-*-winnt | i[3-7]86-*-pe)
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000693 targ_defvec=i386pe_vec
d6c3cd14 Nick Clifton2000-01-10 18:50:16 +0000694 targ_selvecs="i386pe_vec i386pei_vec bfd_elf32_i386_vec"
c1fa2a78 Danny Smith2004-10-20 01:58:47 +0000695 targ_underscore=yes
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000696 ;;
e653f63c Nick Clifton2003-05-16 16:30:27 +0000697 i[3-7]86-none-*)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000698 targ_defvec=i386coff_vec
699 ;;
e653f63c Nick Clifton2003-05-16 16:30:27 +0000700 i[3-7]86-*-aout* | i[3-7]86*-*-vsta*)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000701 targ_defvec=i386aout_vec
702 ;;
85357a16 Nick Clifton2005-08-30 16:06:00 +0000703 i[3-7]86-*-vxworks*)
9a00c06f Paul Brook2005-05-05 14:37:27 +0000704 targ_defvec=bfd_elf32_i386_vxworks_vec
24c7a61c Ian Lance Taylor1999-07-22 00:51:11 +0000705 targ_underscore=yes
5e3d5732 Ian Lance Taylor1999-07-15 14:38:23 +0000706 ;;
e653f63c Nick Clifton2003-05-16 16:30:27 +0000707 i[3-7]86-*-chaos)
fd59a395
NC
Nick Clifton2000-11-02 23:03:24 +0000708 targ_defvec=bfd_elf32_i386_vec
709 targ_selfvecs=i386chaos_vec
710 ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000711
712 i860-*-mach3* | i860-*-osf1* | i860-*-coff*)
713 targ_defvec=i860coff_vec
714 ;;
2f6fcc61
JE
Jason Eckhardt2000-07-28 21:10:20 +0000715 i860-stardent-sysv4* | i860-stardent-elf*)
716 targ_defvec=bfd_elf32_i860_little_vec
717 targ_selvecs="bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
718 ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000719 i860-*-sysv4* | i860-*-elf*)
720 targ_defvec=bfd_elf32_i860_vec
721 ;;
722
723 i960-*-vxworks4* | i960-*-vxworks5.0)
724 targ_defvec=b_out_vec_little_host
725 targ_selvecs="b_out_vec_big_host icoff_little_vec icoff_big_vec ieee_vec"
726 targ_underscore=yes
727 ;;
872529bd Nick Clifton2006-11-10 07:53:33 +0000728 i960-*-vxworks5.* | i960-*-coff* | i960-*-sysv*)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000729 targ_defvec=icoff_little_vec
730 targ_selvecs="icoff_big_vec b_out_vec_little_host b_out_vec_big_host ieee_vec"
731 targ_underscore=yes
732 ;;
733 i960-*-vxworks* | i960-*-aout* | i960-*-bout* | i960-*-nindy*)
734 targ_defvec=b_out_vec_little_host
735 targ_selvecs="b_out_vec_big_host icoff_little_vec icoff_big_vec ieee_vec"
736 targ_underscore=yes
737 ;;
4e4db529
ILT
Ian Lance Taylor1999-05-27 21:42:14 +0000738 i960-*-elf*)
739 targ_defvec=bfd_elf32_i960_vec
740 targ_selvecs="icoff_little_vec icoff_big_vec"
741 ;;
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000742
ae36e8cc
NC
Nick Clifton2002-07-17 14:15:52 +0000743 ip2k-*-elf)
744 targ_defvec=bfd_elf32_ip2k_vec
745 ;;
746
293bde6b
SC
Stan Cox2003-01-03 21:12:28 +0000747 iq2000-*-elf)
748 targ_defvec=bfd_elf32_iq2000_vec
749 ;;
750
7a47791f Joel Sherrill2009-01-06 14:40:32 +0000751 lm32-*-elf | lm32-*-rtems*)
76f66765
NC
Nick Clifton2008-12-23 19:10:25 +0000752 targ_defvec=bfd_elf32_lm32_vec
753 targ_selvecs=bfd_elf32_lm32fdpic_vec
754 ;;
755
756 lm32-*-*linux*)
757 targ_defvec=bfd_elf32_lm32fdpic_vec
758 targ_selvecs=bfd_elf32_lm32_vec
759 ;;
760
06ab47ad Nick Clifton2008-11-06 15:36:38 +0000761 m32c-*-elf | m32c-*-rtems*)
28ed9ab5
NC
Nick Clifton2005-07-18 14:13:36 +0000762 targ_defvec=bfd_elf32_m32c_vec
763 ;;
764
376caa5a
NC
Nick Clifton2003-12-19 11:44:01 +0000765 m32r*le-*-linux*)
766 targ_defvec=bfd_elf32_m32rlelin_vec
767 targ_selvecs="bfd_elf32_m32rlin_vec bfd_elf32_m32rlelin_vec"
768 ;;
376caa5a
NC
Nick Clifton2003-12-19 11:44:01 +0000769 m32r*-*-linux*)
770 targ_defvec=bfd_elf32_m32rlin_vec
771 targ_selvecs="bfd_elf32_m32rlin_vec bfd_elf32_m32rlelin_vec"
772 ;;
376caa5a
NC
Nick Clifton2003-12-19 11:44:01 +0000773 m32r*le-*-*)
774 targ_defvec=bfd_elf32_m32rle_vec
775 targ_selvecs="bfd_elf32_m32r_vec bfd_elf32_m32rle_vec"
776 ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000777 m32r-*-*)
778 targ_defvec=bfd_elf32_m32r_vec
779 ;;
780
1848baaa
NC
Nick Clifton2000-06-19 01:22:44 +0000781 m68hc11-*-* | m6811-*-*)
782 targ_defvec=bfd_elf32_m68hc11_vec
783 targ_selvecs="bfd_elf32_m68hc11_vec bfd_elf32_m68hc12_vec"
784 ;;
785 m68hc12-*-* | m6812-*-*)
786 targ_defvec=bfd_elf32_m68hc12_vec
787 targ_selvecs="bfd_elf32_m68hc11_vec bfd_elf32_m68hc12_vec"
788 ;;
789
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000790 m68*-motorola-sysv*)
791 targ_defvec=m68ksysvcoff_vec
792 ;;
793 m68*-hp-bsd*)
794 targ_defvec=hp300bsd_vec
795 targ_underscore=yes
796 ;;
797 m68*-*-aout*)
798 targ_defvec=aout0_big_vec
013d4dc4 Richard Henderson1999-09-28 21:45:39 +0000799 # We include cisco_core_big_vec here, rather than making a separate cisco
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000800 # configuration, so that cisco-core.c gets routinely tested at
801 # least for compilation.
013d4dc4 Richard Henderson1999-09-28 21:45:39 +0000802 targ_selvecs="cisco_core_big_vec ieee_vec"
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000803 targ_underscore=yes
804 ;;
b8a25d27 Nick Clifton2004-01-02 16:37:12 +0000805 m68*-*-elf* | m68*-*-sysv4* | m68*-*-uclinux*)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000806 targ_defvec=bfd_elf32_m68k_vec
807 targ_selvecs="m68kcoff_vec ieee_vec"
808 ;;
130804ab Richard Henderson1999-05-13 09:49:09 +0000809 m68*-*-rtems*)
cbcb5e4b Phil Blundell2001-08-29 18:47:28 +0000810 targ_defvec=bfd_elf32_m68k_vec
130804ab
RH
Richard Henderson1999-05-13 09:49:09 +0000811 targ_selvecs="m68kcoff_vec versados_vec ieee_vec aout0_big_vec"
812 ;;
813 m68*-*-coff* | m68*-*-sysv*)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000814 targ_defvec=m68kcoff_vec
815 targ_selvecs="m68kcoff_vec versados_vec ieee_vec"
816 ;;
817 m68*-*-hpux*)
818 targ_defvec=hp300hpux_vec
819 targ_underscore=yes
820 ;;
821 m68*-*-linux*aout*)
822 targ_defvec=m68klinux_vec
823 targ_selvecs=bfd_elf32_m68k_vec
824 targ_underscore=yes
825 ;;
e429753a Nick Clifton2005-03-23 15:35:50 +0000826 m68*-*-linux-*)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000827 targ_defvec=bfd_elf32_m68k_vec
828 targ_selvecs=m68klinux_vec
829 ;;
830 m68*-*-gnu*)
831 targ_defvec=bfd_elf32_m68k_vec
832 # targ_selvecs=m68kmach3_vec
833 # targ_cflags=-DSTAT_FOR_EXEC
834 ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000835 m68*-hp*-netbsd*)
836 targ_defvec=m68k4knetbsd_vec
837 targ_selvecs="m68knetbsd_vec hp300bsd_vec sunos_big_vec"
838 targ_underscore=yes
839 ;;
9516425b Alan Modra2004-10-15 05:47:11 +0000840 m68*-*-netbsdelf*)
f7790c49
MG
Matthew Green2001-12-18 13:26:26 +0000841 targ_defvec=bfd_elf32_m68k_vec
842 targ_selvecs="m68knetbsd_vec m68k4knetbsd_vec hp300bsd_vec sunos_big_vec"
843 ;;
844 m68*-*-netbsdaout* | m68*-*-netbsd*)
845 targ_defvec=m68knetbsd_vec
846 targ_selvecs="m68k4knetbsd_vec bfd_elf32_m68k_vec hp300bsd_vec sunos_big_vec"
847 targ_underscore=yes
848 ;;
849 m68*-*-openbsd*)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000850 targ_defvec=m68knetbsd_vec
851 targ_selvecs="m68k4knetbsd_vec hp300bsd_vec sunos_big_vec"
852 targ_underscore=yes
853 ;;
854 m68*-*-sunos* | m68*-*-os68k* | m68*-*-vxworks* | m68*-netx-* | \
855 m68*-*-bsd* | m68*-*-vsta*)
856 targ_defvec=sunos_big_vec
857 targ_underscore=yes
858 ;;
859 m68*-ericsson-*)
860 targ_defvec=sunos_big_vec
861 targ_selvecs="m68kcoff_vec versados_vec tekhex_vec"
862 targ_underscore=yes
863 ;;
864 m68*-cbm-*)
865 targ_defvec=bfd_elf32_m68k_vec
866 targ_selvecs=m68kcoff_vec
867 ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000868 m68*-*-psos*)
869 targ_defvec=bfd_elf32_m68k_vec
870 targ_selvecs=ieee_vec
871 targ_underscore=yes
872 ;;
873
874 m88*-harris-cxux* | m88*-*-dgux* | m88*-*-sysv4*)
875 targ_defvec=bfd_elf32_m88k_vec
876 targ_selvecs=m88kbcs_vec
877 ;;
878 m88*-*-mach3*)
879 targ_defvec=m88kmach3_vec
880 targ_cflags=-DSTAT_FOR_EXEC
881 ;;
a1455887 Mark Kettenis2004-06-26 07:05:15 +0000882 m88*-*-openbsd*)
4153f5e4
NC
Nick Clifton2004-05-24 14:48:18 +0000883 targ_defvec=m88kopenbsd_vec
884 targ_underscore=yes
885 ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000886 m88*-*-*)
887 targ_defvec=m88kbcs_vec
888 targ_underscore=yes
889 ;;
890
891 mcore-*-elf)
892 targ_defvec=bfd_elf32_mcore_big_vec
893 targ_selvecs="bfd_elf32_mcore_big_vec bfd_elf32_mcore_little_vec"
894 ;;
895 mcore-*-pe)
896 targ_defvec=mcore_pe_big_vec
897 targ_selvecs="mcore_pe_big_vec mcore_pe_little_vec mcore_pei_big_vec mcore_pei_little_vec"
898 ;;
899
21971afd
DB
Dave Brolley2007-02-05 20:10:25 +0000900 mep-*-elf)
901 targ_defvec=bfd_elf32_mep_vec
902 targ_selvecs=bfd_elf32_mep_little_vec
903 ;;
904
ad627b38
NC
Nick Clifton2009-08-06 17:38:04 +0000905 microblaze*-*)
906 targ_defvec=bfd_elf32_microblaze_vec
907 ;;
908
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000909 mips*-big-*)
910 targ_defvec=ecoff_big_vec
911 targ_selvecs=ecoff_little_vec
912 ;;
c421fb8d Alan Modra2001-12-20 05:38:52 +0000913 mips*el-*-netbsd*)
8582aa02
NH
Nick Hudson2006-02-16 08:05:02 +0000914 targ_defvec=bfd_elf32_tradlittlemips_vec
915 targ_selvecs="bfd_elf32_tradbigmips_vec bfd_elf64_tradbigmips_vec bfd_elf64_tradlittlemips_vec ecoff_little_vec ecoff_big_vec"
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000916 ;;
2b31a0f6 Alan Modra2001-08-29 03:39:47 +0000917 mips*-*-netbsd*)
8582aa02
NH
Nick Hudson2006-02-16 08:05:02 +0000918 targ_defvec=bfd_elf32_tradbigmips_vec
919 targ_selvecs="bfd_elf32_tradlittlemips_vec bfd_elf64_tradbigmips_vec bfd_elf64_tradlittlemips_vec ecoff_big_vec ecoff_little_vec"
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000920 ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000921 mips*-dec-* | mips*el-*-ecoff*)
922 targ_defvec=ecoff_little_vec
923 targ_selvecs=ecoff_big_vec
924 ;;
925 mips*-*-ecoff*)
926 targ_defvec=ecoff_big_vec
927 targ_selvecs=ecoff_little_vec
928 ;;
310f1912 Thiemo Seufer2001-12-05 22:46:21 +0000929#ifdef BFD64
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000930 mips*-*-irix6*)
88feed25
KB
Kevin Buettner2002-09-04 23:10:59 +0000931 targ_defvec=bfd_elf32_nbigmips_vec
932 targ_selvecs="bfd_elf32_nlittlemips_vec bfd_elf32_bigmips_vec bfd_elf32_littlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec"
d1f2db2b H.J. Lu2006-05-25 01:03:09 +0000933 want64=true
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000934 ;;
310f1912 Thiemo Seufer2001-12-05 22:46:21 +0000935#endif
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000936 mips*-*-irix5*)
937 targ_defvec=bfd_elf32_bigmips_vec
938 targ_selvecs="bfd_elf32_littlemips_vec ecoff_big_vec ecoff_little_vec"
939 ;;
940 mips*-sgi-* | mips*-*-bsd*)
941 targ_defvec=ecoff_big_vec
942 targ_selvecs=ecoff_little_vec
943 ;;
944 mips*-*-lnews*)
945 targ_defvec=ecoff_biglittle_vec
946 targ_selvecs="ecoff_little_vec ecoff_big_vec"
947 ;;
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000948 mips*-*-sysv4*)
35120545
UC
Ulf Carlsson2000-07-02 01:17:52 +0000949 targ_defvec=bfd_elf32_tradbigmips_vec
950 targ_selvecs="bfd_elf32_tradlittlemips_vec ecoff_big_vec ecoff_little_vec"
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000951 ;;
952 mips*-*-sysv* | mips*-*-riscos*)
953 targ_defvec=ecoff_big_vec
954 targ_selvecs=ecoff_little_vec
955 ;;
4279ed38
RS
Richard Sandiford2006-03-22 09:28:15 +0000956#ifdef BFD64
957 mips*el-*-vxworks*)
958 targ_defvec=bfd_elf32_littlemips_vxworks_vec
959 targ_selvecs="bfd_elf32_littlemips_vec bfd_elf32_bigmips_vxworks_vec bfd_elf32_bigmips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec"
d1f2db2b H.J. Lu2006-05-25 01:03:09 +0000960 want64=true
4279ed38
RS
Richard Sandiford2006-03-22 09:28:15 +0000961 ;;
962 mips*-*-vxworks*)
963 targ_defvec=bfd_elf32_bigmips_vxworks_vec
964 targ_selvecs="bfd_elf32_bigmips_vec bfd_elf32_littlemips_vxworks_vec bfd_elf32_bigmips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec"
d1f2db2b H.J. Lu2006-05-25 01:03:09 +0000965 want64=true
4279ed38
RS
Richard Sandiford2006-03-22 09:28:15 +0000966 ;;
967#endif
88adc65e
TS
Thiemo Seufer2006-08-15 18:23:11 +0000968 mips*el-sde-elf*)
969 targ_defvec=bfd_elf32_tradlittlemips_vec
37e82ec4 Thiemo Seufer2006-11-10 14:37:33 +0000970 targ_selvecs="bfd_elf32_tradbigmips_vec bfd_elf32_ntradbigmips_vec bfd_elf32_ntradlittlemips_vec bfd_elf64_tradbigmips_vec bfd_elf64_tradlittlemips_vec"
88adc65e
TS
Thiemo Seufer2006-08-15 18:23:11 +0000971 want64=true
972 ;;
973 mips*-sde-elf*)
974 targ_defvec=bfd_elf32_tradbigmips_vec
37e82ec4 Thiemo Seufer2006-11-10 14:37:33 +0000975 targ_selvecs="bfd_elf32_tradlittlemips_vec bfd_elf32_ntradbigmips_vec bfd_elf32_ntradlittlemips_vec bfd_elf64_tradbigmips_vec bfd_elf64_tradlittlemips_vec"
88adc65e
TS
Thiemo Seufer2006-08-15 18:23:11 +0000976 want64=true
977 ;;
986624f5 Nick Clifton2005-07-08 11:17:16 +0000978 mips*el-*-elf* | mips*el-*-vxworks* | mips*-*-chorus*)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000979 targ_defvec=bfd_elf32_littlemips_vec
980 targ_selvecs="bfd_elf32_bigmips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec"
981 ;;
f6319638 Nick Clifton2003-10-30 09:05:14 +0000982 mips*-*-elf* | mips*-*-rtems* | mips*-*-vxworks | mips*-*-windiss)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000983 targ_defvec=bfd_elf32_bigmips_vec
984 targ_selvecs="bfd_elf32_littlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec"
985 ;;
986 mips*-*-none)
987 targ_defvec=bfd_elf32_bigmips_vec
988 targ_selvecs="bfd_elf32_littlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec"
989 ;;
4d4dc0fe
MK
Mark Kettenis2004-10-23 12:23:15 +0000990#ifdef BFD64
991 mips64*-*-openbsd*)
992 targ_defvec=bfd_elf64_tradbigmips_vec
993 targ_selvecs="bfd_elf32_ntradlittlemips_vec bfd_elf32_ntradbigmips_vec bfd_elf32_tradlittlemips_vec bfd_elf32_tradbigmips_vec bfd_elf64_tradlittlemips_vec"
d1f2db2b H.J. Lu2006-05-25 01:03:09 +0000994 want64=true
4d4dc0fe
MK
Mark Kettenis2004-10-23 12:23:15 +0000995 ;;
996#endif
bae2bc3c Thiemo Seufer2001-09-14 06:22:46 +0000997 mips*el-*-openbsd*)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000998 targ_defvec=bfd_elf32_littlemips_vec
999 targ_selvecs="bfd_elf32_bigmips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec ecoff_little_vec ecoff_big_vec"
1000 ;;
4918f14e H.J. Lu2001-04-08 05:11:49 +00001001 mips*-*-openbsd*)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001002 targ_defvec=bfd_elf32_bigmips_vec
1003 targ_selvecs="bfd_elf32_littlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec ecoff_big_vec ecoff_little_vec"
1004 ;;
310f1912 Thiemo Seufer2001-12-05 22:46:21 +00001005#ifdef BFD64
bae2bc3c Thiemo Seufer2001-09-14 06:22:46 +00001006 mips64*el-*-linux*)
db398cff
TS
Thiemo Seufer2002-07-31 00:32:10 +00001007 targ_defvec=bfd_elf32_ntradlittlemips_vec
1008 targ_selvecs="bfd_elf32_ntradbigmips_vec bfd_elf32_tradlittlemips_vec bfd_elf32_tradbigmips_vec bfd_elf64_tradlittlemips_vec bfd_elf64_tradbigmips_vec"
d1f2db2b H.J. Lu2006-05-25 01:03:09 +00001009 want64=true
bae2bc3c Thiemo Seufer2001-09-14 06:22:46 +00001010 ;;
bae2bc3c Thiemo Seufer2001-09-14 06:22:46 +00001011 mips64*-*-linux*)
db398cff
TS
Thiemo Seufer2002-07-31 00:32:10 +00001012 targ_defvec=bfd_elf32_ntradbigmips_vec
1013 targ_selvecs="bfd_elf32_ntradlittlemips_vec bfd_elf32_tradbigmips_vec bfd_elf32_tradlittlemips_vec bfd_elf64_tradbigmips_vec bfd_elf64_tradlittlemips_vec"
d1f2db2b H.J. Lu2006-05-25 01:03:09 +00001014 want64=true
bae2bc3c Thiemo Seufer2001-09-14 06:22:46 +00001015 ;;
310f1912
TS
Thiemo Seufer2001-12-05 22:46:21 +00001016#endif
1017 mips*el-*-linux*)
1018 targ_defvec=bfd_elf32_tradlittlemips_vec
2862fd85 H.J. Lu2002-08-14 15:05:41 +00001019 targ_selvecs="bfd_elf32_tradbigmips_vec ecoff_little_vec ecoff_big_vec bfd_elf32_ntradlittlemips_vec bfd_elf64_tradlittlemips_vec bfd_elf32_ntradbigmips_vec bfd_elf64_tradbigmips_vec"
7bbb9f34 H.J. Lu2002-08-14 15:18:54 +00001020 want64=true
310f1912 Thiemo Seufer2001-12-05 22:46:21 +00001021 ;;
bae2bc3c Thiemo Seufer2001-09-14 06:22:46 +00001022 mips*-*-linux*)
4918f14e H.J. Lu2001-04-08 05:11:49 +00001023 targ_defvec=bfd_elf32_tradbigmips_vec
2862fd85 H.J. Lu2002-08-14 15:05:41 +00001024 targ_selvecs="bfd_elf32_tradlittlemips_vec ecoff_big_vec ecoff_little_vec bfd_elf32_ntradbigmips_vec bfd_elf64_tradbigmips_vec bfd_elf32_ntradlittlemips_vec bfd_elf64_tradlittlemips_vec"
7bbb9f34 H.J. Lu2002-08-14 15:18:54 +00001025 want64=true
4918f14e H.J. Lu2001-04-08 05:11:49 +00001026 ;;
2cf98ff0 Nick Clifton2001-10-30 15:20:14 +00001027#ifdef BFD64
02d1fa7b
RS
Richard Sandiford2010-12-31 11:00:52 +00001028 mips64*el-*-freebsd* | mips64*el-*-kfreebsd*-gnu)
1029 # FreeBSD vectors
1030 targ_defvec=bfd_elf32_ntradlittlemips_freebsd_vec
1031 targ_selvecs="bfd_elf32_ntradbigmips_freebsd_vec bfd_elf32_tradlittlemips_freebsd_vec bfd_elf32_tradbigmips_freebsd_vec bfd_elf64_tradlittlemips_freebsd_vec bfd_elf64_tradbigmips_freebsd_vec"
1032 # Generic vectors
1033 targ_selvecs="${targ_selvecs} bfd_elf32_ntradlittlemips_vec bfd_elf32_ntradbigmips_vec bfd_elf32_tradlittlemips_vec bfd_elf32_tradbigmips_vec bfd_elf64_tradlittlemips_vec bfd_elf64_tradbigmips_vec"
1034 want64=true
1035 ;;
1036 mips64*-*-freebsd* | mips64*-*-kfreebsd*-gnu)
1037 # FreeBSD vectors
1038 targ_defvec=bfd_elf32_ntradbigmips_freebsd_vec
1039 targ_selvecs="bfd_elf32_ntradlittlemips_freebsd_vec bfd_elf32_tradbigmips_freebsd_vec bfd_elf32_tradlittlemips_freebsd_vec bfd_elf64_tradbigmips_freebsd_vec bfd_elf64_tradlittlemips_freebsd_vec"
1040 # Generic vectors
1041 targ_selvecs="${targ_selvecs} bfd_elf32_ntradbigmips_vec bfd_elf32_ntradlittlemips_vec bfd_elf32_tradbigmips_vec bfd_elf32_tradlittlemips_vec bfd_elf64_tradbigmips_vec bfd_elf64_tradlittlemips_vec"
1042 want64=true
1043 ;;
1044#endif
1045 mips*el-*-freebsd* | mips*el-*-kfreebsd*-gnu)
1046 # FreeBSD vectors
1047 targ_defvec=bfd_elf32_tradlittlemips_freebsd_vec
1048 targ_selvecs="bfd_elf32_tradbigmips_freebsd_vec bfd_elf32_ntradlittlemips_freebsd_vec bfd_elf64_tradlittlemips_freebsd_vec bfd_elf32_ntradbigmips_freebsd_vec bfd_elf64_tradbigmips_freebsd_vec"
1049 # Generic vectors
1050 targ_selvecs="${targ_selvecs} bfd_elf32_tradlittlemips_vec bfd_elf32_tradbigmips_vec bfd_elf32_ntradlittlemips_vec bfd_elf64_tradlittlemips_vec bfd_elf32_ntradbigmips_vec bfd_elf64_tradbigmips_vec"
1051 want64=true
1052 ;;
1053 mips*-*-freebsd* | mips*-*-kfreebsd*-gnu)
1054 # FreeBSD vectors
1055 targ_defvec=bfd_elf32_tradbigmips_freebsd_vec
1056 targ_selvecs="bfd_elf32_tradlittlemips_freebsd_vec bfd_elf32_ntradbigmips_freebsd_vec bfd_elf64_tradbigmips_freebsd_vec bfd_elf32_ntradlittlemips_freebsd_vec bfd_elf64_tradlittlemips_freebsd_vec"
1057 # Generic vectors
1058 targ_selvecs="${targ_selvecs} bfd_elf32_tradbigmips_vec bfd_elf32_tradlittlemips_vec bfd_elf32_ntradbigmips_vec bfd_elf64_tradbigmips_vec bfd_elf32_ntradlittlemips_vec bfd_elf64_tradlittlemips_vec"
1059 want64=true
1060 ;;
1061#ifdef BFD64
2cf98ff0
NC
Nick Clifton2001-10-30 15:20:14 +00001062 mmix-*-*)
1063 targ_defvec=bfd_elf64_mmix_vec
1064 targ_selvecs=bfd_mmo_vec
d1f2db2b H.J. Lu2006-05-25 01:03:09 +00001065 want64=true
2cf98ff0
NC
Nick Clifton2001-10-30 15:20:14 +00001066 ;;
1067#endif
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001068 mn10200-*-*)
1069 targ_defvec=bfd_elf32_mn10200_vec
1070 ;;
1071
1072 mn10300-*-*)
1073 targ_defvec=bfd_elf32_mn10300_vec
9b143545 Alexandre Oliva2003-07-10 04:44:37 +00001074 targ_underscore=yes
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001075 ;;
1076
4a9dedb9 Nathan Sidwell2005-12-12 11:25:08 +00001077 mt-*-elf)
5c7604d4 Nathan Sidwell2005-12-16 10:23:12 +00001078 targ_defvec=bfd_elf32_mt_vec
bea03f65
AH
Aldy Hernandez2005-06-07 21:07:32 +00001079 ;;
1080
1c300c07
NC
Nick Clifton2002-12-30 19:25:13 +00001081 msp430-*-*)
1082 targ_defvec=bfd_elf32_msp430_vec
1083 ;;
1084
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001085 ns32k-pc532-mach* | ns32k-pc532-ux*)
1086 targ_defvec=pc532machaout_vec
1087 targ_underscore=yes
1088 ;;
1089 ns32k-*-netbsd* | ns32k-*-lites* | ns32k-*-openbsd*)
1090 targ_defvec=pc532netbsd_vec
1091 targ_underscore=yes
1092 ;;
1093
6e10a47a
NC
Nick Clifton2001-04-24 15:08:16 +00001094 openrisc-*-elf)
1095 targ_defvec=bfd_elf32_openrisc_vec
1096 ;;
1097
872529bd Nick Clifton2006-11-10 07:53:33 +00001098 or32-*-coff)
37f4530e
NC
Nick Clifton2002-01-31 17:33:08 +00001099 targ_defvec=or32coff_big_vec
1100 targ_underscore=yes
1101 ;;
1102
986624f5 Nick Clifton2005-07-08 11:17:16 +00001103 or32-*-elf)
37f4530e
NC
Nick Clifton2002-01-31 17:33:08 +00001104 targ_defvec=bfd_elf32_or32_big_vec
1105 ;;
1106
c4101914
NC
Nick Clifton2001-02-18 23:33:11 +00001107 pdp11-*-*)
1108 targ_defvec=pdp11_aout_vec
1109 targ_underscore=yes
1110 ;;
1111
c7e275cc
ILT
Ian Lance Taylor1999-09-04 17:07:46 +00001112 pj-*-*)
1113 targ_defvec=bfd_elf32_pj_vec
1114 targ_selvecs="bfd_elf32_pj_vec bfd_elf32_pjl_vec"
1115 ;;
1116
1117 pjl-*-*)
1118 targ_defvec=bfd_elf32_pjl_vec
1119 targ_selvecs="bfd_elf32_pjl_vec bfd_elf32_pj_vec bfd_elf32_i386_vec"
1120 ;;
1121
9dd76e75 Alan Modra2010-12-10 01:03:12 +00001122 powerpc-*-aix5.[01] | rs6000-*-aix5.[01])
34b74b85
NC
Nick Clifton2003-12-03 15:07:17 +00001123 targ_defvec=rs6000coff_vec
1124 targ_selvecs="aix5coff64_vec"
1125 want64=true
1126 ;;
1127#ifdef BFD64
9dd76e75 Alan Modra2010-12-10 01:03:12 +00001128 powerpc64-*-aix5.[01] | rs6000-*-aix5.[01])
34b74b85
NC
Nick Clifton2003-12-03 15:07:17 +00001129 targ_defvec=aix5coff64_vec
1130 targ_selvecs="rs6000coff_vec"
1131 want64=true
1132 ;;
1133#endif
9dd76e75 Alan Modra2010-12-10 01:03:12 +00001134 powerpc-*-aix[5-9]* | rs6000-*-aix[5-9]*)
34b74b85 Nick Clifton2003-12-03 15:07:17 +00001135 targ_cflags=-DAIX_WEAK_SUPPORT
d3d0d6b7
NC
Nick Clifton2002-03-18 12:46:27 +00001136 targ_defvec=rs6000coff_vec
1137 targ_selvecs="aix5coff64_vec"
1138 want64=true
1139 ;;
e5500679 Nick Clifton2002-06-25 17:29:53 +00001140#ifdef BFD64
9dd76e75 Alan Modra2010-12-10 01:03:12 +00001141 powerpc64-*-aix[5-9]* | rs6000-*-aix[5-9]*)
34b74b85 Nick Clifton2003-12-03 15:07:17 +00001142 targ_cflags=-DAIX_WEAK_SUPPORT
d3d0d6b7
NC
Nick Clifton2002-03-18 12:46:27 +00001143 targ_defvec=aix5coff64_vec
1144 targ_selvecs="rs6000coff_vec"
1145 want64=true
1146 ;;
c8b09ba8 Nick Clifton2002-06-25 10:05:05 +00001147#endif
d3d0d6b7 Nick Clifton2002-03-18 12:46:27 +00001148
5101c003 Geoffrey Keating2001-02-09 00:11:24 +00001149 powerpc-*-aix* | powerpc-*-beos* | rs6000-*-*)
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00001150 targ_defvec=rs6000coff_vec
2b31a0f6
AM
Alan Modra2001-08-29 03:39:47 +00001151 targ64_selvecs=rs6000coff64_vec
1152 case "${targ}" in
9516425b Alan Modra2004-10-15 05:47:11 +00001153 *-*-aix4.[3456789]* | *-*-aix[56789]*)
2b31a0f6 Alan Modra2001-08-29 03:39:47 +00001154 want64=true;;
955be6d6
TR
Tom Rix2002-02-01 05:47:14 +00001155 *)
1156 targ_cflags=-DSMALL_ARCHIVE;;
2b31a0f6 Alan Modra2001-08-29 03:39:47 +00001157 esac
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00001158 ;;
d5d805e4 H.J. Lu2001-06-02 17:32:09 +00001159#ifdef BFD64
fede875c
TR
Tom Rix2001-05-24 20:59:23 +00001160 powerpc64-*-aix*)
1161 targ_defvec=rs6000coff64_vec
2b31a0f6 Alan Modra2001-08-29 03:39:47 +00001162 targ_selvecs=rs6000coff_vec
d1f2db2b H.J. Lu2006-05-25 01:03:09 +00001163 want64=true
fede875c Tom Rix2001-05-24 20:59:23 +00001164 ;;
f86806dc
NC
Nick Clifton2002-08-22 17:45:36 +00001165 powerpc64-*-elf* | powerpc-*-elf64* | powerpc64-*-linux* | \
1166 powerpc64-*-*bsd*)
b8a79e13 Alan Modra2001-08-27 10:22:03 +00001167 targ_defvec=bfd_elf64_powerpc_vec
9dd76e75 Alan Modra2010-12-10 01:03:12 +00001168 targ_selvecs="bfd_elf64_powerpcle_vec bfd_elf32_powerpc_vec bfd_elf32_powerpcle_vec rs6000coff_vec rs6000coff64_vec aix5coff64_vec"
d1f2db2b H.J. Lu2006-05-25 01:03:09 +00001169 want64=true
b8a79e13
AM
Alan Modra2001-08-27 10:22:03 +00001170 ;;
1171 powerpc64le-*-elf* | powerpcle-*-elf64*)
1172 targ_defvec=bfd_elf64_powerpcle_vec
9dd76e75 Alan Modra2010-12-10 01:03:12 +00001173 targ_selvecs="bfd_elf64_powerpc_vec bfd_elf32_powerpcle_vec bfd_elf32_powerpc_vec rs6000coff_vec rs6000coff64_vec aix5coff64_vec"
d1f2db2b H.J. Lu2006-05-25 01:03:09 +00001174 want64=true
b8a79e13 Alan Modra2001-08-27 10:22:03 +00001175 ;;
d5d805e4 H.J. Lu2001-06-02 17:32:09 +00001176#endif
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00001177 powerpc-*-*bsd* | powerpc-*-elf* | powerpc-*-sysv4* | powerpc-*-eabi* | \
e429753a Nick Clifton2005-03-23 15:35:50 +00001178 powerpc-*-solaris2* | powerpc-*-linux-* | powerpc-*-rtems* | \
c440d9ad Paul Brook2005-07-05 13:25:56 +00001179 powerpc-*-chorus*)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001180 targ_defvec=bfd_elf32_powerpc_vec
1181 targ_selvecs="rs6000coff_vec bfd_elf32_powerpcle_vec ppcboot_vec"
b8a79e13 Alan Modra2001-08-27 10:22:03 +00001182 targ64_selvecs="bfd_elf64_powerpc_vec bfd_elf64_powerpcle_vec"
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00001183 ;;
f707eb84
NC
Nick Clifton2003-02-11 13:47:08 +00001184 powerpc-*-kaos*)
1185 targ_defvec=bfd_elf32_powerpc_vec
1186 targ_selvecs="bfd_elf32_powerpcle_vec ppcboot_vec"
1187 targ64_selvecs="bfd_elf64_powerpc_vec bfd_elf64_powerpcle_vec"
1188 ;;
6f40d2d5
AM
Alan Modra2002-11-13 01:45:42 +00001189 powerpc-*-darwin* | powerpc-*-macos10* | powerpc-*-rhapsody*)
1190 targ_defvec=mach_o_be_vec
1191 targ_selvecs="mach_o_be_vec mach_o_le_vec mach_o_fat_vec pef_vec pef_xlib_vec sym_vec"
a7e1cdcb Tristan Gingold2010-01-13 11:49:36 +00001192 targ_archs="$targ_archs bfd_i386_arch"
6f40d2d5 Alan Modra2002-11-13 01:45:42 +00001193 ;;
b6c038b5 Stan Shebs2004-03-27 05:45:50 +00001194 powerpc-*-macos*)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001195 targ_defvec=pmac_xcoff_vec
1196 ;;
c7939691
NC
Nick Clifton2004-05-17 19:50:16 +00001197 powerpc-*-lynxos*)
1198 targ_defvec=bfd_elf32_powerpc_vec
1199 targ_selvecs="rs6000coff_vec"
1200 targ_cflags=-DSMALL_ARCHIVE
9516425b Alan Modra2004-10-15 05:47:11 +00001201 ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001202 powerpc-*-netware*)
1203 targ_defvec=bfd_elf32_powerpc_vec
1204 targ_selvecs="nlm32_powerpc_vec rs6000coff_vec"
1205 ;;
191758e3 Nick Clifton2002-08-09 15:38:24 +00001206 powerpc-*-nto*)
12db8afb
AM
Alan Modra2002-11-06 11:38:35 +00001207 targ_defvec=bfd_elf32_powerpc_vec
1208 targ_selvecs="rs6000coff_vec bfd_elf32_powerpcle_vec ppcboot_vec"
191758e3 Nick Clifton2002-08-09 15:38:24 +00001209 ;;
c440d9ad
PB
Paul Brook2005-07-05 13:25:56 +00001210 powerpc-*-vxworks* | powerpc-*-windiss*)
1211 targ_defvec=bfd_elf32_powerpc_vxworks_vec
1212 targ_selvecs="rs6000coff_vec bfd_elf32_powerpc_vec bfd_elf32_powerpcle_vec ppcboot_vec"
1213 targ64_selvecs="bfd_elf64_powerpc_vec bfd_elf64_powerpcle_vec"
1214 ;;
191758e3 Nick Clifton2002-08-09 15:38:24 +00001215 powerpcle-*-nto*)
12db8afb
AM
Alan Modra2002-11-06 11:38:35 +00001216 targ_defvec=bfd_elf32_powerpcle_vec
1217 targ_selvecs="rs6000coff_vec bfd_elf32_powerpc_vec ppcboot_vec"
191758e3 Nick Clifton2002-08-09 15:38:24 +00001218 ;;
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00001219 powerpcle-*-elf* | powerpcle-*-sysv4* | powerpcle-*-eabi* | \
986624f5 Nick Clifton2005-07-08 11:17:16 +00001220 powerpcle-*-solaris2* | powerpcle-*-linux-* | powerpcle-*-vxworks*)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001221 targ_defvec=bfd_elf32_powerpcle_vec
1222 targ_selvecs="rs6000coff_vec bfd_elf32_powerpc_vec ppcboot_vec"
b8a79e13 Alan Modra2001-08-27 10:22:03 +00001223 targ64_selvecs="bfd_elf64_powerpc_vec bfd_elf64_powerpcle_vec"
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00001224 ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001225 powerpcle-*-pe | powerpcle-*-winnt* | powerpcle-*-cygwin*)
1226 targ_defvec=bfd_powerpcle_pe_vec
1227 targ_selvecs="bfd_powerpcle_pei_vec bfd_powerpc_pei_vec bfd_powerpcle_pe_vec bfd_powerpc_pe_vec"
1228 ;;
1229
7bb985cd
NC
Nick Clifton2009-09-29 14:17:19 +00001230 rx-*-elf)
1231 targ_defvec=bfd_elf32_rx_le_vec
1232 targ_selvecs="bfd_elf32_rx_be_vec bfd_elf32_rx_le_vec"
1233 ;;
1234
b72e10f9
NC
Nick Clifton2001-02-10 00:58:38 +00001235 s390-*-linux*)
1236 targ_defvec=bfd_elf32_s390_vec
2e15c8ba Jakub Jelinek2002-10-16 19:54:54 +00001237 targ64_selvecs=bfd_elf64_s390_vec
fe6522a2 Martin Schwidefsky2004-07-02 14:12:01 +00001238 want64=true
b72e10f9
NC
Nick Clifton2001-02-10 00:58:38 +00001239 ;;
1240#ifdef BFD64
1241 s390x-*-linux*)
1242 targ_defvec=bfd_elf64_s390_vec
2e15c8ba Jakub Jelinek2002-10-16 19:54:54 +00001243 targ_selvecs=bfd_elf32_s390_vec
d1f2db2b H.J. Lu2006-05-25 01:03:09 +00001244 want64=true
b72e10f9 Nick Clifton2001-02-10 00:58:38 +00001245 ;;
24c19802
NC
Nick Clifton2004-12-16 16:02:59 +00001246 s390x-*-tpf*)
1247 targ_defvec=bfd_elf64_s390_vec
d1f2db2b H.J. Lu2006-05-25 01:03:09 +00001248 want64=true
24c19802 Nick Clifton2004-12-16 16:02:59 +00001249 ;;
b72e10f9 Nick Clifton2001-02-10 00:58:38 +00001250
2e8803ac
NC
Nick Clifton2006-09-16 23:51:50 +00001251 score*-*-elf*)
1252 targ_defvec=bfd_elf32_bigscore_vec
1253 targ_selvecs=bfd_elf32_littlescore_vec
1254 ;;
1255
df371be0
JR
Joern Rennecke2002-06-05 19:54:28 +00001256 sh64l*-*-elf*)
1257 targ_defvec=bfd_elf32_sh64l_vec
1258 targ_selvecs="bfd_elf32_sh64_vec bfd_elf64_sh64l_vec bfd_elf64_sh64_vec bfd_elf32_shl_vec bfd_elf32_sh_vec"
1259 targ_underscore=yes
d1f2db2b H.J. Lu2006-05-25 01:03:09 +00001260 want64=true
df371be0 Joern Rennecke2002-06-05 19:54:28 +00001261 ;;
d9bd0c60
AO
Alexandre Oliva2002-02-08 05:33:27 +00001262 sh64-*-elf*)
1263 targ_defvec=bfd_elf32_sh64_vec
1264 targ_selvecs="bfd_elf32_sh64l_vec bfd_elf64_sh64_vec bfd_elf64_sh64l_vec bfd_elf32_sh_vec bfd_elf32_shl_vec"
1265 targ_underscore=yes
d1f2db2b H.J. Lu2006-05-25 01:03:09 +00001266 want64=true
d9bd0c60 Alexandre Oliva2002-02-08 05:33:27 +00001267 ;;
312eecd0 Nick Clifton2002-05-16 08:19:19 +00001268 sh64eb-*-linux*)
db77c03f
SC
Stephen Clarke2002-10-09 19:03:57 +00001269 targ_defvec=bfd_elf32_sh64blin_vec
1270 targ_selvecs="bfd_elf32_sh64lin_vec bfd_elf64_sh64blin_vec bfd_elf64_sh64lin_vec bfd_elf32_shblin_vec bfd_elf32_shlin_vec"
d1f2db2b H.J. Lu2006-05-25 01:03:09 +00001271 want64=true
312eecd0
NC
Nick Clifton2002-05-16 08:19:19 +00001272 ;;
1273 sh64-*-linux*)
db77c03f
SC
Stephen Clarke2002-10-09 19:03:57 +00001274 targ_defvec=bfd_elf32_sh64lin_vec
1275 targ_selvecs="bfd_elf32_sh64blin_vec bfd_elf64_sh64lin_vec bfd_elf64_sh64blin_vec bfd_elf32_shlin_vec bfd_elf32_shblin_vec"
d1f2db2b H.J. Lu2006-05-25 01:03:09 +00001276 want64=true
312eecd0 Nick Clifton2002-05-16 08:19:19 +00001277 ;;
cf23665f
AO
Alexandre Oliva2000-09-07 04:23:43 +00001278 sh-*-linux*)
1279 targ_defvec=bfd_elf32_shblin_vec
a31a1050
L
H.J. Lu2006-05-25 13:59:25 +00001280 targ_selvecs="bfd_elf32_shlin_vec bfd_elf32_sh64lin_vec bfd_elf32_sh64blin_vec bfd_elf64_sh64lin_vec bfd_elf64_sh64blin_vec"
1281 want64=true
cf23665f Alexandre Oliva2000-09-07 04:23:43 +00001282 ;;
a31a1050
L
H.J. Lu2006-05-25 13:59:25 +00001283#endif /* BFD64 */
1284
2709ab21
NC
Nick Clifton2001-10-31 09:50:09 +00001285 sh*eb-*-linux*)
1286 targ_defvec=bfd_elf32_shblin_vec
811cbca5 Kaz Kojima2002-10-14 02:12:36 +00001287 targ_selvecs=bfd_elf32_shlin_vec
2709ab21
NC
Nick Clifton2001-10-31 09:50:09 +00001288 ;;
1289 sh*-*-linux*)
1290 targ_defvec=bfd_elf32_shlin_vec
811cbca5 Kaz Kojima2002-10-14 02:12:36 +00001291 targ_selvecs=bfd_elf32_shblin_vec
2709ab21 Nick Clifton2001-10-31 09:50:09 +00001292 ;;
cf23665f Alexandre Oliva2000-09-07 04:23:43 +00001293
bef7867d
NS
Nathan Sidwell2007-02-28 10:53:19 +00001294 sh-*-uclinux* | sh[12]-*-uclinux*)
1295 targ_defvec=bfd_elf32_sh_vec
aab06c2d Nick Clifton2010-05-25 14:12:35 +00001296 targ_selvecs="bfd_elf32_shl_vec bfd_elf32_shblin_vec bfd_elf32_shlin_vec bfd_elf32_shfd_vec bfd_elf32_shbfd_vec"
bef7867d
NS
Nathan Sidwell2007-02-28 10:53:19 +00001297#ifdef BFD64
1298 targ_selvecs="${targ_selvecs} bfd_elf32_sh64lin_vec bfd_elf32_sh64blin_vec bfd_elf64_sh64lin_vec bfd_elf64_sh64blin_vec"
1299#endif
1300 ;;
1301
c944790b
JT
Jason Thorpe2002-06-04 02:57:44 +00001302#ifdef BFD64
1303 sh5le-*-netbsd*)
1304 targ_defvec=bfd_elf32_sh64lnbsd_vec
474159e8 Kaz Kojima2005-08-18 11:06:58 +00001305 targ_selvecs="bfd_elf32_sh64nbsd_vec bfd_elf64_sh64lnbsd_vec bfd_elf64_sh64nbsd_vec bfd_elf32_shnbsd_vec bfd_elf32_shlnbsd_vec"
d1f2db2b H.J. Lu2006-05-25 01:03:09 +00001306 want64=true
c944790b
JT
Jason Thorpe2002-06-04 02:57:44 +00001307 ;;
1308 sh5-*-netbsd*)
1309 targ_defvec=bfd_elf32_sh64nbsd_vec
474159e8 Kaz Kojima2005-08-18 11:06:58 +00001310 targ_selvecs="bfd_elf32_sh64lnbsd_vec bfd_elf64_sh64lnbsd_vec bfd_elf64_sh64nbsd_vec bfd_elf32_shnbsd_vec bfd_elf32_shlnbsd_vec"
d1f2db2b H.J. Lu2006-05-25 01:03:09 +00001311 want64=true
c944790b
JT
Jason Thorpe2002-06-04 02:57:44 +00001312 ;;
1313
1314 sh64le-*-netbsd*)
1315 targ_defvec=bfd_elf64_sh64lnbsd_vec
474159e8 Kaz Kojima2005-08-18 11:06:58 +00001316 targ_selvecs="bfd_elf64_sh64nbsd_vec bfd_elf32_sh64lnbsd_vec bfd_elf32_sh64nbsd_vec bfd_elf32_shnbsd_vec bfd_elf32_shlnbsd_vec"
d1f2db2b H.J. Lu2006-05-25 01:03:09 +00001317 want64=true
c944790b
JT
Jason Thorpe2002-06-04 02:57:44 +00001318 ;;
1319 sh64-*-netbsd*)
1320 targ_defvec=bfd_elf64_sh64nbsd_vec
474159e8 Kaz Kojima2005-08-18 11:06:58 +00001321 targ_selvecs="bfd_elf64_sh64lnbsd_vec bfd_elf32_sh64lnbsd_vec bfd_elf32_sh64nbsd_vec bfd_elf32_shnbsd_vec bfd_elf32_shlnbsd_vec"
d1f2db2b H.J. Lu2006-05-25 01:03:09 +00001322 want64=true
c944790b Jason Thorpe2002-06-04 02:57:44 +00001323 ;;
c944790b Jason Thorpe2002-06-04 02:57:44 +00001324
d585fefc Nick Clifton2003-05-21 13:06:30 +00001325 sh*l*-*-netbsdelf*)
3b0a0990 Jason Thorpe2002-05-13 18:35:55 +00001326 targ_defvec=bfd_elf32_shlnbsd_vec
a31a1050
L
H.J. Lu2006-05-25 13:59:25 +00001327 targ_selvecs="bfd_elf32_shnbsd_vec shcoff_vec shlcoff_vec bfd_elf32_sh64lnbsd_vec bfd_elf32_sh64nbsd_vec bfd_elf64_sh64lnbsd_vec bfd_elf64_sh64nbsd_vec"
1328 want64=true
3b0a0990 Jason Thorpe2002-05-13 18:35:55 +00001329 ;;
52649568
HPN
Hans-Peter Nilsson2002-02-10 20:37:45 +00001330 sh-*-netbsdelf*)
1331 targ_defvec=bfd_elf32_shnbsd_vec
a31a1050
L
H.J. Lu2006-05-25 13:59:25 +00001332 targ_selvecs="bfd_elf32_shlnbsd_vec shcoff_vec shlcoff_vec bfd_elf32_sh64lnbsd_vec bfd_elf32_sh64nbsd_vec bfd_elf64_sh64lnbsd_vec bfd_elf64_sh64nbsd_vec"
1333 want64=true
52649568 Hans-Peter Nilsson2002-02-10 20:37:45 +00001334 ;;
a31a1050
L
H.J. Lu2006-05-25 13:59:25 +00001335#endif
1336
60ed1ab8
JT
Jason Thorpe2002-01-08 04:23:02 +00001337 sh*-*-netbsdelf*)
1338 targ_defvec=bfd_elf32_shnbsd_vec
1339 targ_selvecs="bfd_elf32_shlnbsd_vec shcoff_vec shlcoff_vec"
1340 ;;
563b80c2 Nick Clifton2004-07-09 12:32:35 +00001341 sh*-*-symbianelf*)
d13c2e16
NC
Nick Clifton2004-07-06 16:58:43 +00001342 targ_defvec=bfd_elf32_shl_symbian_vec
1343 targ_selvecs="shlcoff_vec shlcoff_small_vec"
1344 targ_underscore=yes
9516425b Alan Modra2004-10-15 05:47:11 +00001345 ;;
a31a1050
L
H.J. Lu2006-05-25 13:59:25 +00001346
1347#ifdef BFD64
f707eb84 Nick Clifton2003-02-11 13:47:08 +00001348 shl*-*-elf* | sh[1234]l*-*-elf* | sh3el*-*-elf* | shl*-*-kaos*)
df371be0 Joern Rennecke2002-06-05 19:54:28 +00001349 targ_defvec=bfd_elf32_shl_vec
a31a1050 H.J. Lu2006-05-25 13:59:25 +00001350 targ_selvecs="bfd_elf32_sh_vec shlcoff_vec shcoff_vec shlcoff_small_vec shcoff_small_vec bfd_elf32_sh64_vec bfd_elf32_sh64l_vec bfd_elf64_sh64_vec bfd_elf64_sh64l_vec"
df371be0 Joern Rennecke2002-06-05 19:54:28 +00001351 targ_underscore=yes
a31a1050 H.J. Lu2006-05-25 13:59:25 +00001352 want64=true
df371be0 Joern Rennecke2002-06-05 19:54:28 +00001353 ;;
a31a1050
L
H.J. Lu2006-05-25 13:59:25 +00001354#endif
1355
d656ff84
AM
Alan Modra2004-03-17 00:46:25 +00001356 sh-*-rtemscoff*)
1357 targ_defvec=shcoff_vec
1358 targ_selvecs="shcoff_vec shlcoff_vec shcoff_small_vec shlcoff_small_vec"
1359 targ_underscore=yes
1360 ;;
a31a1050
L
H.J. Lu2006-05-25 13:59:25 +00001361
1362#ifdef BFD64
d656ff84 Alan Modra2004-03-17 00:46:25 +00001363 sh-*-elf* | sh[1234]*-elf* | sh-*-rtems* | sh-*-kaos*)
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00001364 targ_defvec=bfd_elf32_sh_vec
a31a1050 H.J. Lu2006-05-25 13:59:25 +00001365 targ_selvecs="bfd_elf32_shl_vec shcoff_vec shlcoff_vec shcoff_small_vec shlcoff_small_vec bfd_elf32_sh64_vec bfd_elf32_sh64l_vec bfd_elf64_sh64_vec bfd_elf64_sh64l_vec"
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00001366 targ_underscore=yes
a31a1050 H.J. Lu2006-05-25 13:59:25 +00001367 want64=true
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00001368 ;;
a31a1050
L
H.J. Lu2006-05-25 13:59:25 +00001369#endif
1370
de2d69f2 Nick Clifton2002-08-22 17:27:20 +00001371 sh-*-nto*)
12db8afb
AM
Alan Modra2002-11-06 11:38:35 +00001372 targ_defvec=bfd_elf32_sh_vec
1373 targ_selvecs="bfd_elf32_shl_vec shcoff_vec shlcoff_vec shcoff_small_vec shlcoff_small_vec"
de2d69f2
NC
Nick Clifton2002-08-22 17:27:20 +00001374 targ_underscore=yes
1375 ;;
32ccb349
MK
Mark Kettenis2006-12-16 11:24:05 +00001376 sh*-*-openbsd*)
1377 targ_defvec=bfd_elf32_shlnbsd_vec
1378 targ_selvecs="bfd_elf32_shnbsd_vec shcoff_vec shlcoff_vec"
1379 ;;
20278ee4
NC
Nick Clifton2000-02-28 18:56:11 +00001380 sh-*-pe)
1381 targ_defvec=shlpe_vec
1382 targ_selvecs="shlpe_vec shlpei_vec"
1383 targ_underscore=yes
1384 ;;
f6319638 Nick Clifton2003-10-30 09:05:14 +00001385 sh-*-vxworks)
12262680
RS
Richard Sandiford2006-08-04 13:13:56 +00001386 targ_defvec=bfd_elf32_shvxworks_vec
1387 targ_selvecs="bfd_elf32_shlvxworks_vec"
f6319638
NC
Nick Clifton2003-10-30 09:05:14 +00001388 # FIXME None of the following are actually used on this target, but
1389 # they're necessary for coff-sh.c (which is unconditionally used) to be
1390 # compiled correctly.
1391 targ_selvecs="$targ_selvecs shcoff_vec shlcoff_vec shcoff_small_vec shlcoff_small_vec"
7f535afe Richard Sandiford2007-08-11 17:31:23 +00001392 targ_underscore=yes
f6319638 Nick Clifton2003-10-30 09:05:14 +00001393 ;;
d656ff84 Alan Modra2004-03-17 00:46:25 +00001394 sh-*-*)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001395 targ_defvec=shcoff_vec
1396 targ_selvecs="shcoff_vec shlcoff_vec shcoff_small_vec shlcoff_small_vec"
1397 targ_underscore=yes
1398 ;;
1399
1400 sparclet-*-aout*)
1401 targ_defvec=sunos_big_vec
1402 targ_selvecs=sparcle_aout_vec
1403 targ_underscore=yes
1404 ;;
1405 sparc86x-*-aout*)
1406 targ_defvec=sunos_big_vec
1407 targ_underscore=yes
1408 ;;
1409 sparclite-*-elf* | sparc86x-*-elf*)
1410 targ_defvec=bfd_elf32_sparc_vec
1411 ;;
b9e0e817
CF
Christopher Faylor2000-11-06 18:47:14 +00001412 sparc*-*-chorus*)
1413 targ_defvec=bfd_elf32_sparc_vec
1414 ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001415 sparc-*-linux*aout*)
1416 targ_defvec=sparclinux_vec
1417 targ_selvecs="bfd_elf32_sparc_vec sunos_big_vec"
1418 targ_underscore=yes
1419 ;;
96fe4c43 Jakub Jelinek2007-08-17 22:00:11 +00001420 sparc-*-linux-* | sparcv*-*-linux-*)
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00001421 targ_defvec=bfd_elf32_sparc_vec
4037f12d Alexandre Oliva2000-02-25 19:39:00 +00001422 targ_selvecs="sparclinux_vec bfd_elf64_sparc_vec sunos_big_vec"
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00001423 ;;
2ea68d15
AC
Andrew Cagney1999-12-14 05:13:29 +00001424 sparc-*-netbsdelf*)
1425 targ_defvec=bfd_elf32_sparc_vec
1426 targ_selvecs=sparcnetbsd_vec
1427 ;;
1428 sparc-*-netbsdaout* | sparc-*-netbsd*)
1429 targ_defvec=sparcnetbsd_vec
1430 targ_selvecs=bfd_elf32_sparc_vec
1431 targ_underscore=yes
1432 ;;
59047235 Nick Clifton2003-06-11 13:34:50 +00001433 sparc-*-openbsd[0-2].* | sparc-*-openbsd3.[0-1])
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001434 targ_defvec=sparcnetbsd_vec
1435 targ_underscore=yes
1436 ;;
59047235
NC
Nick Clifton2003-06-11 13:34:50 +00001437 sparc-*-openbsd*)
1438 targ_defvec=bfd_elf32_sparc_vec
1439 targ_selvecs=sparcnetbsd_vec
1440 ;;
dd19839e Rainer Orth2010-10-22 12:08:24 +00001441 sparc-*-elf*)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001442 targ_defvec=bfd_elf32_sparc_vec
1443 targ_selvecs=sunos_big_vec
1444 ;;
dd19839e
RO
Rainer Orth2010-10-22 12:08:24 +00001445 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
1446 targ_defvec=bfd_elf32_sparc_sol2_vec
1447 targ_selvecs=sunos_big_vec
1448 ;;
4428163b
AO
Alexandre Oliva2000-02-25 19:18:17 +00001449#ifdef BFD64
1450 sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*)
dd19839e
RO
Rainer Orth2010-10-22 12:08:24 +00001451 targ_defvec=bfd_elf32_sparc_sol2_vec
1452 targ_selvecs="bfd_elf64_sparc_sol2_vec sunos_big_vec"
d1f2db2b H.J. Lu2006-05-25 01:03:09 +00001453 want64=true
4428163b
AO
Alexandre Oliva2000-02-25 19:18:17 +00001454 ;;
1455#endif
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001456 sparc-*-sysv4*)
1457 targ_defvec=bfd_elf32_sparc_vec
1458 ;;
abcbf620
RS
Richard Sandiford2006-04-05 12:41:59 +00001459 sparc-*-vxworks*)
1460 targ_defvec=bfd_elf32_sparc_vxworks_vec
1461 targ_selvecs="bfd_elf32_sparc_vec sunos_big_vec"
1462 ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001463 sparc-*-netware*)
1464 targ_defvec=bfd_elf32_sparc_vec
1465 targ_selvecs="nlm32_sparc_vec sunos_big_vec"
1466 ;;
1467#ifdef BFD64
1468 sparc64-*-aout*)
1469 targ_defvec=sunos_big_vec
1470 targ_underscore=yes
d1f2db2b H.J. Lu2006-05-25 01:03:09 +00001471 want64=true
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00001472 ;;
96fe4c43 Jakub Jelinek2007-08-17 22:00:11 +00001473 sparc64*-*-linux-*)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001474 targ_defvec=bfd_elf64_sparc_vec
1475 targ_selvecs="bfd_elf32_sparc_vec sparclinux_vec sunos_big_vec"
d1f2db2b H.J. Lu2006-05-25 01:03:09 +00001476 want64=true
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00001477 ;;
74ddb857 Alan Modra2010-11-30 01:14:06 +00001478 sparc64-*-elf* | sparc64-*-rtems* )
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001479 targ_defvec=bfd_elf64_sparc_vec
1480 targ_selvecs=bfd_elf32_sparc_vec
d1f2db2b H.J. Lu2006-05-25 01:03:09 +00001481 want64=true
1848baaa Nick Clifton2000-06-19 01:22:44 +00001482 ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001483#endif /* BFD64 */
1484 sparc*-*-coff*)
1485 targ_defvec=sparccoff_vec
1486 ;;
74ddb857 Alan Modra2010-11-30 01:14:06 +00001487 sparc-*-rtems*)
3b280d32
NC
Nick Clifton2000-12-01 18:37:16 +00001488 targ_defvec=bfd_elf32_sparc_vec
1489 targ_selvecs="sunos_big_vec sparccoff_vec"
1490 ;;
18fdf7f2 Nick Clifton2005-07-22 10:34:30 +00001491 sparc*-*-*)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001492 targ_defvec=sunos_big_vec
1493 targ_underscore=yes
1494 ;;
1495
999aabcd
AM
Alan Modra2006-10-25 06:49:21 +00001496 spu-*-elf)
1497 targ_defvec=bfd_elf32_spu_vec
6dd207b4 Alan Modra2007-09-08 11:11:24 +00001498 want64=true
999aabcd
AM
Alan Modra2006-10-25 06:49:21 +00001499 ;;
1500
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001501#if HAVE_host_aout_vec
1502 tahoe-*-*)
1503 targ_defvec=host_aout_vec
1504 targ_underscore=yes
1505 ;;
1506#endif
1507
05186a7b
JM
Joseph Myers2010-03-25 21:12:25 +00001508 tic6x-*-elf)
1509 targ_defvec=bfd_elf32_tic6x_le_vec
1510 targ_selvecs=bfd_elf32_tic6x_be_vec
1511 ;;
1512
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001513 tic80*-*-*)
1514 targ_defvec=tic80coff_vec
1515 targ_underscore=yes
1516 ;;
1517
a37e2475 Nick Clifton2010-07-23 14:52:41 +00001518 v850*-*-*)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001519 targ_defvec=bfd_elf32_v850_vec
1520 ;;
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00001521
f8f27ef9
JT
Jason Thorpe2002-05-30 02:14:13 +00001522 vax-*-netbsdelf*)
1523 targ_defvec=bfd_elf32_vax_vec
0d1df730 Jason Thorpe2002-06-08 23:23:08 +00001524 targ_selvecs="vaxnetbsd_vec vax1knetbsd_vec"
f8f27ef9
JT
Jason Thorpe2002-05-30 02:14:13 +00001525 ;;
1526
1527 vax-*-netbsdaout* | vax-*-netbsd*)
1528 targ_defvec=vaxnetbsd_vec
0d1df730 Jason Thorpe2002-06-08 23:23:08 +00001529 targ_selvecs="bfd_elf32_vax_vec vax1knetbsd_vec"
f8f27ef9
JT
Jason Thorpe2002-05-30 02:14:13 +00001530 targ_underscore=yes
1531 ;;
1532
94e479cc
AM
Alan Modra2002-07-01 08:31:53 +00001533 vax-*-bsd* | vax-*-ultrix*)
1534 targ_defvec=vaxbsd_vec
1535 targ_underscore=yes
1536 ;;
1537
c3d65ecb
NC
Nick Clifton2003-06-12 07:21:50 +00001538 vax-*-openbsd*)
1539 targ_defvec=vaxnetbsd_vec
1540 targ_underscore=yes
1541 ;;
1542
e429753a Nick Clifton2005-03-23 15:35:50 +00001543 vax-*-linux-*)
34b74b85
NC
Nick Clifton2003-12-03 15:07:17 +00001544 targ_defvec=bfd_elf32_vax_vec
1545 ;;
1546
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001547 we32k-*-*)
1548 targ_defvec=we32kcoff_vec
1549 ;;
1550
1551 w65-*-*)
1552 targ_defvec=w65_vec
1553 ;;
1554
dc323640
GK
Geoffrey Keating2001-12-08 03:46:03 +00001555 xstormy16-*-elf)
1556 targ_defvec=bfd_elf32_xstormy16_vec
1557 ;;
1558
70a1e517 Bob Wilson2008-02-01 17:58:48 +00001559 xtensa*-*-*)
607ef48f
NC
Nick Clifton2003-04-01 15:50:31 +00001560 targ_defvec=bfd_elf32_xtensa_le_vec
1561 targ_selvecs=bfd_elf32_xtensa_be_vec
1562 ;;
6da0fc66
NC
Nick Clifton2006-02-17 14:36:28 +00001563 xc16x-*-elf)
1564 targ_defvec=bfd_elf32_xc16x_vec
1565 ;;
1566
d35e1486
NC
Nick Clifton2005-10-25 17:40:19 +00001567 z80-*-*)
1568 targ_defvec=z80coff_vec
1569 targ_underscore=no
1570 ;;
1571
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001572 z8k*-*-*)
1573 targ_defvec=z8kcoff_vec
1574 targ_underscore=yes
1575 ;;
1576
1577 *-*-ieee*)
1578 targ_defvec=ieee_vec
1579 ;;
1580
1581 *-adobe-*)
1582 targ_defvec=a_out_adobe_vec
1583 targ_underscore=yes
1584 ;;
1585
1586 *-sony-*)
1587 targ_defvec=newsos3_vec
1588 targ_underscore=yes
1589 ;;
1590
1591 *-tandem-*)
1592 targ_defvec=m68kcoff_vec
1593 targ_selvecs=ieee_vec
1594 ;;
1595# END OF targmatch.h
1596 *)
1597 echo 1>&2 "*** BFD does not support target ${targ}."
1598 echo 1>&2 "*** Look in bfd/config.bfd for supported targets."
1599 exit 1
1600 ;;
1601esac
1602
1d775656
AM
Alan Modra2001-08-17 04:17:18 +00001603case "${host64}${want64}" in
1604 *true*)
1605 targ_selvecs="${targ_selvecs} ${targ64_selvecs}"
1606 ;;
1607esac
1608
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001609# If we support any ELF target, then automatically add support for the
1610# generic ELF targets. This permits an objdump with some ELF support
1611# to be used on an arbitrary ELF file for anything other than
1612# relocation information.
1613case "${targ_defvec} ${targ_selvecs}" in
db398cff Thiemo Seufer2002-07-31 00:32:10 +00001614 *bfd_elf64* | *bfd_elf32_n*mips*)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001615 targ_selvecs="${targ_selvecs} bfd_elf64_little_generic_vec bfd_elf64_big_generic_vec bfd_elf32_little_generic_vec bfd_elf32_big_generic_vec"
1616 ;;
1617 *bfd_elf32*)
1618 targ_selvecs="${targ_selvecs} bfd_elf32_little_generic_vec bfd_elf32_big_generic_vec"
1619 ;;
1620esac
a98cc4b0
L
H.J. Lu2009-07-25 14:58:58 +00001621
1622# If we support Intel L1OM target, then add support for bfd_l1om_arch.
1623case "${targ_defvec} ${targ_selvecs}" in
1624 *bfd_elf64_l1om_vec*)
1625 targ_archs="$targ_archs bfd_l1om_arch"
1626 ;;
1627esac