summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/binutils
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2012-04-25 15:37:00 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-05-21 09:59:02 +0100
commitefcd3825969fc925b03b1aab9e916003be5eadb7 (patch)
tree055bd1a5dc68d65c32104943c41461e8c01a66e6 /meta/recipes-devtools/binutils
parent6174900a0e949c00c5a683f080b0cae73fdeb10b (diff)
downloadpoky-efcd3825969fc925b03b1aab9e916003be5eadb7.tar.gz
binutils: Default to n64 when configured for mips64
Default ABI for mips64 is n64 so make it default in binutils (From OE-Core rev: 99f859612e16d636702f9bb11825259d90e468f2) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/binutils')
-rw-r--r--meta/recipes-devtools/binutils/binutils/mips64-default-ld-emulation.patch49
-rw-r--r--meta/recipes-devtools/binutils/binutils_2.22.bb3
2 files changed, 51 insertions, 1 deletions
diff --git a/meta/recipes-devtools/binutils/binutils/mips64-default-ld-emulation.patch b/meta/recipes-devtools/binutils/binutils/mips64-default-ld-emulation.patch
new file mode 100644
index 0000000000..ab01859fa6
--- /dev/null
+++ b/meta/recipes-devtools/binutils/binutils/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"
diff --git a/meta/recipes-devtools/binutils/binutils_2.22.bb b/meta/recipes-devtools/binutils/binutils_2.22.bb
index d6d19a1159..ae15e82eb0 100644
--- a/meta/recipes-devtools/binutils/binutils_2.22.bb
+++ b/meta/recipes-devtools/binutils/binutils_2.22.bb
@@ -1,6 +1,6 @@
1require binutils.inc 1require binutils.inc
2 2
3PR = "r6" 3PR = "r7"
4 4
5LIC_FILES_CHKSUM="\ 5LIC_FILES_CHKSUM="\
6 file://src-release;endline=17;md5=4830a9ef968f3b18dd5e9f2c00db2d35\ 6 file://src-release;endline=17;md5=4830a9ef968f3b18dd5e9f2c00db2d35\
@@ -31,6 +31,7 @@ SRC_URI = "\
31 file://clone-shadow.patch \ 31 file://clone-shadow.patch \
32 file://binutils-powerpc-e5500.patch \ 32 file://binutils-powerpc-e5500.patch \
33 file://binutils-armv5e.patch \ 33 file://binutils-armv5e.patch \
34 file://mips64-default-ld-emulation.patch \
34 " 35 "
35 36
36SRC_URI[md5sum] = "ee0f10756c84979622b992a4a61ea3f5" 37SRC_URI[md5sum] = "ee0f10756c84979622b992a4a61ea3f5"