config.bfd revision 130562
1# config.bfd 2# Convert a canonical host type into a BFD host type. 3# Set shell variable targ to canonical target name, and run 4# using ``. config.bfd''. 5# Sets the following shell variables: 6# targ_defvec Default vector for this target 7# targ_selvecs Vectors to build for this target 8# targ64_selvecs Vectors to build if --enable-64-bit-bfd is given 9# or if host is 64 bit. 10# targ_archs Architectures for this target 11# targ_cflags $(CFLAGS) for this target (FIXME: pretty bogus) 12# targ_underscore Whether underscores are used: yes or no 13 14# Part of this file is processed by targmatch.sed to generate the 15# targmatch.h file. The #ifdef and #endif lines that appear below are 16# copied directly into targmatch.h. 17 18# The binutils c++filt program wants to know whether underscores are 19# stripped or not. That is why we set targ_underscore. c++filt uses 20# this information to choose a default. This information is 21# duplicated in the symbol_leading_char field of the BFD target 22# vector, but c++filt does not deal with object files and is not 23# linked against libbfd.a. It is not terribly important that c++filt 24# get this right; it is just convenient. 25 26targ_defvec= 27targ_selvecs= 28targ64_selvecs= 29targ_cflags= 30targ_underscore=no 31 32# Catch obsolete configurations. 33case $targ in 34 vax-*-vms* \ 35 ) 36 if test "x$enable_obsolete" != xyes; then 37 echo "*** Configuration $targ is obsolete." >&2 38 echo "*** Specify --enable-obsolete to build it anyway." >&2 39 echo "*** Support will be REMOVED in the next major release of BINUTILS," >&2 40 echo "*** unless a maintainer comes forward." >&2 41 exit 1 42 fi;; 43esac 44 45 46targ_cpu=`echo $targ | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 47case "${targ_cpu}" in 48alpha*) targ_archs=bfd_alpha_arch ;; 49arm*) targ_archs=bfd_arm_arch ;; 50c30*) targ_archs=bfd_tic30_arch ;; 51c4x*) targ_archs=bfd_tic4x_arch ;; 52c54x*) targ_archs=bfd_tic54x_arch ;; 53dlx*) targ_archs=bfd_dlx_arch ;; 54hppa*) targ_archs=bfd_hppa_arch ;; 55i[3-7]86) targ_archs=bfd_i386_arch ;; 56i370) targ_archs=bfd_i370_arch ;; 57m6811*|m68hc11*) targ_archs="bfd_m68hc11_arch bfd_m68hc12_arch" ;; 58m6812*|m68hc12*) targ_archs="bfd_m68hc12_arch bfd_m68hc11_arch" ;; 59m68*) targ_archs=bfd_m68k_arch ;; 60m88*) targ_archs=bfd_m88k_arch ;; 61mips*) targ_archs=bfd_mips_arch ;; 62or32*) targ_archs=bfd_or32_arch ;; 63pdp11*) targ_archs=bfd_pdp11_arch ;; 64pj*) targ_archs="bfd_pj_arch bfd_i386_arch";; 65powerpc*) targ_archs="bfd_rs6000_arch bfd_powerpc_arch" ;; 66rs6000) targ_archs="bfd_rs6000_arch bfd_powerpc_arch" ;; 67s390*) targ_archs=bfd_s390_arch ;; 68sh*) targ_archs=bfd_sh_arch ;; 69sparc*) targ_archs=bfd_sparc_arch ;; 70strongarm*) targ_archs=bfd_arm_arch ;; 71thumb*) targ_archs=bfd_arm_arch ;; 72v850*) targ_archs=bfd_v850_arch ;; 73x86_64) targ_archs=bfd_i386_arch ;; 74xscale*) targ_archs=bfd_arm_arch ;; 75xtensa*) targ_archs=bfd_xtensa_arch ;; 76z8k*) targ_archs=bfd_z8k_arch ;; 77am33_2.0) targ_archs=bfd_mn10300_arch ;; 78*) targ_archs=bfd_${targ_cpu}_arch ;; 79esac 80 81 82# WHEN ADDING ENTRIES TO THIS MATRIX: 83# Make sure that the left side always has two dashes. Otherwise you 84# can get spurious matches. Even for unambiguous cases, do this as a 85# convention, else the table becomes a real mess to understand and maintain. 86# 87# Keep obsolete entries above the START comment, to keep them out of 88# targmatch.h. 89 90case "${targ}" in 91 mips*-dec-bsd*) 92 echo "This target is obsolete and has been removed." 93 exit 1 94 ;; 95 96 mips*-*-mach3*) 97 echo "This target is obsolete and has been removed." 98 exit 1 99 ;; 100 101 mips*-*-pe*) 102 echo "This target is obsolete and has been removed." 103 exit 1 104 ;; 105 106# START OF targmatch.h 107#ifdef BFD64 108 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu) 109 targ_defvec=bfd_elf64_alpha_freebsd_vec 110 targ_selvecs=ecoffalpha_little_vec 111 # FreeBSD <= 4.0 supports only the old nonstandard way of ABI labelling. 112 case "${targ}" in 113 alpha*-*-freebsd3* | alpha*-*-freebsd4 | alpha*-*-freebsd4.0*) 114 targ_cflags=-DOLD_FREEBSD_ABI_LABEL ;; 115 esac 116 ;; 117 alpha*-*-netbsd* | alpha*-*-openbsd*) 118 targ_defvec=bfd_elf64_alpha_vec 119 targ_selvecs=ecoffalpha_little_vec 120 ;; 121 alpha*-*-netware*) 122 targ_defvec=ecoffalpha_little_vec 123 targ_selvecs=nlm32_alpha_vec 124 ;; 125 alpha*-*-linuxecoff*) 126 targ_defvec=ecoffalpha_little_vec 127 targ_selvecs=bfd_elf64_alpha_vec 128 ;; 129 alpha*-*-linux-gnu* | alpha*-*-elf*) 130 targ_defvec=bfd_elf64_alpha_vec 131 targ_selvecs=ecoffalpha_little_vec 132 ;; 133 alpha*-*-*vms*) 134 targ_defvec=vms_alpha_vec 135 ;; 136 alpha*-*-*) 137 targ_defvec=ecoffalpha_little_vec 138 ;; 139 ia64*-*-freebsd* | ia64*-*-netbsd* | ia64*-*-linux-gnu* | ia64*-*-elf* | ia64*-*-kfreebsd*-gnu) 140 targ_defvec=bfd_elf64_ia64_little_vec 141 targ_selvecs="bfd_elf64_ia64_big_vec bfd_efi_app_ia64_vec" 142 ;; 143 ia64*-*-hpux*) 144 targ_defvec=bfd_elf32_ia64_hpux_big_vec 145 targ_selvecs="bfd_elf64_ia64_hpux_big_vec" 146 ;; 147 sparc64-*-freebsd* | sparc64-*-netbsd* | sparc64-*-openbsd* | sparc64-*-kfreebsd*-gnu) 148 targ_defvec=bfd_elf64_sparc_vec 149 targ_selvecs="bfd_elf32_sparc_vec sunos_big_vec" 150 ;; 151#endif /* BFD64 */ 152 153 am33_2.0-*-linux*) 154 targ_defvec=bfd_elf32_am33lin_vec 155 ;; 156 arc-*-elf*) 157 targ_defvec=bfd_elf32_littlearc_vec 158 targ_selvecs=bfd_elf32_bigarc_vec 159 ;; 160 161 armeb-*-netbsdelf*) 162 targ_defvec=bfd_elf32_bigarm_vec 163 targ_selvecs="bfd_elf32_littlearm_vec armnetbsd_vec" 164 ;; 165 arm-*-netbsdelf*) 166 targ_defvec=bfd_elf32_littlearm_vec 167 targ_selvecs="bfd_elf32_bigarm_vec armnetbsd_vec" 168 ;; 169 arm-*-netbsd* | arm-*-openbsd*) 170 targ_defvec=armnetbsd_vec 171 targ_selvecs="bfd_elf32_littlearm_vec bfd_elf32_bigarm_vec" 172 targ_underscore=yes 173 targ_cflags=-D__QNXTARGET__ 174 ;; 175 arm-*-nto* | nto*arm*) 176 targ_defvec=bfd_elf32_littlearm_vec 177 targ_selvecs=bfd_elf32_bigarm_vec 178 ;; 179 arm-*-riscix*) 180 targ_defvec=riscix_vec 181 ;; 182 arm-epoc-pe*) 183 targ_defvec=arm_epoc_pe_little_vec 184 targ_selvecs="arm_epoc_pe_little_vec arm_epoc_pe_big_vec arm_epoc_pei_little_vec arm_epoc_pei_big_vec" 185 targ_underscore=no 186 targ_cflags=-DARM_COFF_BUGFIX 187 ;; 188 arm-wince-pe | arm-*-wince) 189 targ_defvec=armpe_little_vec 190 targ_selvecs="armpe_little_vec armpe_big_vec armpei_little_vec armpei_big_vec" 191 targ_underscore=no 192 targ_cflags="-DARM_WINCE -DARM_COFF_BUGFIX" 193 ;; 194 arm-*-pe*) 195 targ_defvec=armpe_little_vec 196 targ_selvecs="armpe_little_vec armpe_big_vec armpei_little_vec armpei_big_vec" 197 targ_underscore=yes 198 ;; 199 arm-*-aout | armel-*-aout) 200 targ_defvec=aout_arm_little_vec 201 targ_selvecs=aout_arm_big_vec 202 ;; 203 armeb-*-aout) 204 targ_defvec=aout_arm_big_vec 205 targ_selvecs=aout_arm_little_vec 206 ;; 207 arm-*-coff) 208 targ_defvec=armcoff_little_vec 209 targ_selvecs=armcoff_big_vec 210 targ_underscore=yes 211 ;; 212 arm-*-rtems*) 213 targ_defvec=bfd_elf32_littlearm_vec 214 targ_selvecs=bfd_elf32_bigarm_vec 215 ;; 216 armeb-*-elf | arm*b-*-linux-gnu*) 217 targ_defvec=bfd_elf32_bigarm_vec 218 targ_selvecs=bfd_elf32_littlearm_vec 219 ;; 220 arm-*-kaos* | strongarm-*-kaos*) 221 targ_defvec=bfd_elf32_littlearm_vec 222 targ_selvecs=bfd_elf32_bigarm_vec 223 ;; 224 arm-*-elf | arm-*-freebsd* | arm*-*-linux-gnu* | arm*-*-conix* | \ 225 arm*-*-uclinux* | arm-*-kfreebsd*-gnu | arm-*-vxworks) 226 targ_defvec=bfd_elf32_littlearm_vec 227 targ_selvecs=bfd_elf32_bigarm_vec 228 ;; 229 arm9e-*-elf) 230 targ_defvec=bfd_elf32_littlearm_vec 231 targ_selvecs=bfd_elf32_bigarm_vec 232 ;; 233 arm-*-oabi) 234 targ_defvec=bfd_elf32_littlearm_oabi_vec 235 targ_selvecs=bfd_elf32_bigarm_oabi_vec 236 ;; 237 238 thumb-*-coff) 239 targ_defvec=armcoff_little_vec 240 targ_selvecs=armcoff_big_vec 241 targ_underscore=yes 242 ;; 243 thumb-*-oabi) 244 targ_defvec=bfd_elf32_littlearm_oabi_vec 245 targ_selvecs=bfd_elf32_bigarm_oabi_vec 246 ;; 247 thumb-*-elf) 248 targ_defvec=bfd_elf32_littlearm_vec 249 targ_selvecs=bfd_elf32_bigarm_vec 250 ;; 251 thumb-epoc-pe*) 252 targ_defvec=arm_epoc_pe_little_vec 253 targ_selvecs="arm_epoc_pe_little_vec arm_epoc_pe_big_vec arm_epoc_pei_little_vec arm_epoc_pei_big_vec" 254 targ_underscore=no 255 ;; 256 thumb-*-pe*) 257 targ_defvec=armpe_little_vec 258 targ_selvecs="armpe_little_vec armpe_big_vec armpei_little_vec armpei_big_vec" 259 targ_underscore=yes 260 ;; 261 strongarm-*-elf) 262 targ_defvec=bfd_elf32_littlearm_vec 263 targ_selvecs=bfd_elf32_bigarm_vec 264 ;; 265 strongarm-*-coff) 266 targ_defvec=armcoff_little_vec 267 targ_selvecs=armcoff_big_vec 268 targ_underscore=yes 269 ;; 270 xscale-*-elf) 271 targ_defvec=bfd_elf32_littlearm_vec 272 targ_selvecs=bfd_elf32_bigarm_vec 273 ;; 274 xscale-*-coff) 275 targ_defvec=armcoff_little_vec 276 targ_selvecs=armcoff_big_vec 277 targ_underscore=yes 278 ;; 279 280 a29k-*-ebmon* | a29k-*-udi* | a29k-*-coff* | a29k-*-sym1* | \ 281 a29k-*-vxworks* | a29k-*-sysv* | a29k-*rtems*) 282 targ_defvec=a29kcoff_big_vec 283 targ_selvecs=sunos_big_vec 284 targ_underscore=yes 285 ;; 286 a29k-*-aout* | a29k-*-bsd* | a29k-*-vsta*) 287 targ_defvec=sunos_big_vec 288 targ_underscore=yes 289 ;; 290 291 avr-*-*) 292 targ_defvec=bfd_elf32_avr_vec 293 ;; 294 295 c30-*-*aout* | tic30-*-*aout*) 296 targ_defvec=tic30_aout_vec 297 ;; 298 c30-*-*coff* | tic30-*-*coff*) 299 targ_defvec=tic30_coff_vec 300 ;; 301 302 c4x-*-*coff* | tic4x-*-*coff* | tic4x-*-rtems*) 303 targ_defvec=tic4x_coff1_vec 304 targ_selvecs="tic4x_coff1_beh_vec tic4x_coff2_vec tic4x_coff2_beh_vec tic4x_coff0_vec tic4x_coff0_beh_vec" 305 targ_underscore=yes 306 ;; 307 308 c54x*-*-*coff* | tic54x-*-*coff*) 309 targ_defvec=tic54x_coff1_vec 310 targ_selvecs="tic54x_coff1_beh_vec tic54x_coff2_vec tic54x_coff2_beh_vec tic54x_coff0_vec tic54x_coff0_beh_vec" 311 targ_underscore=yes 312 ;; 313 314 cris-*-*) 315 targ_defvec=cris_aout_vec 316 targ_selvecs="bfd_elf32_us_cris_vec bfd_elf32_cris_vec ieee_vec" 317 targ_underscore=yes # Note: not true for bfd_elf32_cris_vec. 318 ;; 319 320 d10v-*-*) 321 targ_defvec=bfd_elf32_d10v_vec 322 ;; 323 324 dlx-*-elf*) 325 targ_defvec=bfd_elf32_dlx_big_vec 326 targ_selvecs="bfd_elf32_dlx_big_vec" 327 ;; 328 329 d30v-*-*) 330 targ_defvec=bfd_elf32_d30v_vec 331 ;; 332 333 fr30-*-elf) 334 targ_defvec=bfd_elf32_fr30_vec 335 ;; 336 337 frv-*-elf) 338 targ_defvec=bfd_elf32_frv_vec 339 targ_selvecs=bfd_elf32_frvfdpic_vec 340 ;; 341 342 frv-*-*linux*) 343 targ_defvec=bfd_elf32_frvfdpic_vec 344 targ_selvecs=bfd_elf32_frv_vec 345 ;; 346 347 h8300*-*-elf) 348 targ_defvec=bfd_elf32_h8300_vec 349 targ_underscore=yes 350 ;; 351 352 h8300*-*-*) 353 targ_defvec=h8300coff_vec 354 targ_underscore=yes 355 ;; 356 357 h8500-*-*) 358 targ_defvec=h8500coff_vec 359 targ_underscore=yes 360 ;; 361 362#ifdef BFD64 363 hppa*64*-*-linux-gnu*) 364 targ_defvec=bfd_elf64_hppa_linux_vec 365 targ_selvecs=bfd_elf64_hppa_vec 366 ;; 367 hppa*64*-*-hpux11*) 368 targ_defvec=bfd_elf64_hppa_vec 369 targ_selvecs=bfd_elf64_hppa_linux_vec 370 targ_cflags=-DHPUX_LARGE_AR_IDS 371 ;; 372#endif 373 374 hppa*-*-linux-gnu* | hppa*-*-netbsd*) 375 targ_defvec=bfd_elf32_hppa_linux_vec 376 targ_selvecs=bfd_elf32_hppa_vec 377 ;; 378 hppa*-*-*elf* | hppa*-*-lites* | hppa*-*-sysv4* | hppa*-*-rtems* | hppa*-*-openbsd*) 379 targ_defvec=bfd_elf32_hppa_vec 380 targ_selvecs=bfd_elf32_hppa_linux_vec 381 ;; 382 383#if defined (HOST_HPPAHPUX) || defined (HOST_HPPABSD) || defined (HOST_HPPAOSF) || defined (HOST_HPPAMPEIX) 384 hppa*-*-bsd*) 385 targ_defvec=som_vec 386 targ_selvecs=bfd_elf32_hppa_vec 387 ;; 388 hppa*-*-hpux* | hppa*-*-hiux* | hppa*-*-mpeix*) 389 targ_defvec=som_vec 390 ;; 391 hppa*-*-osf*) 392 targ_defvec=som_vec 393 targ_selvecs=bfd_elf32_hppa_vec 394 ;; 395#endif /* defined (HOST_HPPAHPUX) || defined (HOST_HPPABSD) || defined (HOST_HPPAOSF) */ 396 397 i370-*-*) 398 targ_defvec=bfd_elf32_i370_vec 399 targ_selvecs="bfd_elf32_i370_vec" 400 ;; 401 i[3-7]86-*-sco3.2v5*coff) 402 targ_defvec=i386coff_vec 403 targ_selvecs=bfd_elf32_i386_vec 404 ;; 405 i[3-7]86-*-sysv4* | i[3-7]86-*-unixware* | i[3-7]86-*-solaris2* | \ 406 i[3-7]86-*-elf | i[3-7]86-*-sco3.2v5* | \ 407 i[3-7]86-*-dgux* | i[3-7]86-*-sysv5*) 408 targ_defvec=bfd_elf32_i386_vec 409 targ_selvecs=i386coff_vec 410 ;; 411 i[3-7]86-*-kaos*) 412 targ_defvec=bfd_elf32_i386_vec 413 targ_selvecs=bfd_elf32_i386_vec 414 ;; 415 i[3-7]86-*-nto*) 416 targ_defvec=bfd_elf32_i386_vec 417 targ_selvecs=i386coff_vec 418 ;; 419 i[3-7]86-*-aros*) 420 targ_defvec=bfd_elf32_i386_vec 421 ;; 422 i[3-7]86-*-chorus*) 423 targ_defvec=bfd_elf32_i386_vec 424 ;; 425 *-*-msdosdjgpp* | *-*-go32* | *-go32-rtems* ) 426 targ_defvec=go32coff_vec 427 targ_selvecs="go32stubbedcoff_vec i386aout_vec" 428 ;; 429 i[3-7]86-*-sysv* | i[3-7]86-*-isc* | i[3-7]86-*-sco* | i[3-7]86-*-coff | \ 430 i[3-7]86-*-aix*) 431 targ_defvec=i386coff_vec 432 ;; 433 i[3-7]86*-*-rtemscoff*) 434 targ_defvec=i386coff_vec 435 targ_selvecs="bfd_elf32_i386_vec i386aout_vec" 436 ;; 437 i[3-7]86-*-rtemself* | i[3-7]86-*-rtems*) 438 targ_defvec=bfd_elf32_i386_vec 439 targ_selvecs="i386coff_vec i386aout_vec" 440 ;; 441 i[3-7]86-*-darwin* | i[3-7]86-*-macos10* | i[3-7]86-*-rhapsody*) 442 targ_defvec=mach_o_le_vec 443 targ_selvecs="mach_o_le_vec mach_o_be_vec mach_o_fat_vec pef_vec pef_xlib_vec sym_vec" 444 targ_archs="bfd_i386_arch bfd_powerpc_arch bfd_rs6000_arch" 445 ;; 446 i[3-7]86-sequent-bsd*) 447 targ_defvec=i386dynix_vec 448 targ_underscore=yes 449 ;; 450 i[3-7]86-*-bsd*) 451 targ_defvec=i386bsd_vec 452 targ_underscore=yes 453 ;; 454 i[3-7]86-*-freebsdaout* | i[3-7]86-*-freebsd[12].* | \ 455 i[3-7]86-*-freebsd[12]) 456 targ_defvec=i386freebsd_vec 457 targ_selvecs=i386bsd_vec 458 targ_underscore=yes 459 ;; 460 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu) 461 targ_defvec=bfd_elf32_i386_freebsd_vec 462 targ_selvecs=i386coff_vec 463 # FreeBSD <= 4.0 supports only the old nonstandard way of ABI labelling. 464 case "${targ}" in 465 i[3-7]86-*-freebsd3* | i[3-7]86-*-freebsd4 | i[3-7]86-*-freebsd4.0*) 466 targ_cflags=-DOLD_FREEBSD_ABI_LABEL ;; 467 esac 468 ;; 469 i[3-7]86-*-netbsdelf* | i[3-7]86-*-netbsd*-gnu* | i[3-7]86-*-knetbsd*-gnu) 470 targ_defvec=bfd_elf32_i386_vec 471 targ_selvecs=i386netbsd_vec 472 targ64_selvecs=bfd_elf64_x86_64_vec 473 ;; 474 i[3-7]86-*-netbsdpe*) 475 targ_defvec=i386pe_vec 476 targ_selvecs="i386pe_vec i386pei_vec bfd_elf32_i386_vec" 477 ;; 478 i[3-7]86-*-netbsdaout* | i[3-7]86-*-netbsd* | \ 479 i[3-7]86-*-openbsd[0-2].* | i[3-7]86-*-openbsd3.[0-3]) 480 targ_defvec=i386netbsd_vec 481 targ_selvecs="bfd_elf32_i386_vec i386bsd_vec" 482 targ_underscore=yes 483 ;; 484 i[3-7]86-*-openbsd*) 485 targ_defvec=bfd_elf32_i386_vec 486 targ_selvecs=i386netbsd_vec 487 ;; 488 i[3-7]86-*-netware*) 489 targ_defvec=bfd_elf32_i386_vec 490 targ_selvecs="nlm32_i386_vec i386coff_vec i386aout_vec" 491 ;; 492 i[3-7]86-*-linux*aout*) 493 targ_defvec=i386linux_vec 494 targ_selvecs=bfd_elf32_i386_vec 495 targ_underscore=yes 496 ;; 497 i[3-7]86-*-linux-gnu*) 498 targ_defvec=bfd_elf32_i386_vec 499 targ_selvecs="i386linux_vec bfd_efi_app_ia32_vec" 500 targ64_selvecs=bfd_elf64_x86_64_vec 501 ;; 502#ifdef BFD64 503 x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu) 504 targ_defvec=bfd_elf64_x86_64_vec 505 targ_selvecs="bfd_elf32_i386_vec i386coff_vec bfd_efi_app_ia32_vec" 506 ;; 507 x86_64-*-netbsd* | x86_64-*-openbsd*) 508 targ_defvec=bfd_elf64_x86_64_vec 509 targ_selvecs="bfd_elf32_i386_vec i386netbsd_vec i386coff_vec bfd_efi_app_ia32_vec" 510 ;; 511 x86_64-*-linux-gnu*) 512 targ_defvec=bfd_elf64_x86_64_vec 513 targ_selvecs="bfd_elf32_i386_vec i386linux_vec bfd_efi_app_ia32_vec" 514 ;; 515#endif 516 i[3-7]86-*-lynxos*) 517 targ_defvec=i386lynx_coff_vec 518 targ_selvecs=i386lynx_aout_vec 519 ;; 520 i[3-7]86-*-gnu*) 521 targ_defvec=bfd_elf32_i386_vec 522 ;; 523 i[3-7]86-*-mach* | i[3-7]86-*-osf1mk*) 524 targ_defvec=i386mach3_vec 525 targ_cflags=-DSTAT_FOR_EXEC 526 targ_underscore=yes 527 ;; 528 i[3-7]86-*-os9k) 529 targ_defvec=i386os9k_vec 530 ;; 531 i[3-7]86-*-msdos*) 532 targ_defvec=i386aout_vec 533 targ_selvecs=i386msdos_vec 534 ;; 535 i[3-7]86-*-moss*) 536 targ_defvec=bfd_elf32_i386_vec 537 targ_selvecs="i386msdos_vec i386aout_vec" 538 ;; 539 i[3-7]86-*-beospe*) 540 targ_defvec=i386pe_vec 541 targ_selvecs="i386pe_vec i386pei_vec" 542 ;; 543 i[3-7]86-*-beoself* | i[3-7]86-*-beos*) 544 targ_defvec=bfd_elf32_i386_vec 545 targ_selvecs="i386pe_vec i386pei_vec" 546 ;; 547 i[3-7]86-*-interix*) 548 targ_defvec=i386pei_vec 549 targ_selvecs="i386pe_vec" 550 # FIXME: This should eventually be checked at runtime. 551 targ_cflags=-DSTRICT_PE_FORMAT 552 ;; 553 i[3-7]86-*-mingw32* | i[3-7]86-*-cygwin* | i[3-7]86-*-winnt | i[3-7]86-*-pe) 554 targ_defvec=i386pe_vec 555 targ_selvecs="i386pe_vec i386pei_vec bfd_elf32_i386_vec" 556 ;; 557 i[3-7]86-none-*) 558 targ_defvec=i386coff_vec 559 ;; 560 i[3-7]86-*-aout* | i[3-7]86*-*-vsta*) 561 targ_defvec=i386aout_vec 562 ;; 563 i[3-7]86-*-vxworks) 564 targ_defvec=bfd_elf32_i386_vec 565 targ_underscore=yes 566 ;; 567 i[3-7]86-*-chaos) 568 targ_defvec=bfd_elf32_i386_vec 569 targ_selfvecs=i386chaos_vec 570 ;; 571 572 i860-*-mach3* | i860-*-osf1* | i860-*-coff*) 573 targ_defvec=i860coff_vec 574 ;; 575 i860-stardent-sysv4* | i860-stardent-elf*) 576 targ_defvec=bfd_elf32_i860_little_vec 577 targ_selvecs="bfd_elf32_i860_vec bfd_elf32_i860_little_vec" 578 ;; 579 i860-*-sysv4* | i860-*-elf*) 580 targ_defvec=bfd_elf32_i860_vec 581 ;; 582 583 i960-*-vxworks4* | i960-*-vxworks5.0) 584 targ_defvec=b_out_vec_little_host 585 targ_selvecs="b_out_vec_big_host icoff_little_vec icoff_big_vec ieee_vec" 586 targ_underscore=yes 587 ;; 588 i960-*-vxworks5.* | i960-*-coff* | i960-*-sysv* | i960-*-rtems*) 589 targ_defvec=icoff_little_vec 590 targ_selvecs="icoff_big_vec b_out_vec_little_host b_out_vec_big_host ieee_vec" 591 targ_underscore=yes 592 ;; 593 i960-*-vxworks* | i960-*-aout* | i960-*-bout* | i960-*-nindy*) 594 targ_defvec=b_out_vec_little_host 595 targ_selvecs="b_out_vec_big_host icoff_little_vec icoff_big_vec ieee_vec" 596 targ_underscore=yes 597 ;; 598 i960-*-elf*) 599 targ_defvec=bfd_elf32_i960_vec 600 targ_selvecs="icoff_little_vec icoff_big_vec" 601 ;; 602 603 ip2k-*-elf) 604 targ_defvec=bfd_elf32_ip2k_vec 605 ;; 606 607 iq2000-*-elf) 608 targ_defvec=bfd_elf32_iq2000_vec 609 ;; 610 611 m32r*le-*-linux*) 612 targ_defvec=bfd_elf32_m32rlelin_vec 613 targ_selvecs="bfd_elf32_m32rlin_vec bfd_elf32_m32rlelin_vec" 614 ;; 615 616 m32r*-*-linux*) 617 targ_defvec=bfd_elf32_m32rlin_vec 618 targ_selvecs="bfd_elf32_m32rlin_vec bfd_elf32_m32rlelin_vec" 619 ;; 620 621 m32r*le-*-*) 622 targ_defvec=bfd_elf32_m32rle_vec 623 targ_selvecs="bfd_elf32_m32r_vec bfd_elf32_m32rle_vec" 624 ;; 625 626 m32r-*-*) 627 targ_defvec=bfd_elf32_m32r_vec 628 ;; 629 630 m68hc11-*-* | m6811-*-*) 631 targ_defvec=bfd_elf32_m68hc11_vec 632 targ_selvecs="bfd_elf32_m68hc11_vec bfd_elf32_m68hc12_vec" 633 ;; 634 m68hc12-*-* | m6812-*-*) 635 targ_defvec=bfd_elf32_m68hc12_vec 636 targ_selvecs="bfd_elf32_m68hc11_vec bfd_elf32_m68hc12_vec" 637 ;; 638 639 m68*-apollo-*) 640 targ_defvec=apollocoff_vec 641 ;; 642 m68*-bull-sysv*) 643 targ_defvec=m68kcoffun_vec 644 targ_underscore=yes 645 ;; 646 m68*-motorola-sysv*) 647 targ_defvec=m68ksysvcoff_vec 648 ;; 649 m68*-hp-bsd*) 650 targ_defvec=hp300bsd_vec 651 targ_underscore=yes 652 ;; 653 m68*-*-aout*) 654 targ_defvec=aout0_big_vec 655 # We include cisco_core_big_vec here, rather than making a separate cisco 656 # configuration, so that cisco-core.c gets routinely tested at 657 # least for compilation. 658 targ_selvecs="cisco_core_big_vec ieee_vec" 659 targ_underscore=yes 660 ;; 661 m68*-*-rtemscoff*) 662 targ_defvec=m68kcoff_vec 663 targ_selvecs="m68kcoff_vec versados_vec ieee_vec aout0_big_vec" 664 ;; 665 m68*-*-elf* | m68*-*-sysv4* | m68*-*-uclinux*) 666 targ_defvec=bfd_elf32_m68k_vec 667 targ_selvecs="m68kcoff_vec ieee_vec" 668 ;; 669 m68*-*-rtems*) 670 targ_defvec=bfd_elf32_m68k_vec 671 targ_selvecs="m68kcoff_vec versados_vec ieee_vec aout0_big_vec" 672 ;; 673 m68*-*-coff* | m68*-*-sysv*) 674 targ_defvec=m68kcoff_vec 675 targ_selvecs="m68kcoff_vec versados_vec ieee_vec" 676 ;; 677 m68*-*-hpux*) 678 targ_defvec=hp300hpux_vec 679 targ_underscore=yes 680 ;; 681 m68*-*-linux*aout*) 682 targ_defvec=m68klinux_vec 683 targ_selvecs=bfd_elf32_m68k_vec 684 targ_underscore=yes 685 ;; 686 m68*-*-linux-gnu*) 687 targ_defvec=bfd_elf32_m68k_vec 688 targ_selvecs=m68klinux_vec 689 ;; 690 m68*-*-gnu*) 691 targ_defvec=bfd_elf32_m68k_vec 692 # targ_selvecs=m68kmach3_vec 693 # targ_cflags=-DSTAT_FOR_EXEC 694 ;; 695 m68*-*-lynxos*) 696 targ_defvec=m68klynx_coff_vec 697 targ_selvecs=m68klynx_aout_vec 698 ;; 699 m68*-hp*-netbsd*) 700 targ_defvec=m68k4knetbsd_vec 701 targ_selvecs="m68knetbsd_vec hp300bsd_vec sunos_big_vec" 702 targ_underscore=yes 703 ;; 704 m68*-*-netbsdelf*) 705 targ_defvec=bfd_elf32_m68k_vec 706 targ_selvecs="m68knetbsd_vec m68k4knetbsd_vec hp300bsd_vec sunos_big_vec" 707 ;; 708 m68*-*-netbsdaout* | m68*-*-netbsd*) 709 targ_defvec=m68knetbsd_vec 710 targ_selvecs="m68k4knetbsd_vec bfd_elf32_m68k_vec hp300bsd_vec sunos_big_vec" 711 targ_underscore=yes 712 ;; 713 m68*-*-openbsd*) 714 targ_defvec=m68knetbsd_vec 715 targ_selvecs="m68k4knetbsd_vec hp300bsd_vec sunos_big_vec" 716 targ_underscore=yes 717 ;; 718 m68*-*-sunos* | m68*-*-os68k* | m68*-*-vxworks* | m68*-netx-* | \ 719 m68*-*-bsd* | m68*-*-vsta*) 720 targ_defvec=sunos_big_vec 721 targ_underscore=yes 722 ;; 723 m68*-ericsson-*) 724 targ_defvec=sunos_big_vec 725 targ_selvecs="m68kcoff_vec versados_vec tekhex_vec" 726 targ_underscore=yes 727 ;; 728 m68*-cbm-*) 729 targ_defvec=bfd_elf32_m68k_vec 730 targ_selvecs=m68kcoff_vec 731 ;; 732 m68*-apple-aux*) 733 targ_defvec=m68kaux_coff_vec 734 ;; 735 m68*-*-psos*) 736 targ_defvec=bfd_elf32_m68k_vec 737 targ_selvecs=ieee_vec 738 targ_underscore=yes 739 ;; 740 741 m88*-harris-cxux* | m88*-*-dgux* | m88*-*-sysv4*) 742 targ_defvec=bfd_elf32_m88k_vec 743 targ_selvecs=m88kbcs_vec 744 ;; 745 m88*-*-mach3*) 746 targ_defvec=m88kmach3_vec 747 targ_cflags=-DSTAT_FOR_EXEC 748 ;; 749 m88*-*-*) 750 targ_defvec=m88kbcs_vec 751 targ_underscore=yes 752 ;; 753 754 mcore-*-elf) 755 targ_defvec=bfd_elf32_mcore_big_vec 756 targ_selvecs="bfd_elf32_mcore_big_vec bfd_elf32_mcore_little_vec" 757 ;; 758 mcore-*-pe) 759 targ_defvec=mcore_pe_big_vec 760 targ_selvecs="mcore_pe_big_vec mcore_pe_little_vec mcore_pei_big_vec mcore_pei_little_vec" 761 ;; 762 763 mips*-big-*) 764 targ_defvec=ecoff_big_vec 765 targ_selvecs=ecoff_little_vec 766 ;; 767 mips*el-*-netbsd*) 768 targ_defvec=bfd_elf32_littlemips_vec 769 targ_selvecs="bfd_elf32_bigmips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec ecoff_little_vec ecoff_big_vec" 770 ;; 771 mips*-*-netbsd*) 772 targ_defvec=bfd_elf32_bigmips_vec 773 targ_selvecs="bfd_elf32_littlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec ecoff_big_vec ecoff_little_vec" 774 ;; 775 mips*-dec-* | mips*el-*-ecoff*) 776 targ_defvec=ecoff_little_vec 777 targ_selvecs=ecoff_big_vec 778 ;; 779 mips*-*-ecoff*) 780 targ_defvec=ecoff_big_vec 781 targ_selvecs=ecoff_little_vec 782 ;; 783#ifdef BFD64 784 mips*-*-irix6*) 785 targ_defvec=bfd_elf32_nbigmips_vec 786 targ_selvecs="bfd_elf32_nlittlemips_vec bfd_elf32_bigmips_vec bfd_elf32_littlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec" 787 ;; 788#endif 789 mips*-*-irix5*) 790 targ_defvec=bfd_elf32_bigmips_vec 791 targ_selvecs="bfd_elf32_littlemips_vec ecoff_big_vec ecoff_little_vec" 792 ;; 793 mips*-sgi-* | mips*-*-bsd*) 794 targ_defvec=ecoff_big_vec 795 targ_selvecs=ecoff_little_vec 796 ;; 797 mips*-*-lnews*) 798 targ_defvec=ecoff_biglittle_vec 799 targ_selvecs="ecoff_little_vec ecoff_big_vec" 800 ;; 801 mips*-*-sysv4*) 802 targ_defvec=bfd_elf32_tradbigmips_vec 803 targ_selvecs="bfd_elf32_tradlittlemips_vec ecoff_big_vec ecoff_little_vec" 804 ;; 805 mips*-*-sysv* | mips*-*-riscos*) 806 targ_defvec=ecoff_big_vec 807 targ_selvecs=ecoff_little_vec 808 ;; 809 mips*el-*-elf* | mips*el-*-rtems* | mips*el-*-vxworks* | mips*-*-chorus*) 810 targ_defvec=bfd_elf32_littlemips_vec 811 targ_selvecs="bfd_elf32_bigmips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec" 812 ;; 813 mips*-*-elf* | mips*-*-rtems* | mips*-*-vxworks | mips*-*-windiss) 814 targ_defvec=bfd_elf32_bigmips_vec 815 targ_selvecs="bfd_elf32_littlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec" 816 ;; 817 mips*-*-none) 818 targ_defvec=bfd_elf32_bigmips_vec 819 targ_selvecs="bfd_elf32_littlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec" 820 ;; 821 mips*el-*-openbsd*) 822 targ_defvec=bfd_elf32_littlemips_vec 823 targ_selvecs="bfd_elf32_bigmips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec ecoff_little_vec ecoff_big_vec" 824 ;; 825 mips*-*-openbsd*) 826 targ_defvec=bfd_elf32_bigmips_vec 827 targ_selvecs="bfd_elf32_littlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec ecoff_big_vec ecoff_little_vec" 828 ;; 829#ifdef BFD64 830 mips64*el-*-linux*) 831 targ_defvec=bfd_elf32_ntradlittlemips_vec 832 targ_selvecs="bfd_elf32_ntradbigmips_vec bfd_elf32_tradlittlemips_vec bfd_elf32_tradbigmips_vec bfd_elf64_tradlittlemips_vec bfd_elf64_tradbigmips_vec" 833 ;; 834 mips64*-*-linux*) 835 targ_defvec=bfd_elf32_ntradbigmips_vec 836 targ_selvecs="bfd_elf32_ntradlittlemips_vec bfd_elf32_tradbigmips_vec bfd_elf32_tradlittlemips_vec bfd_elf64_tradbigmips_vec bfd_elf64_tradlittlemips_vec" 837 ;; 838#endif 839 mips*el-*-linux*) 840 targ_defvec=bfd_elf32_tradlittlemips_vec 841 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" 842 want64=true 843 ;; 844 mips*-*-linux*) 845 targ_defvec=bfd_elf32_tradbigmips_vec 846 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" 847 want64=true 848 ;; 849#ifdef BFD64 850 mmix-*-*) 851 targ_defvec=bfd_elf64_mmix_vec 852 targ_selvecs=bfd_mmo_vec 853 ;; 854#endif 855 mn10200-*-*) 856 targ_defvec=bfd_elf32_mn10200_vec 857 ;; 858 859 mn10300-*-*) 860 targ_defvec=bfd_elf32_mn10300_vec 861 targ_underscore=yes 862 ;; 863 864 msp430-*-*) 865 targ_defvec=bfd_elf32_msp430_vec 866 ;; 867 868 ns32k-pc532-mach* | ns32k-pc532-ux*) 869 targ_defvec=pc532machaout_vec 870 targ_underscore=yes 871 ;; 872 ns32k-*-netbsd* | ns32k-*-lites* | ns32k-*-openbsd*) 873 targ_defvec=pc532netbsd_vec 874 targ_underscore=yes 875 ;; 876 877 openrisc-*-elf) 878 targ_defvec=bfd_elf32_openrisc_vec 879 ;; 880 881 or32-*-coff) 882 targ_defvec=or32coff_big_vec 883 targ_underscore=yes 884 ;; 885 886 or32-*-elf | or32-*-rtems*) 887 targ_defvec=bfd_elf32_or32_big_vec 888 ;; 889 890 pdp11-*-*) 891 targ_defvec=pdp11_aout_vec 892 targ_underscore=yes 893 ;; 894 895 pj-*-*) 896 targ_defvec=bfd_elf32_pj_vec 897 targ_selvecs="bfd_elf32_pj_vec bfd_elf32_pjl_vec" 898 ;; 899 900 pjl-*-*) 901 targ_defvec=bfd_elf32_pjl_vec 902 targ_selvecs="bfd_elf32_pjl_vec bfd_elf32_pj_vec bfd_elf32_i386_vec" 903 ;; 904 905 powerpc-*-aix5.[01]) 906 targ_defvec=rs6000coff_vec 907 targ_selvecs="aix5coff64_vec" 908 want64=true 909 ;; 910#ifdef BFD64 911 powerpc64-*-aix5.[01]) 912 targ_defvec=aix5coff64_vec 913 targ_selvecs="rs6000coff_vec" 914 want64=true 915 ;; 916#endif 917 powerpc-*-aix5*) 918 targ_cflags=-DAIX_WEAK_SUPPORT 919 targ_defvec=rs6000coff_vec 920 targ_selvecs="aix5coff64_vec" 921 want64=true 922 ;; 923#ifdef BFD64 924 powerpc64-*-aix5*) 925 targ_cflags=-DAIX_WEAK_SUPPORT 926 targ_defvec=aix5coff64_vec 927 targ_selvecs="rs6000coff_vec" 928 want64=true 929 ;; 930#endif 931 932 powerpc-*-aix* | powerpc-*-beos* | rs6000-*-*) 933 targ_defvec=rs6000coff_vec 934 targ64_selvecs=rs6000coff64_vec 935 case "${targ}" in 936 *-*-aix4.[3456789]* | *-*-aix[56789]*) 937 want64=true;; 938 *) 939 targ_cflags=-DSMALL_ARCHIVE;; 940 esac 941 ;; 942#ifdef BFD64 943 powerpc64-*-aix*) 944 targ_defvec=rs6000coff64_vec 945 targ_selvecs=rs6000coff_vec 946 ;; 947 powerpc64-*-elf* | powerpc-*-elf64* | powerpc64-*-linux* | \ 948 powerpc64-*-*bsd*) 949 targ_defvec=bfd_elf64_powerpc_vec 950 targ_selvecs="bfd_elf64_powerpcle_vec bfd_elf32_powerpc_vec bfd_elf32_powerpcle_vec rs6000coff_vec rs6000coff64_vec" 951 ;; 952 powerpc64le-*-elf* | powerpcle-*-elf64*) 953 targ_defvec=bfd_elf64_powerpcle_vec 954 targ_selvecs="bfd_elf64_powerpc_vec bfd_elf32_powerpcle_vec bfd_elf32_powerpc_vec rs6000coff_vec rs6000coff64_vec" 955 ;; 956#endif 957 powerpc-*-*bsd* | powerpc-*-elf* | powerpc-*-sysv4* | powerpc-*-eabi* | \ 958 powerpc-*-solaris2* | powerpc-*-linux-gnu* | powerpc-*-rtems* | \ 959 powerpc-*-chorus* | powerpc-*-vxworks* | powerpc-*-windiss*) 960 targ_defvec=bfd_elf32_powerpc_vec 961 targ_selvecs="rs6000coff_vec bfd_elf32_powerpcle_vec ppcboot_vec" 962 targ64_selvecs="bfd_elf64_powerpc_vec bfd_elf64_powerpcle_vec" 963 ;; 964 powerpc-*-kaos*) 965 targ_defvec=bfd_elf32_powerpc_vec 966 targ_selvecs="bfd_elf32_powerpcle_vec ppcboot_vec" 967 targ64_selvecs="bfd_elf64_powerpc_vec bfd_elf64_powerpcle_vec" 968 ;; 969 powerpc-*-darwin* | powerpc-*-macos10* | powerpc-*-rhapsody*) 970 targ_defvec=mach_o_be_vec 971 targ_selvecs="mach_o_be_vec mach_o_le_vec mach_o_fat_vec pef_vec pef_xlib_vec sym_vec" 972 targ_archs="bfd_powerpc_arch bfd_rs6000_arch bfd_i386_arch" 973 ;; 974 powerpc-*-macos* | powerpc-*-mpw*) 975 targ_defvec=pmac_xcoff_vec 976 ;; 977 powerpc-*-netware*) 978 targ_defvec=bfd_elf32_powerpc_vec 979 targ_selvecs="nlm32_powerpc_vec rs6000coff_vec" 980 ;; 981 powerpc-*-nto*) 982 targ_defvec=bfd_elf32_powerpc_vec 983 targ_selvecs="rs6000coff_vec bfd_elf32_powerpcle_vec ppcboot_vec" 984 ;; 985 powerpcle-*-nto*) 986 targ_defvec=bfd_elf32_powerpcle_vec 987 targ_selvecs="rs6000coff_vec bfd_elf32_powerpc_vec ppcboot_vec" 988 ;; 989 powerpcle-*-elf* | powerpcle-*-sysv4* | powerpcle-*-eabi* | \ 990 powerpcle-*-solaris2* | powerpcle-*-linux-gnu* | powerpcle-*-vxworks* |\ 991 powerpcle-*-rtems*) 992 targ_defvec=bfd_elf32_powerpcle_vec 993 targ_selvecs="rs6000coff_vec bfd_elf32_powerpc_vec ppcboot_vec" 994 targ64_selvecs="bfd_elf64_powerpc_vec bfd_elf64_powerpcle_vec" 995 ;; 996 powerpcle-*-pe | powerpcle-*-winnt* | powerpcle-*-cygwin*) 997 targ_defvec=bfd_powerpcle_pe_vec 998 targ_selvecs="bfd_powerpcle_pei_vec bfd_powerpc_pei_vec bfd_powerpcle_pe_vec bfd_powerpc_pe_vec" 999 ;; 1000 1001 s390-*-linux*) 1002 targ_defvec=bfd_elf32_s390_vec 1003 targ64_selvecs=bfd_elf64_s390_vec 1004 ;; 1005#ifdef BFD64 1006 s390x-*-linux*) 1007 targ_defvec=bfd_elf64_s390_vec 1008 targ_selvecs=bfd_elf32_s390_vec 1009 ;; 1010#endif 1011 1012#ifdef BFD64 1013 sh64l*-*-elf*) 1014 targ_defvec=bfd_elf32_sh64l_vec 1015 targ_selvecs="bfd_elf32_sh64_vec bfd_elf64_sh64l_vec bfd_elf64_sh64_vec bfd_elf32_shl_vec bfd_elf32_sh_vec" 1016 targ_underscore=yes 1017 ;; 1018 sh64-*-elf*) 1019 targ_defvec=bfd_elf32_sh64_vec 1020 targ_selvecs="bfd_elf32_sh64l_vec bfd_elf64_sh64_vec bfd_elf64_sh64l_vec bfd_elf32_sh_vec bfd_elf32_shl_vec" 1021 targ_underscore=yes 1022 ;; 1023 sh64eb-*-linux*) 1024 targ_defvec=bfd_elf32_sh64blin_vec 1025 targ_selvecs="bfd_elf32_sh64lin_vec bfd_elf64_sh64blin_vec bfd_elf64_sh64lin_vec bfd_elf32_shblin_vec bfd_elf32_shlin_vec" 1026 ;; 1027 sh64-*-linux*) 1028 targ_defvec=bfd_elf32_sh64lin_vec 1029 targ_selvecs="bfd_elf32_sh64blin_vec bfd_elf64_sh64lin_vec bfd_elf64_sh64blin_vec bfd_elf32_shlin_vec bfd_elf32_shblin_vec" 1030 ;; 1031#endif /* BFD64 */ 1032 1033 sh-*-linux*) 1034 targ_defvec=bfd_elf32_shblin_vec 1035 targ_selvecs=bfd_elf32_shlin_vec 1036#ifdef BFD64 1037 targ_selvecs="${targ_selvecs} bfd_elf32_sh64lin_vec bfd_elf32_sh64blin_vec bfd_elf64_sh64lin_vec bfd_elf64_sh64blin_vec" 1038#endif 1039 ;; 1040 sh*eb-*-linux*) 1041 targ_defvec=bfd_elf32_shblin_vec 1042 targ_selvecs=bfd_elf32_shlin_vec 1043 ;; 1044 sh*-*-linux*) 1045 targ_defvec=bfd_elf32_shlin_vec 1046 targ_selvecs=bfd_elf32_shblin_vec 1047 ;; 1048 1049#ifdef BFD64 1050 sh5le-*-netbsd*) 1051 targ_defvec=bfd_elf32_sh64lnbsd_vec 1052 targ_selvecs="bfd_elf32_sh64nbsd_vec bfd_elf64_sh64lnbsd_vec bfd_elf64_sh64nbsd_vec" 1053 ;; 1054 sh5-*-netbsd*) 1055 targ_defvec=bfd_elf32_sh64nbsd_vec 1056 targ_selvecs="bfd_elf32_sh64lnbsd_vec bfd_elf64_sh64lnbsd_vec bfd_elf64_sh64nbsd_vec" 1057 ;; 1058 1059 sh64le-*-netbsd*) 1060 targ_defvec=bfd_elf64_sh64lnbsd_vec 1061 targ_selvecs="bfd_elf64_sh64nbsd_vec bfd_elf32_sh64lnbsd_vec bfd_elf32_sh64nbsd_vec" 1062 ;; 1063 sh64-*-netbsd*) 1064 targ_defvec=bfd_elf64_sh64nbsd_vec 1065 targ_selvecs="bfd_elf64_sh64lnbsd_vec bfd_elf32_sh64lnbsd_vec bfd_elf32_sh64nbsd_vec" 1066 ;; 1067#endif 1068 1069 sh*l*-*-netbsdelf*) 1070 targ_defvec=bfd_elf32_shlnbsd_vec 1071 targ_selvecs="bfd_elf32_shnbsd_vec shcoff_vec shlcoff_vec" 1072#ifdef BFD64 1073 targ_selvecs="${targ_selvecs} bfd_elf32_sh64lnbsd_vec bfd_elf32_sh64nbsd_vec bfd_elf64_sh64lnbsd_vec bfd_elf64_sh64nbsd_vec" 1074#endif 1075 ;; 1076 sh-*-netbsdelf*) 1077 targ_defvec=bfd_elf32_shnbsd_vec 1078 targ_selvecs="bfd_elf32_shlnbsd_vec shcoff_vec shlcoff_vec" 1079#ifdef BFD64 1080 targ_selvecs="${targ_selvecs} bfd_elf32_sh64lnbsd_vec bfd_elf32_sh64nbsd_vec bfd_elf64_sh64lnbsd_vec bfd_elf64_sh64nbsd_vec" 1081#endif 1082 ;; 1083 sh*-*-netbsdelf*) 1084 targ_defvec=bfd_elf32_shnbsd_vec 1085 targ_selvecs="bfd_elf32_shlnbsd_vec shcoff_vec shlcoff_vec" 1086 ;; 1087 shl*-*-elf* | sh[1234]l*-*-elf* | sh3el*-*-elf* | shl*-*-kaos*) 1088 targ_defvec=bfd_elf32_shl_vec 1089 targ_selvecs="bfd_elf32_sh_vec shlcoff_vec shcoff_vec shlcoff_small_vec shcoff_small_vec" 1090#ifdef BFD64 1091 targ_selvecs="${targ_selvecs} bfd_elf32_sh64_vec bfd_elf32_sh64l_vec bfd_elf64_sh64_vec bfd_elf64_sh64l_vec" 1092#endif 1093 targ_underscore=yes 1094 ;; 1095 sh-*-rtemscoff*) 1096 targ_defvec=shcoff_vec 1097 targ_selvecs="shcoff_vec shlcoff_vec shcoff_small_vec shlcoff_small_vec" 1098 targ_underscore=yes 1099 ;; 1100 sh-*-elf* | sh[1234]*-elf* | sh-*-rtems* | sh-*-kaos*) 1101 targ_defvec=bfd_elf32_sh_vec 1102 targ_selvecs="bfd_elf32_shl_vec shcoff_vec shlcoff_vec shcoff_small_vec shlcoff_small_vec" 1103#ifdef BFD64 1104 targ_selvecs="${targ_selvecs} bfd_elf32_sh64_vec bfd_elf32_sh64l_vec bfd_elf64_sh64_vec bfd_elf64_sh64l_vec" 1105#endif 1106 targ_underscore=yes 1107 ;; 1108 sh-*-nto*) 1109 targ_defvec=bfd_elf32_sh_vec 1110 targ_selvecs="bfd_elf32_shl_vec shcoff_vec shlcoff_vec shcoff_small_vec shlcoff_small_vec" 1111 targ_underscore=yes 1112 ;; 1113 sh-*-pe) 1114 targ_defvec=shlpe_vec 1115 targ_selvecs="shlpe_vec shlpei_vec" 1116 targ_underscore=yes 1117 ;; 1118 sh-*-vxworks) 1119 targ_defvec=bfd_elf32_sh_vec 1120 targ_selvecs="bfd_elf32_shl_vec" 1121 # FIXME None of the following are actually used on this target, but 1122 # they're necessary for coff-sh.c (which is unconditionally used) to be 1123 # compiled correctly. 1124 targ_selvecs="$targ_selvecs shcoff_vec shlcoff_vec shcoff_small_vec shlcoff_small_vec" 1125 ;; 1126 sh-*-*) 1127 targ_defvec=shcoff_vec 1128 targ_selvecs="shcoff_vec shlcoff_vec shcoff_small_vec shlcoff_small_vec" 1129 targ_underscore=yes 1130 ;; 1131 1132 sparclet-*-aout*) 1133 targ_defvec=sunos_big_vec 1134 targ_selvecs=sparcle_aout_vec 1135 targ_underscore=yes 1136 ;; 1137 sparc86x-*-aout*) 1138 targ_defvec=sunos_big_vec 1139 targ_underscore=yes 1140 ;; 1141 sparclite-*-elf* | sparc86x-*-elf*) 1142 targ_defvec=bfd_elf32_sparc_vec 1143 ;; 1144 sparc*-*-chorus*) 1145 targ_defvec=bfd_elf32_sparc_vec 1146 ;; 1147 sparc-*-linux*aout*) 1148 targ_defvec=sparclinux_vec 1149 targ_selvecs="bfd_elf32_sparc_vec sunos_big_vec" 1150 targ_underscore=yes 1151 ;; 1152 sparc-*-linux-gnu*) 1153 targ_defvec=bfd_elf32_sparc_vec 1154 targ_selvecs="sparclinux_vec bfd_elf64_sparc_vec sunos_big_vec" 1155 ;; 1156 sparc-*-lynxos*) 1157 targ_defvec=sparclynx_coff_vec 1158 targ_selvecs=sparclynx_aout_vec 1159 ;; 1160 sparc-*-netbsdelf*) 1161 targ_defvec=bfd_elf32_sparc_vec 1162 targ_selvecs=sparcnetbsd_vec 1163 ;; 1164 sparc-*-netbsdaout* | sparc-*-netbsd*) 1165 targ_defvec=sparcnetbsd_vec 1166 targ_selvecs=bfd_elf32_sparc_vec 1167 targ_underscore=yes 1168 ;; 1169 sparc-*-openbsd[0-2].* | sparc-*-openbsd3.[0-1]) 1170 targ_defvec=sparcnetbsd_vec 1171 targ_underscore=yes 1172 ;; 1173 sparc-*-openbsd*) 1174 targ_defvec=bfd_elf32_sparc_vec 1175 targ_selvecs=sparcnetbsd_vec 1176 ;; 1177 sparc-*-elf* | sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*) 1178 targ_defvec=bfd_elf32_sparc_vec 1179 targ_selvecs=sunos_big_vec 1180 ;; 1181#ifdef BFD64 1182 sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*) 1183 targ_defvec=bfd_elf32_sparc_vec 1184 targ_selvecs="bfd_elf64_sparc_vec sunos_big_vec" 1185 ;; 1186#endif 1187 sparc-*-sysv4*) 1188 targ_defvec=bfd_elf32_sparc_vec 1189 ;; 1190 sparc-*-netware*) 1191 targ_defvec=bfd_elf32_sparc_vec 1192 targ_selvecs="nlm32_sparc_vec sunos_big_vec" 1193 ;; 1194#ifdef BFD64 1195 sparc64-*-aout*) 1196 targ_defvec=sunos_big_vec 1197 targ_underscore=yes 1198 ;; 1199 sparc64-*-linux-gnu*) 1200 targ_defvec=bfd_elf64_sparc_vec 1201 targ_selvecs="bfd_elf32_sparc_vec sparclinux_vec sunos_big_vec" 1202 ;; 1203 sparc64-*-elf*) 1204 targ_defvec=bfd_elf64_sparc_vec 1205 targ_selvecs=bfd_elf32_sparc_vec 1206 ;; 1207#endif /* BFD64 */ 1208 sparc*-*-coff*) 1209 targ_defvec=sparccoff_vec 1210 ;; 1211 sparc*-*-rtemsaout*) 1212 targ_defvec=sunos_big_vec 1213 targ_selvecs="bfd_elf32_sparc_vec sparccoff_vec" 1214 targ_underscore=yes 1215 ;; 1216 sparc*-*-rtems* | sparc*-*-rtemself*) 1217 targ_defvec=bfd_elf32_sparc_vec 1218 targ_selvecs="sunos_big_vec sparccoff_vec" 1219 ;; 1220 sparc*-*-* | sparc*-*-rtems*) 1221 targ_defvec=sunos_big_vec 1222 targ_underscore=yes 1223 ;; 1224 1225#if HAVE_host_aout_vec 1226 tahoe-*-*) 1227 targ_defvec=host_aout_vec 1228 targ_underscore=yes 1229 ;; 1230#endif 1231 1232 tic80*-*-*) 1233 targ_defvec=tic80coff_vec 1234 targ_underscore=yes 1235 ;; 1236 1237 v850-*-*) 1238 targ_defvec=bfd_elf32_v850_vec 1239 ;; 1240 v850e-*-*) 1241 targ_defvec=bfd_elf32_v850_vec 1242 ;; 1243 v850ea-*-*) 1244 targ_defvec=bfd_elf32_v850_vec 1245 ;; 1246 1247 vax-*-netbsdelf*) 1248 targ_defvec=bfd_elf32_vax_vec 1249 targ_selvecs="vaxnetbsd_vec vax1knetbsd_vec" 1250 ;; 1251 1252 vax-*-netbsdaout* | vax-*-netbsd*) 1253 targ_defvec=vaxnetbsd_vec 1254 targ_selvecs="bfd_elf32_vax_vec vax1knetbsd_vec" 1255 targ_underscore=yes 1256 ;; 1257 1258 vax-*-bsd* | vax-*-ultrix*) 1259 targ_defvec=vaxbsd_vec 1260 targ_underscore=yes 1261 ;; 1262 1263 vax-*-openbsd*) 1264 targ_defvec=vaxnetbsd_vec 1265 targ_underscore=yes 1266 ;; 1267 1268 vax-*-linux-gnu*) 1269 targ_defvec=bfd_elf32_vax_vec 1270 ;; 1271 1272 vax*-*-*vms*) 1273 targ_defvec=vms_vax_vec 1274 ;; 1275 1276 we32k-*-*) 1277 targ_defvec=we32kcoff_vec 1278 ;; 1279 1280 w65-*-*) 1281 targ_defvec=w65_vec 1282 ;; 1283 1284 xstormy16-*-elf) 1285 targ_defvec=bfd_elf32_xstormy16_vec 1286 ;; 1287 1288 xtensa-*-*) 1289 targ_defvec=bfd_elf32_xtensa_le_vec 1290 targ_selvecs=bfd_elf32_xtensa_be_vec 1291 ;; 1292 1293 z8k*-*-*) 1294 targ_defvec=z8kcoff_vec 1295 targ_underscore=yes 1296 ;; 1297 1298 *-*-ieee*) 1299 targ_defvec=ieee_vec 1300 ;; 1301 1302 *-adobe-*) 1303 targ_defvec=a_out_adobe_vec 1304 targ_underscore=yes 1305 ;; 1306 1307 *-sony-*) 1308 targ_defvec=newsos3_vec 1309 targ_underscore=yes 1310 ;; 1311 1312 *-tandem-*) 1313 targ_defvec=m68kcoff_vec 1314 targ_selvecs=ieee_vec 1315 ;; 1316# END OF targmatch.h 1317 *) 1318 echo 1>&2 "*** BFD does not support target ${targ}." 1319 echo 1>&2 "*** Look in bfd/config.bfd for supported targets." 1320 exit 1 1321 ;; 1322esac 1323 1324case "${host64}${want64}" in 1325 *true*) 1326 targ_selvecs="${targ_selvecs} ${targ64_selvecs}" 1327 ;; 1328esac 1329 1330# If we support any ELF target, then automatically add support for the 1331# generic ELF targets. This permits an objdump with some ELF support 1332# to be used on an arbitrary ELF file for anything other than 1333# relocation information. 1334case "${targ_defvec} ${targ_selvecs}" in 1335 *bfd_elf64* | *bfd_elf32_n*mips*) 1336 targ_selvecs="${targ_selvecs} bfd_elf64_little_generic_vec bfd_elf64_big_generic_vec bfd_elf32_little_generic_vec bfd_elf32_big_generic_vec" 1337 ;; 1338 *bfd_elf32*) 1339 targ_selvecs="${targ_selvecs} bfd_elf32_little_generic_vec bfd_elf32_big_generic_vec" 1340 ;; 1341esac 1342