From: Jan Beulich Date: Fri, 20 Mar 2026 13:07:53 +0000 (+0100) Subject: bfd: re-order main case command's entries in config.bfd X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ccb02527b552fcfbbb1e36239665281fe31828a7;p=thirdparty%2Fbinutils-gdb.git bfd: re-order main case command's entries in config.bfd They once were meant to be at least roughly alphabetically sorted, at least as far as the first component of the triplet goes. --- diff --git a/bfd/config.bfd b/bfd/config.bfd index 627963e9b35..7cb267a3623 100644 --- a/bfd/config.bfd +++ b/bfd/config.bfd @@ -329,31 +329,19 @@ case "${targ}" in targ_defvec=alpha_ecoff_le_vec want64=true ;; - amdgcn-*-*) - targ_defvec=amdgcn_elf64_le_vec - want64=true - ;; - ia64*-*-freebsd* | ia64*-*-netbsd* | ia64*-*-linux-* | ia64*-*-elf* | ia64*-*-kfreebsd*-gnu) - targ_defvec=ia64_elf64_le_vec - targ_selvecs="ia64_elf64_be_vec ia64_pei_vec" - want64=true - ;; - ia64*-*-hpux*) - targ_defvec=ia64_elf32_hpux_be_vec - targ_selvecs="ia64_elf64_hpux_be_vec" - want64=true - ;; - ia64*-*-*vms*) - targ_defvec=ia64_elf64_vms_vec - targ_selvecs=alpha_vms_lib_txt_vec - want64=true - ;; #endif /* BFD64 */ am33_2.0-*-linux*) targ_defvec=am33_elf32_linux_vec ;; +#ifdef BFD64 + amdgcn-*-*) + targ_defvec=amdgcn_elf64_le_vec + want64=true + ;; +#endif /* BFD64 */ + arc*eb-*-elf* | arc*eb-*-linux*) targ_defvec=arc_elf32_be_vec targ_selvecs=arc_elf32_le_vec @@ -438,6 +426,14 @@ case "${targ}" in targ_underscore=yes ;; +#ifdef BFD64 + bpf-*-none) + targ_defvec=bpf_elf64_le_vec + targ_selvecs=bpf_elf64_be_vec + targ_underscore=yes + ;; +#endif + c30-*-*coff* | tic30-*-*coff*) targ_defvec=tic30_coff_vec ;; @@ -493,22 +489,14 @@ case "${targ}" in targ_defvec=d10v_elf32_vec ;; - dlx-*-elf*) - targ_defvec=dlx_elf32_be_vec - targ_selvecs="dlx_elf32_be_vec" - ;; - d30v-*-*) targ_defvec=d30v_elf32_vec ;; -#ifdef BFD64 - bpf-*-none) - targ_defvec=bpf_elf64_le_vec - targ_selvecs=bpf_elf64_be_vec - targ_underscore=yes + dlx-*-elf*) + targ_defvec=dlx_elf32_be_vec + targ_selvecs="dlx_elf32_be_vec" ;; -#endif epiphany-*-*) targ_defvec=epiphany_elf32_vec @@ -533,13 +521,8 @@ case "${targ}" in targ_selvecs=frv_elf32_vec ;; - moxie-*-elf | moxie-*-rtems* | moxie-*-uclinux) - targ_defvec=moxie_elf32_be_vec - targ_selvecs=moxie_elf32_le_vec - ;; - - moxie-*-moxiebox*) - targ_defvec=moxie_elf32_le_vec + ft32*-*-*) + targ_defvec=ft32_elf32_vec ;; h8300*-*-elf | h8300*-*-rtems*) @@ -666,78 +649,6 @@ case "${targ}" in targ_selvecs= targ64_selvecs=x86_64_elf64_vec ;; -#ifdef BFD64 - x86_64-*-darwin*) - targ_defvec=x86_64_mach_o_vec - targ_selvecs="i386_mach_o_vec mach_o_le_vec mach_o_be_vec mach_o_fat_vec pef_vec pef_xlib_vec sym_vec" - targ_archs="$targ_archs bfd_powerpc_arch bfd_rs6000_arch" - want64=true - ;; - x86_64-*-dicos*) - targ_defvec=x86_64_elf64_vec - targ_selvecs="i386_elf32_vec iamcu_elf32_vec" - want64=true - ;; - x86_64-*-elf* | x86_64-*-rtems* | x86_64-*-fuchsia | x86_64-*-genode*) - targ_defvec=x86_64_elf64_vec - targ_selvecs="i386_elf32_vec iamcu_elf32_vec x86_64_elf32_vec" - case "${targ}" in - x86_64-*-rtems*) - targ_selvecs="${targ_selvecs} x86_64_pe_vec x86_64_pei_vec" - esac - want64=true - ;; - x86_64-*-dragonfly*) - targ_defvec=x86_64_elf64_vec - targ_selvecs="i386_elf32_vec iamcu_elf32_vec" - want64=true - ;; - x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu) - targ_defvec=x86_64_elf64_fbsd_vec - targ_selvecs="i386_elf32_fbsd_vec iamcu_elf32_vec i386_coff_vec i386_pei_vec x86_64_pe_vec x86_64_pei_vec i386_elf32_vec x86_64_elf64_vec" - want64=true - ;; - x86_64-*-haiku*) - targ_defvec=x86_64_elf64_vec - targ_selvecs="i386_elf32_vec" - want64=true - ;; - x86_64-*-netbsd* | x86_64-*-openbsd*) - targ_defvec=x86_64_elf64_vec - targ_selvecs="i386_elf32_vec iamcu_elf32_vec i386_coff_vec i386_pei_vec x86_64_pe_vec x86_64_pei_vec" - want64=true - ;; - x86_64-*-linux-*) - targ_defvec=x86_64_elf64_vec - targ_selvecs="i386_elf32_vec iamcu_elf32_vec x86_64_elf32_vec i386_pei_vec x86_64_pe_vec x86_64_pei_vec" - want64=true - ;; - x86_64-*-mingw* | x86_64-*-pe | x86_64-*-pep | x86_64-*-cygwin) - targ_defvec=x86_64_pe_vec - targ_selvecs="x86_64_pe_vec x86_64_pei_vec x86_64_pe_big_vec x86_64_elf64_vec i386_pe_vec i386_pe_big_vec i386_pei_vec i386_elf32_vec iamcu_elf32_vec pdb_vec" - want64=true - targ_underscore=no - ;; - x86_64-*-rdos*) - targ_defvec=x86_64_elf64_vec - want64=true - ;; - x86_64-*-redox*) - targ_defvec=x86_64_elf64_vec - targ_selvecs=i386_elf32_vec - want64=true - ;; - x86_64-*-solaris2*) - targ_defvec=x86_64_elf64_sol2_vec - targ_selvecs="i386_elf32_sol2_vec x86_64_elf64_vec i386_elf32_vec" - want64=true - ;; - x86_64-*-gnu*) - targ_defvec=x86_64_elf64_vec - targ_selvecs="i386_elf32_vec iamcu_elf32_vec x86_64_elf32_vec" - want64=true - ;; -#endif i[3-7]86-*-lynxos*) targ_defvec=i386_elf32_vec targ_selvecs="iamcu_elf32_vec i386_coff_lynx_vec i386_aout_lynx_vec" @@ -791,6 +702,24 @@ case "${targ}" in targ_selvecs="i386_msdos_vec i386_aout_vec" ;; +#ifdef BFD64 + ia64*-*-freebsd* | ia64*-*-netbsd* | ia64*-*-linux-* | ia64*-*-elf* | ia64*-*-kfreebsd*-gnu) + targ_defvec=ia64_elf64_le_vec + targ_selvecs="ia64_elf64_be_vec ia64_pei_vec" + want64=true + ;; + ia64*-*-hpux*) + targ_defvec=ia64_elf32_hpux_be_vec + targ_selvecs="ia64_elf64_hpux_be_vec" + want64=true + ;; + ia64*-*-*vms*) + targ_defvec=ia64_elf64_vms_vec + targ_selvecs=alpha_vms_lib_txt_vec + want64=true + ;; +#endif /* BFD64 */ + ip2k-*-elf) targ_defvec=ip2k_elf32_vec targ_underscore=yes @@ -824,6 +753,20 @@ case "${targ}" in targ_selvecs=lm32_elf32_vec ;; +#ifdef BFD64 + loongarch32-*) + targ_defvec=loongarch_elf32_vec + targ_selvecs="loongarch_elf32_vec loongarch_elf64_vec loongarch64_pei_vec" + want64=true + ;; + + loongarch64-*) + targ_defvec=loongarch_elf64_vec + targ_selvecs="loongarch_elf32_vec loongarch_elf64_vec loongarch64_pei_vec" + want64=true + ;; +#endif + m32c-*-elf) targ_defvec=m32c_elf32_vec targ_underscore=yes @@ -861,9 +804,6 @@ case "${targ}" in targ_defvec=m68k_elf32_vec ;; - s12z-*-*) - targ_defvec=s12z_elf32_vec - ;; mcore-*-elf) targ_defvec=mcore_elf32_be_vec targ_selvecs="mcore_elf32_be_vec mcore_elf32_le_vec" @@ -1016,6 +956,7 @@ case "${targ}" in want64=true ;; #endif + mn10200-*-*) targ_defvec=mn10200_elf32_vec targ_underscore=yes @@ -1026,8 +967,13 @@ case "${targ}" in targ_underscore=yes ;; - mt-*-elf) - targ_defvec=mt_elf32_vec + moxie-*-elf | moxie-*-rtems* | moxie-*-uclinux) + targ_defvec=moxie_elf32_be_vec + targ_selvecs=moxie_elf32_le_vec + ;; + + moxie-*-moxiebox*) + targ_defvec=moxie_elf32_le_vec ;; msp430-*-*) @@ -1035,6 +981,10 @@ case "${targ}" in targ_selvecs=msp430_elf32_ti_vec ;; + mt-*-elf) + targ_defvec=mt_elf32_vec + ;; + nds32*le-*-linux*) targ_defvec=nds32_elf32_linux_le_vec targ_selvecs=nds32_elf32_linux_be_vec @@ -1248,6 +1198,10 @@ case "${targ}" in targ_selvecs="rx_elf32_linux_le_vec" ;; + s12z-*-*) + targ_defvec=s12z_elf32_vec + ;; + s390-*-linux*) targ_defvec=s390_elf32_vec targ64_selvecs=s390_elf64_vec @@ -1409,10 +1363,6 @@ case "${targ}" in targ_defvec=tilepro_elf32_vec ;; - ft32*-*-*) - targ_defvec=ft32_elf32_vec - ;; - v850*-*-*) targ_defvec=v850_elf32_vec targ_selvecs="v800_elf32_vec" @@ -1448,6 +1398,79 @@ case "${targ}" in targ_selvecs="wasm_vec" ;; +#ifdef BFD64 + x86_64-*-darwin*) + targ_defvec=x86_64_mach_o_vec + targ_selvecs="i386_mach_o_vec mach_o_le_vec mach_o_be_vec mach_o_fat_vec pef_vec pef_xlib_vec sym_vec" + targ_archs="$targ_archs bfd_powerpc_arch bfd_rs6000_arch" + want64=true + ;; + x86_64-*-dicos*) + targ_defvec=x86_64_elf64_vec + targ_selvecs="i386_elf32_vec iamcu_elf32_vec" + want64=true + ;; + x86_64-*-elf* | x86_64-*-rtems* | x86_64-*-fuchsia | x86_64-*-genode*) + targ_defvec=x86_64_elf64_vec + targ_selvecs="i386_elf32_vec iamcu_elf32_vec x86_64_elf32_vec" + case "${targ}" in + x86_64-*-rtems*) + targ_selvecs="${targ_selvecs} x86_64_pe_vec x86_64_pei_vec" + esac + want64=true + ;; + x86_64-*-dragonfly*) + targ_defvec=x86_64_elf64_vec + targ_selvecs="i386_elf32_vec iamcu_elf32_vec" + want64=true + ;; + x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu) + targ_defvec=x86_64_elf64_fbsd_vec + targ_selvecs="i386_elf32_fbsd_vec iamcu_elf32_vec i386_coff_vec i386_pei_vec x86_64_pe_vec x86_64_pei_vec i386_elf32_vec x86_64_elf64_vec" + want64=true + ;; + x86_64-*-haiku*) + targ_defvec=x86_64_elf64_vec + targ_selvecs="i386_elf32_vec" + want64=true + ;; + x86_64-*-netbsd* | x86_64-*-openbsd*) + targ_defvec=x86_64_elf64_vec + targ_selvecs="i386_elf32_vec iamcu_elf32_vec i386_coff_vec i386_pei_vec x86_64_pe_vec x86_64_pei_vec" + want64=true + ;; + x86_64-*-linux-*) + targ_defvec=x86_64_elf64_vec + targ_selvecs="i386_elf32_vec iamcu_elf32_vec x86_64_elf32_vec i386_pei_vec x86_64_pe_vec x86_64_pei_vec" + want64=true + ;; + x86_64-*-mingw* | x86_64-*-pe | x86_64-*-pep | x86_64-*-cygwin) + targ_defvec=x86_64_pe_vec + targ_selvecs="x86_64_pe_vec x86_64_pei_vec x86_64_pe_big_vec x86_64_elf64_vec i386_pe_vec i386_pe_big_vec i386_pei_vec i386_elf32_vec iamcu_elf32_vec pdb_vec" + want64=true + targ_underscore=no + ;; + x86_64-*-rdos*) + targ_defvec=x86_64_elf64_vec + want64=true + ;; + x86_64-*-redox*) + targ_defvec=x86_64_elf64_vec + targ_selvecs=i386_elf32_vec + want64=true + ;; + x86_64-*-solaris2*) + targ_defvec=x86_64_elf64_sol2_vec + targ_selvecs="i386_elf32_sol2_vec x86_64_elf64_vec i386_elf32_vec" + want64=true + ;; + x86_64-*-gnu*) + targ_defvec=x86_64_elf64_vec + targ_selvecs="i386_elf32_vec iamcu_elf32_vec x86_64_elf32_vec" + want64=true + ;; +#endif + xgate-*-*) targ_defvec=xgate_elf32_vec targ_selvecs="xgate_elf32_vec" @@ -1477,20 +1500,6 @@ case "${targ}" in targ_underscore=yes ;; -#ifdef BFD64 - loongarch32-*) - targ_defvec=loongarch_elf32_vec - targ_selvecs="loongarch_elf32_vec loongarch_elf64_vec loongarch64_pei_vec" - want64=true - ;; - - loongarch64-*) - targ_defvec=loongarch_elf64_vec - targ_selvecs="loongarch_elf32_vec loongarch_elf64_vec loongarch64_pei_vec" - want64=true - ;; -#endif - # END OF targmatch.h bpf-*-*) echo "*** Configuration $targ is not fully supported." >&2