summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2018-02-20 19:12:48 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-02-24 10:31:48 +0000
commit6ccc45aed52787bda9b4349ed450cc3b6fec3f1f (patch)
treee15cd922a3e158185f435167de923eab9d604c16
parent06a1b9be8a681a507678af58537320f6a127099f (diff)
downloadpoky-6ccc45aed52787bda9b4349ed450cc3b6fec3f1f.tar.gz
binutils: Upgrade to 2.30 release
Additionally cherry-pick 5ffeba4a09 Revert "PowerPC PLT speculative execution barriers" b01452b1d4 [PR22764][LD][AARCH64]Allow R_AARCH64_ABS16 and R_AARCH64_ABS32 against absolution symbol or undefine symbol in shared object. a985e9b9de Import patch from mainline to remove PROVODE qualifiers around definitions of __CTOR_LIST__ and __DTOR_LIST__ in PE linker scripts. eec4607fc5 Add support for DWARF-4 line number tables. (From OE-Core rev: c708506eb9dbb4b817f563fbaacb80eee0b5b301) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/conf/distro/include/tcmode-default.inc2
-rw-r--r--meta/recipes-devtools/binutils/binutils-2.30.inc (renamed from meta/recipes-devtools/binutils/binutils-2.29.1.inc)2
-rw-r--r--meta/recipes-devtools/binutils/binutils-cross-canadian_2.30.bb (renamed from meta/recipes-devtools/binutils/binutils-cross-canadian_2.29.1.bb)0
-rw-r--r--meta/recipes-devtools/binutils/binutils-cross_2.30.bb (renamed from meta/recipes-devtools/binutils/binutils-cross_2.29.1.bb)0
-rw-r--r--meta/recipes-devtools/binutils/binutils-crosssdk_2.30.bb (renamed from meta/recipes-devtools/binutils/binutils-crosssdk_2.29.1.bb)0
-rw-r--r--meta/recipes-devtools/binutils/binutils/0001-binutils-crosssdk-Generate-relocatable-SDKs.patch14
-rw-r--r--meta/recipes-devtools/binutils/binutils/0002-binutils-cross-Do-not-generate-linker-script-directo.patch6
-rw-r--r--meta/recipes-devtools/binutils/binutils/0003-configure-widen-the-regexp-for-SH-architectures.patch14
-rw-r--r--meta/recipes-devtools/binutils/binutils/0004-Point-scripts-location-to-libdir.patch8
-rw-r--r--meta/recipes-devtools/binutils/binutils/0005-Only-generate-an-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch10
-rw-r--r--meta/recipes-devtools/binutils/binutils/0006-Use-libtool-2.4.patch66
-rw-r--r--meta/recipes-devtools/binutils/binutils/0007-Add-the-armv5e-architecture-to-binutils.patch8
-rw-r--r--meta/recipes-devtools/binutils/binutils/0008-don-t-let-the-distro-compiler-point-to-the-wrong-ins.patch6
-rw-r--r--meta/recipes-devtools/binutils/binutils/0009-warn-for-uses-of-system-directories-when-cross-linki.patch24
-rw-r--r--meta/recipes-devtools/binutils/binutils/0010-Fix-rpath-in-libtool-when-sysroot-is-enabled.patch4
-rw-r--r--meta/recipes-devtools/binutils/binutils/0011-Change-default-emulation-for-mips64-linux.patch14
-rw-r--r--meta/recipes-devtools/binutils/binutils/0012-Add-support-for-Netlogic-XLP.patch70
-rw-r--r--meta/recipes-devtools/binutils/binutils/0013-fix-the-incorrect-assembling-for-ppc-wait-mnemonic.patch10
-rw-r--r--meta/recipes-devtools/binutils/binutils/0014-Detect-64-bit-MIPS-targets.patch6
-rw-r--r--meta/recipes-devtools/binutils/binutils/0015-sync-with-OE-libtool-changes.patch4
-rw-r--r--meta/recipes-devtools/binutils/binutils_2.30.bb (renamed from meta/recipes-devtools/binutils/binutils_2.29.1.bb)0
21 files changed, 127 insertions, 141 deletions
diff --git a/meta/conf/distro/include/tcmode-default.inc b/meta/conf/distro/include/tcmode-default.inc
index 2e7243f32c..075d2c5b24 100644
--- a/meta/conf/distro/include/tcmode-default.inc
+++ b/meta/conf/distro/include/tcmode-default.inc
@@ -24,7 +24,7 @@ PREFERRED_PROVIDER_virtual/gettext ??= "gettext"
24 24
25GCCVERSION ?= "7.%" 25GCCVERSION ?= "7.%"
26SDKGCCVERSION ?= "${GCCVERSION}" 26SDKGCCVERSION ?= "${GCCVERSION}"
27BINUVERSION ?= "2.29%" 27BINUVERSION ?= "2.30%"
28GDBVERSION ?= "8.0%" 28GDBVERSION ?= "8.0%"
29GLIBCVERSION ?= "2.26%" 29GLIBCVERSION ?= "2.26%"
30LINUXLIBCVERSION ?= "4.15%" 30LINUXLIBCVERSION ?= "4.15%"
diff --git a/meta/recipes-devtools/binutils/binutils-2.29.1.inc b/meta/recipes-devtools/binutils/binutils-2.30.inc
index 07a72e2b5a..9c883acc52 100644
--- a/meta/recipes-devtools/binutils/binutils-2.29.1.inc
+++ b/meta/recipes-devtools/binutils/binutils-2.30.inc
@@ -18,7 +18,7 @@ BINUPV = "${@binutils_branch_version(d)}"
18 18
19UPSTREAM_CHECK_GITTAGREGEX = "binutils-(?P<pver>\d+_(\d_?)*)" 19UPSTREAM_CHECK_GITTAGREGEX = "binutils-(?P<pver>\d+_(\d_?)*)"
20 20
21SRCREV ?= "90276f15379d380761fc499da2ba24cfb3c12a94" 21SRCREV ?= "caa839fba66600a6c36d3639906ed9110b79c307"
22BINUTILS_GIT_URI ?= "git://sourceware.org/git/binutils-gdb.git;branch=binutils-${BINUPV}-branch;protocol=git" 22BINUTILS_GIT_URI ?= "git://sourceware.org/git/binutils-gdb.git;branch=binutils-${BINUPV}-branch;protocol=git"
23SRC_URI = "\ 23SRC_URI = "\
24 ${BINUTILS_GIT_URI} \ 24 ${BINUTILS_GIT_URI} \
diff --git a/meta/recipes-devtools/binutils/binutils-cross-canadian_2.29.1.bb b/meta/recipes-devtools/binutils/binutils-cross-canadian_2.30.bb
index 5dbaa03017..5dbaa03017 100644
--- a/meta/recipes-devtools/binutils/binutils-cross-canadian_2.29.1.bb
+++ b/meta/recipes-devtools/binutils/binutils-cross-canadian_2.30.bb
diff --git a/meta/recipes-devtools/binutils/binutils-cross_2.29.1.bb b/meta/recipes-devtools/binutils/binutils-cross_2.30.bb
index fbd1f7d25a..fbd1f7d25a 100644
--- a/meta/recipes-devtools/binutils/binutils-cross_2.29.1.bb
+++ b/meta/recipes-devtools/binutils/binutils-cross_2.30.bb
diff --git a/meta/recipes-devtools/binutils/binutils-crosssdk_2.29.1.bb b/meta/recipes-devtools/binutils/binutils-crosssdk_2.30.bb
index 37f4d6d2e9..37f4d6d2e9 100644
--- a/meta/recipes-devtools/binutils/binutils-crosssdk_2.29.1.bb
+++ b/meta/recipes-devtools/binutils/binutils-crosssdk_2.30.bb
diff --git a/meta/recipes-devtools/binutils/binutils/0001-binutils-crosssdk-Generate-relocatable-SDKs.patch b/meta/recipes-devtools/binutils/binutils/0001-binutils-crosssdk-Generate-relocatable-SDKs.patch
index 0b515d83c7..2df836057d 100644
--- a/meta/recipes-devtools/binutils/binutils/0001-binutils-crosssdk-Generate-relocatable-SDKs.patch
+++ b/meta/recipes-devtools/binutils/binutils/0001-binutils-crosssdk-Generate-relocatable-SDKs.patch
@@ -1,4 +1,4 @@
1From 58ac9f95a3d83c29efaf7a8906fb6aefea8c8e79 Mon Sep 17 00:00:00 2001 1From 2e1b5e24a6759de7f73aa6060a574848d9131b5a Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 2 Mar 2015 01:58:54 +0000 3Date: Mon, 2 Mar 2015 01:58:54 +0000
4Subject: [PATCH 01/15] binutils-crosssdk: Generate relocatable SDKs 4Subject: [PATCH 01/15] binutils-crosssdk: Generate relocatable SDKs
@@ -18,7 +18,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
18 2 files changed, 5 insertions(+), 2 deletions(-) 18 2 files changed, 5 insertions(+), 2 deletions(-)
19 19
20diff --git a/ld/genscripts.sh b/ld/genscripts.sh 20diff --git a/ld/genscripts.sh b/ld/genscripts.sh
21index b6940d376d..a42c4d7a4b 100755 21index 8732422b3a..1f257e99ca 100755
22--- a/ld/genscripts.sh 22--- a/ld/genscripts.sh
23+++ b/ld/genscripts.sh 23+++ b/ld/genscripts.sh
24@@ -277,6 +277,7 @@ DATA_ALIGNMENT_u="${DATA_ALIGNMENT_u-${DATA_ALIGNMENT_r}}" 24@@ -277,6 +277,7 @@ DATA_ALIGNMENT_u="${DATA_ALIGNMENT_u-${DATA_ALIGNMENT_r}}"
@@ -37,16 +37,16 @@ index b6940d376d..a42c4d7a4b 100755
37 ( echo "/* Script for ld -Ur: link w/out relocation, do create constructors */" 37 ( echo "/* Script for ld -Ur: link w/out relocation, do create constructors */"
38 . ${CUSTOMIZER_SCRIPT} 38 . ${CUSTOMIZER_SCRIPT}
39 . ${srcdir}/scripttempl/${SCRIPT_NAME}.sc 39 . ${srcdir}/scripttempl/${SCRIPT_NAME}.sc
40 ) | sed -e '/^ *$/d;s/[ ]*$//' > ldscripts/${EMULATION_NAME}.xu 40 ) | sed -e '/^ *$/d;s/[ ]*$//' > ldscripts/${EMULATION_NAME}.xu
41+unset PARTIAL_LINKING 41+unset PARTIAL_LINKING
42 42
43 LD_FLAG=
44 DATA_ALIGNMENT=${DATA_ALIGNMENT_} 43 DATA_ALIGNMENT=${DATA_ALIGNMENT_}
44 RELOCATING=" "
45diff --git a/ld/scripttempl/elf.sc b/ld/scripttempl/elf.sc 45diff --git a/ld/scripttempl/elf.sc b/ld/scripttempl/elf.sc
46index d9138bc059..e48faeca43 100644 46index 9787ab5dac..0c8a93c2c8 100644
47--- a/ld/scripttempl/elf.sc 47--- a/ld/scripttempl/elf.sc
48+++ b/ld/scripttempl/elf.sc 48+++ b/ld/scripttempl/elf.sc
49@@ -138,8 +138,8 @@ if test -z "$DATA_SEGMENT_ALIGN"; then 49@@ -139,8 +139,8 @@ if test -z "$DATA_SEGMENT_ALIGN"; then
50 DATA_SEGMENT_RELRO_END=". = DATA_SEGMENT_RELRO_END (${SEPARATE_GOTPLT-0}, .);" 50 DATA_SEGMENT_RELRO_END=". = DATA_SEGMENT_RELRO_END (${SEPARATE_GOTPLT-0}, .);"
51 fi 51 fi
52 fi 52 fi
@@ -58,5 +58,5 @@ index d9138bc059..e48faeca43 100644
58 if test -z "$PLT"; then 58 if test -z "$PLT"; then
59 IPLT=".iplt ${RELOCATING-0} : { *(.iplt) }" 59 IPLT=".iplt ${RELOCATING-0} : { *(.iplt) }"
60-- 60--
612.14.0 612.16.1
62 62
diff --git a/meta/recipes-devtools/binutils/binutils/0002-binutils-cross-Do-not-generate-linker-script-directo.patch b/meta/recipes-devtools/binutils/binutils/0002-binutils-cross-Do-not-generate-linker-script-directo.patch
index 370333d5d0..bac7fb2d1a 100644
--- a/meta/recipes-devtools/binutils/binutils/0002-binutils-cross-Do-not-generate-linker-script-directo.patch
+++ b/meta/recipes-devtools/binutils/binutils/0002-binutils-cross-Do-not-generate-linker-script-directo.patch
@@ -1,4 +1,4 @@
1From 8f929c616208351d0971d7dfd7574d48d3144603 Mon Sep 17 00:00:00 2001 1From 58ddf38fa53abb48b69dd76e398c73451ad1a5eb Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 6 Mar 2017 23:37:05 -0800 3Date: Mon, 6 Mar 2017 23:37:05 -0800
4Subject: [PATCH 02/15] binutils-cross: Do not generate linker script 4Subject: [PATCH 02/15] binutils-cross: Do not generate linker script
@@ -23,7 +23,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
23 1 file changed, 23 deletions(-) 23 1 file changed, 23 deletions(-)
24 24
25diff --git a/ld/genscripts.sh b/ld/genscripts.sh 25diff --git a/ld/genscripts.sh b/ld/genscripts.sh
26index a42c4d7a4b..d727b4d07e 100755 26index 1f257e99ca..1583b73a2b 100755
27--- a/ld/genscripts.sh 27--- a/ld/genscripts.sh
28+++ b/ld/genscripts.sh 28+++ b/ld/genscripts.sh
29@@ -189,29 +189,6 @@ append_to_lib_path() 29@@ -189,29 +189,6 @@ append_to_lib_path()
@@ -57,5 +57,5 @@ index a42c4d7a4b..d727b4d07e 100755
57 libs=${NATIVE_LIB_DIRS} 57 libs=${NATIVE_LIB_DIRS}
58 if [ "x${NATIVE}" = "xyes" ] ; then 58 if [ "x${NATIVE}" = "xyes" ] ; then
59-- 59--
602.14.0 602.16.1
61 61
diff --git a/meta/recipes-devtools/binutils/binutils/0003-configure-widen-the-regexp-for-SH-architectures.patch b/meta/recipes-devtools/binutils/binutils/0003-configure-widen-the-regexp-for-SH-architectures.patch
index b6c09ccf19..306afe7018 100644
--- a/meta/recipes-devtools/binutils/binutils/0003-configure-widen-the-regexp-for-SH-architectures.patch
+++ b/meta/recipes-devtools/binutils/binutils/0003-configure-widen-the-regexp-for-SH-architectures.patch
@@ -1,4 +1,4 @@
1From e5a806aae02a10290c71deb72f6294c98068368d Mon Sep 17 00:00:00 2001 1From 5089be88f670bcadf7db0e778894f900b2c05d7b Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 2 Mar 2015 01:07:33 +0000 3Date: Mon, 2 Mar 2015 01:07:33 +0000
4Subject: [PATCH 03/15] configure: widen the regexp for SH architectures 4Subject: [PATCH 03/15] configure: widen the regexp for SH architectures
@@ -14,12 +14,12 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
14 2 files changed, 6 insertions(+), 1 deletion(-) 14 2 files changed, 6 insertions(+), 1 deletion(-)
15 15
16diff --git a/configure b/configure 16diff --git a/configure b/configure
17index be9dd89d9b..d8af155ab5 100755 17index 2d615a9996..c4ad45c06c 100755
18--- a/configure 18--- a/configure
19+++ b/configure 19+++ b/configure
20@@ -3844,7 +3844,7 @@ case "${target}" in 20@@ -3835,7 +3835,7 @@ case "${target}" in
21 or1k*-*-*) 21 nvptx*-*-*)
22 noconfigdirs="$noconfigdirs gdb" 22 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
23 ;; 23 ;;
24- sh-*-*) 24- sh-*-*)
25+ sh*-*-* | sh64-*-*) 25+ sh*-*-* | sh64-*-*)
@@ -27,7 +27,7 @@ index be9dd89d9b..d8af155ab5 100755
27 sh*-*-elf) 27 sh*-*-elf)
28 ;; 28 ;;
29diff --git a/gprof/configure b/gprof/configure 29diff --git a/gprof/configure b/gprof/configure
30index e71fe8b9e4..679e0dce77 100755 30index 1e25102976..6b43bf2b18 100755
31--- a/gprof/configure 31--- a/gprof/configure
32+++ b/gprof/configure 32+++ b/gprof/configure
33@@ -5874,6 +5874,11 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu) 33@@ -5874,6 +5874,11 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu)
@@ -43,5 +43,5 @@ index e71fe8b9e4..679e0dce77 100755
43 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 43 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
44 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 44 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
45-- 45--
462.14.0 462.16.1
47 47
diff --git a/meta/recipes-devtools/binutils/binutils/0004-Point-scripts-location-to-libdir.patch b/meta/recipes-devtools/binutils/binutils/0004-Point-scripts-location-to-libdir.patch
index 38eee30855..3e29c5815a 100644
--- a/meta/recipes-devtools/binutils/binutils/0004-Point-scripts-location-to-libdir.patch
+++ b/meta/recipes-devtools/binutils/binutils/0004-Point-scripts-location-to-libdir.patch
@@ -1,4 +1,4 @@
1From 3634ec3547bc0f8a5d1b8ad15365e2f836cda642 Mon Sep 17 00:00:00 2001 1From a0e893ea094c48fa803046ffa89e31907aee0597 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 2 Mar 2015 01:09:58 +0000 3Date: Mon, 2 Mar 2015 01:09:58 +0000
4Subject: [PATCH 04/15] Point scripts location to libdir 4Subject: [PATCH 04/15] Point scripts location to libdir
@@ -12,7 +12,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
12 2 files changed, 2 insertions(+), 2 deletions(-) 12 2 files changed, 2 insertions(+), 2 deletions(-)
13 13
14diff --git a/ld/Makefile.am b/ld/Makefile.am 14diff --git a/ld/Makefile.am b/ld/Makefile.am
15index 625347ff62..d5334d2681 100644 15index 6243c12528..3c5d6c8202 100644
16--- a/ld/Makefile.am 16--- a/ld/Makefile.am
17+++ b/ld/Makefile.am 17+++ b/ld/Makefile.am
18@@ -57,7 +57,7 @@ endif 18@@ -57,7 +57,7 @@ endif
@@ -25,7 +25,7 @@ index 625347ff62..d5334d2681 100644
25 EMUL = @EMUL@ 25 EMUL = @EMUL@
26 EMULATION_OFILES = @EMULATION_OFILES@ 26 EMULATION_OFILES = @EMULATION_OFILES@
27diff --git a/ld/Makefile.in b/ld/Makefile.in 27diff --git a/ld/Makefile.in b/ld/Makefile.in
28index ba251777b0..a2cf2282b5 100644 28index 760c037f9d..6dea692869 100644
29--- a/ld/Makefile.in 29--- a/ld/Makefile.in
30+++ b/ld/Makefile.in 30+++ b/ld/Makefile.in
31@@ -446,7 +446,7 @@ AM_CFLAGS = $(WARN_CFLAGS) $(ELF_CLFAGS) 31@@ -446,7 +446,7 @@ AM_CFLAGS = $(WARN_CFLAGS) $(ELF_CLFAGS)
@@ -38,5 +38,5 @@ index ba251777b0..a2cf2282b5 100644
38 BFDDIR = $(BASEDIR)/bfd 38 BFDDIR = $(BASEDIR)/bfd
39 INCDIR = $(BASEDIR)/include 39 INCDIR = $(BASEDIR)/include
40-- 40--
412.14.0 412.16.1
42 42
diff --git a/meta/recipes-devtools/binutils/binutils/0005-Only-generate-an-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch b/meta/recipes-devtools/binutils/binutils/0005-Only-generate-an-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch
index 59150a2e4d..2f49969371 100644
--- a/meta/recipes-devtools/binutils/binutils/0005-Only-generate-an-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch
+++ b/meta/recipes-devtools/binutils/binutils/0005-Only-generate-an-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch
@@ -1,4 +1,4 @@
1From 9d37c8f68c07da63186cb993f1221f6c11eca422 Mon Sep 17 00:00:00 2001 1From 518abb195d0eb47d8eef581d7fd0a5fd9fa73f7d Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 2 Mar 2015 01:27:17 +0000 3Date: Mon, 2 Mar 2015 01:27:17 +0000
4Subject: [PATCH 05/15] Only generate an RPATH entry if LD_RUN_PATH is not 4Subject: [PATCH 05/15] Only generate an RPATH entry if LD_RUN_PATH is not
@@ -15,10 +15,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
15 1 file changed, 4 insertions(+) 15 1 file changed, 4 insertions(+)
16 16
17diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em 17diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em
18index 9ac1840316..9dc4c149bc 100644 18index c0925fc9b9..7d7670a89f 100644
19--- a/ld/emultempl/elf32.em 19--- a/ld/emultempl/elf32.em
20+++ b/ld/emultempl/elf32.em 20+++ b/ld/emultempl/elf32.em
21@@ -1463,6 +1463,8 @@ fragment <<EOF 21@@ -1470,6 +1470,8 @@ fragment <<EOF
22 && command_line.rpath == NULL) 22 && command_line.rpath == NULL)
23 { 23 {
24 path = (const char *) getenv ("LD_RUN_PATH"); 24 path = (const char *) getenv ("LD_RUN_PATH");
@@ -27,7 +27,7 @@ index 9ac1840316..9dc4c149bc 100644
27 if (path 27 if (path
28 && gld${EMULATION_NAME}_search_needed (path, &n, force)) 28 && gld${EMULATION_NAME}_search_needed (path, &n, force))
29 break; 29 break;
30@@ -1740,6 +1742,8 @@ gld${EMULATION_NAME}_before_allocation (void) 30@@ -1750,6 +1752,8 @@ gld${EMULATION_NAME}_before_allocation (void)
31 rpath = command_line.rpath; 31 rpath = command_line.rpath;
32 if (rpath == NULL) 32 if (rpath == NULL)
33 rpath = (const char *) getenv ("LD_RUN_PATH"); 33 rpath = (const char *) getenv ("LD_RUN_PATH");
@@ -37,5 +37,5 @@ index 9ac1840316..9dc4c149bc 100644
37 for (abfd = link_info.input_bfds; abfd; abfd = abfd->link.next) 37 for (abfd = link_info.input_bfds; abfd; abfd = abfd->link.next)
38 if (bfd_get_flavour (abfd) == bfd_target_elf_flavour) 38 if (bfd_get_flavour (abfd) == bfd_target_elf_flavour)
39-- 39--
402.14.0 402.16.1
41 41
diff --git a/meta/recipes-devtools/binutils/binutils/0006-Use-libtool-2.4.patch b/meta/recipes-devtools/binutils/binutils/0006-Use-libtool-2.4.patch
index e87efe653b..333e2ee176 100644
--- a/meta/recipes-devtools/binutils/binutils/0006-Use-libtool-2.4.patch
+++ b/meta/recipes-devtools/binutils/binutils/0006-Use-libtool-2.4.patch
@@ -1,4 +1,4 @@
1From 71c734bb3754319029dcfc898cedbade42274dcb Mon Sep 17 00:00:00 2001 1From fad053cc59baa6277182b0fc90415a214060ba99 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Sun, 14 Feb 2016 17:04:07 +0000 3Date: Sun, 14 Feb 2016 17:04:07 +0000
4Subject: [PATCH 06/15] Use libtool 2.4 4Subject: [PATCH 06/15] Use libtool 2.4
@@ -12,7 +12,6 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
12 bfd/configure | 1318 +++++++++++++++++------ 12 bfd/configure | 1318 +++++++++++++++++------
13 bfd/configure.ac | 2 +- 13 bfd/configure.ac | 2 +-
14 binutils/configure | 1316 +++++++++++++++++------ 14 binutils/configure | 1316 +++++++++++++++++------
15 configure | 2 +-
16 gas/configure | 1314 +++++++++++++++++------ 15 gas/configure | 1314 +++++++++++++++++------
17 gprof/configure | 1321 +++++++++++++++++------ 16 gprof/configure | 1321 +++++++++++++++++------
18 ld/configure | 1691 +++++++++++++++++++++-------- 17 ld/configure | 1691 +++++++++++++++++++++--------
@@ -24,10 +23,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
24 opcodes/configure | 1318 +++++++++++++++++------ 23 opcodes/configure | 1318 +++++++++++++++++------
25 opcodes/configure.ac | 2 +- 24 opcodes/configure.ac | 2 +-
26 zlib/configure | 1316 +++++++++++++++++------ 25 zlib/configure | 1316 +++++++++++++++++------
27 15 files changed, 9927 insertions(+), 3694 deletions(-) 26 14 files changed, 9926 insertions(+), 3693 deletions(-)
28 27
29diff --git a/bfd/configure b/bfd/configure 28diff --git a/bfd/configure b/bfd/configure
30index 48276594ed..3ece8943f3 100755 29index 6c2b24ebe3..5fdd723b7f 100755
31--- a/bfd/configure 30--- a/bfd/configure
32+++ b/bfd/configure 31+++ b/bfd/configure
33@@ -672,6 +672,9 @@ OTOOL 32@@ -672,6 +672,9 @@ OTOOL
@@ -1931,7 +1930,7 @@ index 48276594ed..3ece8943f3 100755
1931 chmod +x "$ofile" 1930 chmod +x "$ofile"
1932 1931
1933diff --git a/bfd/configure.ac b/bfd/configure.ac 1932diff --git a/bfd/configure.ac b/bfd/configure.ac
1934index 8fd03a7ea8..8816c3286c 100644 1933index 2342f3faea..a6451fccda 100644
1935--- a/bfd/configure.ac 1934--- a/bfd/configure.ac
1936+++ b/bfd/configure.ac 1935+++ b/bfd/configure.ac
1937@@ -254,7 +254,7 @@ changequote(,)dnl 1936@@ -254,7 +254,7 @@ changequote(,)dnl
@@ -1944,7 +1943,7 @@ index 8fd03a7ea8..8816c3286c 100644
1944 1943
1945 # More hacks to build DLLs on Windows. 1944 # More hacks to build DLLs on Windows.
1946diff --git a/binutils/configure b/binutils/configure 1945diff --git a/binutils/configure b/binutils/configure
1947index 22e1b1736e..321b63535b 100755 1946index 5d9c9105a7..a65b2b4518 100755
1948--- a/binutils/configure 1947--- a/binutils/configure
1949+++ b/binutils/configure 1948+++ b/binutils/configure
1950@@ -659,8 +659,11 @@ OTOOL 1949@@ -659,8 +659,11 @@ OTOOL
@@ -3841,21 +3840,8 @@ index 22e1b1736e..321b63535b 100755
3841 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 3840 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
3842 chmod +x "$ofile" 3841 chmod +x "$ofile"
3843 3842
3844diff --git a/configure b/configure
3845index d8af155ab5..005ed827ab 100755
3846--- a/configure
3847+++ b/configure
3848@@ -3844,7 +3844,7 @@ case "${target}" in
3849 or1k*-*-*)
3850 noconfigdirs="$noconfigdirs gdb"
3851 ;;
3852- sh*-*-* | sh64-*-*)
3853+ sh-*-* | sh64-*-*)
3854 case "${target}" in
3855 sh*-*-elf)
3856 ;;
3857diff --git a/gas/configure b/gas/configure 3843diff --git a/gas/configure b/gas/configure
3858index 93afb20c8f..81dd4cbd97 100755 3844index fbac8f44d5..a40ac2144f 100755
3859--- a/gas/configure 3845--- a/gas/configure
3860+++ b/gas/configure 3846+++ b/gas/configure
3861@@ -650,8 +650,11 @@ OTOOL 3847@@ -650,8 +650,11 @@ OTOOL
@@ -5156,7 +5142,7 @@ index 93afb20c8f..81dd4cbd97 100755
5156 int main () 5142 int main ()
5157 { 5143 {
5158 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 5144 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5159@@ -15436,13 +16089,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 5145@@ -15437,13 +16090,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
5160 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 5146 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
5161 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 5147 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
5162 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 5148 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
@@ -5177,7 +5163,7 @@ index 93afb20c8f..81dd4cbd97 100755
5177 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 5163 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
5178 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 5164 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
5179 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 5165 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
5180@@ -15457,14 +16117,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de 5166@@ -15458,14 +16118,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de
5181 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 5167 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
5182 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 5168 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
5183 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 5169 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
@@ -5196,7 +5182,7 @@ index 93afb20c8f..81dd4cbd97 100755
5196 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 5182 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
5197 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 5183 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
5198 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 5184 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
5199@@ -15497,12 +16160,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q 5185@@ -15498,12 +16161,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q
5200 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 5186 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
5201 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 5187 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
5202 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 5188 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
@@ -5210,7 +5196,7 @@ index 93afb20c8f..81dd4cbd97 100755
5210 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 5196 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
5211 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 5197 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
5212 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 5198 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
5213@@ -15557,8 +16220,13 @@ reload_flag \ 5199@@ -15558,8 +16221,13 @@ reload_flag \
5214 OBJDUMP \ 5200 OBJDUMP \
5215 deplibs_check_method \ 5201 deplibs_check_method \
5216 file_magic_cmd \ 5202 file_magic_cmd \
@@ -5224,7 +5210,7 @@ index 93afb20c8f..81dd4cbd97 100755
5224 STRIP \ 5210 STRIP \
5225 RANLIB \ 5211 RANLIB \
5226 CC \ 5212 CC \
5227@@ -15568,12 +16236,14 @@ lt_cv_sys_global_symbol_pipe \ 5213@@ -15569,12 +16237,14 @@ lt_cv_sys_global_symbol_pipe \
5228 lt_cv_sys_global_symbol_to_cdecl \ 5214 lt_cv_sys_global_symbol_to_cdecl \
5229 lt_cv_sys_global_symbol_to_c_name_address \ 5215 lt_cv_sys_global_symbol_to_c_name_address \
5230 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 5216 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
@@ -5240,7 +5226,7 @@ index 93afb20c8f..81dd4cbd97 100755
5240 DSYMUTIL \ 5226 DSYMUTIL \
5241 NMEDIT \ 5227 NMEDIT \
5242 LIPO \ 5228 LIPO \
5243@@ -15589,7 +16259,6 @@ no_undefined_flag \ 5229@@ -15590,7 +16260,6 @@ no_undefined_flag \
5244 hardcode_libdir_flag_spec \ 5230 hardcode_libdir_flag_spec \
5245 hardcode_libdir_flag_spec_ld \ 5231 hardcode_libdir_flag_spec_ld \
5246 hardcode_libdir_separator \ 5232 hardcode_libdir_separator \
@@ -5248,7 +5234,7 @@ index 93afb20c8f..81dd4cbd97 100755
5248 exclude_expsyms \ 5234 exclude_expsyms \
5249 include_expsyms \ 5235 include_expsyms \
5250 file_list_spec \ 5236 file_list_spec \
5251@@ -15625,6 +16294,7 @@ module_cmds \ 5237@@ -15626,6 +16295,7 @@ module_cmds \
5252 module_expsym_cmds \ 5238 module_expsym_cmds \
5253 export_symbols_cmds \ 5239 export_symbols_cmds \
5254 prelink_cmds \ 5240 prelink_cmds \
@@ -5256,7 +5242,7 @@ index 93afb20c8f..81dd4cbd97 100755
5256 postinstall_cmds \ 5242 postinstall_cmds \
5257 postuninstall_cmds \ 5243 postuninstall_cmds \
5258 finish_cmds \ 5244 finish_cmds \
5259@@ -16389,7 +17059,8 @@ $as_echo X"$file" | 5245@@ -16390,7 +17060,8 @@ $as_echo X"$file" |
5260 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 5246 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
5261 # 5247 #
5262 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 5248 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
@@ -5266,7 +5252,7 @@ index 93afb20c8f..81dd4cbd97 100755
5266 # Written by Gordon Matzigkeit, 1996 5252 # Written by Gordon Matzigkeit, 1996
5267 # 5253 #
5268 # This file is part of GNU Libtool. 5254 # This file is part of GNU Libtool.
5269@@ -16492,19 +17163,42 @@ SP2NL=$lt_lt_SP2NL 5255@@ -16493,19 +17164,42 @@ SP2NL=$lt_lt_SP2NL
5270 # turn newlines into spaces. 5256 # turn newlines into spaces.
5271 NL2SP=$lt_lt_NL2SP 5257 NL2SP=$lt_lt_NL2SP
5272 5258
@@ -5310,7 +5296,7 @@ index 93afb20c8f..81dd4cbd97 100755
5310 # A symbol stripping program. 5296 # A symbol stripping program.
5311 STRIP=$lt_STRIP 5297 STRIP=$lt_STRIP
5312 5298
5313@@ -16534,6 +17228,12 @@ global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 5299@@ -16535,6 +17229,12 @@ global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
5314 # Transform the output of nm in a C name address pair when lib prefix is needed. 5300 # Transform the output of nm in a C name address pair when lib prefix is needed.
5315 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 5301 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
5316 5302
@@ -5323,7 +5309,7 @@ index 93afb20c8f..81dd4cbd97 100755
5323 # The name of the directory that contains temporary libtool files. 5309 # The name of the directory that contains temporary libtool files.
5324 objdir=$objdir 5310 objdir=$objdir
5325 5311
5326@@ -16543,6 +17243,9 @@ MAGIC_CMD=$MAGIC_CMD 5312@@ -16544,6 +17244,9 @@ MAGIC_CMD=$MAGIC_CMD
5327 # Must we lock files when doing compilation? 5313 # Must we lock files when doing compilation?
5328 need_locks=$lt_need_locks 5314 need_locks=$lt_need_locks
5329 5315
@@ -5333,7 +5319,7 @@ index 93afb20c8f..81dd4cbd97 100755
5333 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 5319 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
5334 DSYMUTIL=$lt_DSYMUTIL 5320 DSYMUTIL=$lt_DSYMUTIL
5335 5321
5336@@ -16657,12 +17360,12 @@ with_gcc=$GCC 5322@@ -16658,12 +17361,12 @@ with_gcc=$GCC
5337 # Compiler flag to turn off builtin functions. 5323 # Compiler flag to turn off builtin functions.
5338 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 5324 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
5339 5325
@@ -5349,7 +5335,7 @@ index 93afb20c8f..81dd4cbd97 100755
5349 # Compiler flag to prevent dynamic linking. 5335 # Compiler flag to prevent dynamic linking.
5350 link_static_flag=$lt_lt_prog_compiler_static 5336 link_static_flag=$lt_lt_prog_compiler_static
5351 5337
5352@@ -16749,9 +17452,6 @@ inherit_rpath=$inherit_rpath 5338@@ -16750,9 +17453,6 @@ inherit_rpath=$inherit_rpath
5353 # Whether libtool must link a program against all its dependency libraries. 5339 # Whether libtool must link a program against all its dependency libraries.
5354 link_all_deplibs=$link_all_deplibs 5340 link_all_deplibs=$link_all_deplibs
5355 5341
@@ -5359,7 +5345,7 @@ index 93afb20c8f..81dd4cbd97 100755
5359 # Set to "yes" if exported symbols are required. 5345 # Set to "yes" if exported symbols are required.
5360 always_export_symbols=$always_export_symbols 5346 always_export_symbols=$always_export_symbols
5361 5347
5362@@ -16767,6 +17467,9 @@ include_expsyms=$lt_include_expsyms 5348@@ -16768,6 +17468,9 @@ include_expsyms=$lt_include_expsyms
5363 # Commands necessary for linking programs (against libraries) with templates. 5349 # Commands necessary for linking programs (against libraries) with templates.
5364 prelink_cmds=$lt_prelink_cmds 5350 prelink_cmds=$lt_prelink_cmds
5365 5351
@@ -5369,7 +5355,7 @@ index 93afb20c8f..81dd4cbd97 100755
5369 # Specify filename containing input files. 5355 # Specify filename containing input files.
5370 file_list_spec=$lt_file_list_spec 5356 file_list_spec=$lt_file_list_spec
5371 5357
5372@@ -16799,210 +17502,169 @@ ltmain="$ac_aux_dir/ltmain.sh" 5358@@ -16800,210 +17503,169 @@ ltmain="$ac_aux_dir/ltmain.sh"
5373 # if finds mixed CR/LF and LF-only lines. Since sed operates in 5359 # if finds mixed CR/LF and LF-only lines. Since sed operates in
5374 # text mode, it properly converts lines to CR/LF. This bash problem 5360 # text mode, it properly converts lines to CR/LF. This bash problem
5375 # is reportedly fixed, but why not run on old versions too? 5361 # is reportedly fixed, but why not run on old versions too?
@@ -5744,7 +5730,7 @@ index 93afb20c8f..81dd4cbd97 100755
5744 chmod +x "$ofile" 5730 chmod +x "$ofile"
5745 5731
5746diff --git a/gprof/configure b/gprof/configure 5732diff --git a/gprof/configure b/gprof/configure
5747index 679e0dce77..ac4c016a63 100755 5733index 6b43bf2b18..245ee48bc3 100755
5748--- a/gprof/configure 5734--- a/gprof/configure
5749+++ b/gprof/configure 5735+++ b/gprof/configure
5750@@ -631,8 +631,11 @@ OTOOL 5736@@ -631,8 +631,11 @@ OTOOL
@@ -7654,7 +7640,7 @@ index 679e0dce77..ac4c016a63 100755
7654 chmod +x "$ofile" 7640 chmod +x "$ofile"
7655 7641
7656diff --git a/ld/configure b/ld/configure 7642diff --git a/ld/configure b/ld/configure
7657index d7f66f8cdc..4e71511bd1 100755 7643index 0cc6e8a50f..db8b998722 100755
7658--- a/ld/configure 7644--- a/ld/configure
7659+++ b/ld/configure 7645+++ b/ld/configure
7660@@ -655,8 +655,11 @@ OTOOL 7646@@ -655,8 +655,11 @@ OTOOL
@@ -17336,7 +17322,7 @@ index bf92b5e079..c573da90c5 100644
17336 # These exist entirely to fool aclocal when bootstrapping libtool. 17322 # These exist entirely to fool aclocal when bootstrapping libtool.
17337 # 17323 #
17338diff --git a/opcodes/configure b/opcodes/configure 17324diff --git a/opcodes/configure b/opcodes/configure
17339index 17530f54b9..79b39611c2 100755 17325index 4f29887098..2127d39288 100755
17340--- a/opcodes/configure 17326--- a/opcodes/configure
17341+++ b/opcodes/configure 17327+++ b/opcodes/configure
17342@@ -650,6 +650,9 @@ OTOOL 17328@@ -650,6 +650,9 @@ OTOOL
@@ -19240,7 +19226,7 @@ index 17530f54b9..79b39611c2 100755
19240 chmod +x "$ofile" 19226 chmod +x "$ofile"
19241 19227
19242diff --git a/opcodes/configure.ac b/opcodes/configure.ac 19228diff --git a/opcodes/configure.ac b/opcodes/configure.ac
19243index a9fbfd61f1..c43780f64d 100644 19229index b07f3f3629..5a32d9b1fc 100644
19244--- a/opcodes/configure.ac 19230--- a/opcodes/configure.ac
19245+++ b/opcodes/configure.ac 19231+++ b/opcodes/configure.ac
19246@@ -167,7 +167,7 @@ changequote(,)dnl 19232@@ -167,7 +167,7 @@ changequote(,)dnl
@@ -21153,5 +21139,5 @@ index dc2d9ed383..ed9a492f5c 100755
21153 chmod +x "$ofile" 21139 chmod +x "$ofile"
21154 21140
21155-- 21141--
211562.14.0 211422.16.1
21157 21143
diff --git a/meta/recipes-devtools/binutils/binutils/0007-Add-the-armv5e-architecture-to-binutils.patch b/meta/recipes-devtools/binutils/binutils/0007-Add-the-armv5e-architecture-to-binutils.patch
index 88019606f7..4a5127380f 100644
--- a/meta/recipes-devtools/binutils/binutils/0007-Add-the-armv5e-architecture-to-binutils.patch
+++ b/meta/recipes-devtools/binutils/binutils/0007-Add-the-armv5e-architecture-to-binutils.patch
@@ -1,4 +1,4 @@
1From 2b87aad1741bc481dd0982f100ad5ea7f937bb61 Mon Sep 17 00:00:00 2001 1From 697903256e09533778baa8af66402c44d70219d9 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 2 Mar 2015 01:37:10 +0000 3Date: Mon, 2 Mar 2015 01:37:10 +0000
4Subject: [PATCH 07/15] Add the armv5e architecture to binutils 4Subject: [PATCH 07/15] Add the armv5e architecture to binutils
@@ -19,10 +19,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
19 1 file changed, 1 insertion(+) 19 1 file changed, 1 insertion(+)
20 20
21diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c 21diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c
22index a885efe4fc..735eaa7447 100644 22index ec50420518..a25d1721af 100644
23--- a/gas/config/tc-arm.c 23--- a/gas/config/tc-arm.c
24+++ b/gas/config/tc-arm.c 24+++ b/gas/config/tc-arm.c
25@@ -25990,6 +25990,7 @@ static const struct arm_arch_option_table arm_archs[] = 25@@ -26195,6 +26195,7 @@ static const struct arm_arch_option_table arm_archs[] =
26 ARM_ARCH_OPT ("armv4t", ARM_ARCH_V4T, FPU_ARCH_FPA), 26 ARM_ARCH_OPT ("armv4t", ARM_ARCH_V4T, FPU_ARCH_FPA),
27 ARM_ARCH_OPT ("armv4txm", ARM_ARCH_V4TxM, FPU_ARCH_FPA), 27 ARM_ARCH_OPT ("armv4txm", ARM_ARCH_V4TxM, FPU_ARCH_FPA),
28 ARM_ARCH_OPT ("armv5", ARM_ARCH_V5, FPU_ARCH_VFP), 28 ARM_ARCH_OPT ("armv5", ARM_ARCH_V5, FPU_ARCH_VFP),
@@ -31,5 +31,5 @@ index a885efe4fc..735eaa7447 100644
31 ARM_ARCH_OPT ("armv5txm", ARM_ARCH_V5TxM, FPU_ARCH_VFP), 31 ARM_ARCH_OPT ("armv5txm", ARM_ARCH_V5TxM, FPU_ARCH_VFP),
32 ARM_ARCH_OPT ("armv5te", ARM_ARCH_V5TE, FPU_ARCH_VFP), 32 ARM_ARCH_OPT ("armv5te", ARM_ARCH_V5TE, FPU_ARCH_VFP),
33-- 33--
342.14.0 342.16.1
35 35
diff --git a/meta/recipes-devtools/binutils/binutils/0008-don-t-let-the-distro-compiler-point-to-the-wrong-ins.patch b/meta/recipes-devtools/binutils/binutils/0008-don-t-let-the-distro-compiler-point-to-the-wrong-ins.patch
index 30a22b504f..939be67b58 100644
--- a/meta/recipes-devtools/binutils/binutils/0008-don-t-let-the-distro-compiler-point-to-the-wrong-ins.patch
+++ b/meta/recipes-devtools/binutils/binutils/0008-don-t-let-the-distro-compiler-point-to-the-wrong-ins.patch
@@ -1,4 +1,4 @@
1From 331443a87a31ec504e5652fc099d9129a9a4deb8 Mon Sep 17 00:00:00 2001 1From 622d66634eb2e509d4126f5bdcab26de367241a1 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 2 Mar 2015 01:39:01 +0000 3Date: Mon, 2 Mar 2015 01:39:01 +0000
4Subject: [PATCH 08/15] don't let the distro compiler point to the wrong 4Subject: [PATCH 08/15] don't let the distro compiler point to the wrong
@@ -17,7 +17,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
17 1 file changed, 2 insertions(+), 1 deletion(-) 17 1 file changed, 2 insertions(+), 1 deletion(-)
18 18
19diff --git a/libiberty/Makefile.in b/libiberty/Makefile.in 19diff --git a/libiberty/Makefile.in b/libiberty/Makefile.in
20index 25cfa29ad5..ce67a710e3 100644 20index ed1b334c36..d4ffd8b57b 100644
21--- a/libiberty/Makefile.in 21--- a/libiberty/Makefile.in
22+++ b/libiberty/Makefile.in 22+++ b/libiberty/Makefile.in
23@@ -364,7 +364,8 @@ install-strip: install 23@@ -364,7 +364,8 @@ install-strip: install
@@ -31,5 +31,5 @@ index 25cfa29ad5..ce67a710e3 100644
31 if test -n "${target_header_dir}"; then \ 31 if test -n "${target_header_dir}"; then \
32 ${mkinstalldirs} $(DESTDIR)$(libdir)/$(MULTIOSDIR); \ 32 ${mkinstalldirs} $(DESTDIR)$(libdir)/$(MULTIOSDIR); \
33-- 33--
342.14.0 342.16.1
35 35
diff --git a/meta/recipes-devtools/binutils/binutils/0009-warn-for-uses-of-system-directories-when-cross-linki.patch b/meta/recipes-devtools/binutils/binutils/0009-warn-for-uses-of-system-directories-when-cross-linki.patch
index e0e257880d..e75104722b 100644
--- a/meta/recipes-devtools/binutils/binutils/0009-warn-for-uses-of-system-directories-when-cross-linki.patch
+++ b/meta/recipes-devtools/binutils/binutils/0009-warn-for-uses-of-system-directories-when-cross-linki.patch
@@ -1,4 +1,4 @@
1From 0a4afdcf0700efd45963568e2d0049127cdf4434 Mon Sep 17 00:00:00 2001 1From 27e38ee92c24fca86b1c3f6ef156a1892dd06bfd Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 15 Jan 2016 06:31:09 +0000 3Date: Fri, 15 Jan 2016 06:31:09 +0000
4Subject: [PATCH 09/15] warn for uses of system directories when cross linking 4Subject: [PATCH 09/15] warn for uses of system directories when cross linking
@@ -77,7 +77,7 @@ index a846743da6..df3cd5fb60 100644
77 #undef EXTRA_SHLIB_EXTENSION 77 #undef EXTRA_SHLIB_EXTENSION
78 78
79diff --git a/ld/configure b/ld/configure 79diff --git a/ld/configure b/ld/configure
80index 4e71511bd1..71c6ad1fd1 100755 80index db8b998722..489ead5c13 100755
81--- a/ld/configure 81--- a/ld/configure
82+++ b/ld/configure 82+++ b/ld/configure
83@@ -789,6 +789,7 @@ with_lib_path 83@@ -789,6 +789,7 @@ with_lib_path
@@ -118,7 +118,7 @@ index 4e71511bd1..71c6ad1fd1 100755
118 if test "${enable_gold+set}" = set; then : 118 if test "${enable_gold+set}" = set; then :
119 enableval=$enable_gold; case "${enableval}" in 119 enableval=$enable_gold; case "${enableval}" in
120diff --git a/ld/configure.ac b/ld/configure.ac 120diff --git a/ld/configure.ac b/ld/configure.ac
121index 00080f85fd..3aa98e37fb 100644 121index bada1b50b0..d074a3820b 100644
122--- a/ld/configure.ac 122--- a/ld/configure.ac
123+++ b/ld/configure.ac 123+++ b/ld/configure.ac
124@@ -95,6 +95,16 @@ AC_SUBST(use_sysroot) 124@@ -95,6 +95,16 @@ AC_SUBST(use_sysroot)
@@ -139,10 +139,10 @@ index 00080f85fd..3aa98e37fb 100644
139 dnl "install_as_default" is set to false if gold is the default linker. 139 dnl "install_as_default" is set to false if gold is the default linker.
140 dnl "installed_linker" is the installed BFD linker name. 140 dnl "installed_linker" is the installed BFD linker name.
141diff --git a/ld/ld.h b/ld/ld.h 141diff --git a/ld/ld.h b/ld/ld.h
142index c6fa1247f0..01c373498f 100644 142index ba914b921e..9df17dab6c 100644
143--- a/ld/ld.h 143--- a/ld/ld.h
144+++ b/ld/ld.h 144+++ b/ld/ld.h
145@@ -174,6 +174,14 @@ typedef struct 145@@ -180,6 +180,14 @@ typedef struct
146 in the linker script. */ 146 in the linker script. */
147 bfd_boolean force_group_allocation; 147 bfd_boolean force_group_allocation;
148 148
@@ -158,10 +158,10 @@ index c6fa1247f0..01c373498f 100644
158 enum endian_enum endian; 158 enum endian_enum endian;
159 159
160diff --git a/ld/ld.texinfo b/ld/ld.texinfo 160diff --git a/ld/ld.texinfo b/ld/ld.texinfo
161index ebe7e7b7bd..33aa2c62fa 100644 161index c89915f1aa..df430837e2 100644
162--- a/ld/ld.texinfo 162--- a/ld/ld.texinfo
163+++ b/ld/ld.texinfo 163+++ b/ld/ld.texinfo
164@@ -2480,6 +2480,18 @@ string identifying the original linked file does not change. 164@@ -2498,6 +2498,18 @@ string identifying the original linked file does not change.
165 165
166 Passing @code{none} for @var{style} disables the setting from any 166 Passing @code{none} for @var{style} disables the setting from any
167 @code{--build-id} options earlier on the command line. 167 @code{--build-id} options earlier on the command line.
@@ -181,7 +181,7 @@ index ebe7e7b7bd..33aa2c62fa 100644
181 181
182 @c man end 182 @c man end
183diff --git a/ld/ldfile.c b/ld/ldfile.c 183diff --git a/ld/ldfile.c b/ld/ldfile.c
184index 3b37a0a3e2..5c85b01849 100644 184index 6532a57d96..f943f0b2e5 100644
185--- a/ld/ldfile.c 185--- a/ld/ldfile.c
186+++ b/ld/ldfile.c 186+++ b/ld/ldfile.c
187@@ -116,6 +116,23 @@ ldfile_add_library_path (const char *name, bfd_boolean cmdline) 187@@ -116,6 +116,23 @@ ldfile_add_library_path (const char *name, bfd_boolean cmdline)
@@ -209,7 +209,7 @@ index 3b37a0a3e2..5c85b01849 100644
209 209
210 /* Try to open a BFD for a lang_input_statement. */ 210 /* Try to open a BFD for a lang_input_statement. */
211diff --git a/ld/ldlex.h b/ld/ldlex.h 211diff --git a/ld/ldlex.h b/ld/ldlex.h
212index 5aa7f6bc3e..cb655e0399 100644 212index 140ed1d9da..9965cbc04f 100644
213--- a/ld/ldlex.h 213--- a/ld/ldlex.h
214+++ b/ld/ldlex.h 214+++ b/ld/ldlex.h
215@@ -147,6 +147,8 @@ enum option_values 215@@ -147,6 +147,8 @@ enum option_values
@@ -222,7 +222,7 @@ index 5aa7f6bc3e..cb655e0399 100644
222 222
223 /* The initial parser states. */ 223 /* The initial parser states. */
224diff --git a/ld/ldmain.c b/ld/ldmain.c 224diff --git a/ld/ldmain.c b/ld/ldmain.c
225index 2b09f20413..89e2a3a805 100644 225index c473ed24c3..adae0b4610 100644
226--- a/ld/ldmain.c 226--- a/ld/ldmain.c
227+++ b/ld/ldmain.c 227+++ b/ld/ldmain.c
228@@ -261,6 +261,8 @@ main (int argc, char **argv) 228@@ -261,6 +261,8 @@ main (int argc, char **argv)
@@ -235,7 +235,7 @@ index 2b09f20413..89e2a3a805 100644
235 /* We initialize DEMANGLING based on the environment variable 235 /* We initialize DEMANGLING based on the environment variable
236 COLLECT_NO_DEMANGLE. The gcc collect2 program will demangle the 236 COLLECT_NO_DEMANGLE. The gcc collect2 program will demangle the
237diff --git a/ld/lexsup.c b/ld/lexsup.c 237diff --git a/ld/lexsup.c b/ld/lexsup.c
238index effa277b16..e4929607e9 100644 238index f2191602d4..bccb3bdeef 100644
239--- a/ld/lexsup.c 239--- a/ld/lexsup.c
240+++ b/ld/lexsup.c 240+++ b/ld/lexsup.c
241@@ -538,6 +538,14 @@ static const struct ld_option ld_options[] = 241@@ -538,6 +538,14 @@ static const struct ld_option ld_options[] =
@@ -269,5 +269,5 @@ index effa277b16..e4929607e9 100644
269 } 269 }
270 270
271-- 271--
2722.14.0 2722.16.1
273 273
diff --git a/meta/recipes-devtools/binutils/binutils/0010-Fix-rpath-in-libtool-when-sysroot-is-enabled.patch b/meta/recipes-devtools/binutils/binutils/0010-Fix-rpath-in-libtool-when-sysroot-is-enabled.patch
index 496242efa4..33dfff9bd7 100644
--- a/meta/recipes-devtools/binutils/binutils/0010-Fix-rpath-in-libtool-when-sysroot-is-enabled.patch
+++ b/meta/recipes-devtools/binutils/binutils/0010-Fix-rpath-in-libtool-when-sysroot-is-enabled.patch
@@ -1,4 +1,4 @@
1From 88fac08f1c472c612f381cbb9408756f2f58b4ff Mon Sep 17 00:00:00 2001 1From e205ae05c41a8cc8d47708f0a3b6f740e2bf2526 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 2 Mar 2015 01:42:38 +0000 3Date: Mon, 2 Mar 2015 01:42:38 +0000
4Subject: [PATCH 10/15] Fix rpath in libtool when sysroot is enabled 4Subject: [PATCH 10/15] Fix rpath in libtool when sysroot is enabled
@@ -48,5 +48,5 @@ index 70e856e065..11ee684ccc 100644
48 if test -z "$hardcode_libdirs"; then 48 if test -z "$hardcode_libdirs"; then
49 hardcode_libdirs="$libdir" 49 hardcode_libdirs="$libdir"
50-- 50--
512.14.0 512.16.1
52 52
diff --git a/meta/recipes-devtools/binutils/binutils/0011-Change-default-emulation-for-mips64-linux.patch b/meta/recipes-devtools/binutils/binutils/0011-Change-default-emulation-for-mips64-linux.patch
index ac87a2d1de..80fcbc1194 100644
--- a/meta/recipes-devtools/binutils/binutils/0011-Change-default-emulation-for-mips64-linux.patch
+++ b/meta/recipes-devtools/binutils/binutils/0011-Change-default-emulation-for-mips64-linux.patch
@@ -1,4 +1,4 @@
1From 497660bdbeb6788786553a5d733105f7f898dc62 Mon Sep 17 00:00:00 2001 1From 7978c1299021033c35c29c94e0997235f7ede248 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 2 Mar 2015 01:44:14 +0000 3Date: Mon, 2 Mar 2015 01:44:14 +0000
4Subject: [PATCH 11/15] Change default emulation for mips64*-*-linux 4Subject: [PATCH 11/15] Change default emulation for mips64*-*-linux
@@ -14,10 +14,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
14 2 files changed, 8 insertions(+), 8 deletions(-) 14 2 files changed, 8 insertions(+), 8 deletions(-)
15 15
16diff --git a/bfd/config.bfd b/bfd/config.bfd 16diff --git a/bfd/config.bfd b/bfd/config.bfd
17index dc24aabad5..4511024f22 100644 17index f04a993f06..8777f96bd2 100644
18--- a/bfd/config.bfd 18--- a/bfd/config.bfd
19+++ b/bfd/config.bfd 19+++ b/bfd/config.bfd
20@@ -1186,12 +1186,12 @@ case "${targ}" in 20@@ -1189,12 +1189,12 @@ case "${targ}" in
21 targ_selvecs="mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec mips_ecoff_be_vec mips_ecoff_le_vec" 21 targ_selvecs="mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec mips_ecoff_be_vec mips_ecoff_le_vec"
22 ;; 22 ;;
23 mips64*el-*-linux*) 23 mips64*el-*-linux*)
@@ -35,12 +35,12 @@ index dc24aabad5..4511024f22 100644
35 mips*el-*-linux*) 35 mips*el-*-linux*)
36 targ_defvec=mips_elf32_trad_le_vec 36 targ_defvec=mips_elf32_trad_le_vec
37diff --git a/ld/configure.tgt b/ld/configure.tgt 37diff --git a/ld/configure.tgt b/ld/configure.tgt
38index 47c719cd05..fe7b9238b2 100644 38index 6183a85b3d..1d78465590 100644
39--- a/ld/configure.tgt 39--- a/ld/configure.tgt
40+++ b/ld/configure.tgt 40+++ b/ld/configure.tgt
41@@ -530,11 +530,11 @@ mips*el-*-vxworks*) targ_emul=elf32elmipvxworks 41@@ -535,11 +535,11 @@ mips*el-*-vxworks*) targ_emul=elf32elmipvxworks
42 mips*-*-vxworks*) targ_emul=elf32ebmipvxworks 42 mips*-*-vxworks*) targ_emul=elf32ebmipvxworks
43 targ_extra_emuls="elf32elmipvxworks" ;; 43 targ_extra_emuls="elf32elmipvxworks" ;;
44 mips*-*-windiss) targ_emul=elf32mipswindiss ;; 44 mips*-*-windiss) targ_emul=elf32mipswindiss ;;
45-mips64*el-*-linux-*) targ_emul=elf32ltsmipn32 45-mips64*el-*-linux-*) targ_emul=elf32ltsmipn32
46- targ_extra_emuls="elf32btsmipn32 elf32ltsmip elf32btsmip elf64ltsmip elf64btsmip" 46- targ_extra_emuls="elf32btsmipn32 elf32ltsmip elf32btsmip elf64ltsmip elf64btsmip"
@@ -55,5 +55,5 @@ index 47c719cd05..fe7b9238b2 100644
55 mips*el-*-linux-*) targ_emul=elf32ltsmip 55 mips*el-*-linux-*) targ_emul=elf32ltsmip
56 targ_extra_emuls="elf32btsmip elf32ltsmipn32 elf64ltsmip elf32btsmipn32 elf64btsmip" 56 targ_extra_emuls="elf32btsmip elf32ltsmipn32 elf64ltsmip elf32btsmipn32 elf64btsmip"
57-- 57--
582.14.0 582.16.1
59 59
diff --git a/meta/recipes-devtools/binutils/binutils/0012-Add-support-for-Netlogic-XLP.patch b/meta/recipes-devtools/binutils/binutils/0012-Add-support-for-Netlogic-XLP.patch
index dc5e580739..1fefb680f8 100644
--- a/meta/recipes-devtools/binutils/binutils/0012-Add-support-for-Netlogic-XLP.patch
+++ b/meta/recipes-devtools/binutils/binutils/0012-Add-support-for-Netlogic-XLP.patch
@@ -1,4 +1,4 @@
1From 8c60a55d3678589d93739bd27fec216911d80968 Mon Sep 17 00:00:00 2001 1From 3b40bf584615f794b85fd50d4d0a5c0a1d2ee7bf Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Sun, 14 Feb 2016 17:06:19 +0000 3Date: Sun, 14 Feb 2016 17:06:19 +0000
4Subject: [PATCH 12/15] Add support for Netlogic XLP 4Subject: [PATCH 12/15] Add support for Netlogic XLP
@@ -34,7 +34,7 @@ Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
34 14 files changed, 61 insertions(+), 21 deletions(-) 34 14 files changed, 61 insertions(+), 21 deletions(-)
35 35
36diff --git a/bfd/aoutx.h b/bfd/aoutx.h 36diff --git a/bfd/aoutx.h b/bfd/aoutx.h
37index 3d38fda14b..0aec49bbb3 100644 37index eec9c4ad2a..3bf0a71e63 100644
38--- a/bfd/aoutx.h 38--- a/bfd/aoutx.h
39+++ b/bfd/aoutx.h 39+++ b/bfd/aoutx.h
40@@ -814,6 +814,7 @@ NAME (aout, machine_type) (enum bfd_architecture arch, 40@@ -814,6 +814,7 @@ NAME (aout, machine_type) (enum bfd_architecture arch,
@@ -46,34 +46,34 @@ index 3d38fda14b..0aec49bbb3 100644
46 arch_flags = M_MIPS2; 46 arch_flags = M_MIPS2;
47 break; 47 break;
48diff --git a/bfd/archures.c b/bfd/archures.c 48diff --git a/bfd/archures.c b/bfd/archures.c
49index 433b95fa08..063b7943a1 100644 49index e83c57a2f3..3016ea1bae 100644
50--- a/bfd/archures.c 50--- a/bfd/archures.c
51+++ b/bfd/archures.c 51+++ b/bfd/archures.c
52@@ -201,6 +201,7 @@ DESCRIPTION 52@@ -201,6 +201,7 @@ DESCRIPTION
53 .#define bfd_mach_mips_octeon3 6503 53 .#define bfd_mach_mips_octeon3 6503
54 .#define bfd_mach_mips_xlr 887682 {* decimal 'XLR' *} 54 .#define bfd_mach_mips_xlr 887682 {* decimal 'XLR'. *}
55 .#define bfd_mach_mips_interaptiv_mr2 736550 {* decimal 'IA2' *} 55 .#define bfd_mach_mips_interaptiv_mr2 736550 {* decimal 'IA2'. *}
56+.#define bfd_mach_mips_xlp 887680 {* decimal 'XLP' *} 56+.#define bfd_mach_mips_xlp 887680 {* decimal 'XLP'. *}
57 .#define bfd_mach_mipsisa32 32 57 .#define bfd_mach_mipsisa32 32
58 .#define bfd_mach_mipsisa32r2 33 58 .#define bfd_mach_mipsisa32r2 33
59 .#define bfd_mach_mipsisa32r3 34 59 .#define bfd_mach_mipsisa32r3 34
60diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h 60diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
61index d126aed086..2b753b3a93 100644 61index 42991e7848..27abc5d5a8 100644
62--- a/bfd/bfd-in2.h 62--- a/bfd/bfd-in2.h
63+++ b/bfd/bfd-in2.h 63+++ b/bfd/bfd-in2.h
64@@ -2060,6 +2060,7 @@ enum bfd_architecture 64@@ -2062,6 +2062,7 @@ enum bfd_architecture
65 #define bfd_mach_mips_octeon3 6503 65 #define bfd_mach_mips_octeon3 6503
66 #define bfd_mach_mips_xlr 887682 /* decimal 'XLR' */ 66 #define bfd_mach_mips_xlr 887682 /* decimal 'XLR'. */
67 #define bfd_mach_mips_interaptiv_mr2 736550 /* decimal 'IA2' */ 67 #define bfd_mach_mips_interaptiv_mr2 736550 /* decimal 'IA2'. */
68+#define bfd_mach_mips_xlp 887680 /* decimal 'XLP' */ 68+#define bfd_mach_mips_xlp 887680 /* decimal 'XLP'. */
69 #define bfd_mach_mipsisa32 32 69 #define bfd_mach_mipsisa32 32
70 #define bfd_mach_mipsisa32r2 33 70 #define bfd_mach_mipsisa32r2 33
71 #define bfd_mach_mipsisa32r3 34 71 #define bfd_mach_mipsisa32r3 34
72diff --git a/bfd/config.bfd b/bfd/config.bfd 72diff --git a/bfd/config.bfd b/bfd/config.bfd
73index 4511024f22..f0f9072f10 100644 73index 8777f96bd2..7b80bda8c9 100644
74--- a/bfd/config.bfd 74--- a/bfd/config.bfd
75+++ b/bfd/config.bfd 75+++ b/bfd/config.bfd
76@@ -1169,6 +1169,11 @@ case "${targ}" in 76@@ -1172,6 +1172,11 @@ case "${targ}" in
77 targ_defvec=mips_elf32_le_vec 77 targ_defvec=mips_elf32_le_vec
78 targ_selvecs="mips_elf32_be_vec mips_elf64_be_vec mips_elf64_le_vec" 78 targ_selvecs="mips_elf32_be_vec mips_elf64_be_vec mips_elf64_le_vec"
79 ;; 79 ;;
@@ -86,7 +86,7 @@ index 4511024f22..f0f9072f10 100644
86 targ_defvec=mips_elf32_be_vec 86 targ_defvec=mips_elf32_be_vec
87 targ_selvecs="mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec" 87 targ_selvecs="mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec"
88diff --git a/bfd/cpu-mips.c b/bfd/cpu-mips.c 88diff --git a/bfd/cpu-mips.c b/bfd/cpu-mips.c
89index 2493094bef..8375d1ae96 100644 89index cb50c64371..2b9d1d6ecf 100644
90--- a/bfd/cpu-mips.c 90--- a/bfd/cpu-mips.c
91+++ b/bfd/cpu-mips.c 91+++ b/bfd/cpu-mips.c
92@@ -105,7 +105,8 @@ enum 92@@ -105,7 +105,8 @@ enum
@@ -100,7 +100,7 @@ index 2493094bef..8375d1ae96 100644
100 100
101 #define NN(index) (&arch_info_struct[(index) + 1]) 101 #define NN(index) (&arch_info_struct[(index) + 1])
102@@ -158,7 +159,8 @@ static const bfd_arch_info_type arch_info_struct[] = 102@@ -158,7 +159,8 @@ static const bfd_arch_info_type arch_info_struct[] =
103 N (64, 64, bfd_mach_mips_xlr, "mips:xlr", FALSE, NN(I_xlr)), 103 N (64, 64, bfd_mach_mips_xlr, "mips:xlr", FALSE, NN(I_xlr)),
104 N (32, 32, bfd_mach_mips_interaptiv_mr2, "mips:interaptiv-mr2", FALSE, 104 N (32, 32, bfd_mach_mips_interaptiv_mr2, "mips:interaptiv-mr2", FALSE,
105 NN(I_interaptiv_mr2)), 105 NN(I_interaptiv_mr2)),
106- N (64, 64, bfd_mach_mips_micromips,"mips:micromips",FALSE,0) 106- N (64, 64, bfd_mach_mips_micromips,"mips:micromips",FALSE,0)
@@ -110,10 +110,10 @@ index 2493094bef..8375d1ae96 100644
110 110
111 /* The default architecture is mips:3000, but with a machine number of 111 /* The default architecture is mips:3000, but with a machine number of
112diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c 112diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c
113index fddf68c816..354c85d00b 100644 113index 285401367d..14ebb5f175 100644
114--- a/bfd/elfxx-mips.c 114--- a/bfd/elfxx-mips.c
115+++ b/bfd/elfxx-mips.c 115+++ b/bfd/elfxx-mips.c
116@@ -6796,6 +6796,9 @@ _bfd_elf_mips_mach (flagword flags) 116@@ -6806,6 +6806,9 @@ _bfd_elf_mips_mach (flagword flags)
117 case E_MIPS_MACH_IAMR2: 117 case E_MIPS_MACH_IAMR2:
118 return bfd_mach_mips_interaptiv_mr2; 118 return bfd_mach_mips_interaptiv_mr2;
119 119
@@ -123,7 +123,7 @@ index fddf68c816..354c85d00b 100644
123 default: 123 default:
124 switch (flags & EF_MIPS_ARCH) 124 switch (flags & EF_MIPS_ARCH)
125 { 125 {
126@@ -11956,6 +11959,10 @@ mips_set_isa_flags (bfd *abfd) 126@@ -11963,6 +11966,10 @@ mips_set_isa_flags (bfd *abfd)
127 val = E_MIPS_ARCH_64R2 | E_MIPS_MACH_OCTEON2; 127 val = E_MIPS_ARCH_64R2 | E_MIPS_MACH_OCTEON2;
128 break; 128 break;
129 129
@@ -134,7 +134,7 @@ index fddf68c816..354c85d00b 100644
134 case bfd_mach_mipsisa32: 134 case bfd_mach_mipsisa32:
135 val = E_MIPS_ARCH_32; 135 val = E_MIPS_ARCH_32;
136 break; 136 break;
137@@ -13989,6 +13996,7 @@ static const struct mips_mach_extension mips_mach_extensions[] = 137@@ -13936,6 +13943,7 @@ static const struct mips_mach_extension mips_mach_extensions[] =
138 { bfd_mach_mips_octeonp, bfd_mach_mips_octeon }, 138 { bfd_mach_mips_octeonp, bfd_mach_mips_octeon },
139 { bfd_mach_mips_octeon, bfd_mach_mipsisa64r2 }, 139 { bfd_mach_mips_octeon, bfd_mach_mipsisa64r2 },
140 { bfd_mach_mips_loongson_3a, bfd_mach_mipsisa64r2 }, 140 { bfd_mach_mips_loongson_3a, bfd_mach_mipsisa64r2 },
@@ -143,10 +143,10 @@ index fddf68c816..354c85d00b 100644
143 /* MIPS64 extensions. */ 143 /* MIPS64 extensions. */
144 { bfd_mach_mipsisa64r2, bfd_mach_mipsisa64 }, 144 { bfd_mach_mipsisa64r2, bfd_mach_mipsisa64 },
145diff --git a/binutils/readelf.c b/binutils/readelf.c 145diff --git a/binutils/readelf.c b/binutils/readelf.c
146index 2b15f0f2cb..092744708e 100644 146index ae1cda9a7b..fed0387a94 100644
147--- a/binutils/readelf.c 147--- a/binutils/readelf.c
148+++ b/binutils/readelf.c 148+++ b/binutils/readelf.c
149@@ -3335,6 +3335,7 @@ get_machine_flags (unsigned e_flags, unsigned e_machine) 149@@ -3370,6 +3370,7 @@ get_machine_flags (Filedata * filedata, unsigned e_flags, unsigned e_machine)
150 case E_MIPS_MACH_OCTEON3: strcat (buf, ", octeon3"); break; 150 case E_MIPS_MACH_OCTEON3: strcat (buf, ", octeon3"); break;
151 case E_MIPS_MACH_XLR: strcat (buf, ", xlr"); break; 151 case E_MIPS_MACH_XLR: strcat (buf, ", xlr"); break;
152 case E_MIPS_MACH_IAMR2: strcat (buf, ", interaptiv-mr2"); break; 152 case E_MIPS_MACH_IAMR2: strcat (buf, ", interaptiv-mr2"); break;
@@ -155,7 +155,7 @@ index 2b15f0f2cb..092744708e 100644
155 /* We simply ignore the field in this case to avoid confusion: 155 /* We simply ignore the field in this case to avoid confusion:
156 MIPS ELF does not specify EF_MIPS_MACH, it is a GNU 156 MIPS ELF does not specify EF_MIPS_MACH, it is a GNU
157diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c 157diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
158index 3804df2958..9576c986db 100644 158index c135131b59..d8fbda8e31 100644
159--- a/gas/config/tc-mips.c 159--- a/gas/config/tc-mips.c
160+++ b/gas/config/tc-mips.c 160+++ b/gas/config/tc-mips.c
161@@ -552,6 +552,7 @@ static int mips_32bitmode = 0; 161@@ -552,6 +552,7 @@ static int mips_32bitmode = 0;
@@ -174,7 +174,7 @@ index 3804df2958..9576c986db 100644
174 ) 174 )
175 175
176 /* Whether the processor uses hardware interlocks to protect reads 176 /* Whether the processor uses hardware interlocks to protect reads
177@@ -19738,7 +19740,7 @@ static const struct mips_cpu_info mips_cpu_info_table[] = 177@@ -19737,7 +19739,7 @@ static const struct mips_cpu_info mips_cpu_info_table[] =
178 /* Broadcom XLP. 178 /* Broadcom XLP.
179 XLP is mostly like XLR, with the prominent exception that it is 179 XLP is mostly like XLR, with the prominent exception that it is
180 MIPS64R2 rather than MIPS64. */ 180 MIPS64R2 rather than MIPS64. */
@@ -184,7 +184,7 @@ index 3804df2958..9576c986db 100644
184 /* MIPS 64 Release 6 */ 184 /* MIPS 64 Release 6 */
185 { "i6400", 0, ASE_MSA, ISA_MIPS64R6, CPU_MIPS64R6}, 185 { "i6400", 0, ASE_MSA, ISA_MIPS64R6, CPU_MIPS64R6},
186diff --git a/gas/configure b/gas/configure 186diff --git a/gas/configure b/gas/configure
187index 81dd4cbd97..95bdf3b19b 100755 187index a40ac2144f..65a6995243 100755
188--- a/gas/configure 188--- a/gas/configure
189+++ b/gas/configure 189+++ b/gas/configure
190@@ -12989,6 +12989,9 @@ _ACEOF 190@@ -12989,6 +12989,9 @@ _ACEOF
@@ -198,7 +198,7 @@ index 81dd4cbd97..95bdf3b19b 100755
198 mips_cpu=r3900 198 mips_cpu=r3900
199 ;; 199 ;;
200diff --git a/include/elf/mips.h b/include/elf/mips.h 200diff --git a/include/elf/mips.h b/include/elf/mips.h
201index a4bea43ff8..73d904e25f 100644 201index 9de0b4e175..74fc4f7e55 100644
202--- a/include/elf/mips.h 202--- a/include/elf/mips.h
203+++ b/include/elf/mips.h 203+++ b/include/elf/mips.h
204@@ -290,6 +290,7 @@ END_RELOC_NUMBERS (R_MIPS_maxext) 204@@ -290,6 +290,7 @@ END_RELOC_NUMBERS (R_MIPS_maxext)
@@ -210,7 +210,7 @@ index a4bea43ff8..73d904e25f 100644
210 #define E_MIPS_MACH_OCTEON3 0x008e0000 210 #define E_MIPS_MACH_OCTEON3 0x008e0000
211 #define E_MIPS_MACH_5400 0x00910000 211 #define E_MIPS_MACH_5400 0x00910000
212diff --git a/include/opcode/mips.h b/include/opcode/mips.h 212diff --git a/include/opcode/mips.h b/include/opcode/mips.h
213index ceae9ec50a..276ee3c6c1 100644 213index 5eea72f139..90f6d57e15 100644
214--- a/include/opcode/mips.h 214--- a/include/opcode/mips.h
215+++ b/include/opcode/mips.h 215+++ b/include/opcode/mips.h
216@@ -1259,6 +1259,8 @@ static const unsigned int mips_isa_table[] = { 216@@ -1259,6 +1259,8 @@ static const unsigned int mips_isa_table[] = {
@@ -241,10 +241,10 @@ index ceae9ec50a..276ee3c6c1 100644
241 return FALSE; 241 return FALSE;
242 } 242 }
243diff --git a/ld/configure.tgt b/ld/configure.tgt 243diff --git a/ld/configure.tgt b/ld/configure.tgt
244index fe7b9238b2..2adf108b17 100644 244index 1d78465590..307e787b64 100644
245--- a/ld/configure.tgt 245--- a/ld/configure.tgt
246+++ b/ld/configure.tgt 246+++ b/ld/configure.tgt
247@@ -516,6 +516,8 @@ mips*el-sde-elf* | mips*el-mti-elf* | mips*el-img-elf*) 247@@ -521,6 +521,8 @@ mips*el-sde-elf* | mips*el-mti-elf* | mips*el-img-elf*)
248 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) 248 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
249 targ_emul=elf32btsmip 249 targ_emul=elf32btsmip
250 targ_extra_emuls="elf32ltsmip elf32btsmipn32 elf64btsmip elf32ltsmipn32 elf64ltsmip" ;; 250 targ_extra_emuls="elf32ltsmip elf32btsmipn32 elf64btsmip elf32ltsmipn32 elf64ltsmip" ;;
@@ -254,7 +254,7 @@ index fe7b9238b2..2adf108b17 100644
254 targ_extra_emuls="elf32lr5900" 254 targ_extra_emuls="elf32lr5900"
255 targ_extra_libpath=$targ_extra_emuls ;; 255 targ_extra_libpath=$targ_extra_emuls ;;
256diff --git a/opcodes/mips-dis.c b/opcodes/mips-dis.c 256diff --git a/opcodes/mips-dis.c b/opcodes/mips-dis.c
257index 45195007c1..4a80a05d19 100644 257index 984fcbb802..95b107d216 100644
258--- a/opcodes/mips-dis.c 258--- a/opcodes/mips-dis.c
259+++ b/opcodes/mips-dis.c 259+++ b/opcodes/mips-dis.c
260@@ -655,13 +655,11 @@ const struct mips_arch_choice mips_arch_choices[] = 260@@ -655,13 +655,11 @@ const struct mips_arch_choice mips_arch_choices[] =
@@ -277,7 +277,7 @@ index 45195007c1..4a80a05d19 100644
277 /* This entry, mips16, is here only for ISA/processor selection; do 277 /* This entry, mips16, is here only for ISA/processor selection; do
278 not print its name. */ 278 not print its name. */
279diff --git a/opcodes/mips-opc.c b/opcodes/mips-opc.c 279diff --git a/opcodes/mips-opc.c b/opcodes/mips-opc.c
280index 19fca408c9..d02069c528 100644 280index 180d613c93..65b7b8cc23 100644
281--- a/opcodes/mips-opc.c 281--- a/opcodes/mips-opc.c
282+++ b/opcodes/mips-opc.c 282+++ b/opcodes/mips-opc.c
283@@ -328,6 +328,7 @@ decode_mips_operand (const char *p) 283@@ -328,6 +328,7 @@ decode_mips_operand (const char *p)
@@ -389,5 +389,5 @@ index 19fca408c9..d02069c528 100644
389 {"swc0", "E,A(b)", 0, (int) M_SWC0_AB, INSN_MACRO, 0, I1, 0, IOCT|IOCTP|IOCT2|I37 }, 389 {"swc0", "E,A(b)", 0, (int) M_SWC0_AB, INSN_MACRO, 0, I1, 0, IOCT|IOCTP|IOCT2|I37 },
390 {"swc1", "T,o(b)", 0xe4000000, 0xfc000000, RD_1|RD_3|SM|FP_S, 0, I1, 0, 0 }, 390 {"swc1", "T,o(b)", 0xe4000000, 0xfc000000, RD_1|RD_3|SM|FP_S, 0, I1, 0, 0 },
391-- 391--
3922.14.0 3922.16.1
393 393
diff --git a/meta/recipes-devtools/binutils/binutils/0013-fix-the-incorrect-assembling-for-ppc-wait-mnemonic.patch b/meta/recipes-devtools/binutils/binutils/0013-fix-the-incorrect-assembling-for-ppc-wait-mnemonic.patch
index 247376b7ed..c3e1b13841 100644
--- a/meta/recipes-devtools/binutils/binutils/0013-fix-the-incorrect-assembling-for-ppc-wait-mnemonic.patch
+++ b/meta/recipes-devtools/binutils/binutils/0013-fix-the-incorrect-assembling-for-ppc-wait-mnemonic.patch
@@ -1,4 +1,4 @@
1From e46202becab625c6c08caf91e08ccbbc1bf799c4 Mon Sep 17 00:00:00 2001 1From 27ec22ca3cd56cfdf060d2e1f414bedce269b322 Mon Sep 17 00:00:00 2001
2From: Zhenhua Luo <zhenhua.luo@nxp.com> 2From: Zhenhua Luo <zhenhua.luo@nxp.com>
3Date: Sat, 11 Jun 2016 22:08:29 -0500 3Date: Sat, 11 Jun 2016 22:08:29 -0500
4Subject: [PATCH 13/15] fix the incorrect assembling for ppc wait mnemonic 4Subject: [PATCH 13/15] fix the incorrect assembling for ppc wait mnemonic
@@ -11,10 +11,10 @@ Upstream-Status: Pending
11 1 file changed, 1 insertion(+), 2 deletions(-) 11 1 file changed, 1 insertion(+), 2 deletions(-)
12 12
13diff --git a/opcodes/ppc-opc.c b/opcodes/ppc-opc.c 13diff --git a/opcodes/ppc-opc.c b/opcodes/ppc-opc.c
14index 426261ab21..0d35916cdd 100644 14index bb17f26c2e..dbdd762b4e 100644
15--- a/opcodes/ppc-opc.c 15--- a/opcodes/ppc-opc.c
16+++ b/opcodes/ppc-opc.c 16+++ b/opcodes/ppc-opc.c
17@@ -4881,7 +4881,6 @@ const struct powerpc_opcode powerpc_opcodes[] = { 17@@ -5338,7 +5338,6 @@ const struct powerpc_opcode powerpc_opcodes[] = {
18 {"ldepx", X(31,29), X_MASK, E500MC|PPCA2, 0, {RT, RA0, RB}}, 18 {"ldepx", X(31,29), X_MASK, E500MC|PPCA2, 0, {RT, RA0, RB}},
19 19
20 {"waitasec", X(31,30), XRTRARB_MASK, POWER8, POWER9, {0}}, 20 {"waitasec", X(31,30), XRTRARB_MASK, POWER8, POWER9, {0}},
@@ -22,7 +22,7 @@ index 426261ab21..0d35916cdd 100644
22 22
23 {"lwepx", X(31,31), X_MASK, E500MC|PPCA2, 0, {RT, RA0, RB}}, 23 {"lwepx", X(31,31), X_MASK, E500MC|PPCA2, 0, {RT, RA0, RB}},
24 24
25@@ -4935,7 +4934,7 @@ const struct powerpc_opcode powerpc_opcodes[] = { 25@@ -5392,7 +5391,7 @@ const struct powerpc_opcode powerpc_opcodes[] = {
26 26
27 {"waitrsv", X(31,62)|(1<<21), 0xffffffff, E500MC|PPCA2, 0, {0}}, 27 {"waitrsv", X(31,62)|(1<<21), 0xffffffff, E500MC|PPCA2, 0, {0}},
28 {"waitimpl", X(31,62)|(2<<21), 0xffffffff, E500MC|PPCA2, 0, {0}}, 28 {"waitimpl", X(31,62)|(2<<21), 0xffffffff, E500MC|PPCA2, 0, {0}},
@@ -32,5 +32,5 @@ index 426261ab21..0d35916cdd 100644
32 {"dcbstep", XRT(31,63,0), XRT_MASK, E500MC|PPCA2, 0, {RA0, RB}}, 32 {"dcbstep", XRT(31,63,0), XRT_MASK, E500MC|PPCA2, 0, {RA0, RB}},
33 33
34-- 34--
352.14.0 352.16.1
36 36
diff --git a/meta/recipes-devtools/binutils/binutils/0014-Detect-64-bit-MIPS-targets.patch b/meta/recipes-devtools/binutils/binutils/0014-Detect-64-bit-MIPS-targets.patch
index 42b1065f8d..cf3690f25d 100644
--- a/meta/recipes-devtools/binutils/binutils/0014-Detect-64-bit-MIPS-targets.patch
+++ b/meta/recipes-devtools/binutils/binutils/0014-Detect-64-bit-MIPS-targets.patch
@@ -1,4 +1,4 @@
1From bf20d5823662d1f2eb47de2cdfd173627a205b17 Mon Sep 17 00:00:00 2001 1From 7dfbd6889d868a09d695dd2736104848c1a9c9c3 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 31 Mar 2017 11:42:03 -0700 3Date: Fri, 31 Mar 2017 11:42:03 -0700
4Subject: [PATCH 14/15] Detect 64-bit MIPS targets 4Subject: [PATCH 14/15] Detect 64-bit MIPS targets
@@ -14,7 +14,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
14 1 file changed, 14 insertions(+) 14 1 file changed, 14 insertions(+)
15 15
16diff --git a/gold/configure.tgt b/gold/configure.tgt 16diff --git a/gold/configure.tgt b/gold/configure.tgt
17index 3d63027297..c1f92a1360 100644 17index 8aef22a318..7030026ffa 100644
18--- a/gold/configure.tgt 18--- a/gold/configure.tgt
19+++ b/gold/configure.tgt 19+++ b/gold/configure.tgt
20@@ -153,6 +153,13 @@ aarch64*-*) 20@@ -153,6 +153,13 @@ aarch64*-*)
@@ -46,5 +46,5 @@ index 3d63027297..c1f92a1360 100644
46 targ_obj=mips 46 targ_obj=mips
47 targ_machine=EM_MIPS 47 targ_machine=EM_MIPS
48-- 48--
492.14.0 492.16.1
50 50
diff --git a/meta/recipes-devtools/binutils/binutils/0015-sync-with-OE-libtool-changes.patch b/meta/recipes-devtools/binutils/binutils/0015-sync-with-OE-libtool-changes.patch
index 2c8900cb66..8c9fd237e7 100644
--- a/meta/recipes-devtools/binutils/binutils/0015-sync-with-OE-libtool-changes.patch
+++ b/meta/recipes-devtools/binutils/binutils/0015-sync-with-OE-libtool-changes.patch
@@ -1,4 +1,4 @@
1From 9b456a0e4f284fd41ac36595144ed44dc82410ee Mon Sep 17 00:00:00 2001 1From 298804f430939d6cc94b09732ee93e64c5e6be18 Mon Sep 17 00:00:00 2001
2From: Ross Burton <ross.burton@intel.com> 2From: Ross Burton <ross.burton@intel.com>
3Date: Mon, 6 Mar 2017 23:33:27 -0800 3Date: Mon, 6 Mar 2017 23:33:27 -0800
4Subject: [PATCH 15/15] sync with OE libtool changes 4Subject: [PATCH 15/15] sync with OE libtool changes
@@ -85,5 +85,5 @@ index 11ee684ccc..3b19ac1532 100644
85 elif test -n "$runpath_var"; then 85 elif test -n "$runpath_var"; then
86 case "$finalize_perm_rpath " in 86 case "$finalize_perm_rpath " in
87-- 87--
882.14.0 882.16.1
89 89
diff --git a/meta/recipes-devtools/binutils/binutils_2.29.1.bb b/meta/recipes-devtools/binutils/binutils_2.30.bb
index 51a9748906..51a9748906 100644
--- a/meta/recipes-devtools/binutils/binutils_2.29.1.bb
+++ b/meta/recipes-devtools/binutils/binutils_2.30.bb