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