toolchain/binutils: Add binutils 2.34
[openwrt/staging/dedeckeh.git] / toolchain / binutils / patches / 2.34 / 500-Change-default-emulation-for-mips64-linux.patch
1 --- a/bfd/config.bfd
2 +++ b/bfd/config.bfd
3 @@ -911,12 +911,12 @@ case "${targ}" in
4 targ_selvecs="mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec mips_ecoff_be_vec mips_ecoff_le_vec"
5 ;;
6 mips64*el-*-linux*)
7 - targ_defvec=mips_elf32_ntrad_le_vec
8 - targ_selvecs="mips_elf32_ntrad_be_vec mips_elf32_trad_le_vec mips_elf32_trad_be_vec mips_elf64_trad_le_vec mips_elf64_trad_be_vec"
9 + targ_defvec=mips_elf64_trad_le_vec
10 + targ_selvecs="mips_elf32_ntrad_le_vec mips_elf32_ntrad_be_vec mips_elf32_trad_le_vec mips_elf32_trad_be_vec mips_elf64_trad_be_vec"
11 ;;
12 mips64*-*-linux*)
13 - targ_defvec=mips_elf32_ntrad_be_vec
14 - targ_selvecs="mips_elf32_ntrad_le_vec mips_elf32_trad_be_vec mips_elf32_trad_le_vec mips_elf64_trad_be_vec mips_elf64_trad_le_vec"
15 + targ_defvec=mips_elf64_trad_be_vec
16 + targ_selvecs="mips_elf32_ntrad_be_vec mips_elf32_ntrad_le_vec mips_elf32_trad_be_vec mips_elf32_trad_le_vec mips_elf64_trad_le_vec"
17 ;;
18 mips*el-*-linux*)
19 targ_defvec=mips_elf32_trad_le_vec
20 --- a/ld/configure.tgt
21 +++ b/ld/configure.tgt
22 @@ -541,12 +541,12 @@ mips*-*-vxworks*) targ_emul=elf32ebmipvx
23 ;;
24 mips*-*-windiss) targ_emul=elf32mipswindiss
25 ;;
26 -mips64*el-*-linux-*) targ_emul=elf32ltsmipn32
27 - targ_extra_emuls="elf32btsmipn32 elf32ltsmip elf32btsmip elf64ltsmip elf64btsmip"
28 +mips64*el-*-linux-*) targ_emul=lf64ltsmip
29 + targ_extra_emuls="elf32btsmipn32 elf32ltsmipn32 elf32ltsmip elf32btsmip elf64btsmip"
30 targ_extra_libpath=$targ_extra_emuls
31 ;;
32 -mips64*-*-linux-*) targ_emul=elf32btsmipn32
33 - targ_extra_emuls="elf32ltsmipn32 elf32btsmip elf32ltsmip elf64btsmip elf64ltsmip"
34 +mips64*-*-linux-*) targ_emul=elf64btsmip
35 + targ_extra_emuls="elf32btsmipn32 elf32ltsmipn32 elf32btsmip elf32ltsmip elf64ltsmip"
36 targ_extra_libpath=$targ_extra_emuls
37 ;;
38 mips*el-*-linux-*) targ_emul=elf32ltsmip