diff options
| -rw-r--r-- | meta/recipes-devtools/binutils/binutils/mips64-default-ld-emulation.patch | 49 | ||||
| -rw-r--r-- | meta/recipes-devtools/binutils/binutils_2.22.bb | 3 |
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 @@ | |||
| 1 | for mips64*-*-linux we change the default emulations to be | ||
| 2 | N64 instead of N32 | ||
| 3 | |||
| 4 | Upstream-Status: Inappropriate [ OE configuration Specific] | ||
| 5 | |||
| 6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 7 | |||
| 8 | Index: 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 | ||
| 30 | Index: 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 @@ | |||
| 1 | require binutils.inc | 1 | require binutils.inc |
| 2 | 2 | ||
| 3 | PR = "r6" | 3 | PR = "r7" |
| 4 | 4 | ||
| 5 | LIC_FILES_CHKSUM="\ | 5 | LIC_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 | ||
| 36 | SRC_URI[md5sum] = "ee0f10756c84979622b992a4a61ea3f5" | 37 | SRC_URI[md5sum] = "ee0f10756c84979622b992a4a61ea3f5" |
