summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/binutils/binutils-2.23.1/mips64-default-ld-emulation.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils-2.23.1/mips64-default-ld-emulation.patch')
-rw-r--r--meta/recipes-devtools/binutils/binutils-2.23.1/mips64-default-ld-emulation.patch49
1 files changed, 49 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils-2.23.1/mips64-default-ld-emulation.patch b/meta/recipes-devtools/binutils/binutils-2.23.1/mips64-default-ld-emulation.patch
new file mode 100644
index 0000000000..ab01859fa6
--- /dev/null
+++ b/meta/recipes-devtools/binutils/binutils-2.23.1/mips64-default-ld-emulation.patch
@@ -0,0 +1,49 @@
1for mips64*-*-linux we change the default emulations to be
2N64 instead of N32
3
4Upstream-Status: Inappropriate [ OE configuration Specific]
5
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7
8Index: binutils-2.22/bfd/config.bfd
9===================================================================
10--- binutils-2.22.orig/bfd/config.bfd 2011-07-28 15:35:13.000000000 -0700
11+++ binutils-2.22/bfd/config.bfd 2012-04-23 21:07:44.151578222 -0700
12@@ -970,13 +970,13 @@
13 ;;
14 #ifdef BFD64
15 mips64*el-*-linux*)
16- targ_defvec=bfd_elf32_ntradlittlemips_vec
17- targ_selvecs="bfd_elf32_ntradbigmips_vec bfd_elf32_tradlittlemips_vec bfd_elf32_tradbigmips_vec bfd_elf64_tradlittlemips_vec bfd_elf64_tradbigmips_vec"
18+ targ_defvec=bfd_elf64_tradlittlemips_vec
19+ targ_selvecs="bfd_elf32_ntradbigmips_vec bfd_elf32_ntradlittlemips_vec bfd_elf32_tradlittlemips_vec bfd_elf32_tradbigmips_vec bfd_elf64_tradbigmips_vec"
20 want64=true
21 ;;
22 mips64*-*-linux*)
23- targ_defvec=bfd_elf32_ntradbigmips_vec
24- targ_selvecs="bfd_elf32_ntradlittlemips_vec bfd_elf32_tradbigmips_vec bfd_elf32_tradlittlemips_vec bfd_elf64_tradbigmips_vec bfd_elf64_tradlittlemips_vec"
25+ targ_defvec=bfd_elf64_tradbigmips_vec
26+ targ_selvecs="bfd_elf32_ntradbigmips_vec bfd_elf32_ntradlittlemips_vec bfd_elf32_tradbigmips_vec bfd_elf32_tradlittlemips_vec bfd_elf64_tradlittlemips_vec"
27 want64=true
28 ;;
29 #endif
30Index: binutils-2.22/ld/configure.tgt
31===================================================================
32--- binutils-2.22.orig/ld/configure.tgt 2011-11-21 01:29:37.000000000 -0800
33+++ binutils-2.22/ld/configure.tgt 2012-04-23 21:05:34.183571931 -0700
34@@ -395,11 +395,11 @@
35 mips*-*-vxworks*) targ_emul=elf32ebmipvxworks
36 targ_extra_emuls="elf32elmipvxworks" ;;
37 mips*-*-windiss) targ_emul=elf32mipswindiss ;;
38-mips64*el-*-linux-*) targ_emul=elf32ltsmipn32
39- targ_extra_emuls="elf32btsmipn32 elf32ltsmip elf32btsmip elf64ltsmip elf64btsmip"
40+mips64*el-*-linux-*) targ_emul=elf64ltsmip
41+ targ_extra_emuls="elf32btsmipn32 elf32ltsmipn32 elf32ltsmip elf32btsmip elf64btsmip"
42 targ_extra_libpath=$targ_extra_emuls ;;
43-mips64*-*-linux-*) targ_emul=elf32btsmipn32
44- targ_extra_emuls="elf32ltsmipn32 elf32btsmip elf32ltsmip elf64btsmip elf64ltsmip"
45+mips64*-*-linux-*) targ_emul=elf64btsmip
46+ targ_extra_emuls="elf32btsmipn32 elf32ltsmipn32 elf32btsmip elf32ltsmip elf64ltsmip"
47 targ_extra_libpath=$targ_extra_emuls ;;
48 mips*el-*-linux-*) targ_emul=elf32ltsmip
49 targ_extra_emuls="elf32btsmip elf32ltsmipn32 elf64ltsmip elf32btsmipn32 elf64btsmip"