<div dir="ltr">Hi Khem,<div><br></div><div>We're feature frozen now, I'm assuming there are no amazing reasons to upgrade and this can be merged early in 1.9 M1?</div><div><br></div><div>Ross</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 2 March 2015 at 02:10, Khem Raj <span dir="ltr"><<a href="mailto:raj.khem@gmail.com" target="_blank">raj.khem@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Robert Yang <<a href="mailto:liezhi.yang@windriver.com">liezhi.yang@windriver.com</a>><br>
<br>
* Remove the following patches since they are already in the new code:<br>
binutils/fix-pr15815.patch<br>
binutils/fix-pr16428.patch<br>
binutils/fix-pr16476.patch<br>
binutils/fix-pr2404.patch<br>
binutils/replace_macros_with_static_inline.patch<br>
binutils/binutils_CVE-2014-8484.patch<br>
binutils/binutils_CVE-2014-8485.patch<br>
binutils/binutils_CVE-2014-8501.patch<br>
binutils/binutils_CVE-2014-8502.patch<br>
binutils/binutils_CVE-2014-8502_1.patch<br>
binutils/binutils_CVE-2014-8503.patch<br>
binutils/binutils_CVE-2014-8504.patch<br>
binutils/binutils_CVE-2014-8737.patch<br>
<br>
* The file src-release is gone.<br>
<br>
* Updated patches for the new code.<br>
<br>
Conflicts:<br>
meta/conf/distro/include/tcmode-default.inc<br>
<br>
Change-Id: Ifd88f07771238755081a993b843ace423742eb85<br>
Signed-off-by: Robert Yang <<a href="mailto:liezhi.yang@windriver.com">liezhi.yang@windriver.com</a>><br>
Signed-off-by: Khem Raj <<a href="mailto:raj.khem@gmail.com">raj.khem@gmail.com</a>><br>
---<br>
meta/conf/distro/include/tcmode-default.inc | 2 +-<br>
.../{binutils-2.24.inc => binutils-2.25.inc} | 20 +-<br>
...<a href="http://ian_2.24.bb" target="_blank">ian_2.24.bb</a> => <a href="http://binutils-cross-canadian_2.25.bb" target="_blank">binutils-cross-canadian_2.25.bb</a>} | 0<br>
...<a href="http://nutils-cross_2.24.bb" target="_blank">nutils-cross_2.24.bb</a> => <a href="http://binutils-cross_2.25.bb" target="_blank">binutils-cross_2.25.bb</a>} | 0<br>
...-<a href="http://crosssdk_2.24.bb" target="_blank">crosssdk_2.24.bb</a> => <a href="http://binutils-crosssdk_2.25.bb" target="_blank">binutils-crosssdk_2.25.bb</a>} | 0<br>
.../binutils/binutils/binutils-poison.patch | 40 +-<br>
.../binutils/binutils/binutils-xlp-support.patch | 296 ++++++------<br>
.../binutils/binutils/binutils_CVE-2014-8484.patch | 67 ---<br>
.../binutils/binutils/binutils_CVE-2014-8485.patch | 102 ----<br>
.../binutils/binutils/binutils_CVE-2014-8501.patch | 60 ---<br>
.../binutils/binutils/binutils_CVE-2014-8502.patch | 89 ----<br>
.../binutils/binutils_CVE-2014-8502_1.patch | 523 ---------------------<br>
.../binutils/binutils/binutils_CVE-2014-8503.patch | 47 --<br>
.../binutils/binutils/binutils_CVE-2014-8504.patch | 75 ---<br>
.../binutils/binutils/binutils_CVE-2014-8737.patch | 177 -------<br>
.../binutils/binutils/fix-pr15815.patch | 36 --<br>
.../binutils/binutils/fix-pr16428.patch | 123 -----<br>
.../binutils/binutils/fix-pr16476.patch | 220 ---------<br>
.../binutils/binutils/fix-pr2404.patch | 76 ---<br>
.../binutils/binutils/libtool-2.4-update.patch | 301 ++++++------<br>
.../binutils/mips64-default-ld-emulation.patch | 38 +-<br>
.../replace_macros_with_static_inline.patch | 188 --------<br>
.../{<a href="http://binutils_2.24.bb" target="_blank">binutils_2.24.bb</a> => <a href="http://binutils_2.25.bb" target="_blank">binutils_2.25.bb</a>} | 0<br>
23 files changed, 340 insertions(+), 2140 deletions(-)<br>
rename meta/recipes-devtools/binutils/{binutils-2.24.inc => binutils-2.25.inc} (58%)<br>
rename meta/recipes-devtools/binutils/{<a href="http://binutils-cross-canadian_2.24.bb" target="_blank">binutils-cross-canadian_2.24.bb</a> => <a href="http://binutils-cross-canadian_2.25.bb" target="_blank">binutils-cross-canadian_2.25.bb</a>} (100%)<br>
rename meta/recipes-devtools/binutils/{<a href="http://binutils-cross_2.24.bb" target="_blank">binutils-cross_2.24.bb</a> => <a href="http://binutils-cross_2.25.bb" target="_blank">binutils-cross_2.25.bb</a>} (100%)<br>
rename meta/recipes-devtools/binutils/{<a href="http://binutils-crosssdk_2.24.bb" target="_blank">binutils-crosssdk_2.24.bb</a> => <a href="http://binutils-crosssdk_2.25.bb" target="_blank">binutils-crosssdk_2.25.bb</a>} (100%)<br>
delete mode 100644 meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8484.patch<br>
delete mode 100644 meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8485.patch<br>
delete mode 100644 meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8501.patch<br>
delete mode 100644 meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8502.patch<br>
delete mode 100644 meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8502_1.patch<br>
delete mode 100644 meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8503.patch<br>
delete mode 100644 meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8504.patch<br>
delete mode 100644 meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8737.patch<br>
delete mode 100644 meta/recipes-devtools/binutils/binutils/fix-pr15815.patch<br>
delete mode 100644 meta/recipes-devtools/binutils/binutils/fix-pr16428.patch<br>
delete mode 100644 meta/recipes-devtools/binutils/binutils/fix-pr16476.patch<br>
delete mode 100644 meta/recipes-devtools/binutils/binutils/fix-pr2404.patch<br>
delete mode 100644 meta/recipes-devtools/binutils/binutils/replace_macros_with_static_inline.patch<br>
rename meta/recipes-devtools/binutils/{<a href="http://binutils_2.24.bb" target="_blank">binutils_2.24.bb</a> => <a href="http://binutils_2.25.bb" target="_blank">binutils_2.25.bb</a>} (100%)<br>
<br>
diff --git a/meta/conf/distro/include/tcmode-default.inc b/meta/conf/distro/include/tcmode-default.inc<br>
index 6b602d2..c17e0eb 100644<br>
--- a/meta/conf/distro/include/tcmode-default.inc<br>
+++ b/meta/conf/distro/include/tcmode-default.inc<br>
@@ -24,7 +24,7 @@ PREFERRED_PROVIDER_virtual/gettext ??= "gettext"<br>
<br>
GCCVERSION ?= "4.9%"<br>
SDKGCCVERSION ?= "${GCCVERSION}"<br>
-BINUVERSION ?= "2.24"<br>
+BINUVERSION ?= "2.25"<br>
GLIBCVERSION ?= "2.21"<br>
UCLIBCVERSION ?= "0.9.33+git%"<br>
LINUXLIBCVERSION ?= "3.19"<br>
diff --git a/meta/recipes-devtools/binutils/binutils-2.24.inc b/meta/recipes-devtools/binutils/binutils-2.25.inc<br>
similarity index 58%<br>
rename from meta/recipes-devtools/binutils/binutils-2.24.inc<br>
rename to meta/recipes-devtools/binutils/binutils-2.25.inc<br>
index 63c9287..d69b519 100644<br>
--- a/meta/recipes-devtools/binutils/binutils-2.24.inc<br>
+++ b/meta/recipes-devtools/binutils/binutils-2.25.inc<br>
@@ -1,5 +1,4 @@<br>
LIC_FILES_CHKSUM="\<br>
- file://src-release;endline=17;md5=4830a9ef968f3b18dd5e9f2c00db2d35\<br>
file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552\<br>
file://COPYING.LIB;md5=9f604d8a4f8e74f4f5140845a21b6674\<br>
file://COPYING3;md5=d32239bcb673463ab874e80d47fae504\<br>
@@ -25,22 +24,7 @@ SRC_URI = "\<br>
file://binutils-armv5e.patch \<br>
file://mips64-default-ld-emulation.patch \<br>
file://binutils-xlp-support.patch \<br>
- file://fix-pr15815.patch \<br>
- file://fix-pr2404.patch \<br>
- file://fix-pr16476.patch \<br>
- file://fix-pr16428.patch \<br>
- file://replace_macros_with_static_inline.patch \<br>
- file://0001-Fix-MMIX-build-breakage-from-bfd_set_section_vma-cha.patch \<br>
- file://binutils-uninitialised-warning.patch \<br>
- file://binutils_CVE-2014-8484.patch \<br>
- file://binutils_CVE-2014-8485.patch \<br>
- file://binutils_CVE-2014-8501.patch \<br>
- file://binutils_CVE-2014-8502_1.patch \<br>
- file://binutils_CVE-2014-8502.patch \<br>
- file://binutils_CVE-2014-8503.patch \<br>
- file://binutils_CVE-2014-8504.patch \<br>
- file://binutils_CVE-2014-8737.patch \<br>
"<br>
+SRC_URI[md5sum] = "d9f3303f802a5b6b0bb73a335ab89d66"<br>
+SRC_URI[sha256sum] = "22defc65cfa3ef2a3395faaea75d6331c6e62ea5dfacfed3e2ec17b08c882923"<br>
<br>
-SRC_URI[md5sum] = "e0f71a7b2ddab0f8612336ac81d9636b"<br>
-SRC_URI[sha256sum] = "e5e8c5be9664e7f7f96e0d09919110ab5ad597794f5b1809871177a0f0f14137"<br>
diff --git a/meta/recipes-devtools/binutils/<a href="http://binutils-cross-canadian_2.24.bb" target="_blank">binutils-cross-canadian_2.24.bb</a> b/meta/recipes-devtools/binutils/<a href="http://binutils-cross-canadian_2.25.bb" target="_blank">binutils-cross-canadian_2.25.bb</a><br>
similarity index 100%<br>
rename from meta/recipes-devtools/binutils/<a href="http://binutils-cross-canadian_2.24.bb" target="_blank">binutils-cross-canadian_2.24.bb</a><br>
rename to meta/recipes-devtools/binutils/<a href="http://binutils-cross-canadian_2.25.bb" target="_blank">binutils-cross-canadian_2.25.bb</a><br>
diff --git a/meta/recipes-devtools/binutils/<a href="http://binutils-cross_2.24.bb" target="_blank">binutils-cross_2.24.bb</a> b/meta/recipes-devtools/binutils/<a href="http://binutils-cross_2.25.bb" target="_blank">binutils-cross_2.25.bb</a><br>
similarity index 100%<br>
rename from meta/recipes-devtools/binutils/<a href="http://binutils-cross_2.24.bb" target="_blank">binutils-cross_2.24.bb</a><br>
rename to meta/recipes-devtools/binutils/<a href="http://binutils-cross_2.25.bb" target="_blank">binutils-cross_2.25.bb</a><br>
diff --git a/meta/recipes-devtools/binutils/<a href="http://binutils-crosssdk_2.24.bb" target="_blank">binutils-crosssdk_2.24.bb</a> b/meta/recipes-devtools/binutils/<a href="http://binutils-crosssdk_2.25.bb" target="_blank">binutils-crosssdk_2.25.bb</a><br>
similarity index 100%<br>
rename from meta/recipes-devtools/binutils/<a href="http://binutils-crosssdk_2.24.bb" target="_blank">binutils-crosssdk_2.24.bb</a><br>
rename to meta/recipes-devtools/binutils/<a href="http://binutils-crosssdk_2.25.bb" target="_blank">binutils-crosssdk_2.25.bb</a><br>
diff --git a/meta/recipes-devtools/binutils/binutils/binutils-poison.patch b/meta/recipes-devtools/binutils/binutils/binutils-poison.patch<br>
index 996c023..eb54076 100644<br>
--- a/meta/recipes-devtools/binutils/binutils/binutils-poison.patch<br>
+++ b/meta/recipes-devtools/binutils/binutils/binutils-poison.patch<br>
@@ -106,10 +106,10 @@ Index: binutils-2.24/ld/configure<br>
<br>
# Check whether --enable-got was given.<br>
if test "${enable_got+set}" = set; then :<br>
-Index: binutils-2.24/ld/<a href="http://configure.in" target="_blank">configure.in</a><br>
+Index: binutils-2.24/ld/<a href="http://configure.ac" target="_blank">configure.ac</a><br>
===================================================================<br>
---- binutils-2.24.orig/ld/<a href="http://configure.in" target="_blank">configure.in</a> 2013-12-15 11:46:17.000000000 -0800<br>
-+++ binutils-2.24/ld/<a href="http://configure.in" target="_blank">configure.in</a> 2013-12-15 11:46:59.810435651 -0800<br>
+--- binutils-2.24.orig/ld/<a href="http://configure.ac" target="_blank">configure.ac</a> 2013-12-15 11:46:17.000000000 -0800<br>
++++ binutils-2.24/ld/<a href="http://configure.ac" target="_blank">configure.ac</a> 2013-12-15 11:46:59.810435651 -0800<br>
@@ -87,6 +87,16 @@<br>
AC_SUBST(TARGET_SYSTEM_ROOT)<br>
AC_SUBST(TARGET_SYSTEM_ROOT_DEFINE)<br>
@@ -214,10 +214,10 @@ Index: binutils-2.24/ld/lexsup.c<br>
===================================================================<br>
--- binutils-2.24.orig/ld/lexsup.c 2013-12-15 11:46:17.000000000 -0800<br>
+++ binutils-2.24/ld/lexsup.c 2013-12-15 11:49:28.950434490 -0800<br>
-@@ -507,6 +507,14 @@<br>
- OPTION_IGNORE_UNRESOLVED_SYMBOL},<br>
- '\0', N_("SYMBOL"),<br>
- N_("Unresolved SYMBOL will not cause an error or warning"), TWO_DASHES },<br>
+@@ -513,6 +513,14 @@ static const struct ld_option ld_options[] =<br>
+ { {"pop-state", no_argument, NULL, OPTION_POP_STATE},<br>
+ '\0', NULL, N_("Pop state of flags governing input file handling"),<br>
+ TWO_DASHES },<br>
+ { {"no-poison-system-directories", no_argument, NULL,<br>
+ OPTION_NO_POISON_SYSTEM_DIRECTORIES},<br>
+ '\0', NULL, N_("Do not warn for -L options using system directories"),<br>
@@ -229,18 +229,18 @@ Index: binutils-2.24/ld/lexsup.c<br>
};<br>
<br>
#define OPTION_COUNT ARRAY_SIZE (ld_options)<br>
-@@ -1442,6 +1450,14 @@<br>
- einfo (_("%P%X: --hash-size needs a numeric argument\n"));<br>
- }<br>
- break;<br>
+@@ -1474,6 +1482,14 @@ parse_args (unsigned argc, char **argv)<br>
+ free (oldp);<br>
+ }<br>
+ break;<br>
+<br>
-+ case OPTION_NO_POISON_SYSTEM_DIRECTORIES:<br>
-+ command_line.poison_system_directories = FALSE;<br>
-+ break;<br>
++ case OPTION_NO_POISON_SYSTEM_DIRECTORIES:<br>
++ command_line.poison_system_directories = FALSE;<br>
++ break;<br>
+<br>
-+ case OPTION_ERROR_POISON_SYSTEM_DIRECTORIES:<br>
-+ command_line.error_poison_system_directories = TRUE;<br>
-+ break;<br>
++ case OPTION_ERROR_POISON_SYSTEM_DIRECTORIES:<br>
++ command_line.error_poison_system_directories = TRUE;<br>
++ break;<br>
}<br>
}<br>
<br>
@@ -248,10 +248,10 @@ Index: binutils-2.24/ld/ldlex.h<br>
===================================================================<br>
--- binutils-2.24.orig/ld/ldlex.h 2013-12-15 11:46:17.000000000 -0800<br>
+++ binutils-2.24/ld/ldlex.h 2013-12-15 11:47:43.230435299 -0800<br>
-@@ -138,6 +138,8 @@<br>
- OPTION_DEFAULT_SCRIPT,<br>
- OPTION_PRINT_OUTPUT_FORMAT,<br>
+@@ -140,6 +140,8 @@ enum option_values<br>
OPTION_IGNORE_UNRESOLVED_SYMBOL,<br>
+ OPTION_PUSH_STATE,<br>
+ OPTION_POP_STATE,<br>
+ OPTION_NO_POISON_SYSTEM_DIRECTORIES,<br>
+ OPTION_ERROR_POISON_SYSTEM_DIRECTORIES,<br>
};<br>
diff --git a/meta/recipes-devtools/binutils/binutils/binutils-xlp-support.patch b/meta/recipes-devtools/binutils/binutils/binutils-xlp-support.patch<br>
index a199918..b03bb28 100644<br>
--- a/meta/recipes-devtools/binutils/binutils/binutils-xlp-support.patch<br>
+++ b/meta/recipes-devtools/binutils/binutils/binutils-xlp-support.patch<br>
@@ -16,75 +16,73 @@ Netlogic. Also, update vendor name to NLM wherever applicable.<br>
bfd/cpu-mips.c | 6 ++++--<br>
bfd/elfxx-mips.c | 8 ++++++++<br>
binutils/readelf.c | 1 +<br>
- config.sub | 6 ++++++<br>
- gas/config/tc-mips.c | 7 ++++++-<br>
+ gas/config/tc-mips.c | 4 +++-<br>
gas/configure | 3 +++<br>
gas/configure.tgt | 2 +-<br>
- gas/doc/c-mips.texi | 3 ++-<br>
include/elf/mips.h | 1 +<br>
- include/opcode/mips.h | 6 +++++-<br>
+ include/opcode/mips.h | 10 ++++++++--<br>
ld/configure.tgt | 2 ++<br>
- opcodes/mips-dis.c | 6 ++++++<br>
- opcodes/mips-opc.c | 31 ++++++++++++++++++++-----------<br>
- 17 files changed, 73 insertions(+), 17 deletions(-)<br>
+ opcodes/mips-dis.c | 12 +++++-------<br>
+ opcodes/mips-opc.c | 33 +++++++++++++++++++++------------<br>
+ 15 files changed, 65 insertions(+), 25 deletions(-)<br>
<br>
-Index: binutils-2.24/bfd/aoutx.h<br>
-===================================================================<br>
---- binutils-2.24.orig/bfd/aoutx.h 2013-12-15 13:07:57.180399300 -0800<br>
-+++ binutils-2.24/bfd/aoutx.h 2013-12-15 13:08:03.397065919 -0800<br>
-@@ -798,6 +798,7 @@<br>
- case bfd_mach_mipsisa64r2:<br>
+diff --git a/bfd/aoutx.h b/bfd/aoutx.h<br>
+index 9385a98..a88df99 100644<br>
+--- a/bfd/aoutx.h<br>
++++ b/bfd/aoutx.h<br>
+@@ -802,6 +802,7 @@ NAME (aout, machine_type) (enum bfd_architecture arch,<br>
+ case bfd_mach_mipsisa64r6:<br>
case bfd_mach_mips_sb1:<br>
case bfd_mach_mips_xlr:<br>
+ case bfd_mach_mips_xlp:<br>
/* FIXME: These should be MIPS3, MIPS4, MIPS16, MIPS32, etc. */<br>
arch_flags = M_MIPS2;<br>
break;<br>
-Index: binutils-2.24/bfd/archures.c<br>
-===================================================================<br>
---- binutils-2.24.orig/bfd/archures.c 2013-12-15 13:07:57.180399300 -0800<br>
-+++ binutils-2.24/bfd/archures.c 2013-12-15 13:08:03.397065919 -0800<br>
-@@ -178,6 +178,7 @@<br>
+diff --git a/bfd/archures.c b/bfd/archures.c<br>
+index c9fd6c8..547bd09 100644<br>
+--- a/bfd/archures.c<br>
++++ b/bfd/archures.c<br>
+@@ -180,6 +180,7 @@ DESCRIPTION<br>
.#define bfd_mach_mips_octeonp 6601<br>
.#define bfd_mach_mips_octeon2 6502<br>
.#define bfd_mach_mips_xlr 887682 {* decimal 'XLR' *}<br>
+.#define bfd_mach_mips_xlp 887680 {* decimal 'XLP' *}<br>
.#define bfd_mach_mipsisa32 32<br>
.#define bfd_mach_mipsisa32r2 33<br>
- .#define bfd_mach_mipsisa64 64<br>
-Index: binutils-2.24/bfd/bfd-in2.h<br>
-===================================================================<br>
---- binutils-2.24.orig/bfd/bfd-in2.h 2013-12-15 13:07:57.180399300 -0800<br>
-+++ binutils-2.24/bfd/bfd-in2.h 2013-12-15 13:08:03.400399254 -0800<br>
-@@ -1933,6 +1933,7 @@<br>
+ .#define bfd_mach_mipsisa32r3 34<br>
+diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h<br>
+index c7a2bb5..413b773 100644<br>
+--- a/bfd/bfd-in2.h<br>
++++ b/bfd/bfd-in2.h<br>
+@@ -1967,6 +1967,7 @@ enum bfd_architecture<br>
#define bfd_mach_mips_octeonp 6601<br>
#define bfd_mach_mips_octeon2 6502<br>
#define bfd_mach_mips_xlr 887682 /* decimal 'XLR' */<br>
+#define bfd_mach_mips_xlp 887680 /* decimal 'XLP' */<br>
#define bfd_mach_mipsisa32 32<br>
#define bfd_mach_mipsisa32r2 33<br>
- #define bfd_mach_mipsisa64 64<br>
-Index: binutils-2.24/bfd/config.bfd<br>
-===================================================================<br>
---- binutils-2.24.orig/bfd/config.bfd 2013-12-15 13:08:03.047065922 -0800<br>
-+++ binutils-2.24/bfd/config.bfd 2013-12-15 13:08:03.400399254 -0800<br>
-@@ -1032,6 +1032,11 @@<br>
- targ_defvec=bfd_elf32_littlemips_vec<br>
- targ_selvecs="bfd_elf32_bigmips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec"<br>
+ #define bfd_mach_mipsisa32r3 34<br>
+diff --git a/bfd/config.bfd b/bfd/config.bfd<br>
+index 03d2c6f..91cedb8 100644<br>
+--- a/bfd/config.bfd<br>
++++ b/bfd/config.bfd<br>
+@@ -1041,6 +1041,11 @@ case "${targ}" in<br>
+ targ_defvec=mips_elf32_le_vec<br>
+ targ_selvecs="mips_elf32_be_vec mips_elf64_be_vec mips_elf64_le_vec"<br>
;;<br>
+ mipsisa64*-*-elf*)<br>
-+ targ_defvec=bfd_elf32_tradbigmips_vec<br>
-+ targ_selvecs="bfd_elf32_tradlittlemips_vec bfd_elf64_tradbigmips_vec bfd_elf64_tradlittlemips_vec"<br>
++ targ_defvec=mips_elf32_trad_be_vec<br>
++ targ_selvecs="mips_elf32_trad_le_vec mips_elf64_trad_be_vec mips_elf64_trad_le_vec"<br>
+ want64=true<br>
+ ;;<br>
mips*-*-elf* | mips*-*-rtems* | mips*-*-vxworks | mips*-*-windiss)<br>
- targ_defvec=bfd_elf32_bigmips_vec<br>
- targ_selvecs="bfd_elf32_littlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec"<br>
-Index: binutils-2.24/bfd/cpu-mips.c<br>
-===================================================================<br>
---- binutils-2.24.orig/bfd/cpu-mips.c 2013-12-15 13:07:57.180399300 -0800<br>
-+++ binutils-2.24/bfd/cpu-mips.c 2013-12-15 13:08:03.400399254 -0800<br>
-@@ -99,7 +99,8 @@<br>
+ targ_defvec=mips_elf32_be_vec<br>
+ targ_selvecs="mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec"<br>
+diff --git a/bfd/cpu-mips.c b/bfd/cpu-mips.c<br>
+index b617aaa..19a99d1 100644<br>
+--- a/bfd/cpu-mips.c<br>
++++ b/bfd/cpu-mips.c<br>
+@@ -103,7 +103,8 @@ enum<br>
I_mipsocteonp,<br>
I_mipsocteon2,<br>
I_xlr,<br>
@@ -94,7 +92,7 @@ Index: binutils-2.24/bfd/cpu-mips.c<br>
};<br>
<br>
#define NN(index) (&arch_info_struct[(index) + 1])<br>
-@@ -143,7 +144,8 @@<br>
+@@ -153,7 +154,8 @@ static const bfd_arch_info_type arch_info_struct[] =<br>
N (64, 64, bfd_mach_mips_octeonp,"mips:octeon+", FALSE, NN(I_mipsocteonp)),<br>
N (64, 64, bfd_mach_mips_octeon2,"mips:octeon2", FALSE, NN(I_mipsocteon2)),<br>
N (64, 64, bfd_mach_mips_xlr, "mips:xlr", FALSE, NN(I_xlr)),<br>
@@ -104,11 +102,11 @@ Index: binutils-2.24/bfd/cpu-mips.c<br>
};<br>
<br>
/* The default architecture is mips:3000, but with a machine number of<br>
-Index: binutils-2.24/bfd/elfxx-mips.c<br>
-===================================================================<br>
---- binutils-2.24.orig/bfd/elfxx-mips.c 2013-12-15 13:07:57.180399300 -0800<br>
-+++ binutils-2.24/bfd/elfxx-mips.c 2013-12-15 13:08:03.400399254 -0800<br>
-@@ -6404,6 +6404,9 @@<br>
+diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c<br>
+index a0cc26e..672d5b3 100644<br>
+--- a/bfd/elfxx-mips.c<br>
++++ b/bfd/elfxx-mips.c<br>
+@@ -6608,6 +6608,9 @@ _bfd_elf_mips_mach (flagword flags)<br>
case E_MIPS_MACH_XLR:<br>
return bfd_mach_mips_xlr;<br>
<br>
@@ -118,7 +116,7 @@ Index: binutils-2.24/bfd/elfxx-mips.c<br>
default:<br>
switch (flags & EF_MIPS_ARCH)<br>
{<br>
-@@ -11622,6 +11625,10 @@<br>
+@@ -11878,6 +11881,10 @@ mips_set_isa_flags (bfd *abfd)<br>
val = E_MIPS_ARCH_64R2 | E_MIPS_MACH_OCTEON2;<br>
break;<br>
<br>
@@ -129,31 +127,31 @@ Index: binutils-2.24/bfd/elfxx-mips.c<br>
case bfd_mach_mipsisa32:<br>
val = E_MIPS_ARCH_32;<br>
break;<br>
-@@ -14202,6 +14209,7 @@<br>
- { bfd_mach_mips_octeon2, bfd_mach_mips_octeonp },<br>
+@@ -14753,6 +14760,7 @@ static const struct mips_mach_extension mips_mach_extensions[] =<br>
{ bfd_mach_mips_octeonp, bfd_mach_mips_octeon },<br>
{ bfd_mach_mips_octeon, bfd_mach_mipsisa64r2 },<br>
+ { bfd_mach_mips_loongson_3a, bfd_mach_mipsisa64r2 },<br>
+ { bfd_mach_mips_xlp, bfd_mach_mipsisa64r2 },<br>
<br>
/* MIPS64 extensions. */<br>
{ bfd_mach_mipsisa64r2, bfd_mach_mipsisa64 },<br>
-Index: binutils-2.24/binutils/readelf.c<br>
-===================================================================<br>
---- binutils-2.24.orig/binutils/readelf.c 2013-12-15 13:07:57.180399300 -0800<br>
-+++ binutils-2.24/binutils/readelf.c 2013-12-15 13:08:03.403732587 -0800<br>
-@@ -2602,6 +2602,7 @@<br>
- case E_MIPS_MACH_OCTEON: strcat (buf, ", octeon"); break;<br>
+diff --git a/binutils/readelf.c b/binutils/readelf.c<br>
+index 0c00b2f..6e9d5e4 100644<br>
+--- a/binutils/readelf.c<br>
++++ b/binutils/readelf.c<br>
+@@ -2898,6 +2898,7 @@ get_machine_flags (unsigned e_flags, unsigned e_machine)<br>
case E_MIPS_MACH_OCTEON2: strcat (buf, ", octeon2"); break;<br>
+ case E_MIPS_MACH_OCTEON3: strcat (buf, ", octeon3"); break;<br>
case E_MIPS_MACH_XLR: strcat (buf, ", xlr"); break;<br>
+ case E_MIPS_MACH_XLP: strcat (buf, ", xlp"); break;<br>
case 0:<br>
/* We simply ignore the field in this case to avoid confusion:<br>
MIPS ELF does not specify EF_MIPS_MACH, it is a GNU<br>
-Index: binutils-2.24/gas/config/tc-mips.c<br>
-===================================================================<br>
---- binutils-2.24.orig/gas/config/tc-mips.c 2013-12-15 13:07:57.180399300 -0800<br>
-+++ binutils-2.24/gas/config/tc-mips.c 2013-12-15 13:17:19.943728439 -0800<br>
-@@ -486,6 +486,7 @@<br>
+diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c<br>
+index c3e3e2a..8d64344 100644<br>
+--- a/gas/config/tc-mips.c<br>
++++ b/gas/config/tc-mips.c<br>
+@@ -551,6 +551,7 @@ static int mips_32bitmode = 0;<br>
|| mips_opts.arch == CPU_RM7000 \<br>
|| mips_opts.arch == CPU_VR5500 \<br>
|| mips_opts.micromips \<br>
@@ -161,7 +159,7 @@ Index: binutils-2.24/gas/config/tc-mips.c<br>
)<br>
<br>
/* Whether the processor uses hardware interlocks to protect reads<br>
-@@ -515,6 +516,7 @@<br>
+@@ -580,6 +581,7 @@ static int mips_32bitmode = 0;<br>
&& mips_opts.isa != ISA_MIPS3) \<br>
|| mips_opts.arch == CPU_R4300 \<br>
|| mips_opts.micromips \<br>
@@ -169,7 +167,7 @@ Index: binutils-2.24/gas/config/tc-mips.c<br>
)<br>
<br>
/* Whether the processor uses hardware interlocks to protect reads<br>
-@@ -17794,7 +17796,7 @@<br>
+@@ -18682,7 +18684,7 @@ static const struct mips_cpu_info mips_cpu_info_table[] =<br>
/* Broadcom XLP.<br>
XLP is mostly like XLR, with the prominent exception that it is<br>
MIPS64R2 rather than MIPS64. */<br>
@@ -178,13 +176,13 @@ Index: binutils-2.24/gas/config/tc-mips.c<br>
<br>
/* End marker */<br>
{ NULL, 0, 0, 0, 0 }<br>
-Index: binutils-2.24/gas/configure<br>
-===================================================================<br>
---- binutils-2.24.orig/gas/configure 2013-12-15 13:08:01.127065936 -0800<br>
-+++ binutils-2.24/gas/configure 2013-12-15 13:08:03.407065920 -0800<br>
-@@ -12697,6 +12697,9 @@<br>
- mipsisa64r2 | mipsisa64r2el)<br>
- mips_cpu=mips64r2<br>
+diff --git a/gas/configure b/gas/configure<br>
+index 9529f1a..63bba5b 100755<br>
+--- a/gas/configure<br>
++++ b/gas/configure<br>
+@@ -12808,6 +12808,9 @@ _ACEOF<br>
+ mipsisa64r6 | mipsisa64r6el)<br>
+ mips_cpu=mips64r6<br>
;;<br>
+ mipsisa64r2nlm | mipsisa64r2nlmel)<br>
+ mips_cpu=xlp<br>
@@ -192,36 +190,36 @@ Index: binutils-2.24/gas/configure<br>
mipstx39 | mipstx39el)<br>
mips_cpu=r3900<br>
;;<br>
-Index: binutils-2.24/gas/configure.tgt<br>
-===================================================================<br>
---- binutils-2.24.orig/gas/configure.tgt 2013-12-15 13:08:00.783732605 -0800<br>
-+++ binutils-2.24/gas/configure.tgt 2013-12-15 13:08:03.407065920 -0800<br>
-@@ -325,7 +325,7 @@<br>
- fmt=elf em=freebsd ;;<br>
+diff --git a/gas/configure.tgt b/gas/configure.tgt<br>
+index 05546ca..bb859d6 100644<br>
+--- a/gas/configure.tgt<br>
++++ b/gas/configure.tgt<br>
+@@ -332,7 +332,7 @@ case ${generic_target} in<br>
mips-*-sysv4*MP* | mips-*-gnu*) fmt=elf em=tmips ;;<br>
- mips*-sde-elf* | mips*-mti-elf*) fmt=elf em=tmips ;;<br>
+ mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)<br>
+ fmt=elf em=tmips ;;<br>
- mips-*-elf* | mips-*-rtems*) fmt=elf ;;<br>
+ mips-*-elf* | mips-*-rtems*) fmt=elf em=tmips ;;<br>
mips-*-netbsd*) fmt=elf em=tmips ;;<br>
mips-*-openbsd*) fmt=elf em=tmips ;;<br>
<br>
-Index: binutils-2.24/include/elf/mips.h<br>
-===================================================================<br>
---- binutils-2.24.orig/include/elf/mips.h 2013-12-15 13:07:57.180399300 -0800<br>
-+++ binutils-2.24/include/elf/mips.h 2013-12-15 13:08:03.407065920 -0800<br>
-@@ -274,6 +274,7 @@<br>
+diff --git a/include/elf/mips.h b/include/elf/mips.h<br>
+index 2ed6acd..899b1e5 100644<br>
+--- a/include/elf/mips.h<br>
++++ b/include/elf/mips.h<br>
+@@ -285,6 +285,7 @@ END_RELOC_NUMBERS (R_MIPS_maxext)<br>
#define E_MIPS_MACH_SB1 0x008a0000<br>
#define E_MIPS_MACH_OCTEON 0x008b0000<br>
#define E_MIPS_MACH_XLR 0x008c0000<br>
-+#define E_MIPS_MACH_XLP 0x008e0000<br>
++#define E_MIPS_MACH_XLP 0x008f0000<br>
#define E_MIPS_MACH_OCTEON2 0x008d0000<br>
+ #define E_MIPS_MACH_OCTEON3 0x008e0000<br>
#define E_MIPS_MACH_5400 0x00910000<br>
- #define E_MIPS_MACH_5900 0x00920000<br>
-Index: binutils-2.24/include/opcode/mips.h<br>
-===================================================================<br>
---- binutils-2.24.orig/include/opcode/mips.h 2013-12-15 13:07:57.180399300 -0800<br>
-+++ binutils-2.24/include/opcode/mips.h 2013-12-15 13:40:11.130384844 -0800<br>
-@@ -1092,8 +1092,10 @@<br>
+diff --git a/include/opcode/mips.h b/include/opcode/mips.h<br>
+index ef26167..ef53ec6 100644<br>
+--- a/include/opcode/mips.h<br>
++++ b/include/opcode/mips.h<br>
+@@ -1227,8 +1227,10 @@ static const unsigned int mips_isa_table[] = {<br>
#define INSN_LOONGSON_2F 0x80000000<br>
/* Loongson 3A. */<br>
#define INSN_LOONGSON_3A 0x00000400<br>
@@ -234,7 +232,7 @@ Index: binutils-2.24/include/opcode/mips.h<br>
<br>
/* DSP ASE */<br>
#define ASE_DSP 0x00000001<br>
-@@ -1172,6 +1174,7 @@<br>
+@@ -1324,6 +1326,7 @@ static const unsigned int mips_isa_table[] = {<br>
#define CPU_OCTEONP 6601<br>
#define CPU_OCTEON2 6502<br>
#define CPU_XLR 887682 /* decimal 'XLR' */<br>
@@ -242,9 +240,9 @@ Index: binutils-2.24/include/opcode/mips.h<br>
<br>
/* Return true if the given CPU is included in INSN_* mask MASK. */<br>
<br>
-@@ -1239,6 +1242,9 @@<br>
- case CPU_XLR:<br>
- return (mask & INSN_XLR) != 0;<br>
+@@ -1398,6 +1401,9 @@ cpu_is_member (int cpu, unsigned int mask)<br>
+ return ((mask & INSN_ISA_MASK) == INSN_ISA32R6)<br>
+ || ((mask & INSN_ISA_MASK) == INSN_ISA64R6);<br>
<br>
+ case CPU_XLP:<br>
+ return (mask & INSN_XLP) != 0;<br>
@@ -252,12 +250,12 @@ Index: binutils-2.24/include/opcode/mips.h<br>
default:<br>
return FALSE;<br>
}<br>
-Index: binutils-2.24/ld/configure.tgt<br>
-===================================================================<br>
---- binutils-2.24.orig/ld/configure.tgt 2013-12-15 13:08:03.047065922 -0800<br>
-+++ binutils-2.24/ld/configure.tgt 2013-12-15 13:08:03.407065920 -0800<br>
-@@ -457,6 +457,8 @@<br>
- mips*-sde-elf* | mips*-mti-elf*)<br>
+diff --git a/ld/configure.tgt b/ld/configure.tgt<br>
+index 740b2ea..4df13a7 100644<br>
+--- a/ld/configure.tgt<br>
++++ b/ld/configure.tgt<br>
+@@ -462,6 +462,8 @@ mips*el-sde-elf*) targ_emul=elf32ltsmip<br>
+ mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)<br>
targ_emul=elf32btsmip<br>
targ_extra_emuls="elf32ltsmip elf32btsmipn32 elf64btsmip elf32ltsmipn32 elf64ltsmip" ;;<br>
+mipsisa64*-*-elf*) targ_emul=elf32btsmip<br>
@@ -265,13 +263,13 @@ Index: binutils-2.24/ld/configure.tgt<br>
mips64*el-ps2-elf*) targ_emul=elf32lr5900n32<br>
targ_extra_emuls="elf32lr5900"<br>
targ_extra_libpath=$targ_extra_emuls ;;<br>
-Index: binutils-2.24/opcodes/mips-dis.c<br>
-===================================================================<br>
---- binutils-2.24.orig/opcodes/mips-dis.c 2013-12-15 13:07:57.180399300 -0800<br>
-+++ binutils-2.24/opcodes/mips-dis.c 2013-12-15 13:39:50.243718329 -0800<br>
-@@ -554,13 +554,11 @@<br>
+diff --git a/opcodes/mips-dis.c b/opcodes/mips-dis.c<br>
+index 1eb1d45..d6881af 100644<br>
+--- a/opcodes/mips-dis.c<br>
++++ b/opcodes/mips-dis.c<br>
+@@ -655,13 +655,11 @@ const struct mips_arch_choice mips_arch_choices[] =<br>
mips_cp0sel_names_xlr, ARRAY_SIZE (mips_cp0sel_names_xlr),<br>
- mips_hwr_names_numeric },<br>
+ mips_cp1_names_mips3264, mips_hwr_names_numeric },<br>
<br>
- /* XLP is mostly like XLR, with the prominent exception it is being<br>
- MIPS64R2. */<br>
@@ -279,7 +277,7 @@ Index: binutils-2.24/opcodes/mips-dis.c<br>
- ISA_MIPS64R2 | INSN_XLR, 0,<br>
- mips_cp0_names_xlr,<br>
- mips_cp0sel_names_xlr, ARRAY_SIZE (mips_cp0sel_names_xlr),<br>
-- mips_hwr_names_numeric },<br>
+- mips_cp1_names_mips3264, mips_hwr_names_numeric },<br>
+ { "xlp", 1, bfd_mach_mips_xlp, CPU_XLP,<br>
+ ISA_MIPS64R2 | INSN_XLP, 0,<br>
+ mips_cp0_names_mips3264r2,<br>
@@ -288,11 +286,11 @@ Index: binutils-2.24/opcodes/mips-dis.c<br>
<br>
/* This entry, mips16, is here only for ISA/processor selection; do<br>
not print its name. */<br>
-Index: binutils-2.24/opcodes/mips-opc.c<br>
-===================================================================<br>
---- binutils-2.24.orig/opcodes/mips-opc.c 2013-12-15 13:07:57.180399300 -0800<br>
-+++ binutils-2.24/opcodes/mips-opc.c 2013-12-15 13:27:30.573724118 -0800<br>
-@@ -262,7 +262,8 @@<br>
+diff --git a/opcodes/mips-opc.c b/opcodes/mips-opc.c<br>
+index 2c3bbad..86eb95b 100644<br>
+--- a/opcodes/mips-opc.c<br>
++++ b/opcodes/mips-opc.c<br>
+@@ -319,7 +319,8 @@ decode_mips_operand (const char *p)<br>
#define IOCT (INSN_OCTEON | INSN_OCTEONP | INSN_OCTEON2)<br>
#define IOCTP (INSN_OCTEONP | INSN_OCTEON2)<br>
#define IOCT2 INSN_OCTEON2<br>
@@ -302,67 +300,69 @@ Index: binutils-2.24/opcodes/mips-opc.c<br>
#define IVIRT ASE_VIRT<br>
#define IVIRT64 ASE_VIRT64<br>
<br>
-@@ -881,6 +882,7 @@<br>
- {"cins", "t,r,+p,+S", 0x70000032, 0xfc00003f, WR_1|RD_2, 0, IOCT, 0, 0 },<br>
- {"clo", "U,s", 0x70000021, 0xfc0007ff, WR_1|RD_2, 0, I32|N55, 0, 0 },<br>
- {"clz", "U,s", 0x70000020, 0xfc0007ff, WR_1|RD_2, 0, I32|N55, 0, 0 },<br>
+@@ -956,6 +957,7 @@ const struct mips_opcode mips_builtin_opcodes[] =<br>
+ {"clo", "U,s", 0x70000021, 0xfc0007ff, WR_1|RD_2, 0, I32|N55, 0, I37 },<br>
+ {"clz", "d,s", 0x00000050, 0xfc1f07ff, WR_1|RD_2, 0, I37, 0, 0 },<br>
+ {"clz", "U,s", 0x70000020, 0xfc0007ff, WR_1|RD_2, 0, I32|N55, 0, I37 },<br>
+{"crc", "d,s,t", 0x7000001c, 0xfc0007ff, WR_1|RD_2|RD_3, 0, XLP, 0, 0 },<br>
- {"ctc0", "t,G", 0x40c00000, 0xffe007ff, RD_1|WR_CC|COD, 0, I1, 0, IOCT|IOCTP|IOCT2 },<br>
- {"ctc1", "t,G", 0x44c00000, 0xffe007ff, RD_1|WR_CC|COD|FP_S, 0, I1, 0, 0 },<br>
- {"ctc1", "t,S", 0x44c00000, 0xffe007ff, RD_1|WR_CC|COD|FP_S, 0, I1, 0, 0 },<br>
-@@ -913,10 +915,11 @@<br>
+ /* ctc0 is at the bottom of the table. */<br>
+ {"ctc1", "t,G", 0x44c00000, 0xffe007ff, RD_1|WR_CC|CM, 0, I1, 0, 0 },<br>
+ {"ctc1", "t,S", 0x44c00000, 0xffe007ff, RD_1|WR_CC|CM, 0, I1, 0, 0 },<br>
+@@ -988,12 +990,13 @@ const struct mips_opcode mips_builtin_opcodes[] =<br>
{"daddiu", "t,r,j", 0x64000000, 0xfc000000, WR_1|RD_2, 0, I3, 0, 0 },<br>
{"daddu", "d,v,t", 0x0000002d, 0xfc0007ff, WR_1|RD_2|RD_3, 0, I3, 0, 0 },<br>
{"daddu", "t,r,I", 0, (int) M_DADDU_I, INSN_MACRO, 0, I3, 0, 0 },<br>
-{"daddwc", "d,s,t", 0x70000038, 0xfc0007ff, WR_1|RD_2|RD_3|WR_C0|RD_C0, 0, XLR, 0, 0 },<br>
+{"daddwc", "d,s,t", 0x70000038, 0xfc0007ff, WR_1|RD_2|RD_3|WR_C0|RD_C0, 0, XLR|XLP, 0, 0 },<br>
{"dbreak", "", 0x7000003f, 0xffffffff, 0, 0, N5, 0, 0 },<br>
- {"dclo", "U,s", 0x70000025, 0xfc0007ff, WR_1|RD_2, 0, I64|N55, 0, 0 },<br>
- {"dclz", "U,s", 0x70000024, 0xfc0007ff, WR_1|RD_2, 0, I64|N55, 0, 0 },<br>
+ {"dclo", "d,s", 0x00000053, 0xfc1f07ff, WR_1|RD_2, 0, I69, 0, 0 },<br>
+ {"dclo", "U,s", 0x70000025, 0xfc0007ff, WR_1|RD_2, 0, I64|N55, 0, I69 },<br>
+ {"dclz", "d,s", 0x00000052, 0xfc1f07ff, WR_1|RD_2, 0, I69, 0, 0 },<br>
+ {"dclz", "U,s", 0x70000024, 0xfc0007ff, WR_1|RD_2, 0, I64|N55, 0, I69 },<br>
+{"dcrc", "d,s,t", 0x7000001d, 0xfc0007ff, WR_1|RD_2|RD_3, 0, XLP, 0, 0 },<br>
/* dctr and dctw are used on the r5000. */<br>
{"dctr", "o(b)", 0xbc050000, 0xfc1f0000, RD_2, 0, I3, 0, 0 },<br>
{"dctw", "o(b)", 0xbc090000, 0xfc1f0000, RD_2, 0, I3, 0, 0 },<br>
-@@ -980,6 +983,7 @@<br>
- {"dmfc0", "t,G,H", 0x40200000, 0xffe007f8, WR_1|RD_C0|LCD, 0, I64, 0, 0 },<br>
- {"dmfgc0", "t,G", 0x40600100, 0xffe007ff, WR_1|RD_C0|LCD, 0, 0, IVIRT64, 0 },<br>
- {"dmfgc0", "t,G,H", 0x40600100, 0xffe007f8, WR_1|RD_C0|LCD, 0, 0, IVIRT64, 0 },<br>
+@@ -1065,6 +1068,7 @@ const struct mips_opcode mips_builtin_opcodes[] =<br>
+ {"dmfc0", "t,G,H", 0x40200000, 0xffe007f8, WR_1|RD_C0|LC, 0, I64, 0, 0 },<br>
+ {"dmfgc0", "t,G", 0x40600100, 0xffe007ff, WR_1|RD_C0|LC, 0, 0, IVIRT64, 0 },<br>
+ {"dmfgc0", "t,G,H", 0x40600100, 0xffe007f8, WR_1|RD_C0|LC, 0, 0, IVIRT64, 0 },<br>
+{"dmfur", "t,d", 0x7000001e, 0xffe007ff, WR_1, 0, XLP, 0, 0 },<br>
{"dmt", "", 0x41600bc1, 0xffffffff, TRAP, 0, 0, MT32, 0 },<br>
{"dmt", "t", 0x41600bc1, 0xffe0ffff, WR_1|TRAP, 0, 0, MT32, 0 },<br>
- {"dmtc0", "t,G", 0x40a00000, 0xffe007ff, RD_1|WR_C0|WR_CC|COD, 0, I3, 0, EE },<br>
-@@ -994,6 +998,8 @@<br>
+ {"dmtc0", "t,G", 0x40a00000, 0xffe007ff, RD_1|WR_C0|WR_CC|CM, 0, I3, 0, EE },<br>
+@@ -1079,6 +1083,8 @@ const struct mips_opcode mips_builtin_opcodes[] =<br>
/* dmtc2 is at the bottom of the table. */<br>
/* dmfc3 is at the bottom of the table. */<br>
/* dmtc3 is at the bottom of the table. */<br>
+ {"dmuh", "d,s,t", 0x000000dc, 0xfc0007ff, WR_1|RD_2|RD_3, 0, I69, 0, 0 },<br>
+{"dmtur", "t,d", 0x7000001f, 0xffe007ff, RD_1, 0, XLP, 0, 0 },<br>
+{"dmul", "d,s,t", 0x70000006, 0xfc0007ff, WR_1|RD_2|RD_3, 0, XLP, 0, 0 },<br>
+ {"dmul", "d,s,t", 0x0000009c, 0xfc0007ff, WR_1|RD_2|RD_3, 0, I69, 0, 0 },<br>
{"dmul", "d,v,t", 0x70000003, 0xfc0007ff, WR_1|RD_2|RD_3|WR_HILO, 0, IOCT, 0, 0 },<br>
- {"dmul", "d,v,t", 0, (int) M_DMUL, INSN_MACRO, 0, I3, 0, M32 },<br>
- {"dmul", "d,v,I", 0, (int) M_DMUL_I, INSN_MACRO, 0, I3, 0, M32 },<br>
-@@ -1134,9 +1140,9 @@<br>
- /* The macro has to be first to handle o32 correctly. */<br>
+@@ -1229,9 +1235,9 @@ const struct mips_opcode mips_builtin_opcodes[] =<br>
+ {"ld", "s,-b(+R)", 0xec180000, 0xfc1c0000, WR_1, RD_pc, I69, 0, 0 },<br>
{"ld", "t,A(b)", 0, (int) M_LD_AB, INSN_MACRO, 0, I1, 0, 0 },<br>
- {"ld", "t,o(b)", 0xdc000000, 0xfc000000, WR_1|RD_3, 0, I3, 0, 0 },<br>
--{"ldaddw", "t,b", 0x70000010, 0xfc00ffff, MOD_1|RD_2|SM, 0, XLR, 0, 0 },<br>
--{"ldaddwu", "t,b", 0x70000011, 0xfc00ffff, MOD_1|RD_2|SM, 0, XLR, 0, 0 },<br>
--{"ldaddd", "t,b", 0x70000012, 0xfc00ffff, MOD_1|RD_2|SM, 0, XLR, 0, 0 },<br>
+ {"ld", "t,o(b)", 0xdc000000, 0xfc000000, WR_1|RD_3|LM, 0, I3, 0, 0 },<br>
+-{"ldaddw", "t,b", 0x70000010, 0xfc00ffff, MOD_1|RD_2|LM|SM, 0, XLR, 0, 0 },<br>
+-{"ldaddwu", "t,b", 0x70000011, 0xfc00ffff, MOD_1|RD_2|LM|SM, 0, XLR, 0, 0 },<br>
+-{"ldaddd", "t,b", 0x70000012, 0xfc00ffff, MOD_1|RD_2|LM|SM, 0, XLR, 0, 0 },<br>
+{"ldaddw", "t,b", 0x70000010, 0xfc00ffff, MOD_1|RD_2|SM, 0, XLR|XLP, 0, 0 },<br>
+{"ldaddwu", "t,b", 0x70000011, 0xfc00ffff, MOD_1|RD_2|SM, 0, XLR|XLP, 0, 0 },<br>
+{"ldaddd", "t,b", 0x70000012, 0xfc00ffff, MOD_1|RD_2|SM, 0, XLR|XLP, 0, 0 },<br>
{"ldc1", "T,o(b)", 0xd4000000, 0xfc000000, WR_1|RD_3|CLD|FP_D, 0, I2, 0, SF },<br>
{"ldc1", "E,o(b)", 0xd4000000, 0xfc000000, WR_1|RD_3|CLD|FP_D, 0, I2, 0, SF },<br>
{"ldc1", "T,A(b)", 0, (int) M_LDC1_AB, INSN_MACRO, INSN2_M_FP_D, I2, 0, SF },<br>
-@@ -1288,7 +1294,7 @@<br>
+@@ -1396,7 +1402,7 @@ const struct mips_opcode mips_builtin_opcodes[] =<br>
{"mflo", "d,9", 0x00000012, 0xff9f07ff, WR_1|RD_LO, 0, 0, D32, 0 },<br>
{"mflo1", "d", 0x70000012, 0xffff07ff, WR_1|RD_LO, 0, EE, 0, 0 },<br>
{"mflhxu", "d", 0x00000052, 0xffff07ff, WR_1|MOD_HILO, 0, 0, SMT, 0 },<br>
--{"mfcr", "t,s", 0x70000018, 0xfc00ffff, WR_1, 0, XLR, 0, 0 },<br>
+-{"mfcr", "t,s", 0x70000018, 0xfc00ffff, WR_1|RD_2, 0, XLR, 0, 0 },<br>
+{"mfcr", "t,s", 0x70000018, 0xfc00ffff, WR_1, 0, XLR|XLP, 0, 0 },<br>
{"mfsa", "d", 0x00000028, 0xffff07ff, WR_1, 0, EE, 0, 0 },<br>
{"min.ob", "X,Y,Q", 0x78000006, 0xfc20003f, WR_1|RD_2|RD_3|FP_D, 0, SB1, MX, 0 },<br>
{"min.ob", "D,S,Q", 0x48000006, 0xfc20003f, WR_1|RD_2|RD_3|FP_D, 0, N54, 0, 0 },<br>
-@@ -1332,10 +1338,13 @@<br>
+@@ -1441,10 +1447,13 @@ const struct mips_opcode mips_builtin_opcodes[] =<br>
/* move is at the top of the table. */<br>
{"msgn.qh", "X,Y,Q", 0x78200000, 0xfc20003f, WR_1|RD_2|RD_3|FP_D, 0, 0, MX, 0 },<br>
{"msgsnd", "t", 0, (int) M_MSGSND, INSN_MACRO, 0, XLR, 0, 0 },<br>
@@ -375,28 +375,28 @@ Index: binutils-2.24/opcodes/mips-opc.c<br>
+{"msgwait", "", 0, (int) M_MSGWAIT, INSN_MACRO, 0, XLR|XLP, 0, 0 },<br>
+{"msgwait", "t", 0, (int) M_MSGWAIT_T,INSN_MACRO, 0, XLR|XLP, 0, 0 },<br>
+{"msgsync", "", 0x4a000004, 0xffffffff,0, 0, XLP, 0, 0 },<br>
- {"msub.d", "D,R,S,T", 0x4c000029, 0xfc00003f, WR_1|RD_2|RD_3|RD_4|FP_D, 0, I4_33, 0, 0 },<br>
+ {"msub.d", "D,R,S,T", 0x4c000029, 0xfc00003f, WR_1|RD_2|RD_3|RD_4|FP_D, 0, I4_33, 0, I37 },<br>
{"msub.d", "D,S,T", 0x46200019, 0xffe0003f, WR_1|RD_2|RD_3|FP_D, 0, IL2E, 0, 0 },<br>
{"msub.d", "D,S,T", 0x72200019, 0xffe0003f, WR_1|RD_2|RD_3|FP_D, 0, IL2F, 0, 0 },<br>
-@@ -1381,7 +1390,7 @@<br>
+@@ -1494,7 +1503,7 @@ const struct mips_opcode mips_builtin_opcodes[] =<br>
{"mtlo", "s,7", 0x00000013, 0xfc1fe7ff, RD_1|WR_LO, 0, 0, D32, 0 },<br>
{"mtlo1", "s", 0x70000013, 0xfc1fffff, RD_1|WR_LO, 0, EE, 0, 0 },<br>
{"mtlhx", "s", 0x00000053, 0xfc1fffff, RD_1|MOD_HILO, 0, 0, SMT, 0 },<br>
--{"mtcr", "t,s", 0x70000019, 0xfc00ffff, RD_1, 0, XLR, 0, 0 },<br>
+-{"mtcr", "t,s", 0x70000019, 0xfc00ffff, RD_1|RD_2, 0, XLR, 0, 0 },<br>
+{"mtcr", "t,s", 0x70000019, 0xfc00ffff, RD_1, 0, XLR|XLP, 0, 0 },<br>
{"mtm0", "s", 0x70000008, 0xfc1fffff, RD_1, 0, IOCT, 0, 0 },<br>
{"mtm1", "s", 0x7000000c, 0xfc1fffff, RD_1, 0, IOCT, 0, 0 },<br>
{"mtm2", "s", 0x7000000d, 0xfc1fffff, RD_1, 0, IOCT, 0, 0 },<br>
-@@ -1802,9 +1811,9 @@<br>
- {"suxc1", "S,t(b)", 0x4c00000d, 0xfc0007ff, RD_1|RD_2|RD_3|SM|FP_D, 0, I5_33|N55, 0, 0},<br>
+@@ -1924,9 +1933,9 @@ const struct mips_opcode mips_builtin_opcodes[] =<br>
+ {"suxc1", "S,t(b)", 0x4c00000d, 0xfc0007ff, RD_1|RD_2|RD_3|SM|FP_D, 0, I5_33|N55, 0, I37},<br>
{"sw", "t,o(b)", 0xac000000, 0xfc000000, RD_1|RD_3|SM, 0, I1, 0, 0 },<br>
{"sw", "t,A(b)", 0, (int) M_SW_AB, INSN_MACRO, 0, I1, 0, 0 },<br>
--{"swapw", "t,b", 0x70000014, 0xfc00ffff, MOD_1|RD_2|SM, 0, XLR, 0, 0 },<br>
--{"swapwu", "t,b", 0x70000015, 0xfc00ffff, MOD_1|RD_2|SM, 0, XLR, 0, 0 },<br>
--{"swapd", "t,b", 0x70000016, 0xfc00ffff, MOD_1|RD_2|SM, 0, XLR, 0, 0 },<br>
+-{"swapw", "t,b", 0x70000014, 0xfc00ffff, MOD_1|RD_2|LM|SM, 0, XLR, 0, 0 },<br>
+-{"swapwu", "t,b", 0x70000015, 0xfc00ffff, MOD_1|RD_2|LM|SM, 0, XLR, 0, 0 },<br>
+-{"swapd", "t,b", 0x70000016, 0xfc00ffff, MOD_1|RD_2|LM|SM, 0, XLR, 0, 0 },<br>
+{"swapw", "t,b", 0x70000014, 0xfc00ffff, MOD_1|RD_2|SM, 0, XLR|XLP, 0, 0 },<br>
+{"swapwu", "t,b", 0x70000015, 0xfc00ffff, MOD_1|RD_2|SM, 0, XLR|XLP, 0, 0 },<br>
+{"swapd", "t,b", 0x70000016, 0xfc00ffff, MOD_1|RD_2|SM, 0, XLR|XLP, 0, 0 },<br>
- {"swc0", "E,o(b)", 0xe0000000, 0xfc000000, RD_3|RD_C0|SM, 0, I1, 0, IOCT|IOCTP|IOCT2 },<br>
- {"swc0", "E,A(b)", 0, (int) M_SWC0_AB, INSN_MACRO, 0, I1, 0, IOCT|IOCTP|IOCT2 },<br>
+ {"swc0", "E,o(b)", 0xe0000000, 0xfc000000, RD_3|RD_C0|SM, 0, I1, 0, IOCT|IOCTP|IOCT2|I37 },<br>
+ {"swc0", "E,A(b)", 0, (int) M_SWC0_AB, INSN_MACRO, 0, I1, 0, IOCT|IOCTP|IOCT2|I37 },<br>
{"swc1", "T,o(b)", 0xe4000000, 0xfc000000, RD_1|RD_3|SM|FP_S, 0, I1, 0, 0 },<br>
diff --git a/meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8484.patch b/meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8484.patch<br>
deleted file mode 100644<br>
index e789499..0000000<br>
--- a/meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8484.patch<br>
+++ /dev/null<br>
@@ -1,67 +0,0 @@<br>
-Upstream-Status: Backport<br>
-<br>
-CVE-2014-8484 fix.<br>
-<br>
-[YOCTO #7084]<br>
-<br>
-Signed-off-by: Armin Kuster <<a href="mailto:akuster808@gmail.com">akuster808@gmail.com</a>><br>
-<br>
-From bd25671c6f202c4a5108883caa2adb24ff6f361f Mon Sep 17 00:00:00 2001<br>
-From: Alan Modra <<a href="mailto:amodra@gmail.com">amodra@gmail.com</a>><br>
-Date: Fri, 29 Aug 2014 10:36:29 +0930<br>
-Subject: [PATCH] Report an error for S-records with less than the miniumum<br>
- size<br>
-<br>
- * srec.c (srec_scan): Revert last change. Report an error for<br>
- S-records with less than the miniumum byte count.<br>
----<br>
- bfd/ChangeLog | 5 +++++<br>
- bfd/srec.c | 18 +++++++++++++++---<br>
- 2 files changed, 20 insertions(+), 3 deletions(-)<br>
-<br>
-Index: binutils-2.24/bfd/srec.c<br>
-===================================================================<br>
---- binutils-2.24.orig/bfd/srec.c<br>
-+++ binutils-2.24/bfd/srec.c<br>
-@@ -455,7 +455,7 @@ srec_scan (bfd *abfd)<br>
- {<br>
- file_ptr pos;<br>
- char hdr[3];<br>
-- unsigned int bytes;<br>
-+ unsigned int bytes, min_bytes;<br>
- bfd_vma address;<br>
- bfd_byte *data;<br>
- unsigned char check_sum;<br>
-@@ -478,6 +478,19 @@ srec_scan (bfd *abfd)<br>
- }<br>
-<br>
- check_sum = bytes = HEX (hdr + 1);<br>
-+ min_bytes = 3;<br>
-+ if (hdr[0] == '2' || hdr[0] == '8')<br>
-+ min_bytes = 4;<br>
-+ else if (hdr[0] == '3' || hdr[0] == '7')<br>
-+ min_bytes = 5;<br>
-+ if (bytes < min_bytes)<br>
-+ {<br>
-+ (*_bfd_error_handler) (_("%B:%d: byte count %d too small\n"),<br>
-+ abfd, lineno, bytes);<br>
-+ bfd_set_error (bfd_error_bad_value);<br>
-+ goto error_return;<br>
-+ }<br>
-+<br>
- if (bytes * 2 > bufsize)<br>
- {<br>
- if (buf != NULL)<br>
-Index: binutils-2.24/bfd/ChangeLog<br>
-===================================================================<br>
---- binutils-2.24.orig/bfd/ChangeLog<br>
-+++ binutils-2.24/bfd/ChangeLog<br>
-@@ -1,3 +1,8 @@<br>
-+2014-08-29 Alan Modra <<a href="mailto:amodra@gmail.com">amodra@gmail.com</a>><br>
-+<br>
-+ * srec.c (srec_scan): Revert last change. Report an error for<br>
-+ S-records with less than the miniumum byte count.<br>
-+<br>
- 2013-12-02 Tristan Gingold <<a href="mailto:gingold@adacore.com">gingold@adacore.com</a>><br>
-<br>
- * <a href="http://configure.in" target="_blank">configure.in</a>: Bump version to 2.24<br>
diff --git a/meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8485.patch b/meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8485.patch<br>
deleted file mode 100644<br>
index ec3308b..0000000<br>
--- a/meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8485.patch<br>
+++ /dev/null<br>
@@ -1,102 +0,0 @@<br>
-Upstream-Status: Backport<br>
-<br>
-CVE-2014-8485 fix.<br>
-<br>
-[YOCTO #7084]<br>
-<br>
-Signed-off-by: Armin Kuster <<a href="mailto:akuster808@gmail.com">akuster808@gmail.com</a>><br>
-<br>
-From 493a33860c71cac998f1a56d6d87d6faa801fbaa Mon Sep 17 00:00:00 2001<br>
-From: Nick Clifton <<a href="mailto:nickc@redhat.com">nickc@redhat.com</a>><br>
-Date: Mon, 27 Oct 2014 12:43:16 +0000<br>
-Subject: [PATCH] This patch closes a potential security hole in applications<br>
- that use the bfd library to parse binaries containing maliciously corrupt<br>
- section group headers.<br>
-<br>
- PR binutils/17510<br>
- * elf.c (setup_group): Improve handling of corrupt group<br>
- sections.<br>
----<br>
- bfd/ChangeLog | 6 ++++++<br>
- bfd/elf.c | 34 ++++++++++++++++++++++++++++++----<br>
- 2 files changed, 36 insertions(+), 4 deletions(-)<br>
-<br>
-Index: binutils-2.24/bfd/elf.c<br>
-===================================================================<br>
---- binutils-2.24.orig/bfd/elf.c<br>
-+++ binutils-2.24/bfd/elf.c<br>
-@@ -608,9 +608,10 @@ setup_group (bfd *abfd, Elf_Internal_Shd<br>
- if (shdr->contents == NULL)<br>
- {<br>
- _bfd_error_handler<br>
-- (_("%B: Corrupt size field in group section header: 0x%lx"), abfd, shdr->sh_size);<br>
-+ (_("%B: corrupt size field in group section header: 0x%lx"), abfd, shdr->sh_size);<br>
- bfd_set_error (bfd_error_bad_value);<br>
-- return FALSE;<br>
-+ -- num_group;<br>
-+ continue;<br>
- }<br>
-<br>
- memset (shdr->contents, 0, amt);<br>
-@@ -618,7 +619,16 @@ setup_group (bfd *abfd, Elf_Internal_Shd<br>
- if (bfd_seek (abfd, shdr->sh_offset, SEEK_SET) != 0<br>
- || (bfd_bread (shdr->contents, shdr->sh_size, abfd)<br>
- != shdr->sh_size))<br>
-- return FALSE;<br>
-+ {<br>
-+ _bfd_error_handler<br>
-+ (_("%B: invalid size field in group section header: 0x%lx"), abfd, shdr->sh_size);<br>
-+ bfd_set_error (bfd_error_bad_value);<br>
-+ -- num_group;<br>
-+ /* PR 17510: If the group contents are even partially<br>
-+ corrupt, do not allow any of the contents to be used. */<br>
-+ memset (shdr->contents, 0, amt);<br>
-+ continue;<br>
-+ }<br>
-<br>
- /* Translate raw contents, a flag word followed by an<br>
- array of elf section indices all in target byte order,<br>
-@@ -651,6 +661,21 @@ setup_group (bfd *abfd, Elf_Internal_Shd<br>
- }<br>
- }<br>
- }<br>
-+<br>
-+ /* PR 17510: Corrupt binaries might contain invalid groups. */<br>
-+ if (num_group != (unsigned) elf_tdata (abfd)->num_group)<br>
-+ {<br>
-+ elf_tdata (abfd)->num_group = num_group;<br>
-+<br>
-+ /* If all groups are invalid then fail. */<br>
-+ if (num_group == 0)<br>
-+ {<br>
-+ elf_tdata (abfd)->group_sect_ptr = NULL;<br>
-+ elf_tdata (abfd)->num_group = num_group = -1;<br>
-+ (*_bfd_error_handler) (_("%B: no valid group sections found"), abfd);<br>
-+ bfd_set_error (bfd_error_bad_value);<br>
-+ }<br>
-+ }<br>
- }<br>
- }<br>
-<br>
-@@ -716,6 +741,7 @@ setup_group (bfd *abfd, Elf_Internal_Shd<br>
- {<br>
- (*_bfd_error_handler) (_("%B: no group info for section %A"),<br>
- abfd, newsect);<br>
-+ return FALSE;<br>
- }<br>
- return TRUE;<br>
- }<br>
-Index: binutils-2.24/bfd/ChangeLog<br>
-===================================================================<br>
---- binutils-2.24.orig/bfd/ChangeLog<br>
-+++ binutils-2.24/bfd/ChangeLog<br>
-@@ -1,3 +1,9 @@<br>
-+2014-10-27 Nick Clifton <<a href="mailto:nickc@redhat.com">nickc@redhat.com</a>><br>
-+<br>
-+ PR binutils/17510<br>
-+ * elf.c (setup_group): Improve handling of corrupt group<br>
-+ sections.<br>
-+<br>
- 2014-08-29 Alan Modra <<a href="mailto:amodra@gmail.com">amodra@gmail.com</a>><br>
-<br>
- * srec.c (srec_scan): Revert last change. Report an error for<br>
diff --git a/meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8501.patch b/meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8501.patch<br>
deleted file mode 100644<br>
index a48fe9b..0000000<br>
--- a/meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8501.patch<br>
+++ /dev/null<br>
@@ -1,60 +0,0 @@<br>
-Upstream-Status: Backport<br>
-<br>
-CVE-2014-8501 fix.<br>
-<br>
-[YOCTO #7084]<br>
-<br>
-Signed-off-by: Armin Kuster <<a href="mailto:akuster808@gmail.com">akuster808@gmail.com</a>><br>
-<br>
-From 7e1e19887abd24aeb15066b141cdff5541e0ec8e Mon Sep 17 00:00:00 2001<br>
-From: Nick Clifton <<a href="mailto:nickc@redhat.com">nickc@redhat.com</a>><br>
-Date: Mon, 27 Oct 2014 14:45:06 +0000<br>
-Subject: [PATCH] Fix a seg-fault in strings and other binutuils when parsing a<br>
- corrupt PE executable with an invalid value in the NumberOfRvaAndSizes field<br>
- of the AOUT header.<br>
-<br>
- PR binutils/17512<br>
- * peXXigen.c (_bfd_XXi_swap_aouthdr_in): Handle corrupt binaries<br>
- with an invalid value for NumberOfRvaAndSizes.<br>
----<br>
- bfd/ChangeLog | 4 ++++<br>
- bfd/peXXigen.c | 12 ++++++++++++<br>
- 2 files changed, 16 insertions(+)<br>
-<br>
-Index: binutils-2.24/bfd/peXXigen.c<br>
-===================================================================<br>
---- binutils-2.24.orig/bfd/peXXigen.c<br>
-+++ binutils-2.24/bfd/peXXigen.c<br>
-@@ -460,6 +460,18 @@ _bfd_XXi_swap_aouthdr_in (bfd * abfd,<br>
- {<br>
- int idx;<br>
-<br>
-+ /* PR 17512: Corrupt PE binaries can cause seg-faults. */<br>
-+ if (a->NumberOfRvaAndSizes > 16)<br>
-+ {<br>
-+ (*_bfd_error_handler)<br>
-+ (_("%B: aout header specifies an invalid number of data-directory entries: %d"),<br>
-+ abfd, a->NumberOfRvaAndSizes);<br>
-+ /* Paranoia: If the number is corrupt, then assume that the<br>
-+ actual entries themselves might be corrupt as well. */<br>
-+ a->NumberOfRvaAndSizes = 0;<br>
-+ }<br>
-+<br>
-+<br>
- for (idx = 0; idx < a->NumberOfRvaAndSizes; idx++)<br>
- {<br>
- /* If data directory is empty, rva also should be 0. */<br>
-Index: binutils-2.24/bfd/ChangeLog<br>
-===================================================================<br>
---- binutils-2.24.orig/bfd/ChangeLog<br>
-+++ binutils-2.24/bfd/ChangeLog<br>
-@@ -1,5 +1,9 @@<br>
- 2014-10-27 Nick Clifton <<a href="mailto:nickc@redhat.com">nickc@redhat.com</a>><br>
-<br>
-+ PR binutils/17512<br>
-+ * peXXigen.c (_bfd_XXi_swap_aouthdr_in): Handle corrupt binaries<br>
-+ with an invalid value for NumberOfRvaAndSizes.<br>
-+<br>
- PR binutils/17510<br>
- * elf.c (setup_group): Improve handling of corrupt group<br>
- sections.<br>
diff --git a/meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8502.patch b/meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8502.patch<br>
deleted file mode 100644<br>
index 05af65b..0000000<br>
--- a/meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8502.patch<br>
+++ /dev/null<br>
@@ -1,89 +0,0 @@<br>
-Upstream-Status: Backport<br>
-<br>
-CVE-2014-8502 fix.<br>
-<br>
-[YOCTO #7084]<br>
-<br>
-Signed-off-by: Armin Kuster <<a href="mailto:akuster808@gmail.com">akuster808@gmail.com</a>><br>
-<br>
-From 5a4b0ccc20ba30caef53b01bee2c0aaa5b855339 Mon Sep 17 00:00:00 2001<br>
-From: Nick Clifton <<a href="mailto:nickc@redhat.com">nickc@redhat.com</a>><br>
-Date: Tue, 28 Oct 2014 15:42:56 +0000<br>
-Subject: [PATCH] More fixes for corrupt binaries crashing the binutils.<br>
-<br>
- PR binutils/17512<br>
- * elf.c (bfd_section_from_shdr): Allocate and free the recursion<br>
- detection table on a per-bfd basis.<br>
- * peXXigen.c (pe_print_edata): Handle binaries with a truncated<br>
- export table.<br>
----<br>
- bfd/ChangeLog | 8 ++++++++<br>
- bfd/elf.c | 16 +++++++++++++---<br>
- bfd/peXXigen.c | 9 +++++++++<br>
- 3 files changed, 30 insertions(+), 3 deletions(-)<br>
-<br>
-Index: binutils-2.24/bfd/peXXigen.c<br>
-===================================================================<br>
---- binutils-2.24.orig/bfd/peXXigen.c<br>
-+++ binutils-2.24/bfd/peXXigen.c<br>
-@@ -1438,6 +1438,15 @@ pe_print_edata (bfd * abfd, void * vfile<br>
- }<br>
- }<br>
-<br>
-+ /* PR 17512: Handle corrupt PE binaries. */<br>
-+ if (datasize < 36)<br>
-+ {<br>
-+ fprintf (file,<br>
-+ _("\nThere is an export table in %s, but it is too small (%d)\n"),<br>
-+ section->name, (int) datasize);<br>
-+ return TRUE;<br>
-+ }<br>
-+<br>
- fprintf (file, _("\nThere is an export table in %s at 0x%lx\n"),<br>
- section->name, (unsigned long) addr);<br>
-<br>
-Index: binutils-2.24/bfd/elf.c<br>
-===================================================================<br>
---- binutils-2.24.orig/bfd/elf.c<br>
-+++ binutils-2.24/bfd/elf.c<br>
-@@ -1576,6 +1576,7 @@ bfd_section_from_shdr (bfd *abfd, unsign<br>
- const char *name;<br>
- bfd_boolean ret = TRUE;<br>
- static bfd_boolean * sections_being_created = NULL;<br>
-+ static bfd * sections_being_created_abfd = NULL;<br>
- static unsigned int nesting = 0;<br>
-<br>
- if (shindex >= elf_numsections (abfd))<br>
-@@ -1588,13 +1589,20 @@ bfd_section_from_shdr (bfd *abfd, unsign<br>
- loop. Detect this here, by refusing to load a section that we are<br>
- already in the process of loading. We only trigger this test if<br>
- we have nested at least three sections deep as normal ELF binaries<br>
-- can expect to recurse at least once. */<br>
-+ can expect to recurse at least once.<br>
-+<br>
-+ FIXME: It would be better if this array was attached to the bfd,<br>
-+ rather than being held in a static pointer. */<br>
-+<br>
-+ if (sections_being_created_abfd != abfd)<br>
-+ sections_being_created = NULL;<br>
-<br>
- if (sections_being_created == NULL)<br>
- {<br>
- /* FIXME: It would be more efficient to attach this array to the bfd somehow. */<br>
- sections_being_created = (bfd_boolean *)<br>
- bfd_zalloc (abfd, elf_numsections (abfd) * sizeof (bfd_boolean));<br>
-+ sections_being_created_abfd = abfd;<br>
- }<br>
- if (sections_being_created [shindex])<br>
- {<br>
-@@ -2098,7 +2106,10 @@ bfd_section_from_shdr (bfd *abfd, unsign<br>
- if (sections_being_created)<br>
- sections_being_created [shindex] = FALSE;<br>
- if (-- nesting == 0)<br>
-+ {<br>
- sections_being_created = NULL;<br>
-+ sections_being_created_abfd = abfd;<br>
-+ }<br>
- return ret;<br>
- }<br>
-<br>
diff --git a/meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8502_1.patch b/meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8502_1.patch<br>
deleted file mode 100644<br>
index 9e0c9c8..0000000<br>
--- a/meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8502_1.patch<br>
+++ /dev/null<br>
@@ -1,523 +0,0 @@<br>
-Upstream-Status: Backport<br>
-<br>
-CVE-2014-8502 supporting patch.<br>
-<br>
-[YOCTO #7084]<br>
-<br>
-Signed-off-by: Armin Kuster <<a href="mailto:akuster808@gmail.com">akuster808@gmail.com</a>><br>
-<br>
-From bf67003b4567600ed3022a439207ac8f26454f91 Mon Sep 17 00:00:00 2001<br>
-From: Nick Clifton <<a href="mailto:nickc@redhat.com">nickc@redhat.com</a>><br>
-Date: Mon, 27 Oct 2014 18:05:37 +0000<br>
-Subject: [PATCH] This fixes more seg-faults in tools like "strings" and<br>
- "objdump" when presented with corrupt binaries.<br>
-<br>
- PR binutils/17512<br>
- * elf.c (bfd_section_from_shdr): Detect and warn about ELF<br>
- binaries with a group of sections linked by the string table<br>
- indicies.<br>
- * peXXigen.c (pe_print_edata): Detect out of range rvas and<br>
- entry counts for the Export Address table, Name Pointer table<br>
- and Ordinal table.<br>
----<br>
- bfd/ChangeLog | 5 ++<br>
- bfd/elf.c | 194 ++++++++++++++++++++++++++++++++++++++-------------------<br>
- bfd/peXXigen.c | 18 +++++-<br>
- 3 files changed, 150 insertions(+), 67 deletions(-)<br>
-<br>
-Index: binutils-2.24/bfd/elf.c<br>
-===================================================================<br>
---- binutils-2.24.orig/bfd/elf.c<br>
-+++ binutils-2.24/bfd/elf.c<br>
-@@ -1574,38 +1574,67 @@ bfd_section_from_shdr (bfd *abfd, unsign<br>
- Elf_Internal_Ehdr *ehdr;<br>
- const struct elf_backend_data *bed;<br>
- const char *name;<br>
-+ bfd_boolean ret = TRUE;<br>
-+ static bfd_boolean * sections_being_created = NULL;<br>
-+ static unsigned int nesting = 0;<br>
-<br>
- if (shindex >= elf_numsections (abfd))<br>
- return FALSE;<br>
-<br>
-+ if (++ nesting > 3)<br>
-+ {<br>
-+ /* PR17512: A corrupt ELF binary might contain a recursive group of<br>
-+ sections, each the string indicies pointing to the next in the<br>
-+ loop. Detect this here, by refusing to load a section that we are<br>
-+ already in the process of loading. We only trigger this test if<br>
-+ we have nested at least three sections deep as normal ELF binaries<br>
-+ can expect to recurse at least once. */<br>
-+<br>
-+ if (sections_being_created == NULL)<br>
-+ {<br>
-+ /* FIXME: It would be more efficient to attach this array to the bfd somehow. */<br>
-+ sections_being_created = (bfd_boolean *)<br>
-+ bfd_zalloc (abfd, elf_numsections (abfd) * sizeof (bfd_boolean));<br>
-+ }<br>
-+ if (sections_being_created [shindex])<br>
-+ {<br>
-+ (*_bfd_error_handler)<br>
-+ (_("%B: warning: loop in section dependencies detected"), abfd);<br>
-+ return FALSE;<br>
-+ }<br>
-+ sections_being_created [shindex] = TRUE;<br>
-+ }<br>
-+<br>
- hdr = elf_elfsections (abfd)[shindex];<br>
- ehdr = elf_elfheader (abfd);<br>
- name = bfd_elf_string_from_elf_section (abfd, ehdr->e_shstrndx,<br>
- hdr->sh_name);<br>
- if (name == NULL)<br>
-- return FALSE;<br>
-+ goto fail;<br>
-<br>
- bed = get_elf_backend_data (abfd);<br>
- switch (hdr->sh_type)<br>
- {<br>
- case SHT_NULL:<br>
- /* Inactive section. Throw it away. */<br>
-- return TRUE;<br>
-+ goto success;<br>
-<br>
-- case SHT_PROGBITS: /* Normal section with contents. */<br>
-- case SHT_NOBITS: /* .bss section. */<br>
-- case SHT_HASH: /* .hash section. */<br>
-- case SHT_NOTE: /* .note section. */<br>
-+ case SHT_PROGBITS: /* Normal section with contents. */<br>
-+ case SHT_NOBITS: /* .bss section. */<br>
-+ case SHT_HASH: /* .hash section. */<br>
-+ case SHT_NOTE: /* .note section. */<br>
- case SHT_INIT_ARRAY: /* .init_array section. */<br>
- case SHT_FINI_ARRAY: /* .fini_array section. */<br>
- case SHT_PREINIT_ARRAY: /* .preinit_array section. */<br>
- case SHT_GNU_LIBLIST: /* .gnu.liblist section. */<br>
- case SHT_GNU_HASH: /* .gnu.hash section. */<br>
-- return _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);<br>
-+ ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);<br>
-+ goto success;<br>
-<br>
- case SHT_DYNAMIC: /* Dynamic linking information. */<br>
- if (! _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex))<br>
-- return FALSE;<br>
-+ goto fail;<br>
-+<br>
- if (hdr->sh_link > elf_numsections (abfd))<br>
- {<br>
- /* PR 10478: Accept Solaris binaries with a sh_link<br>
-@@ -1619,11 +1648,11 @@ bfd_section_from_shdr (bfd *abfd, unsign<br>
- break;<br>
- /* Otherwise fall through. */<br>
- default:<br>
-- return FALSE;<br>
-+ goto fail;<br>
- }<br>
- }<br>
- else if (elf_elfsections (abfd)[hdr->sh_link] == NULL)<br>
-- return FALSE;<br>
-+ goto fail;<br>
- else if (elf_elfsections (abfd)[hdr->sh_link]->sh_type != SHT_STRTAB)<br>
- {<br>
- Elf_Internal_Shdr *dynsymhdr;<br>
-@@ -1652,24 +1681,26 @@ bfd_section_from_shdr (bfd *abfd, unsign<br>
- }<br>
- }<br>
- }<br>
-- break;<br>
-+ goto success;<br>
-<br>
-- case SHT_SYMTAB: /* A symbol table */<br>
-+ case SHT_SYMTAB: /* A symbol table. */<br>
- if (elf_onesymtab (abfd) == shindex)<br>
-- return TRUE;<br>
-+ goto success;<br>
-<br>
- if (hdr->sh_entsize != bed->s->sizeof_sym)<br>
-- return FALSE;<br>
-+ goto fail;<br>
-+<br>
- if (hdr->sh_info * hdr->sh_entsize > hdr->sh_size)<br>
- {<br>
- if (hdr->sh_size != 0)<br>
-- return FALSE;<br>
-+ goto fail;<br>
- /* Some assemblers erroneously set sh_info to one with a<br>
- zero sh_size. ld sees this as a global symbol count<br>
- of (unsigned) -1. Fix it here. */<br>
- hdr->sh_info = 0;<br>
-- return TRUE;<br>
-+ goto success;<br>
- }<br>
-+<br>
- BFD_ASSERT (elf_onesymtab (abfd) == 0);<br>
- elf_onesymtab (abfd) = shindex;<br>
- elf_tdata (abfd)->symtab_hdr = *hdr;<br>
-@@ -1686,7 +1717,7 @@ bfd_section_from_shdr (bfd *abfd, unsign<br>
- && (abfd->flags & DYNAMIC) != 0<br>
- && ! _bfd_elf_make_section_from_shdr (abfd, hdr, name,<br>
- shindex))<br>
-- return FALSE;<br>
-+ goto fail;<br>
-<br>
- /* Go looking for SHT_SYMTAB_SHNDX too, since if there is one we<br>
- can't read symbols without that section loaded as well. It<br>
-@@ -1712,26 +1743,29 @@ bfd_section_from_shdr (bfd *abfd, unsign<br>
- break;<br>
- }<br>
- if (i != shindex)<br>
-- return bfd_section_from_shdr (abfd, i);<br>
-+ ret = bfd_section_from_shdr (abfd, i);<br>
- }<br>
-- return TRUE;<br>
-+ goto success;<br>
-<br>
-- case SHT_DYNSYM: /* A dynamic symbol table */<br>
-+ case SHT_DYNSYM: /* A dynamic symbol table. */<br>
- if (elf_dynsymtab (abfd) == shindex)<br>
-- return TRUE;<br>
-+ goto success;<br>
-<br>
- if (hdr->sh_entsize != bed->s->sizeof_sym)<br>
-- return FALSE;<br>
-+ goto fail;<br>
-+<br>
- if (hdr->sh_info * hdr->sh_entsize > hdr->sh_size)<br>
- {<br>
- if (hdr->sh_size != 0)<br>
-- return FALSE;<br>
-+ goto fail;<br>
-+<br>
- /* Some linkers erroneously set sh_info to one with a<br>
- zero sh_size. ld sees this as a global symbol count<br>
- of (unsigned) -1. Fix it here. */<br>
- hdr->sh_info = 0;<br>
-- return TRUE;<br>
-+ goto success;<br>
- }<br>
-+<br>
- BFD_ASSERT (elf_dynsymtab (abfd) == 0);<br>
- elf_dynsymtab (abfd) = shindex;<br>
- elf_tdata (abfd)->dynsymtab_hdr = *hdr;<br>
-@@ -1740,34 +1774,38 @@ bfd_section_from_shdr (bfd *abfd, unsign<br>
-<br>
- /* Besides being a symbol table, we also treat this as a regular<br>
- section, so that objcopy can handle it. */<br>
-- return _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);<br>
-+ ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);<br>
-+ goto success;<br>
-<br>
-- case SHT_SYMTAB_SHNDX: /* Symbol section indices when >64k sections */<br>
-+ case SHT_SYMTAB_SHNDX: /* Symbol section indices when >64k sections. */<br>
- if (elf_symtab_shndx (abfd) == shindex)<br>
-- return TRUE;<br>
-+ goto success;<br>
-<br>
- BFD_ASSERT (elf_symtab_shndx (abfd) == 0);<br>
- elf_symtab_shndx (abfd) = shindex;<br>
- elf_tdata (abfd)->symtab_shndx_hdr = *hdr;<br>
- elf_elfsections (abfd)[shindex] = &elf_tdata (abfd)->symtab_shndx_hdr;<br>
-- return TRUE;<br>
-+ goto success;<br>
-<br>
-- case SHT_STRTAB: /* A string table */<br>
-+ case SHT_STRTAB: /* A string table. */<br>
- if (hdr->bfd_section != NULL)<br>
-- return TRUE;<br>
-+ goto success;<br>
-+<br>
- if (ehdr->e_shstrndx == shindex)<br>
- {<br>
- elf_tdata (abfd)->shstrtab_hdr = *hdr;<br>
- elf_elfsections (abfd)[shindex] = &elf_tdata (abfd)->shstrtab_hdr;<br>
-- return TRUE;<br>
-+ goto success;<br>
- }<br>
-+<br>
- if (elf_elfsections (abfd)[elf_onesymtab (abfd)]->sh_link == shindex)<br>
- {<br>
- symtab_strtab:<br>
- elf_tdata (abfd)->strtab_hdr = *hdr;<br>
- elf_elfsections (abfd)[shindex] = &elf_tdata (abfd)->strtab_hdr;<br>
-- return TRUE;<br>
-+ goto success;<br>
- }<br>
-+<br>
- if (elf_elfsections (abfd)[elf_dynsymtab (abfd)]->sh_link == shindex)<br>
- {<br>
- dynsymtab_strtab:<br>
-@@ -1776,8 +1814,9 @@ bfd_section_from_shdr (bfd *abfd, unsign<br>
- elf_elfsections (abfd)[shindex] = hdr;<br>
- /* We also treat this as a regular section, so that objcopy<br>
- can handle it. */<br>
-- return _bfd_elf_make_section_from_shdr (abfd, hdr, name,<br>
-- shindex);<br>
-+ ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name,<br>
-+ shindex);<br>
-+ goto success;<br>
- }<br>
-<br>
- /* If the string table isn't one of the above, then treat it as a<br>
-@@ -1795,9 +1834,9 @@ bfd_section_from_shdr (bfd *abfd, unsign<br>
- {<br>
- /* Prevent endless recursion on broken objects. */<br>
- if (i == shindex)<br>
-- return FALSE;<br>
-+ goto fail;<br>
- if (! bfd_section_from_shdr (abfd, i))<br>
-- return FALSE;<br>
-+ goto fail;<br>
- if (elf_onesymtab (abfd) == i)<br>
- goto symtab_strtab;<br>
- if (elf_dynsymtab (abfd) == i)<br>
-@@ -1805,7 +1844,8 @@ bfd_section_from_shdr (bfd *abfd, unsign<br>
- }<br>
- }<br>
- }<br>
-- return _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);<br>
-+ ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);<br>
-+ goto success;<br>
-<br>
- case SHT_REL:<br>
- case SHT_RELA:<br>
-@@ -1820,7 +1860,7 @@ bfd_section_from_shdr (bfd *abfd, unsign<br>
- if (hdr->sh_entsize<br>
- != (bfd_size_type) (hdr->sh_type == SHT_REL<br>
- ? bed->s->sizeof_rel : bed->s->sizeof_rela))<br>
-- return FALSE;<br>
-+ goto fail;<br>
-<br>
- /* Check for a bogus link to avoid crashing. */<br>
- if (hdr->sh_link >= num_sec)<br>
-@@ -1828,8 +1868,9 @@ bfd_section_from_shdr (bfd *abfd, unsign<br>
- ((*_bfd_error_handler)<br>
- (_("%B: invalid link %lu for reloc section %s (index %u)"),<br>
- abfd, hdr->sh_link, name, shindex));<br>
-- return _bfd_elf_make_section_from_shdr (abfd, hdr, name,<br>
-- shindex);<br>
-+ ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name,<br>
-+ shindex);<br>
-+ goto success;<br>
- }<br>
-<br>
- /* For some incomprehensible reason Oracle distributes<br>
-@@ -1870,7 +1911,7 @@ bfd_section_from_shdr (bfd *abfd, unsign<br>
- if ((elf_elfsections (abfd)[hdr->sh_link]->sh_type == SHT_SYMTAB<br>
- || elf_elfsections (abfd)[hdr->sh_link]->sh_type == SHT_DYNSYM)<br>
- && ! bfd_section_from_shdr (abfd, hdr->sh_link))<br>
-- return FALSE;<br>
-+ goto fail;<br>
-<br>
- /* If this reloc section does not use the main symbol table we<br>
- don't treat it as a reloc section. BFD can't adequately<br>
-@@ -1885,14 +1926,18 @@ bfd_section_from_shdr (bfd *abfd, unsign<br>
- || hdr->sh_info >= num_sec<br>
- || elf_elfsections (abfd)[hdr->sh_info]->sh_type == SHT_REL<br>
- || elf_elfsections (abfd)[hdr->sh_info]->sh_type == SHT_RELA)<br>
-- return _bfd_elf_make_section_from_shdr (abfd, hdr, name,<br>
-- shindex);<br>
-+ {<br>
-+ ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name,<br>
-+ shindex);<br>
-+ goto success;<br>
-+ }<br>
-<br>
- if (! bfd_section_from_shdr (abfd, hdr->sh_info))<br>
-- return FALSE;<br>
-+ goto fail;<br>
-+<br>
- target_sect = bfd_section_from_elf_index (abfd, hdr->sh_info);<br>
- if (target_sect == NULL)<br>
-- return FALSE;<br>
-+ goto fail;<br>
-<br>
- esdt = elf_section_data (target_sect);<br>
- if (hdr->sh_type == SHT_RELA)<br>
-@@ -1904,7 +1949,7 @@ bfd_section_from_shdr (bfd *abfd, unsign<br>
- amt = sizeof (*hdr2);<br>
- hdr2 = (Elf_Internal_Shdr *) bfd_alloc (abfd, amt);<br>
- if (hdr2 == NULL)<br>
-- return FALSE;<br>
-+ goto fail;<br>
- *hdr2 = *hdr;<br>
- *p_hdr = hdr2;<br>
- elf_elfsections (abfd)[shindex] = hdr2;<br>
-@@ -1920,34 +1965,40 @@ bfd_section_from_shdr (bfd *abfd, unsign<br>
- target_sect->use_rela_p = 1;<br>
- }<br>
- abfd->flags |= HAS_RELOC;<br>
-- return TRUE;<br>
-+ goto success;<br>
- }<br>
-<br>
- case SHT_GNU_verdef:<br>
- elf_dynverdef (abfd) = shindex;<br>
- elf_tdata (abfd)->dynverdef_hdr = *hdr;<br>
-- return _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);<br>
-+ ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);<br>
-+ goto success;<br>
-<br>
- case SHT_GNU_versym:<br>
- if (hdr->sh_entsize != sizeof (Elf_External_Versym))<br>
-- return FALSE;<br>
-+ goto fail;<br>
-+<br>
- elf_dynversym (abfd) = shindex;<br>
- elf_tdata (abfd)->dynversym_hdr = *hdr;<br>
-- return _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);<br>
-+ ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);<br>
-+ goto success;<br>
-<br>
- case SHT_GNU_verneed:<br>
- elf_dynverref (abfd) = shindex;<br>
- elf_tdata (abfd)->dynverref_hdr = *hdr;<br>
-- return _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);<br>
-+ ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);<br>
-+ goto success;<br>
-<br>
- case SHT_SHLIB:<br>
-- return TRUE;<br>
-+ goto success;<br>
-<br>
- case SHT_GROUP:<br>
- if (! IS_VALID_GROUP_SECTION_HEADER (hdr, GRP_ENTRY_SIZE))<br>
-- return FALSE;<br>
-+ goto fail;<br>
-+<br>
- if (!_bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex))<br>
-- return FALSE;<br>
-+ goto fail;<br>
-+<br>
- if (hdr->contents != NULL)<br>
- {<br>
- Elf_Internal_Group *idx = (Elf_Internal_Group *) hdr->contents;<br>
-@@ -1973,7 +2024,7 @@ bfd_section_from_shdr (bfd *abfd, unsign<br>
- }<br>
- }<br>
- }<br>
-- break;<br>
-+ goto success;<br>
-<br>
- default:<br>
- /* Possibly an attributes section. */<br>
-@@ -1981,14 +2032,14 @@ bfd_section_from_shdr (bfd *abfd, unsign<br>
- || hdr->sh_type == bed->obj_attrs_section_type)<br>
- {<br>
- if (! _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex))<br>
-- return FALSE;<br>
-+ goto fail;<br>
- _bfd_elf_parse_attributes (abfd, hdr);<br>
-- return TRUE;<br>
-+ goto success;<br>
- }<br>
-<br>
- /* Check for any processor-specific section types. */<br>
- if (bed->elf_backend_section_from_shdr (abfd, hdr, name, shindex))<br>
-- return TRUE;<br>
-+ goto success;<br>
-<br>
- if (hdr->sh_type >= SHT_LOUSER && hdr->sh_type <= SHT_HIUSER)<br>
- {<br>
-@@ -2000,9 +2051,12 @@ bfd_section_from_shdr (bfd *abfd, unsign<br>
- "specific section `%s' [0x%8x]"),<br>
- abfd, name, hdr->sh_type);<br>
- else<br>
-- /* Allow sections reserved for applications. */<br>
-- return _bfd_elf_make_section_from_shdr (abfd, hdr, name,<br>
-- shindex);<br>
-+ {<br>
-+ /* Allow sections reserved for applications. */<br>
-+ ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name,<br>
-+ shindex);<br>
-+ goto success;<br>
-+ }<br>
- }<br>
- else if (hdr->sh_type >= SHT_LOPROC<br>
- && hdr->sh_type <= SHT_HIPROC)<br>
-@@ -2023,8 +2077,11 @@ bfd_section_from_shdr (bfd *abfd, unsign<br>
- "`%s' [0x%8x]"),<br>
- abfd, name, hdr->sh_type);<br>
- else<br>
-- /* Otherwise it should be processed. */<br>
-- return _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);<br>
-+ {<br>
-+ /* Otherwise it should be processed. */<br>
-+ ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);<br>
-+ goto success;<br>
-+ }<br>
- }<br>
- else<br>
- /* FIXME: We should handle this section. */<br>
-@@ -2032,10 +2089,17 @@ bfd_section_from_shdr (bfd *abfd, unsign<br>
- (_("%B: don't know how to handle section `%s' [0x%8x]"),<br>
- abfd, name, hdr->sh_type);<br>
-<br>
-- return FALSE;<br>
-+ goto fail;<br>
- }<br>
-<br>
-- return TRUE;<br>
-+ fail:<br>
-+ ret = FALSE;<br>
-+ success:<br>
-+ if (sections_being_created)<br>
-+ sections_being_created [shindex] = FALSE;<br>
-+ if (-- nesting == 0)<br>
-+ sections_being_created = NULL;<br>
-+ return ret;<br>
- }<br>
-<br>
- /* Return the local symbol specified by ABFD, R_SYMNDX. */<br>
-Index: binutils-2.24/bfd/peXXigen.c<br>
-===================================================================<br>
---- binutils-2.24.orig/bfd/peXXigen.c<br>
-+++ binutils-2.24/bfd/peXXigen.c<br>
-@@ -1528,7 +1528,12 @@ pe_print_edata (bfd * abfd, void * vfile<br>
- _("\nExport Address Table -- Ordinal Base %ld\n"),<br>
- edt.base);<br>
-<br>
-- for (i = 0; i < edt.num_functions; ++i)<br>
-+ /* PR 17512: Handle corrupt PE binaries. */<br>
-+ if (edt.eat_addr + (edt.num_functions * 4) - adj >= datasize)<br>
-+ fprintf (file, _("\tInvalid Export Address Table rva (0x%lx) or entry count (0x%lx)\n"),<br>
-+ (long) edt.eat_addr,<br>
-+ (long) edt.num_functions);<br>
-+ else for (i = 0; i < edt.num_functions; ++i)<br>
- {<br>
- bfd_vma eat_member = bfd_get_32 (abfd,<br>
- data + edt.eat_addr + (i * 4) - adj);<br>
-@@ -1564,7 +1569,16 @@ pe_print_edata (bfd * abfd, void * vfile<br>
- fprintf (file,<br>
- _("\n[Ordinal/Name Pointer] Table\n"));<br>
-<br>
-- for (i = 0; i < edt.num_names; ++i)<br>
-+ /* PR 17512: Handle corrupt PE binaries. */<br>
-+ if (edt.npt_addr + (edt.num_names * 4) - adj >= datasize)<br>
-+ fprintf (file, _("\tInvalid Name Pointer Table rva (0x%lx) or entry count (0x%lx)\n"),<br>
-+ (long) edt.npt_addr,<br>
-+ (long) edt.num_names);<br>
-+ else if (edt.ot_addr + (edt.num_names * 2) - adj >= datasize)<br>
-+ fprintf (file, _("\tInvalid Ordinal Table rva (0x%lx) or entry count (0x%lx)\n"),<br>
-+ (long) edt.ot_addr,<br>
-+ (long) edt.num_names);<br>
-+ else for (i = 0; i < edt.num_names; ++i)<br>
- {<br>
- bfd_vma name_ptr = bfd_get_32 (abfd,<br>
- data +<br>
-Index: binutils-2.24/bfd/ChangeLog<br>
-===================================================================<br>
---- binutils-2.24.orig/bfd/ChangeLog<br>
-+++ binutils-2.24/bfd/ChangeLog<br>
-@@ -1,8 +1,13 @@<br>
- 2014-10-27 Nick Clifton <<a href="mailto:nickc@redhat.com">nickc@redhat.com</a>><br>
-<br>
- PR binutils/17512<br>
-+ * elf.c (bfd_section_from_shdr): Detect and warn about ELF<br>
-+ binaries with a group of sections linked by the string table<br>
-+ indicies.<br>
- * peXXigen.c (_bfd_XXi_swap_aouthdr_in): Handle corrupt binaries<br>
- with an invalid value for NumberOfRvaAndSizes.<br>
-+ (pe_print_edata): Detect out of range rvas and entry counts for<br>
-+ the Export Address table, Name Pointer table and Ordinal table.<br>
-<br>
- PR binutils/17510<br>
- * elf.c (setup_group): Improve handling of corrupt group<br>
diff --git a/meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8503.patch b/meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8503.patch<br>
deleted file mode 100644<br>
index 2dd3354..0000000<br>
--- a/meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8503.patch<br>
+++ /dev/null<br>
@@ -1,47 +0,0 @@<br>
-Upstream-Status: Backport<br>
-<br>
-CVE-2014-8503 fix.<br>
-<br>
-[YOCTO #7084]<br>
-<br>
-Signed-off-by: Armin Kuster <<a href="mailto:akuster808@gmail.com">akuster808@gmail.com</a>><br>
-<br>
-From 0102ea8cec5fc509bba6c91df61b7ce23a799d32 Mon Sep 17 00:00:00 2001<br>
-From: Nick Clifton <<a href="mailto:nickc@redhat.com">nickc@redhat.com</a>><br>
-Date: Thu, 30 Oct 2014 17:16:17 +0000<br>
-Subject: [PATCH] Fixes a seg-fault in the ihex parser when it encounters a<br>
- malformed ihex file.<br>
-<br>
- PR binutils/17512<br>
- * ihex.c (ihex_scan): Fix typo in invocation of ihex_bad_byte.<br>
----<br>
- bfd/ChangeLog | 1 +<br>
- bfd/ihex.c | 2 +-<br>
- 2 files changed, 2 insertions(+), 1 deletion(-)<br>
-<br>
-Index: binutils-2.24/bfd/ihex.c<br>
-===================================================================<br>
---- binutils-2.24.orig/bfd/ihex.c<br>
-+++ binutils-2.24/bfd/ihex.c<br>
-@@ -322,7 +322,7 @@ ihex_scan (bfd *abfd)<br>
- {<br>
- if (! ISHEX (buf[i]))<br>
- {<br>
-- ihex_bad_byte (abfd, lineno, hdr[i], error);<br>
-+ ihex_bad_byte (abfd, lineno, buf[i], error);<br>
- goto error_return;<br>
- }<br>
- }<br>
-Index: binutils-2.24/bfd/ChangeLog<br>
-===================================================================<br>
---- binutils-2.24.orig/bfd/ChangeLog<br>
-+++ binutils-2.24/bfd/ChangeLog<br>
-@@ -1,3 +1,8 @@<br>
-+2014-10-30 Nick Clifton <<a href="mailto:nickc@redhat.com">nickc@redhat.com</a>><br>
-+<br>
-+ PR binutils/17512<br>
-+ * ihex.c (ihex_scan): Fix typo in invocation of ihex_bad_byte.<br>
-+<br>
- 2014-10-27 Nick Clifton <<a href="mailto:nickc@redhat.com">nickc@redhat.com</a>><br>
-<br>
- PR binutils/17512<br>
diff --git a/meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8504.patch b/meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8504.patch<br>
deleted file mode 100644<br>
index b4d1d1f..0000000<br>
--- a/meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8504.patch<br>
+++ /dev/null<br>
@@ -1,75 +0,0 @@<br>
-Upstream-Status: Backport<br>
-<br>
-CVE-2014-8504 fix.<br>
-<br>
-[YOCTO #7084]<br>
-<br>
-Signed-off-by: Armin Kuster <<a href="mailto:akuster808@gmail.com">akuster808@gmail.com</a>><br>
-<br>
-From 708d7d0d11f0f2d776171979aa3479e8e12a38a0 Mon Sep 17 00:00:00 2001<br>
-From: Nick Clifton <<a href="mailto:nickc@redhat.com">nickc@redhat.com</a>><br>
-Date: Tue, 28 Oct 2014 10:48:14 +0000<br>
-Subject: [PATCH] This patch fixes a flaw in the SREC parser which could cause<br>
- a stack overflow and potential secuiryt breach.<br>
-<br>
- PR binutils/17510<br>
- * srec.c (srec_bad_byte): Increase size of buf to allow for<br>
- negative values.<br>
- (srec_scan): Use an unsigned char buffer to hold header bytes.<br>
----<br>
- bfd/ChangeLog | 8 ++++++++<br>
- bfd/elf.c | 2 +-<br>
- bfd/peXXigen.c | 1 -<br>
- bfd/srec.c | 4 ++--<br>
- 4 files changed, 11 insertions(+), 4 deletions(-)<br>
-<br>
-Index: binutils-2.24/bfd/ChangeLog<br>
-===================================================================<br>
---- binutils-2.24.orig/bfd/ChangeLog<br>
-+++ binutils-2.24/bfd/ChangeLog<br>
-@@ -1,3 +1,11 @@<br>
-+2014-10-28 Andreas Schwab <<a href="mailto:schwab@suse.de">schwab@suse.de</a>><br>
-+ Nick Clifton <<a href="mailto:nickc@redhat.com">nickc@redhat.com</a>><br>
-+<br>
-+ PR binutils/17510<br>
-+ * srec.c (srec_bad_byte): Increase size of buf to allow for<br>
-+ negative values.<br>
-+ (srec_scan): Use an unsigned char buffer to hold header bytes.<br>
-+<br>
- 2014-10-30 Nick Clifton <<a href="mailto:nickc@redhat.com">nickc@redhat.com</a>><br>
-<br>
- PR binutils/17512<br>
-Index: binutils-2.24/bfd/peXXigen.c<br>
-===================================================================<br>
---- binutils-2.24.orig/bfd/peXXigen.c<br>
-+++ binutils-2.24/bfd/peXXigen.c<br>
-@@ -471,7 +471,6 @@ _bfd_XXi_swap_aouthdr_in (bfd * abfd,<br>
- a->NumberOfRvaAndSizes = 0;<br>
- }<br>
-<br>
--<br>
- for (idx = 0; idx < a->NumberOfRvaAndSizes; idx++)<br>
- {<br>
- /* If data directory is empty, rva also should be 0. */<br>
-Index: binutils-2.24/bfd/srec.c<br>
-===================================================================<br>
---- binutils-2.24.orig/bfd/srec.c<br>
-+++ binutils-2.24/bfd/srec.c<br>
-@@ -248,7 +248,7 @@ srec_bad_byte (bfd *abfd,<br>
- }<br>
- else<br>
- {<br>
-- char buf[10];<br>
-+ char buf[40];<br>
-<br>
- if (! ISPRINT (c))<br>
- sprintf (buf, "\\%03o", (unsigned int) c);<br>
-@@ -454,7 +454,7 @@ srec_scan (bfd *abfd)<br>
- case 'S':<br>
- {<br>
- file_ptr pos;<br>
-- char hdr[3];<br>
-+ unsigned char hdr[3];<br>
- unsigned int bytes, min_bytes;<br>
- bfd_vma address;<br>
- bfd_byte *data;<br>
diff --git a/meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8737.patch b/meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8737.patch<br>
deleted file mode 100644<br>
index 4a84562..0000000<br>
--- a/meta/recipes-devtools/binutils/binutils/binutils_CVE-2014-8737.patch<br>
+++ /dev/null<br>
@@ -1,177 +0,0 @@<br>
-Upstream-Status: Backport<br>
-<br>
-CVE-2014-8737 fix.<br>
-<br>
-[YOCTO #7084]<br>
-<br>
-Signed-off-by: Armin Kuster <<a href="mailto:akuster808@gmail.com">akuster808@gmail.com</a>><br>
-<br>
-From dd9b91de2149ee81d47f708e7b0bbf57da10ad42 Mon Sep 17 00:00:00 2001<br>
-From: Nick Clifton <<a href="mailto:nickc@redhat.com">nickc@redhat.com</a>><br>
-Date: Thu, 6 Nov 2014 14:49:10 +0000<br>
-Subject: [PATCH] Prevent archive memebers with illegal pathnames from being<br>
- extracted from an archive.<br>
-<br>
- PR binutils/17552, binutils/17533<br>
- * bucomm.c (is_valid_archive_path): New function. Returns false<br>
- for absolute pathnames and pathnames that include /../.<br>
- * bucomm.h (is_valid_archive_path): Add prototype.<br>
- * ar.c (extract_file): Use new function to check for valid<br>
- pathnames when extracting files from an archive.<br>
- * objcopy.c (copy_archive): Likewise.<br>
- * doc/binutils.texi: Update documentation to mention the<br>
- limitation on pathname of archive members.<br>
----<br>
- binutils/ChangeLog | 16 ++++++++++++++--<br>
- binutils/ar.c | 9 +++++++++<br>
- binutils/bucomm.c | 26 ++++++++++++++++++++++++++<br>
- binutils/bucomm.h | 12 ++++++++----<br>
- binutils/doc/binutils.texi | 3 ++-<br>
- binutils/objcopy.c | 6 ++++++<br>
- 6 files changed, 65 insertions(+), 7 deletions(-)<br>
-<br>
-Index: binutils-2.24/binutils/ar.c<br>
-===================================================================<br>
---- binutils-2.24.orig/binutils/ar.c<br>
-+++ binutils-2.24/binutils/ar.c<br>
-@@ -1031,6 +1031,15 @@ extract_file (bfd *abfd)<br>
- bfd_size_type size;<br>
- struct stat buf;<br>
-<br>
-+ /* PR binutils/17533: Do not allow directory traversal<br>
-+ outside of the current directory tree. */<br>
-+ if (! is_valid_archive_path (bfd_get_filename (abfd)))<br>
-+ {<br>
-+ non_fatal (_("illegal pathname found in archive member: %s"),<br>
-+ bfd_get_filename (abfd));<br>
-+ return;<br>
-+ }<br>
-+<br>
- if (bfd_stat_arch_elt (abfd, &buf) != 0)<br>
- /* xgettext:c-format */<br>
- fatal (_("internal stat error on %s"), bfd_get_filename (abfd));<br>
-Index: binutils-2.24/binutils/bucomm.c<br>
-===================================================================<br>
---- binutils-2.24.orig/binutils/bucomm.c<br>
-+++ binutils-2.24/binutils/bucomm.c<br>
-@@ -624,3 +624,29 @@ bfd_get_archive_filename (const bfd *abf<br>
- bfd_get_filename (abfd));<br>
- return buf;<br>
- }<br>
-+<br>
-+/* Returns TRUE iff PATHNAME, a filename of an archive member,<br>
-+ is valid for writing. For security reasons absolute paths<br>
-+ and paths containing /../ are not allowed. See PR 17533. */<br>
-+<br>
-+bfd_boolean<br>
-+is_valid_archive_path (char const * pathname)<br>
-+{<br>
-+ const char * n = pathname;<br>
-+<br>
-+ if (IS_ABSOLUTE_PATH (n))<br>
-+ return FALSE;<br>
-+<br>
-+ while (*n)<br>
-+ {<br>
-+ if (*n == '.' && *++n == '.' && ( ! *++n || IS_DIR_SEPARATOR (*n)))<br>
-+ return FALSE;<br>
-+<br>
-+ while (*n && ! IS_DIR_SEPARATOR (*n))<br>
-+ n++;<br>
-+ while (IS_DIR_SEPARATOR (*n))<br>
-+ n++;<br>
-+ }<br>
-+<br>
-+ return TRUE;<br>
-+}<br>
-Index: binutils-2.24/binutils/bucomm.h<br>
-===================================================================<br>
---- binutils-2.24.orig/binutils/bucomm.h<br>
-+++ binutils-2.24/binutils/bucomm.h<br>
-@@ -23,6 +23,8 @@<br>
- #ifndef _BUCOMM_H<br>
- #define _BUCOMM_H<br>
-<br>
-+/* In bucomm.c. */<br>
-+<br>
- /* Return the filename in a static buffer. */<br>
- const char *bfd_get_archive_filename (const bfd *);<br>
-<br>
-@@ -58,20 +60,22 @@ bfd_vma parse_vma (const char *, const c<br>
-<br>
- off_t get_file_size (const char *);<br>
-<br>
-+bfd_boolean is_valid_archive_path (char const *);<br>
-+<br>
- extern char *program_name;<br>
-<br>
--/* filemode.c */<br>
-+/* In filemode.c. */<br>
- void mode_string (unsigned long, char *);<br>
-<br>
--/* version.c */<br>
-+/* In version.c. */<br>
- extern void print_version (const char *);<br>
-<br>
--/* rename.c */<br>
-+/* In rename.c. */<br>
- extern void set_times (const char *, const struct stat *);<br>
-<br>
- extern int smart_rename (const char *, const char *, int);<br>
-<br>
--/* libiberty. */<br>
-+/* In libiberty. */<br>
- void *xmalloc (size_t);<br>
-<br>
- void *xrealloc (void *, size_t);<br>
-Index: binutils-2.24/binutils/doc/binutils.texi<br>
-===================================================================<br>
---- binutils-2.24.orig/binutils/doc/binutils.texi<br>
-+++ binutils-2.24/binutils/doc/binutils.texi<br>
-@@ -234,7 +234,8 @@ a normal archive. Instead the elements<br>
- individually to the second archive.<br>
-<br>
- The paths to the elements of the archive are stored relative to the<br>
--archive itself.<br>
-+archive itself. For security reasons absolute paths and paths with a<br>
-+@code{/../} component are not allowed.<br>
-<br>
- @cindex compatibility, @command{ar}<br>
- @cindex @command{ar} compatibility<br>
-Index: binutils-2.24/binutils/objcopy.c<br>
-===================================================================<br>
---- binutils-2.24.orig/binutils/objcopy.c<br>
-+++ binutils-2.24/binutils/objcopy.c<br>
-@@ -2206,6 +2206,12 @@ copy_archive (bfd *ibfd, bfd *obfd, cons<br>
- bfd_boolean del = TRUE;<br>
- bfd_boolean ok_object;<br>
-<br>
-+ /* PR binutils/17533: Do not allow directory traversal<br>
-+ outside of the current directory tree by archive members. */<br>
-+ if (! is_valid_archive_path (bfd_get_filename (this_element)))<br>
-+ fatal (_("illegal pathname found in archive member: %s"),<br>
-+ bfd_get_filename (this_element));<br>
-+<br>
- /* Create an output file for this member. */<br>
- output_name = concat (dir, "/",<br>
- bfd_get_filename (this_element), (char *) 0);<br>
-Index: binutils-2.24/binutils/ChangeLog<br>
-===================================================================<br>
---- binutils-2.24.orig/binutils/ChangeLog<br>
-+++ binutils-2.24/binutils/ChangeLog<br>
-@@ -1,3 +1,15 @@<br>
-+2014-11-06 Nick Clifton <<a href="mailto:nickc@redhat.com">nickc@redhat.com</a>><br>
-+<br>
-+ PR binutils/17552, binutils/17533<br>
-+ * bucomm.c (is_valid_archive_path): New function. Returns false<br>
-+ for absolute pathnames and pathnames that include /../.<br>
-+ * bucomm.h (is_valid_archive_path): Add prototype.<br>
-+ * ar.c (extract_file): Use new function to check for valid<br>
-+ pathnames when extracting files from an archive.<br>
-+ * objcopy.c (copy_archive): Likewise.<br>
-+ * doc/binutils.texi: Update documentation to mention the<br>
-+ limitation on pathname of archive members.<br>
-+<br>
- 2013-11-22 Cory Fields <<a href="mailto:cory@coryfields.com">cory@coryfields.com</a>><br>
-<br>
- * windres.c (define_resource): Use zero for timestamp, making<br>
diff --git a/meta/recipes-devtools/binutils/binutils/fix-pr15815.patch b/meta/recipes-devtools/binutils/binutils/fix-pr15815.patch<br>
deleted file mode 100644<br>
index 9f53f41..0000000<br>
--- a/meta/recipes-devtools/binutils/binutils/fix-pr15815.patch<br>
+++ /dev/null<br>
@@ -1,36 +0,0 @@<br>
-This patch fixes the problem where libiberty is not installed in spite of<br>
-asking it via --enable-install-libiberty, the problem is that target_header_dir<br>
-is reset explicitly which means libiberty.a will never get installed<br>
-<br>
-also check<br>
-<br>
-<a href="https://sourceware.org/bugzilla/show_bug.cgi?id=15815" target="_blank">https://sourceware.org/bugzilla/show_bug.cgi?id=15815</a><br>
-<br>
-Upstream-Status: Pending<br>
-<br>
-Signed-off-by: Khem Raj <<a href="mailto:raj.khem@gmail.com">raj.khem@gmail.com</a>><br>
-<br>
-Index: binutils-2.24/libiberty/configure<br>
-===================================================================<br>
---- binutils-2.24.orig/libiberty/configure 2013-12-16 00:08:09.280103157 -0800<br>
-+++ binutils-2.24/libiberty/configure 2013-12-16 00:08:29.753436339 -0800<br>
-@@ -5507,7 +5507,6 @@<br>
-<br>
- setobjs=<br>
- CHECK=<br>
--target_header_dir=<br>
- if test -n "${with_target_subdir}"; then<br>
-<br>
- # We are being configured as a target library. AC_REPLACE_FUNCS<br>
-Index: binutils-2.24/libiberty/<a href="http://configure.ac" target="_blank">configure.ac</a><br>
-===================================================================<br>
---- binutils-2.24.orig/libiberty/<a href="http://configure.ac" target="_blank">configure.ac</a> 2013-11-08 02:13:49.000000000 -0800<br>
-+++ binutils-2.24/libiberty/<a href="http://configure.ac" target="_blank">configure.ac</a> 2013-12-16 00:07:45.133436672 -0800<br>
-@@ -405,7 +405,6 @@<br>
-<br>
- setobjs=<br>
- CHECK=<br>
--target_header_dir=<br>
- if test -n "${with_target_subdir}"; then<br>
-<br>
- # We are being configured as a target library. AC_REPLACE_FUNCS<br>
diff --git a/meta/recipes-devtools/binutils/binutils/fix-pr16428.patch b/meta/recipes-devtools/binutils/binutils/fix-pr16428.patch<br>
deleted file mode 100644<br>
index 4584748..0000000<br>
--- a/meta/recipes-devtools/binutils/binutils/fix-pr16428.patch<br>
+++ /dev/null<br>
@@ -1,123 +0,0 @@<br>
-commit 4199e3b8669d0a36448687850374fdc2ad7240b6<br>
-Author: Alan Modra <<a href="mailto:amodra@gmail.com">amodra@gmail.com</a>><br>
-Date: Wed Jan 15 21:50:55 2014 +1030<br>
-<br>
- non-PIC references to __ehdr_start in pie and shared<br>
-<br>
- Rather than hacking every backend to not discard dynamic relocations<br>
- against an undefined hidden __ehdr_start, make it appear to be defined<br>
- early. We want __ehdr_start hidden before size_dynamic_sections so<br>
- that it isn't put in .dynsym, but we do need the dynamic relocations<br>
- for a PIE or shared library with a non-PIC reference. Defining it<br>
- early is wrong if we don't actually define the symbol later to its<br>
- proper value. (In some cases we want to leave the symbol undefined,<br>
- for example, when the ELF header isn't loaded, and we don't have this<br>
- infomation available in before_allocation.)<br>
-<br>
- ld/<br>
- * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Define<br>
- __ehdr_start before size_dynamic_sections and restore afterwards.<br>
- ld/testsuite/<br>
- * ld-elf/ehdr_start-shared.d: New.<br>
- * ld-elf/ehdr_start-userdef.d: xfail frv.<br>
- * ld-elf/ehdr_start-weak.d: Likewise.<br>
- * ld-elf/ehdr_start.d: Likewise.<br>
-<br>
-Upstream-Status: Backport<br>
-<br>
-diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em<br>
-index 9a2fe89..13f86f0 100644<br>
---- a/ld/emultempl/elf32.em<br>
-+++ b/ld/emultempl/elf32.em<br>
-@@ -1480,6 +1480,8 @@ gld${EMULATION_NAME}_before_allocation (void)<br>
- const char *rpath;<br>
- asection *sinterp;<br>
- bfd *abfd;<br>
-+ struct elf_link_hash_entry *ehdr_start = NULL;<br>
-+ struct bfd_link_hash_entry ehdr_start_save;<br>
-<br>
- if (is_elf_hash_table (link_info.hash))<br>
- {<br>
-@@ -1504,6 +1506,16 @@ gld${EMULATION_NAME}_before_allocation (void)<br>
- _bfd_elf_link_hash_hide_symbol (&link_info, h, TRUE);<br>
- if (ELF_ST_VISIBILITY (h->other) != STV_INTERNAL)<br>
- h->other = (h->other & ~ELF_ST_VISIBILITY (-1)) | STV_HIDDEN;<br>
-+ /* Don't leave the symbol undefined. Undefined hidden<br>
-+ symbols typically won't have dynamic relocations, but<br>
-+ we most likely will need dynamic relocations for<br>
-+ __ehdr_start if we are building a PIE or shared<br>
-+ library. */<br>
-+ ehdr_start = h;<br>
-+ ehdr_start_save = h->root;<br>
-+ h->root.type = bfd_link_hash_defined;<br>
-+ h->root.u.def.section = bfd_abs_section_ptr;<br>
-+ h->root.u.def.value = 0;<br>
- }<br>
- }<br>
-<br>
-@@ -1620,6 +1632,14 @@ ${ELF_INTERPRETER_SET_DEFAULT}<br>
-<br>
- if (!bfd_elf_size_dynsym_hash_dynstr (link_info.output_bfd, &link_info))<br>
- einfo ("%P%F: failed to set dynamic section sizes: %E\n");<br>
-+<br>
-+ if (ehdr_start != NULL)<br>
-+ {<br>
-+ /* If we twiddled __ehdr_start to defined earlier, put it back<br>
-+ as it was. */<br>
-+ ehdr_start->root.type = ehdr_start_save.type;<br>
-+ ehdr_start->root.u = ehdr_start_save.u;<br>
-+ }<br>
- }<br>
-<br>
- EOF<br>
-diff --git a/ld/testsuite/ld-elf/ehdr_start-shared.d b/ld/testsuite/ld-elf/ehdr_start-shared.d<br>
-new file mode 100644<br>
-index 0000000..c17516a<br>
---- /dev/null<br>
-+++ b/ld/testsuite/ld-elf/ehdr_start-shared.d<br>
-@@ -0,0 +1,9 @@<br>
-+#source: ehdr_start.s<br>
-+#ld: -e _start -shared<br>
-+#nm: -n<br>
-+#target: *-*-linux* *-*-gnu* *-*-nacl*<br>
-+#xfail: cris*-*-* frv-*-*<br>
-+<br>
-+#...<br>
-+[0-9a-f]*000 [Adrt] __ehdr_start<br>
-+#pass<br>
-diff --git a/ld/testsuite/ld-elf/ehdr_start-userdef.d b/ld/testsuite/ld-elf/ehdr_start-userdef.d<br>
-index 2a88e98..b58ae3f 100644<br>
---- a/ld/testsuite/ld-elf/ehdr_start-userdef.d<br>
-+++ b/ld/testsuite/ld-elf/ehdr_start-userdef.d<br>
-@@ -2,6 +2,7 @@<br>
- #ld: -e _start -T ehdr_start-userdef.t<br>
- #readelf: -Ws<br>
- #target: *-*-linux* *-*-gnu* *-*-nacl*<br>
-+#xfail: frv-*-*<br>
-<br>
- #...<br>
- Symbol table '\.symtab' contains [0-9]+ entries:<br>
-diff --git a/ld/testsuite/ld-elf/ehdr_start-weak.d b/ld/testsuite/ld-elf/ehdr_start-weak.d<br>
-index 8bd9035..24ae34c 100644<br>
---- a/ld/testsuite/ld-elf/ehdr_start-weak.d<br>
-+++ b/ld/testsuite/ld-elf/ehdr_start-weak.d<br>
-@@ -2,6 +2,7 @@<br>
- #ld: -e _start -T ehdr_start-missing.t<br>
- #nm: -n<br>
- #target: *-*-linux* *-*-gnu* *-*-nacl*<br>
-+#xfail: frv-*-*<br>
-<br>
- #...<br>
- \s+[wU] __ehdr_start<br>
-diff --git a/ld/testsuite/ld-elf/ehdr_start.d b/ld/testsuite/ld-elf/ehdr_start.d<br>
-index 52e5b54..d538b66 100644<br>
---- a/ld/testsuite/ld-elf/ehdr_start.d<br>
-+++ b/ld/testsuite/ld-elf/ehdr_start.d<br>
-@@ -2,6 +2,7 @@<br>
- #ld: -e _start<br>
- #nm: -n<br>
- #target: *-*-linux* *-*-gnu* *-*-nacl*<br>
-+#xfail: frv-*-*<br>
-<br>
- #...<br>
- [0-9a-f]*000 [Adrt] __ehdr_start<br>
diff --git a/meta/recipes-devtools/binutils/binutils/fix-pr16476.patch b/meta/recipes-devtools/binutils/binutils/fix-pr16476.patch<br>
deleted file mode 100644<br>
index 65d62bc..0000000<br>
--- a/meta/recipes-devtools/binutils/binutils/fix-pr16476.patch<br>
+++ /dev/null<br>
@@ -1,220 +0,0 @@<br>
-From: H.J. Lu <<a href="mailto:hjl.tools@gmail.com">hjl.tools@gmail.com</a>><br>
-Date: Tue, 21 Jan 2014 23:42:43 +0000 (-0800)<br>
-Subject: Check incompatible existing default symbol definition<br>
-X-Git-Tag: hjl/linux/release/2.24.51.0.3~1^2~8^2~16<br>
-X-Git-Url: <a href="https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commitdiff_plain;h=4584ec12076e088cf36965b88ef8710ca85491f9" target="_blank">https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commitdiff_plain;h=4584ec12076e088cf36965b88ef8710ca85491f9</a><br>
-<br>
-Check incompatible existing default symbol definition<br>
-<br>
-After resolving a versioned reference, foo@VER1, to a default versioned<br>
-definition, foo@@VER1, from a shared object, we also merge it with<br>
-the existing regular default symbol definition, foo. When foo is IFUNC<br>
-and foo@@VER1 aren't, we will merge 2 incompatible definitions. This<br>
-patch avoids merging foo@@VER1 definition with foo definition if<br>
-one is IFUNC and the other isn't.<br>
-<br>
-Upstream-Status: Backport<br>
----<br>
-<br>
-#diff --git a/bfd/ChangeLog b/bfd/ChangeLog<br>
-#index 5923bc3..c70a7db 100644<br>
-#--- a/bfd/ChangeLog<br>
-#+++ b/bfd/ChangeLog<br>
-#@@ -1,5 +1,13 @@<br>
-# 2014-01-21 H.J. Lu <<a href="mailto:hongjiu.lu@intel.com">hongjiu.lu@intel.com</a>><br>
-#<br>
-#+ PR ld/16467<br>
-#+ * elflink.c (_bfd_elf_merge_symbol): When types of the existing<br>
-#+ regular default symbol definition and the versioned dynamic<br>
-#+ symbol definition mismatch, skip the default symbol definition<br>
-#+ if one of them is IFUNC.<br>
-#+<br>
-#+2014-01-21 H.J. Lu <<a href="mailto:hongjiu.lu@intel.com">hongjiu.lu@intel.com</a>><br>
-#+<br>
-# PR ld/2404<br>
-# * elflink.c (_bfd_elf_merge_symbol): Don't check info->shared,<br>
-# info->export_dynamic nor h->ref_dynamic for type mismatch when<br>
-diff --git a/bfd/elflink.c b/bfd/elflink.c<br>
-index d0006da..792e14e 100644<br>
---- a/bfd/elflink.c<br>
-+++ b/bfd/elflink.c<br>
-@@ -1092,11 +1092,14 @@ _bfd_elf_merge_symbol (bfd *abfd,<br>
- && newdyn<br>
- && newdef<br>
- && !olddyn<br>
-- && (olddef || h->root.type == bfd_link_hash_common)<br>
-- && ELF_ST_TYPE (sym->st_info) != h->type<br>
-- && ELF_ST_TYPE (sym->st_info) != STT_NOTYPE<br>
-- && h->type != STT_NOTYPE<br>
-- && !(newfunc && oldfunc))<br>
-+ && (((olddef || h->root.type == bfd_link_hash_common)<br>
-+ && ELF_ST_TYPE (sym->st_info) != h->type<br>
-+ && ELF_ST_TYPE (sym->st_info) != STT_NOTYPE<br>
-+ && h->type != STT_NOTYPE<br>
-+ && !(newfunc && oldfunc))<br>
-+ || (olddef<br>
-+ && ((h->type == STT_GNU_IFUNC)<br>
-+ != (ELF_ST_TYPE (sym->st_info) == STT_GNU_IFUNC)))))<br>
- {<br>
- *skip = TRUE;<br>
- return TRUE;<br>
-#diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog<br>
-#index ac65a3a..a092428 100644<br>
-#--- a/ld/testsuite/ChangeLog<br>
-#+++ b/ld/testsuite/ChangeLog<br>
-#@@ -1,5 +1,19 @@<br>
-# 2014-01-21 H.J. Lu <<a href="mailto:hongjiu.lu@intel.com">hongjiu.lu@intel.com</a>><br>
-#<br>
-#+ PR ld/16467<br>
-#+ * ld-ifunc/dummy.c: New file.<br>
-#+ * ld-ifunc/pr16467.out: Likewise.<br>
-##+ * ld-ifunc/pr16467a.c: Likewise.<br>
-#+ * ld-ifunc/pr16467a.map: Likewise.<br>
-#+ * ld-ifunc/pr16467b.c: Likewise.<br>
-#+ * ld-ifunc/pr16467b.map: Likewise.<br>
-#+ * ld-ifunc/pr16467c.c: Likewise.<br>
-#+<br>
-#+ * ld-ifunc/ifunc.exp (run_cc_link_tests): New.<br>
-#+ (run_ld_link_exec_tests): Run pr16467.<br>
-#+<br>
-#+2014-01-21 H.J. Lu <<a href="mailto:hongjiu.lu@intel.com">hongjiu.lu@intel.com</a>><br>
-#+<br>
-# PR ld/2404<br>
-# * ld-elf/shared.exp: Add a PIE test for PR ld/2404.<br>
-#<br>
-diff --git a/ld/testsuite/ld-ifunc/dummy.c b/ld/testsuite/ld-ifunc/dummy.c<br>
-new file mode 100644<br>
-index 0000000..5c03287<br>
---- /dev/null<br>
-+++ b/ld/testsuite/ld-ifunc/dummy.c<br>
-@@ -0,0 +1 @@<br>
-+/* An empty file. */<br>
-diff --git a/ld/testsuite/ld-ifunc/ifunc.exp b/ld/testsuite/ld-ifunc/ifunc.exp<br>
-index fb106c6..d7ff445 100644<br>
---- a/ld/testsuite/ld-ifunc/ifunc.exp<br>
-+++ b/ld/testsuite/ld-ifunc/ifunc.exp<br>
-@@ -349,6 +349,42 @@ if { $verbose < 1 } {<br>
- remote_file host delete "tmpdir/static_nonifunc_prog"<br>
- }<br>
-<br>
-+run_cc_link_tests [list \<br>
-+ [list \<br>
-+ "Build libpr16467a.so" \<br>
-+ "-shared -Wl,--version-script=pr16467a.map" \<br>
-+ "-fPIC" \<br>
-+ { pr16467a.c } \<br>
-+ {} \<br>
-+ "libpr16467a.so" \<br>
-+ ] \<br>
-+ [list \<br>
-+ "Build libpr16467b.a" \<br>
-+ "" \<br>
-+ "-fPIC" \<br>
-+ { pr16467b.c } \<br>
-+ {} \<br>
-+ "libpr16467b.a" \<br>
-+ ] \<br>
-+ [list \<br>
-+ "Build libpr16467b.so" \<br>
-+ "-shared tmpdir/pr16467b.o tmpdir/libpr16467a.so \<br>
-+ -Wl,--version-script=pr16467b.map" \<br>
-+ "-fPIC" \<br>
-+ { dummy.c } \<br>
-+ {} \<br>
-+ "libpr16467b.so" \<br>
-+ ] \<br>
-+ [list \<br>
-+ "Build libpr16467c.a" \<br>
-+ "" \<br>
-+ "" \<br>
-+ { pr16467c.c } \<br>
-+ {} \<br>
-+ "libpr16467c.a" \<br>
-+ ] \<br>
-+]<br>
-+<br>
- run_ld_link_exec_tests [] [list \<br>
- [list \<br>
- "Common symbol override ifunc test 1a" \<br>
-@@ -368,6 +404,15 @@ run_ld_link_exec_tests [] [list \<br>
- "ifunc-common-1.out" \<br>
- "-g" \<br>
- ] \<br>
-+ [list \<br>
-+ "Run pr16467" \<br>
-+ "tmpdir/pr16467c.o tmpdir/libpr16467b.so tmpdir/libpr16467a.so" \<br>
-+ "" \<br>
-+ { dummy.c } \<br>
-+ "pr16467" \<br>
-+ "pr16467.out" \<br>
-+ "" \<br>
-+ ] \<br>
- ]<br>
-<br>
- set test_list [lsort [glob -nocomplain $srcdir/$subdir/*.d]]<br>
-diff --git a/ld/testsuite/ld-ifunc/pr16467.out b/ld/testsuite/ld-ifunc/pr16467.out<br>
-new file mode 100644<br>
-index 0000000..d86bac9<br>
---- /dev/null<br>
-+++ b/ld/testsuite/ld-ifunc/pr16467.out<br>
-@@ -0,0 +1 @@<br>
-+OK<br>
-diff --git a/ld/testsuite/ld-ifunc/pr16467a.c b/ld/testsuite/ld-ifunc/pr16467a.c<br>
-new file mode 100644<br>
-index 0000000..ae3f084<br>
---- /dev/null<br>
-+++ b/ld/testsuite/ld-ifunc/pr16467a.c<br>
-@@ -0,0 +1,5 @@<br>
-+const char *<br>
-+sd_get_seats(void)<br>
-+{<br>
-+ return "OK";<br>
-+}<br>
-diff --git a/ld/testsuite/ld-ifunc/pr16467a.map b/ld/testsuite/ld-ifunc/pr16467a.map<br>
-new file mode 100644<br>
-index 0000000..d677f37<br>
---- /dev/null<br>
-+++ b/ld/testsuite/ld-ifunc/pr16467a.map<br>
-@@ -0,0 +1,4 @@<br>
-+LIBSYSTEMD_209 {<br>
-+global:<br>
-+ sd_get_seats;<br>
-+};<br>
-diff --git a/ld/testsuite/ld-ifunc/pr16467b.c b/ld/testsuite/ld-ifunc/pr16467b.c<br>
-new file mode 100644<br>
-index 0000000..264f6cf<br>
---- /dev/null<br>
-+++ b/ld/testsuite/ld-ifunc/pr16467b.c<br>
-@@ -0,0 +1,7 @@<br>
-+void new_sd_get_seats(void);<br>
-+__asm__(".symver new_sd_get_seats,sd_get_seats@LIBSYSTEMD_209");<br>
-+void (*resolve_sd_get_seats(void)) (void) __asm__ ("sd_get_seats");<br>
-+void (*resolve_sd_get_seats(void)) (void) {<br>
-+ return new_sd_get_seats;<br>
-+}<br>
-+__asm__(".type sd_get_seats, %gnu_indirect_function");<br>
-diff --git a/ld/testsuite/ld-ifunc/pr16467b.map b/ld/testsuite/ld-ifunc/pr16467b.map<br>
-new file mode 100644<br>
-index 0000000..1f263de<br>
---- /dev/null<br>
-+++ b/ld/testsuite/ld-ifunc/pr16467b.map<br>
-@@ -0,0 +1,4 @@<br>
-+LIBSYSTEMD_208 {<br>
-+global:<br>
-+ sd_get_seats;<br>
-+};<br>
-diff --git a/ld/testsuite/ld-ifunc/pr16467c.c b/ld/testsuite/ld-ifunc/pr16467c.c<br>
-new file mode 100644<br>
-index 0000000..e2a901c<br>
---- /dev/null<br>
-+++ b/ld/testsuite/ld-ifunc/pr16467c.c<br>
-@@ -0,0 +1,9 @@<br>
-+#include <stdio.h><br>
-+const char* sd_get_seats(void);<br>
-+<br>
-+int<br>
-+main (int argc, char **argv)<br>
-+{<br>
-+ printf("%s\n", sd_get_seats());<br>
-+ return 0;<br>
-+}<br>
diff --git a/meta/recipes-devtools/binutils/binutils/fix-pr2404.patch b/meta/recipes-devtools/binutils/binutils/fix-pr2404.patch<br>
deleted file mode 100644<br>
index 41f3504..0000000<br>
--- a/meta/recipes-devtools/binutils/binutils/fix-pr2404.patch<br>
+++ /dev/null<br>
@@ -1,76 +0,0 @@<br>
-From: H.J. Lu <<a href="mailto:hjl.tools@gmail.com">hjl.tools@gmail.com</a>><br>
-Date: Tue, 21 Jan 2014 13:33:48 +0000 (-0800)<br>
-Subject: Don't check shared/export_dynamic/ref_dynamic for type mismatch<br>
-X-Git-Tag: hjl/linux/release/2.24.51.0.3~1^2~8^2~22<br>
-X-Git-Url: <a href="https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commitdiff_plain;h=22ef172a21663abb477d72284b4d59c8eabcbb82" target="_blank">https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commitdiff_plain;h=22ef172a21663abb477d72284b4d59c8eabcbb82</a><br>
-<br>
-Don't check shared/export_dynamic/ref_dynamic for type mismatch<br>
-<br>
-There is nothing linker can do when a type mismatched default definition<br>
-are made dynamic by info->shared, info->export_dynamic or h->ref_dynamic.<br>
-But we do want to avoid exporting it when building PIE. Let's remove<br>
-those checks.<br>
-<br>
-bfd/<br>
-<br>
- PR ld/2404<br>
- * elflink.c (_bfd_elf_merge_symbol): Don't check info->shared,<br>
- info->export_dynamic, nor !h->ref_dynamic for type mismatch when<br>
- adding the default version.<br>
-<br>
-ld/testsuite/<br>
-<br>
- PR ld/2404<br>
- * ld-elf/shared.exp: Add a PIE test for PR ld/2404.<br>
-<br>
-Upstream-Status: Backport<br>
----<br>
-<br>
-Index: binutils-2.24/bfd/elflink.c<br>
-===================================================================<br>
---- binutils-2.24.orig/bfd/elflink.c 2014-02-08 13:20:08.628378267 +0000<br>
-+++ binutils-2.24/bfd/elflink.c 2014-02-08 13:20:08.624378267 +0000<br>
-@@ -1090,9 +1090,6 @@<br>
- the type of existing regular definition mismatch. We only do it<br>
- if the existing regular definition won't be dynamic. */<br>
- if (pold_alignment == NULL<br>
-- && !info->shared<br>
-- && !info->export_dynamic<br>
-- && !h->ref_dynamic<br>
- && newdyn<br>
- && newdef<br>
- && !olddyn<br>
-Index: binutils-2.24/ld/testsuite/ld-elf/shared.exp<br>
-===================================================================<br>
---- binutils-2.24.orig/ld/testsuite/ld-elf/shared.exp 2014-02-08 13:20:08.628378267 +0000<br>
-+++ binutils-2.24/ld/testsuite/ld-elf/shared.exp 2014-02-08 13:20:08.624378267 +0000<br>
-@@ -432,3 +432,29 @@<br>
-<br>
- run_cc_link_tests $build_cxx_tests<br>
- run_ld_link_exec_tests [] $run_cxx_tests<br>
-+<br>
-+if { [istarget *-*-linux*]<br>
-+ || [istarget *-*-nacl*]<br>
-+ || [istarget *-*-gnu*] } {<br>
-+ run_cc_link_tests [list \<br>
-+ [list \<br>
-+ "Build libpr2404b.a with PIE" \<br>
-+ "" \<br>
-+ "-fPIE" \<br>
-+ { pr2404b.c } \<br>
-+ {} \<br>
-+ "libpr2404b.a" \<br>
-+ ] \<br>
-+ ]<br>
-+ run_ld_link_exec_tests [] [list \<br>
-+ [list \<br>
-+ "Run pr2404 with PIE" \<br>
-+ "-pie tmpdir/pr2404b.o tmpdir/libpr2404a.so" \<br>
-+ "" \<br>
-+ { dummy.c } \<br>
-+ "pr2404pie" \<br>
-+ "pr2404.out" \<br>
-+ "-fPIE" \<br>
-+ ] \<br>
-+ ]<br>
-+}<br>
diff --git a/meta/recipes-devtools/binutils/binutils/libtool-2.4-update.patch b/meta/recipes-devtools/binutils/binutils/libtool-2.4-update.patch<br>
index 2e621f1..9aaecd9 100644<br>
--- a/meta/recipes-devtools/binutils/binutils/libtool-2.4-update.patch<br>
+++ b/meta/recipes-devtools/binutils/binutils/libtool-2.4-update.patch<br>
@@ -16661,7 +16661,7 @@ Index: binutils-2.24/ld/configure<br>
===================================================================<br>
--- binutils-2.24.orig/ld/configure 2013-11-04 07:33:39.000000000 -0800<br>
+++ binutils-2.24/ld/configure 2013-12-15 11:12:06.120451266 -0800<br>
-@@ -646,8 +646,11 @@<br>
+@@ -654,8 +654,11 @@ OTOOL<br>
LIPO<br>
NMEDIT<br>
DSYMUTIL<br>
@@ -16673,24 +16673,24 @@ Index: binutils-2.24/ld/configure<br>
OBJDUMP<br>
LN_S<br>
NM<br>
-@@ -785,6 +788,7 @@<br>
+@@ -776,6 +779,7 @@ enable_static<br>
with_pic<br>
enable_fast_install<br>
with_gnu_ld<br>
+with_libtool_sysroot<br>
enable_libtool_lock<br>
- enable_nls<br>
- enable_initfini_array<br>
-@@ -1452,6 +1456,8 @@<br>
+ enable_plugins<br>
+ enable_largefile<br>
+@@ -1453,6 +1457,8 @@ Optional Packages:<br>
--with-pic try to use only PIC/non-PIC objects [default=use<br>
both]<br>
--with-gnu-ld assume the C compiler uses GNU ld [default=no]<br>
+ --with-libtool-sysroot=DIR Search for dependent libraries within DIR<br>
+ (or the compiler's sysroot if not specified).<br>
+ --with-lib-path=dir1:dir2... set default LIB_PATH<br>
+ --with-sysroot=DIR Search for usr/lib et al within DIR.<br>
--with-zlib include zlib support (auto/yes/no) default=auto<br>
-<br>
- Some influential environment variables:<br>
-@@ -6125,8 +6131,8 @@<br>
+@@ -5645,8 +5651,8 @@ esac<br>
<br>
<br>
<br>
@@ -16701,7 +16701,7 @@ Index: binutils-2.24/ld/configure<br>
<br>
<br>
<br>
-@@ -6166,7 +6172,7 @@<br>
+@@ -5686,7 +5692,7 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO<br>
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5<br>
$as_echo_n "checking how to print strings... " >&6; }<br>
# Test print first, because it will be a builtin if present.<br>
@@ -16710,7 +16710,7 @@ Index: binutils-2.24/ld/configure<br>
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then<br>
ECHO='print -r --'<br>
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then<br>
-@@ -6852,8 +6858,8 @@<br>
+@@ -6372,8 +6378,8 @@ $as_echo_n "checking whether the shell understands some XSI constructs... " >&6;<br>
# Try some XSI features<br>
xsi_shell=no<br>
( _lt_dummy="a/b/c"<br>
@@ -16721,7 +16721,7 @@ Index: binutils-2.24/ld/configure<br>
&& eval 'test $(( 1 + 1 )) -eq 2 \<br>
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \<br>
&& xsi_shell=yes<br>
-@@ -6902,6 +6908,80 @@<br>
+@@ -6422,6 +6428,80 @@ esac<br>
<br>
<br>
<br>
@@ -16802,7 +16802,7 @@ Index: binutils-2.24/ld/configure<br>
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5<br>
$as_echo_n "checking for $LD option to reload object files... " >&6; }<br>
if test "${lt_cv_ld_reload_flag+set}" = set; then :<br>
-@@ -6918,6 +6998,11 @@<br>
+@@ -6438,6 +6518,11 @@ case $reload_flag in<br>
esac<br>
reload_cmds='$LD$reload_flag -o $output$reload_objs'<br>
case $host_os in<br>
@@ -16814,7 +16814,7 @@ Index: binutils-2.24/ld/configure<br>
darwin*)<br>
if test "$GCC" = yes; then<br>
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'<br>
-@@ -7086,7 +7171,8 @@<br>
+@@ -6606,7 +6691,8 @@ mingw* | pw32*)<br>
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'<br>
lt_cv_file_magic_cmd='func_win32_libid'<br>
else<br>
@@ -16824,7 +16824,7 @@ Index: binutils-2.24/ld/configure<br>
lt_cv_file_magic_cmd='$OBJDUMP -f'<br>
fi<br>
;;<br>
-@@ -7240,6 +7326,21 @@<br>
+@@ -6760,6 +6846,21 @@ esac<br>
fi<br>
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5<br>
$as_echo "$lt_cv_deplibs_check_method" >&6; }<br>
@@ -16846,7 +16846,7 @@ Index: binutils-2.24/ld/configure<br>
file_magic_cmd=$lt_cv_file_magic_cmd<br>
deplibs_check_method=$lt_cv_deplibs_check_method<br>
test -z "$deplibs_check_method" && deplibs_check_method=unknown<br>
-@@ -7255,9 +7356,162 @@<br>
+@@ -6775,9 +6876,162 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown<br>
<br>
<br>
<br>
@@ -16860,9 +16860,7 @@ Index: binutils-2.24/ld/configure<br>
+<br>
+<br>
+<br>
- if test -n "$ac_tool_prefix"; then<br>
-- # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.<br>
--set dummy ${ac_tool_prefix}ar; ac_word=$2<br>
++if test -n "$ac_tool_prefix"; then<br>
+ # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.<br>
+set dummy ${ac_tool_prefix}dlltool; ac_word=$2<br>
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5<br>
@@ -17003,7 +17001,9 @@ Index: binutils-2.24/ld/configure<br>
+<br>
+<br>
+<br>
-+if test -n "$ac_tool_prefix"; then<br>
+ if test -n "$ac_tool_prefix"; then<br>
+- # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.<br>
+-set dummy ${ac_tool_prefix}ar; ac_word=$2<br>
+ for ac_prog in ar<br>
+ do<br>
+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.<br>
@@ -17011,7 +17011,7 @@ Index: binutils-2.24/ld/configure<br>
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5<br>
$as_echo_n "checking for $ac_word... " >&6; }<br>
if test "${ac_cv_prog_AR+set}" = set; then :<br>
-@@ -7273,7 +7527,7 @@<br>
+@@ -6793,7 +7047,7 @@ do<br>
test -z "$as_dir" && as_dir=.<br>
for ac_exec_ext in '' $ac_executable_extensions; do<br>
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then<br>
@@ -17020,7 +17020,7 @@ Index: binutils-2.24/ld/configure<br>
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5<br>
break 2<br>
fi<br>
-@@ -7293,11 +7547,15 @@<br>
+@@ -6813,11 +7067,15 @@ $as_echo "no" >&6; }<br>
fi<br>
<br>
<br>
@@ -17039,7 +17039,7 @@ Index: binutils-2.24/ld/configure<br>
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5<br>
$as_echo_n "checking for $ac_word... " >&6; }<br>
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :<br>
-@@ -7313,7 +7571,7 @@<br>
+@@ -6833,7 +7091,7 @@ do<br>
test -z "$as_dir" && as_dir=.<br>
for ac_exec_ext in '' $ac_executable_extensions; do<br>
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then<br>
@@ -17048,7 +17048,7 @@ Index: binutils-2.24/ld/configure<br>
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5<br>
break 2<br>
fi<br>
-@@ -7332,6 +7590,10 @@<br>
+@@ -6852,6 +7110,10 @@ else<br>
$as_echo "no" >&6; }<br>
fi<br>
<br>
@@ -17059,7 +17059,7 @@ Index: binutils-2.24/ld/configure<br>
if test "x$ac_ct_AR" = x; then<br>
AR="false"<br>
else<br>
-@@ -7343,12 +7605,10 @@<br>
+@@ -6863,12 +7125,12 @@ ac_tool_warned=yes ;;<br>
esac<br>
AR=$ac_ct_AR<br>
fi<br>
@@ -17071,10 +17071,12 @@ Index: binutils-2.24/ld/configure<br>
-test -z "$AR_FLAGS" && AR_FLAGS=cru<br>
+: ${AR=ar}<br>
+: ${AR_FLAGS=cru}<br>
++<br>
++<br>
<br>
<br>
<br>
-@@ -7360,6 +7620,64 @@<br>
+@@ -6878,6 +7140,62 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru<br>
<br>
<br>
<br>
@@ -17134,12 +17136,10 @@ Index: binutils-2.24/ld/configure<br>
+<br>
+<br>
+<br>
-+<br>
-+<br>
+<br>
+<br>
if test -n "$ac_tool_prefix"; then<br>
- # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.<br>
- set dummy ${ac_tool_prefix}strip; ac_word=$2<br>
-@@ -7694,8 +8012,8 @@<br>
+@@ -7214,8 +7532,8 @@ esac<br>
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"<br>
<br>
# Transform an extracted symbol line into symbol name and symbol address<br>
@@ -17150,7 +17150,7 @@ Index: binutils-2.24/ld/configure<br>
<br>
# Handle CRLF in mingw tool chain<br>
opt_cr=<br>
-@@ -7731,6 +8049,7 @@<br>
+@@ -7251,6 +7569,7 @@ for ac_symprfx in "" "_"; do<br>
else<br>
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"<br>
fi<br>
@@ -17158,7 +17158,7 @@ Index: binutils-2.24/ld/configure<br>
<br>
# Check to see that the pipe works correctly.<br>
pipe_works=no<br>
-@@ -7772,6 +8091,18 @@<br>
+@@ -7292,6 +7611,18 @@ _LT_EOF<br>
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then<br>
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then<br>
cat <<_LT_EOF > conftest.$ac_ext<br>
@@ -17177,7 +17177,7 @@ Index: binutils-2.24/ld/configure<br>
#ifdef __cplusplus<br>
extern "C" {<br>
#endif<br>
-@@ -7783,7 +8114,7 @@<br>
+@@ -7303,7 +7634,7 @@ _LT_EOF<br>
cat <<_LT_EOF >> conftest.$ac_ext<br>
<br>
/* The mapping between symbol names and symbols. */<br>
@@ -17186,7 +17186,7 @@ Index: binutils-2.24/ld/configure<br>
const char *name;<br>
void *address;<br>
}<br>
-@@ -7809,8 +8140,8 @@<br>
+@@ -7329,8 +7660,8 @@ static const void *lt_preloaded_setup() {<br>
_LT_EOF<br>
# Now try linking the two files.<br>
mv conftest.$ac_objext conftstm.$ac_objext<br>
@@ -17197,7 +17197,7 @@ Index: binutils-2.24/ld/configure<br>
LIBS="conftstm.$ac_objext"<br>
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"<br>
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5<br>
-@@ -7820,8 +8151,8 @@<br>
+@@ -7340,8 +7671,8 @@ _LT_EOF<br>
test $ac_status = 0; } && test -s conftest${ac_exeext}; then<br>
pipe_works=yes<br>
fi<br>
@@ -17208,7 +17208,7 @@ Index: binutils-2.24/ld/configure<br>
else<br>
echo "cannot find nm_test_func in $nlist" >&5<br>
fi<br>
-@@ -7858,6 +8189,23 @@<br>
+@@ -7378,6 +7709,19 @@ else<br>
$as_echo "ok" >&6; }<br>
fi<br>
<br>
@@ -17225,14 +17225,10 @@ Index: binutils-2.24/ld/configure<br>
+<br>
+<br>
+<br>
-+<br>
-+<br>
-+<br>
-+<br>
<br>
<br>
<br>
-@@ -7874,6 +8222,38 @@<br>
+@@ -7398,6 +7742,42 @@ fi<br>
<br>
<br>
<br>
@@ -17268,10 +17264,14 @@ Index: binutils-2.24/ld/configure<br>
+<br>
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5<br>
+$as_echo "${lt_sysroot:-no}" >&6; }<br>
++<br>
++<br>
++<br>
++<br>
<br>
-<br>
-<br>
-@@ -8085,6 +8465,123 @@<br>
+ # Check whether --enable-libtool-lock was given.<br>
+ if test "${enable_libtool_lock+set}" = set; then :<br>
+@@ -7605,6 +7985,123 @@ esac<br>
<br>
need_locks="$enable_libtool_lock"<br>
<br>
@@ -17395,7 +17395,7 @@ Index: binutils-2.24/ld/configure<br>
<br>
case $host_os in<br>
rhapsody* | darwin*)<br>
-@@ -8648,6 +9145,8 @@<br>
+@@ -8168,6 +8665,8 @@ _LT_EOF<br>
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5<br>
echo "$AR cru libconftest.a conftest.o" >&5<br>
$AR cru libconftest.a conftest.o 2>&5<br>
@@ -17404,7 +17404,7 @@ Index: binutils-2.24/ld/configure<br>
cat > conftest.c << _LT_EOF<br>
int main() { return 0;}<br>
_LT_EOF<br>
-@@ -8716,6 +9215,16 @@<br>
+@@ -8236,6 +8735,16 @@ done<br>
<br>
<br>
<br>
@@ -17421,7 +17421,7 @@ Index: binutils-2.24/ld/configure<br>
<br>
<br>
# Set options<br>
-@@ -8844,7 +9353,8 @@<br>
+@@ -8364,7 +8873,8 @@ fi<br>
LIBTOOL_DEPS="$ltmain"<br>
<br>
# Always use our own libtool.<br>
@@ -17431,7 +17431,7 @@ Index: binutils-2.24/ld/configure<br>
<br>
<br>
<br>
-@@ -8933,7 +9443,7 @@<br>
+@@ -8453,7 +8963,7 @@ aix3*)<br>
esac<br>
<br>
# Global variables:<br>
@@ -17440,7 +17440,7 @@ Index: binutils-2.24/ld/configure<br>
can_build_shared=yes<br>
<br>
# All known linkers require a `.a' archive for static linking (except MSVC,<br>
-@@ -9231,8 +9741,6 @@<br>
+@@ -8751,8 +9261,6 @@ fi<br>
lt_prog_compiler_pic=<br>
lt_prog_compiler_static=<br>
<br>
@@ -17449,7 +17449,7 @@ Index: binutils-2.24/ld/configure<br>
<br>
if test "$GCC" = yes; then<br>
lt_prog_compiler_wl='-Wl,'<br>
-@@ -9398,6 +9906,12 @@<br>
+@@ -8918,6 +9426,12 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }<br>
lt_prog_compiler_pic='--shared'<br>
lt_prog_compiler_static='--static'<br>
;;<br>
@@ -17462,7 +17462,7 @@ Index: binutils-2.24/ld/configure<br>
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)<br>
# Portland Group compilers (*not* the Pentium gcc compiler,<br>
# which looks to be a dead project)<br>
-@@ -9460,7 +9974,7 @@<br>
+@@ -8980,7 +9494,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }<br>
lt_prog_compiler_pic='-KPIC'<br>
lt_prog_compiler_static='-Bstatic'<br>
case $cc_basename in<br>
@@ -17471,7 +17471,7 @@ Index: binutils-2.24/ld/configure<br>
lt_prog_compiler_wl='-Qoption ld ';;<br>
*)<br>
lt_prog_compiler_wl='-Wl,';;<br>
-@@ -9517,13 +10031,17 @@<br>
+@@ -9037,13 +9551,17 @@ case $host_os in<br>
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"<br>
;;<br>
esac<br>
@@ -17495,7 +17495,7 @@ Index: binutils-2.24/ld/configure<br>
<br>
#<br>
# Check to make sure the PIC flag actually works.<br>
-@@ -9584,6 +10102,11 @@<br>
+@@ -9104,6 +9622,11 @@ fi<br>
<br>
<br>
<br>
@@ -17507,7 +17507,7 @@ Index: binutils-2.24/ld/configure<br>
#<br>
# Check to make sure the static flag actually works.<br>
#<br>
-@@ -9934,7 +10457,8 @@<br>
+@@ -9454,7 +9977,8 @@ _LT_EOF<br>
allow_undefined_flag=unsupported<br>
always_export_symbols=no<br>
enable_shared_with_static_runtimes=yes<br>
@@ -17517,7 +17517,7 @@ Index: binutils-2.24/ld/configure<br>
<br>
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then<br>
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'<br>
-@@ -9982,7 +10506,7 @@<br>
+@@ -9502,7 +10026,7 @@ _LT_EOF<br>
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \<br>
&& test "$tmp_diet" = no<br>
then<br>
@@ -17526,7 +17526,7 @@ Index: binutils-2.24/ld/configure<br>
tmp_sharedflag='-shared'<br>
case $cc_basename,$host_cpu in<br>
pgcc*) # Portland Group C compiler<br>
-@@ -10033,12 +10557,12 @@<br>
+@@ -9553,12 +10077,12 @@ _LT_EOF<br>
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'<br>
hardcode_libdir_flag_spec=<br>
hardcode_libdir_flag_spec_ld='-rpath $libdir'<br>
@@ -17541,7 +17541,7 @@ Index: binutils-2.24/ld/configure<br>
fi<br>
;;<br>
esac<br>
-@@ -10052,8 +10576,8 @@<br>
+@@ -9572,8 +10096,8 @@ _LT_EOF<br>
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'<br>
wlarc=<br>
else<br>
@@ -17552,7 +17552,7 @@ Index: binutils-2.24/ld/configure<br>
fi<br>
;;<br>
<br>
-@@ -10071,8 +10595,8 @@<br>
+@@ -9591,8 +10115,8 @@ _LT_EOF<br>
<br>
_LT_EOF<br>
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then<br>
@@ -17563,7 +17563,7 @@ Index: binutils-2.24/ld/configure<br>
else<br>
ld_shlibs=no<br>
fi<br>
-@@ -10118,8 +10642,8 @@<br>
+@@ -9638,8 +10162,8 @@ _LT_EOF<br>
<br>
*)<br>
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then<br>
@@ -17574,7 +17574,7 @@ Index: binutils-2.24/ld/configure<br>
else<br>
ld_shlibs=no<br>
fi<br>
-@@ -10249,7 +10773,13 @@<br>
+@@ -9769,7 +10293,13 @@ _LT_EOF<br>
allow_undefined_flag='-berok'<br>
# Determine the default libpath from the value encoded in an<br>
# empty executable.<br>
@@ -17589,7 +17589,7 @@ Index: binutils-2.24/ld/configure<br>
/* end confdefs.h. */<br>
<br>
int<br>
-@@ -10262,22 +10792,29 @@<br>
+@@ -9782,22 +10312,29 @@ main ()<br>
_ACEOF<br>
if ac_fn_c_try_link "$LINENO"; then :<br>
<br>
@@ -17632,7 +17632,7 @@ Index: binutils-2.24/ld/configure<br>
<br>
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"<br>
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"<br>
-@@ -10289,7 +10826,13 @@<br>
+@@ -9809,7 +10346,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi<br>
else<br>
# Determine the default libpath from the value encoded in an<br>
# empty executable.<br>
@@ -17647,7 +17647,7 @@ Index: binutils-2.24/ld/configure<br>
/* end confdefs.h. */<br>
<br>
int<br>
-@@ -10302,22 +10845,29 @@<br>
+@@ -9822,22 +10365,29 @@ main ()<br>
_ACEOF<br>
if ac_fn_c_try_link "$LINENO"; then :<br>
<br>
@@ -17690,10 +17690,11 @@ Index: binutils-2.24/ld/configure<br>
<br>
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"<br>
# Warning - without using the other run time loading flags,<br>
-@@ -10362,20 +10912,63 @@<br>
+@@ -9881,21 +10431,64 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi<br>
+ # When not using gcc, we currently assume that we are using<br>
# Microsoft Visual C++.<br>
# hardcode_libdir_flag_spec is actually meaningless, as there is<br>
- # no search path for DLLs.<br>
+- # no search path for DLLs.<br>
- hardcode_libdir_flag_spec=' '<br>
- allow_undefined_flag=unsupported<br>
- # Tell ltmain to make .lib files, not .a files.<br>
@@ -17708,6 +17709,7 @@ Index: binutils-2.24/ld/configure<br>
- old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'<br>
- fix_srcfile_path='`cygpath -w "$srcfile"`'<br>
- enable_shared_with_static_runtimes=yes<br>
++ # no search path for DLLs.<br>
+ case $cc_basename in<br>
+ cl*)<br>
+ # Native MSVC<br>
@@ -17768,7 +17770,7 @@ Index: binutils-2.24/ld/configure<br>
;;<br>
<br>
darwin* | rhapsody*)<br>
-@@ -10436,7 +11029,7 @@<br>
+@@ -9956,7 +10549,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi<br>
<br>
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.<br>
freebsd* | dragonfly*)<br>
@@ -17777,7 +17779,7 @@ Index: binutils-2.24/ld/configure<br>
hardcode_libdir_flag_spec='-R$libdir'<br>
hardcode_direct=yes<br>
hardcode_shlibpath_var=no<br>
-@@ -10444,7 +11037,7 @@<br>
+@@ -9964,7 +10557,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi<br>
<br>
hpux9*)<br>
if test "$GCC" = yes; then<br>
@@ -17786,7 +17788,7 @@ Index: binutils-2.24/ld/configure<br>
else<br>
archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'<br>
fi<br>
-@@ -10460,7 +11053,7 @@<br>
+@@ -9980,7 +10573,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi<br>
<br>
hpux10*)<br>
if test "$GCC" = yes && test "$with_gnu_ld" = no; then<br>
@@ -17795,7 +17797,7 @@ Index: binutils-2.24/ld/configure<br>
else<br>
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'<br>
fi<br>
-@@ -10484,10 +11077,10 @@<br>
+@@ -10004,10 +10597,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi<br>
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'<br>
;;<br>
ia64*)<br>
@@ -17808,7 +17810,7 @@ Index: binutils-2.24/ld/configure<br>
;;<br>
esac<br>
else<br>
-@@ -10566,23 +11159,36 @@<br>
+@@ -10086,23 +10679,36 @@ fi<br>
<br>
irix5* | irix6* | nonstopux*)<br>
if test "$GCC" = yes; then<br>
@@ -17853,7 +17855,7 @@ Index: binutils-2.24/ld/configure<br>
else<br>
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'<br>
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'<br>
-@@ -10667,7 +11273,7 @@<br>
+@@ -10187,7 +10793,7 @@ rm -f core conftest.err conftest.$ac_objext \<br>
osf4* | osf5*) # as osf3* with the addition of -msym flag<br>
if test "$GCC" = yes; then<br>
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'<br>
@@ -17862,7 +17864,7 @@ Index: binutils-2.24/ld/configure<br>
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'<br>
else<br>
allow_undefined_flag=' -expect_unresolved \*'<br>
-@@ -10686,9 +11292,9 @@<br>
+@@ -10206,9 +10812,9 @@ rm -f core conftest.err conftest.$ac_objext \<br>
no_undefined_flag=' -z defs'<br>
if test "$GCC" = yes; then<br>
wlarc='${wl}'<br>
@@ -17874,7 +17876,7 @@ Index: binutils-2.24/ld/configure<br>
else<br>
case `$CC -V 2>&1` in<br>
*"Compilers 5.0"*)<br>
-@@ -11264,8 +11870,9 @@<br>
+@@ -10784,8 +11390,9 @@ cygwin* | mingw* | pw32* | cegcc*)<br>
need_version=no<br>
need_lib_prefix=no<br>
<br>
@@ -17886,7 +17888,7 @@ Index: binutils-2.24/ld/configure<br>
library_names_spec='$libname.dll.a'<br>
# DLL is installed to $(libdir)/../bin by postinstall_cmds<br>
postinstall_cmds='base_file=`basename \${file}`~<br>
-@@ -11298,13 +11905,71 @@<br>
+@@ -10818,13 +11425,71 @@ cygwin* | mingw* | pw32* | cegcc*)<br>
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'<br>
;;<br>
esac<br>
@@ -17959,7 +17961,7 @@ Index: binutils-2.24/ld/configure<br>
# FIXME: first we should search . and the directory the executable is in<br>
shlibpath_var=PATH<br>
;;<br>
-@@ -11396,7 +12061,7 @@<br>
+@@ -10916,7 +11581,7 @@ haiku*)<br>
soname_spec='${libname}${release}${shared_ext}$major'<br>
shlibpath_var=LIBRARY_PATH<br>
shlibpath_overrides_runpath=yes<br>
@@ -17968,16 +17970,16 @@ Index: binutils-2.24/ld/configure<br>
hardcode_into_libs=yes<br>
;;<br>
<br>
-@@ -12192,7 +12857,7 @@<br>
+@@ -11712,7 +12377,7 @@ else<br>
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2<br>
lt_status=$lt_dlunknown<br>
cat > conftest.$ac_ext <<_LT_EOF<br>
--#line 12195 "configure"<br>
+-#line 11715 "configure"<br>
+#line $LINENO "configure"<br>
#include "confdefs.h"<br>
<br>
#if HAVE_DLFCN_H<br>
-@@ -12236,10 +12901,10 @@<br>
+@@ -11756,10 +12421,10 @@ else<br>
/* When -fvisbility=hidden is used, assume the code has been annotated<br>
correspondingly for the symbols needed. */<br>
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))<br>
@@ -17990,16 +17992,16 @@ Index: binutils-2.24/ld/configure<br>
int main ()<br>
{<br>
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);<br>
-@@ -12298,7 +12963,7 @@<br>
+@@ -11818,7 +12483,7 @@ else<br>
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2<br>
lt_status=$lt_dlunknown<br>
cat > conftest.$ac_ext <<_LT_EOF<br>
--#line 12301 "configure"<br>
+-#line 11821 "configure"<br>
+#line $LINENO "configure"<br>
#include "confdefs.h"<br>
<br>
#if HAVE_DLFCN_H<br>
-@@ -12342,10 +13007,10 @@<br>
+@@ -11862,10 +12527,10 @@ else<br>
/* When -fvisbility=hidden is used, assume the code has been annotated<br>
correspondingly for the symbols needed. */<br>
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))<br>
@@ -18012,7 +18014,7 @@ Index: binutils-2.24/ld/configure<br>
int main ()<br>
{<br>
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);<br>
-@@ -12737,6 +13402,7 @@<br>
+@@ -12257,6 +12922,7 @@ $RM -r conftest*<br>
<br>
# Allow CC to be a program name with arguments.<br>
lt_save_CC=$CC<br>
@@ -18020,7 +18022,7 @@ Index: binutils-2.24/ld/configure<br>
lt_save_LD=$LD<br>
lt_save_GCC=$GCC<br>
GCC=$GXX<br>
-@@ -12754,6 +13420,7 @@<br>
+@@ -12274,6 +12940,7 @@ $RM -r conftest*<br>
fi<br>
test -z "${LDCXX+set}" || LD=$LDCXX<br>
CC=${CXX-"c++"}<br>
@@ -18028,7 +18030,7 @@ Index: binutils-2.24/ld/configure<br>
compiler=$CC<br>
compiler_CXX=$CC<br>
for cc_temp in $compiler""; do<br>
-@@ -12893,8 +13560,8 @@<br>
+@@ -12413,8 +13080,8 @@ with_gnu_ld=$lt_cv_prog_gnu_ld<br>
# Check if GNU C++ uses GNU ld as the underlying linker, since the<br>
# archiving commands below assume that GNU ld is being used.<br>
if test "$with_gnu_ld" = yes; then<br>
@@ -18039,7 +18041,7 @@ Index: binutils-2.24/ld/configure<br>
<br>
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'<br>
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'<br>
-@@ -13036,7 +13703,13 @@<br>
+@@ -12556,7 +13223,13 @@ $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie<br>
allow_undefined_flag_CXX='-berok'<br>
# Determine the default libpath from the value encoded in an empty<br>
# executable.<br>
@@ -18054,7 +18056,7 @@ Index: binutils-2.24/ld/configure<br>
/* end confdefs.h. */<br>
<br>
int<br>
-@@ -13049,22 +13722,29 @@<br>
+@@ -12569,22 +13242,29 @@ main ()<br>
_ACEOF<br>
if ac_fn_cxx_try_link "$LINENO"; then :<br>
<br>
@@ -18097,7 +18099,7 @@ Index: binutils-2.24/ld/configure<br>
<br>
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"<br>
<br>
-@@ -13077,7 +13757,13 @@<br>
+@@ -12597,7 +13277,13 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi<br>
else<br>
# Determine the default libpath from the value encoded in an<br>
# empty executable.<br>
@@ -18112,7 +18114,7 @@ Index: binutils-2.24/ld/configure<br>
/* end confdefs.h. */<br>
<br>
int<br>
-@@ -13090,22 +13776,29 @@<br>
+@@ -12610,22 +13296,29 @@ main ()<br>
_ACEOF<br>
if ac_fn_cxx_try_link "$LINENO"; then :<br>
<br>
@@ -18155,7 +18157,7 @@ Index: binutils-2.24/ld/configure<br>
<br>
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"<br>
# Warning - without using the other run time loading flags,<br>
-@@ -13148,29 +13841,75 @@<br>
+@@ -12668,29 +13361,75 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi<br>
;;<br>
<br>
cygwin* | mingw* | pw32* | cegcc*)<br>
@@ -18254,7 +18256,7 @@ Index: binutils-2.24/ld/configure<br>
darwin* | rhapsody*)<br>
<br>
<br>
-@@ -13276,7 +14015,7 @@<br>
+@@ -12796,7 +13535,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi<br>
;;<br>
*)<br>
if test "$GXX" = yes; then<br>
@@ -18263,7 +18265,7 @@ Index: binutils-2.24/ld/configure<br>
else<br>
# FIXME: insert proper C++ library support<br>
ld_shlibs_CXX=no<br>
-@@ -13347,10 +14086,10 @@<br>
+@@ -12867,10 +13606,10 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi<br>
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'<br>
;;<br>
ia64*)<br>
@@ -18276,7 +18278,7 @@ Index: binutils-2.24/ld/configure<br>
;;<br>
esac<br>
fi<br>
-@@ -13391,9 +14130,9 @@<br>
+@@ -12911,9 +13650,9 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi<br>
*)<br>
if test "$GXX" = yes; then<br>
if test "$with_gnu_ld" = no; then<br>
@@ -18288,7 +18290,7 @@ Index: binutils-2.24/ld/configure<br>
fi<br>
fi<br>
link_all_deplibs_CXX=yes<br>
-@@ -13463,20 +14202,20 @@<br>
+@@ -12983,20 +13722,20 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi<br>
prelink_cmds_CXX='tpldir=Template.dir~<br>
rm -rf $tpldir~<br>
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~<br>
@@ -18313,7 +18315,7 @@ Index: binutils-2.24/ld/configure<br>
;;<br>
*) # Version 6 and above use weak symbols<br>
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'<br>
-@@ -13671,7 +14410,7 @@<br>
+@@ -13191,7 +13930,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi<br>
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'<br>
;;<br>
*)<br>
@@ -18322,7 +18324,7 @@ Index: binutils-2.24/ld/configure<br>
;;<br>
esac<br>
<br>
-@@ -13717,7 +14456,7 @@<br>
+@@ -13237,7 +13976,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi<br>
<br>
solaris*)<br>
case $cc_basename in<br>
@@ -18331,7 +18333,7 @@ Index: binutils-2.24/ld/configure<br>
# Sun C++ 4.2, 5.x and Centerline C++<br>
archive_cmds_need_lc_CXX=yes<br>
no_undefined_flag_CXX=' -zdefs'<br>
-@@ -13758,9 +14497,9 @@<br>
+@@ -13278,9 +14017,9 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi<br>
if test "$GXX" = yes && test "$with_gnu_ld" = no; then<br>
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'<br>
if $CC --version | $GREP -v '^2\.7' > /dev/null; then<br>
@@ -18343,7 +18345,7 @@ Index: binutils-2.24/ld/configure<br>
<br>
# Commands to make compiler produce verbose output that lists<br>
# what "hidden" libraries, object files and flags are used when<br>
-@@ -13895,6 +14634,13 @@<br>
+@@ -13415,6 +14154,13 @@ private:<br>
};<br>
_LT_EOF<br>
<br>
@@ -18357,7 +18359,7 @@ Index: binutils-2.24/ld/configure<br>
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5<br>
(eval $ac_compile) 2>&5<br>
ac_status=$?<br>
-@@ -13908,7 +14654,7 @@<br>
+@@ -13428,7 +14174,7 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5<br>
pre_test_object_deps_done=no<br>
<br>
for p in `eval "$output_verbose_link_cmd"`; do<br>
@@ -18366,7 +18368,7 @@ Index: binutils-2.24/ld/configure<br>
<br>
-L* | -R* | -l*)<br>
# Some compilers place space between "-{L,R}" and the path.<br>
-@@ -13917,13 +14663,22 @@<br>
+@@ -13437,13 +14183,22 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5<br>
test $p = "-R"; then<br>
prev=$p<br>
continue<br>
@@ -18393,7 +18395,7 @@ Index: binutils-2.24/ld/configure<br>
# Internal compiler library paths should come after those<br>
# provided the user. The postdeps already come after the<br>
# user supplied libs so there is no need to process them.<br>
-@@ -13943,8 +14698,10 @@<br>
+@@ -13463,8 +14218,10 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5<br>
postdeps_CXX="${postdeps_CXX} ${prev}${p}"<br>
fi<br>
fi<br>
@@ -18404,7 +18406,7 @@ Index: binutils-2.24/ld/configure<br>
*.$objext)<br>
# This assumes that the test object file only shows up<br>
# once in the compiler output.<br>
-@@ -13980,6 +14737,7 @@<br>
+@@ -13500,6 +14257,7 @@ else<br>
fi<br>
<br>
$RM -f confest.$objext<br>
@@ -18412,7 +18414,7 @@ Index: binutils-2.24/ld/configure<br>
<br>
# PORTME: override above test on systems where it is broken<br>
case $host_os in<br>
-@@ -14015,7 +14773,7 @@<br>
+@@ -13535,7 +14293,7 @@ linux*)<br>
<br>
solaris*)<br>
case $cc_basename in<br>
@@ -18421,7 +18423,7 @@ Index: binutils-2.24/ld/configure<br>
# The more standards-conforming stlport4 library is<br>
# incompatible with the Cstd library. Avoid specifying<br>
# it if it's in CXXFLAGS. Ignore libCrun as<br>
-@@ -14080,8 +14838,6 @@<br>
+@@ -13600,8 +14358,6 @@ fi<br>
lt_prog_compiler_pic_CXX=<br>
lt_prog_compiler_static_CXX=<br>
<br>
@@ -18430,7 +18432,7 @@ Index: binutils-2.24/ld/configure<br>
<br>
# C++ specific cases for pic, static, wl, etc.<br>
if test "$GXX" = yes; then<br>
-@@ -14186,6 +14942,11 @@<br>
+@@ -13706,6 +14462,11 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }<br>
;;<br>
esac<br>
;;<br>
@@ -18442,7 +18444,7 @@ Index: binutils-2.24/ld/configure<br>
dgux*)<br>
case $cc_basename in<br>
ec++*)<br>
-@@ -14338,7 +15099,7 @@<br>
+@@ -13858,7 +14619,7 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }<br>
;;<br>
solaris*)<br>
case $cc_basename in<br>
@@ -18451,7 +18453,7 @@ Index: binutils-2.24/ld/configure<br>
# Sun C++ 4.2, 5.x and Centerline C++<br>
lt_prog_compiler_pic_CXX='-KPIC'<br>
lt_prog_compiler_static_CXX='-Bstatic'<br>
-@@ -14403,10 +15164,17 @@<br>
+@@ -13923,10 +14684,17 @@ case $host_os in<br>
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"<br>
;;<br>
esac<br>
@@ -18472,7 +18474,7 @@ Index: binutils-2.24/ld/configure<br>
<br>
#<br>
# Check to make sure the PIC flag actually works.<br>
-@@ -14464,6 +15232,8 @@<br>
+@@ -13984,6 +14752,8 @@ fi<br>
<br>
<br>
<br>
@@ -18481,7 +18483,7 @@ Index: binutils-2.24/ld/configure<br>
#<br>
# Check to make sure the static flag actually works.<br>
#<br>
-@@ -14641,6 +15411,7 @@<br>
+@@ -14161,6 +14931,7 @@ fi<br>
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }<br>
<br>
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'<br>
@@ -18489,7 +18491,7 @@ Index: binutils-2.24/ld/configure<br>
case $host_os in<br>
aix[4-9]*)<br>
# If we're using GNU nm, then we don't want the "-C" option.<br>
-@@ -14655,15 +15426,20 @@<br>
+@@ -14175,15 +14946,20 @@ $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie<br>
;;<br>
pw32*)<br>
export_symbols_cmds_CXX="$ltdll_cmds"<br>
@@ -18515,7 +18517,7 @@ Index: binutils-2.24/ld/configure<br>
<br>
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5<br>
$as_echo "$ld_shlibs_CXX" >&6; }<br>
-@@ -14926,8 +15702,9 @@<br>
+@@ -14446,8 +15222,9 @@ cygwin* | mingw* | pw32* | cegcc*)<br>
need_version=no<br>
need_lib_prefix=no<br>
<br>
@@ -18527,7 +18529,7 @@ Index: binutils-2.24/ld/configure<br>
library_names_spec='$libname.dll.a'<br>
# DLL is installed to $(libdir)/../bin by postinstall_cmds<br>
postinstall_cmds='base_file=`basename \${file}`~<br>
-@@ -14959,13 +15736,71 @@<br>
+@@ -14479,13 +15256,71 @@ cygwin* | mingw* | pw32* | cegcc*)<br>
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'<br>
;;<br>
esac<br>
@@ -18600,7 +18602,7 @@ Index: binutils-2.24/ld/configure<br>
# FIXME: first we should search . and the directory the executable is in<br>
shlibpath_var=PATH<br>
;;<br>
-@@ -15056,7 +15891,7 @@<br>
+@@ -14576,7 +15411,7 @@ haiku*)<br>
soname_spec='${libname}${release}${shared_ext}$major'<br>
shlibpath_var=LIBRARY_PATH<br>
shlibpath_overrides_runpath=yes<br>
@@ -18609,7 +18611,7 @@ Index: binutils-2.24/ld/configure<br>
hardcode_into_libs=yes<br>
;;<br>
<br>
-@@ -15515,6 +16350,7 @@<br>
+@@ -15035,6 +15870,7 @@ fi<br>
fi # test -n "$compiler"<br>
<br>
CC=$lt_save_CC<br>
@@ -18617,7 +18619,7 @@ Index: binutils-2.24/ld/configure<br>
LDCXX=$LD<br>
LD=$lt_save_LD<br>
GCC=$lt_save_GCC<br>
-@@ -17754,13 +18590,20 @@<br>
+@@ -17807,13 +18643,20 @@ exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'<br>
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'<br>
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'<br>
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'<br>
@@ -18638,7 +18640,7 @@ Index: binutils-2.24/ld/configure<br>
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'<br>
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'<br>
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'<br>
-@@ -17775,14 +18618,17 @@<br>
+@@ -17828,14 +18671,17 @@ lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de<br>
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'<br>
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'<br>
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"`'<br>
@@ -18657,7 +18659,7 @@ Index: binutils-2.24/ld/configure<br>
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'<br>
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'<br>
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'<br>
-@@ -17815,12 +18661,12 @@<br>
+@@ -17868,12 +18714,12 @@ hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q<br>
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'<br>
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'<br>
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'<br>
@@ -18671,7 +18673,7 @@ Index: binutils-2.24/ld/configure<br>
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'<br>
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'<br>
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'<br>
-@@ -17859,8 +18705,8 @@<br>
+@@ -17912,8 +18758,8 @@ old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote<br>
compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'<br>
GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'<br>
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'<br>
@@ -18681,7 +18683,7 @@ Index: binutils-2.24/ld/configure<br>
lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'<br>
lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'<br>
archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'<br>
-@@ -17887,12 +18733,12 @@<br>
+@@ -17940,12 +18786,12 @@ hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_<br>
hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'<br>
inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'<br>
link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'<br>
@@ -18695,7 +18697,7 @@ Index: binutils-2.24/ld/configure<br>
file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'<br>
hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'<br>
compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'<br>
-@@ -17930,8 +18776,13 @@<br>
+@@ -17983,8 +18829,13 @@ reload_flag \<br>
OBJDUMP \<br>
deplibs_check_method \<br>
file_magic_cmd \<br>
@@ -18709,7 +18711,7 @@ Index: binutils-2.24/ld/configure<br>
STRIP \<br>
RANLIB \<br>
CC \<br>
-@@ -17941,12 +18792,14 @@<br>
+@@ -17994,12 +18845,14 @@ lt_cv_sys_global_symbol_pipe \<br>
lt_cv_sys_global_symbol_to_cdecl \<br>
lt_cv_sys_global_symbol_to_c_name_address \<br>
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \<br>
@@ -18725,7 +18727,7 @@ Index: binutils-2.24/ld/configure<br>
DSYMUTIL \<br>
NMEDIT \<br>
LIPO \<br>
-@@ -17962,7 +18815,6 @@<br>
+@@ -18015,7 +18868,6 @@ no_undefined_flag \<br>
hardcode_libdir_flag_spec \<br>
hardcode_libdir_flag_spec_ld \<br>
hardcode_libdir_separator \<br>
@@ -18733,7 +18735,7 @@ Index: binutils-2.24/ld/configure<br>
exclude_expsyms \<br>
include_expsyms \<br>
file_list_spec \<br>
-@@ -17984,8 +18836,8 @@<br>
+@@ -18037,8 +18889,8 @@ LD_CXX \<br>
reload_flag_CXX \<br>
compiler_CXX \<br>
lt_prog_compiler_no_builtin_flag_CXX \<br>
@@ -18743,7 +18745,7 @@ Index: binutils-2.24/ld/configure<br>
lt_prog_compiler_static_CXX \<br>
lt_cv_prog_compiler_c_o_CXX \<br>
export_dynamic_flag_spec_CXX \<br>
-@@ -17997,7 +18849,6 @@<br>
+@@ -18050,7 +18902,6 @@ no_undefined_flag_CXX \<br>
hardcode_libdir_flag_spec_CXX \<br>
hardcode_libdir_flag_spec_ld_CXX \<br>
hardcode_libdir_separator_CXX \<br>
@@ -18751,7 +18753,7 @@ Index: binutils-2.24/ld/configure<br>
exclude_expsyms_CXX \<br>
include_expsyms_CXX \<br>
file_list_spec_CXX \<br>
-@@ -18031,6 +18882,7 @@<br>
+@@ -18084,6 +18935,7 @@ module_cmds \<br>
module_expsym_cmds \<br>
export_symbols_cmds \<br>
prelink_cmds \<br>
@@ -18759,7 +18761,7 @@ Index: binutils-2.24/ld/configure<br>
postinstall_cmds \<br>
postuninstall_cmds \<br>
finish_cmds \<br>
-@@ -18045,7 +18897,8 @@<br>
+@@ -18098,7 +18950,8 @@ archive_expsym_cmds_CXX \<br>
module_cmds_CXX \<br>
module_expsym_cmds_CXX \<br>
export_symbols_cmds_CXX \<br>
@@ -18769,7 +18771,7 @@ Index: binutils-2.24/ld/configure<br>
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in<br>
*[\\\\\\\`\\"\\\$]*)<br>
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""<br>
-@@ -18838,7 +19691,8 @@<br>
+@@ -18891,7 +19744,8 @@ $as_echo X"$file" |<br>
# NOTE: Changes made to this file will be lost: look at ltmain.sh.<br>
#<br>
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,<br>
@@ -18779,7 +18781,7 @@ Index: binutils-2.24/ld/configure<br>
# Written by Gordon Matzigkeit, 1996<br>
#<br>
# This file is part of GNU Libtool.<br>
-@@ -18941,19 +19795,42 @@<br>
+@@ -18994,19 +19848,42 @@ SP2NL=$lt_lt_SP2NL<br>
# turn newlines into spaces.<br>
NL2SP=$lt_lt_NL2SP<br>
<br>
@@ -18823,7 +18825,7 @@ Index: binutils-2.24/ld/configure<br>
# A symbol stripping program.<br>
STRIP=$lt_STRIP<br>
<br>
-@@ -18983,6 +19860,12 @@<br>
+@@ -19036,6 +19913,12 @@ global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address<br>
# Transform the output of nm in a C name address pair when lib prefix is needed.<br>
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix<br>
<br>
@@ -18836,7 +18838,7 @@ Index: binutils-2.24/ld/configure<br>
# The name of the directory that contains temporary libtool files.<br>
objdir=$objdir<br>
<br>
-@@ -18992,6 +19875,9 @@<br>
+@@ -19045,6 +19928,9 @@ MAGIC_CMD=$MAGIC_CMD<br>
# Must we lock files when doing compilation?<br>
need_locks=$lt_need_locks<br>
<br>
@@ -18846,7 +18848,7 @@ Index: binutils-2.24/ld/configure<br>
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.<br>
DSYMUTIL=$lt_DSYMUTIL<br>
<br>
-@@ -19106,12 +19992,12 @@<br>
+@@ -19159,12 +20045,12 @@ with_gcc=$GCC<br>
# Compiler flag to turn off builtin functions.<br>
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag<br>
<br>
@@ -18862,7 +18864,7 @@ Index: binutils-2.24/ld/configure<br>
# Compiler flag to prevent dynamic linking.<br>
link_static_flag=$lt_lt_prog_compiler_static<br>
<br>
-@@ -19198,9 +20084,6 @@<br>
+@@ -19251,9 +20137,6 @@ inherit_rpath=$inherit_rpath<br>
# Whether libtool must link a program against all its dependency libraries.<br>
link_all_deplibs=$link_all_deplibs<br>
<br>
@@ -18872,7 +18874,7 @@ Index: binutils-2.24/ld/configure<br>
# Set to "yes" if exported symbols are required.<br>
always_export_symbols=$always_export_symbols<br>
<br>
-@@ -19216,6 +20099,9 @@<br>
+@@ -19269,6 +20152,9 @@ include_expsyms=$lt_include_expsyms<br>
# Commands necessary for linking programs (against libraries) with templates.<br>
prelink_cmds=$lt_prelink_cmds<br>
<br>
@@ -18882,7 +18884,7 @@ Index: binutils-2.24/ld/configure<br>
# Specify filename containing input files.<br>
file_list_spec=$lt_file_list_spec<br>
<br>
-@@ -19262,210 +20148,169 @@<br>
+@@ -19315,210 +20201,169 @@ ltmain="$ac_aux_dir/ltmain.sh"<br>
# if finds mixed CR/LF and LF-only lines. Since sed operates in<br>
# text mode, it properly converts lines to CR/LF. This bash problem<br>
# is reportedly fixed, but why not run on old versions too?<br>
@@ -19084,9 +19086,15 @@ Index: binutils-2.24/ld/configure<br>
-_LT_EOF<br>
- ;;<br>
- esac<br>
+-<br>
+-<br>
+- sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \<br>
+- || (rm -f "$cfgfile"; exit 1)<br>
+-<br>
+- mv -f "$cfgfile" "$ofile" ||<br>
+ sed '$q' "$ltmain" >> "$cfgfile" \<br>
+ || (rm -f "$cfgfile"; exit 1)<br>
-<br>
++<br>
+ if test x"$xsi_shell" = xyes; then<br>
+ sed -e '/^func_dirname ()$/,/^} # func_dirname /c\<br>
+func_dirname ()\<br>
@@ -19244,16 +19252,13 @@ Index: binutils-2.24/ld/configure<br>
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5<br>
+$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}<br>
+fi<br>
-<br>
-- sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \<br>
-- || (rm -f "$cfgfile"; exit 1)<br>
-<br>
-- mv -f "$cfgfile" "$ofile" ||<br>
++<br>
++<br>
+ mv -f "$cfgfile" "$ofile" ||<br>
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")<br>
chmod +x "$ofile"<br>
<br>
-@@ -19493,12 +20338,12 @@<br>
+@@ -19546,12 +20391,12 @@ with_gcc=$GCC_CXX<br>
# Compiler flag to turn off builtin functions.<br>
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX<br>
<br>
@@ -19269,7 +19274,7 @@ Index: binutils-2.24/ld/configure<br>
# Compiler flag to prevent dynamic linking.<br>
link_static_flag=$lt_lt_prog_compiler_static_CXX<br>
<br>
-@@ -19585,9 +20430,6 @@<br>
+@@ -19638,9 +20483,6 @@ inherit_rpath=$inherit_rpath_CXX<br>
# Whether libtool must link a program against all its dependency libraries.<br>
link_all_deplibs=$link_all_deplibs_CXX<br>
<br>
@@ -19279,7 +19284,7 @@ Index: binutils-2.24/ld/configure<br>
# Set to "yes" if exported symbols are required.<br>
always_export_symbols=$always_export_symbols_CXX<br>
<br>
-@@ -19603,6 +20445,9 @@<br>
+@@ -19656,6 +20498,9 @@ include_expsyms=$lt_include_expsyms_CXX<br>
# Commands necessary for linking programs (against libraries) with templates.<br>
prelink_cmds=$lt_prelink_cmds_CXX<br>
<br>
@@ -19289,10 +19294,10 @@ Index: binutils-2.24/ld/configure<br>
# Specify filename containing input files.<br>
file_list_spec=$lt_file_list_spec_CXX<br>
<br>
-Index: binutils-2.24/bfd/<a href="http://configure.in" target="_blank">configure.in</a><br>
+Index: binutils-2.24/bfd/<a href="http://configure.ac" target="_blank">configure.ac</a><br>
===================================================================<br>
---- binutils-2.24.orig/bfd/<a href="http://configure.in" target="_blank">configure.in</a> 2013-12-02 01:30:28.000000000 -0800<br>
-+++ binutils-2.24/bfd/<a href="http://configure.in" target="_blank">configure.in</a> 2013-12-15 11:10:23.887118697 -0800<br>
+--- binutils-2.24.orig/bfd/<a href="http://configure.ac" target="_blank">configure.ac</a> 2013-12-02 01:30:28.000000000 -0800<br>
++++ binutils-2.24/bfd/<a href="http://configure.ac" target="_blank">configure.ac</a> 2013-12-15 11:10:23.887118697 -0800<br>
@@ -568,7 +568,7 @@<br>
x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`<br>
changequote([,])dnl<br>
@@ -19302,10 +19307,10 @@ Index: binutils-2.24/bfd/<a href="http://configure.in" target="_blank">configure.in</a><br>
fi<br>
<br>
# More hacks to build DLLs on Windows.<br>
-Index: binutils-2.24/opcodes/<a href="http://configure.in" target="_blank">configure.in</a><br>
+Index: binutils-2.24/opcodes/<a href="http://configure.ac" target="_blank">configure.ac</a><br>
===================================================================<br>
---- binutils-2.24.orig/opcodes/<a href="http://configure.in" target="_blank">configure.in</a> 2013-11-04 07:33:40.000000000 -0800<br>
-+++ binutils-2.24/opcodes/<a href="http://configure.in" target="_blank">configure.in</a> 2013-12-15 11:10:23.887118697 -0800<br>
+--- binutils-2.24.orig/opcodes/<a href="http://configure.ac" target="_blank">configure.ac</a> 2013-11-04 07:33:40.000000000 -0800<br>
++++ binutils-2.24/opcodes/<a href="http://configure.ac" target="_blank">configure.ac</a> 2013-12-15 11:10:23.887118697 -0800<br>
@@ -162,7 +162,7 @@<br>
x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`<br>
changequote([,])dnl<br>
diff --git a/meta/recipes-devtools/binutils/binutils/mips64-default-ld-emulation.patch b/meta/recipes-devtools/binutils/binutils/mips64-default-ld-emulation.patch<br>
index 51eaf0b..e668faa 100644<br>
--- a/meta/recipes-devtools/binutils/binutils/mips64-default-ld-emulation.patch<br>
+++ b/meta/recipes-devtools/binutils/binutils/mips64-default-ld-emulation.patch<br>
@@ -9,30 +9,24 @@ Index: binutils-2.24/bfd/config.bfd<br>
===================================================================<br>
--- binutils-2.24.orig/bfd/config.bfd 2013-11-04 07:33:37.000000000 -0800<br>
+++ binutils-2.24/bfd/config.bfd 2013-12-15 11:54:57.113765374 -0800<br>
-@@ -1052,14 +1052,14 @@<br>
- targ_defvec=bfd_elf32_bigmips_vec<br>
- targ_selvecs="bfd_elf32_littlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec ecoff_big_vec ecoff_little_vec"<br>
+Index: binutils-2.24/ld/configure.tgt<br>
+@@ -1062,12 +1062,12 @@ case "${targ}" in<br>
+ targ_selvecs="mips_elf32_le_vec mips_elf64_be_vec mips_elf64_le_vec mips_ecoff_be_vec mips_ecoff_le_vec"<br>
+ ;;<br>
+ mips64*el-*-linux*)<br>
+- targ_defvec=mips_elf32_ntrad_le_vec<br>
+- 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"<br>
++ targ_defvec=mips_elf64_trad_le_vec<br>
++ targ_selvecs="mips_elf32_ntrad_be_vec mips_elf32_ntrad_le_vec mips_elf32_trad_le_vec mips_elf32_trad_be_vec mips_elf64_trad_be_vec"<br>
+ ;;<br>
+ mips64*-*-linux*)<br>
+- targ_defvec=mips_elf32_ntrad_be_vec<br>
+- 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"<br>
++ targ_defvec=mips_elf64_trad_be_vec<br>
++ targ_selvecs="mips_elf32_ntrad_be_vec mips_elf32_ntrad_be_vec mips_elf32_trad_be_vec mips_elf32_trad_le_vec mips_elf64_trad_le_vec"<br>
;;<br>
-- mips64*el-*-linux*)<br>
-- targ_defvec=bfd_elf32_ntradlittlemips_vec<br>
-- targ_selvecs="bfd_elf32_ntradbigmips_vec bfd_elf32_tradlittlemips_vec bfd_elf32_tradbigmips_vec bfd_elf64_tradlittlemips_vec bfd_elf64_tradbigmips_vec"<br>
-- ;;<br>
-- mips64*-*-linux*)<br>
-- targ_defvec=bfd_elf32_ntradbigmips_vec<br>
-- targ_selvecs="bfd_elf32_ntradlittlemips_vec bfd_elf32_tradbigmips_vec bfd_elf32_tradlittlemips_vec bfd_elf64_tradbigmips_vec bfd_elf64_tradlittlemips_vec"<br>
-- ;;<br>
-+ mips64*el-*-linux*)<br>
-+ targ_defvec=bfd_elf64_tradlittlemips_vec<br>
-+ targ_selvecs="bfd_elf32_ntradbigmips_vec bfd_elf32_ntradlittlemips_vec bfd_elf32_tradlittlemips_vec bfd_elf32_tradbigmips_vec bfd_elf64_tradbigmips_vec"<br>
-+ ;;<br>
-+ mips64*-*-linux*)<br>
-+ targ_defvec=bfd_elf64_tradbigmips_vec<br>
-+ targ_selvecs="bfd_elf32_ntradbigmips_vec bfd_elf32_ntradlittlemips_vec bfd_elf32_tradbigmips_vec bfd_elf32_tradlittlemips_vec bfd_elf64_tradlittlemips_vec"<br>
-+ ;;<br>
mips*el-*-linux*)<br>
- targ_defvec=bfd_elf32_tradlittlemips_vec<br>
- targ_selvecs="bfd_elf32_tradbigmips_vec ecoff_little_vec ecoff_big_vec bfd_elf32_ntradlittlemips_vec bfd_elf64_tradlittlemips_vec bfd_elf32_ntradbigmips_vec bfd_elf64_tradbigmips_vec"<br>
-Index: binutils-2.24/ld/configure.tgt<br>
+ targ_defvec=mips_elf32_trad_le_vec<br>
===================================================================<br>
--- binutils-2.24.orig/ld/configure.tgt 2013-11-26 03:37:33.000000000 -0800<br>
+++ binutils-2.24/ld/configure.tgt 2013-12-15 11:50:52.273766155 -0800<br>
diff --git a/meta/recipes-devtools/binutils/binutils/replace_macros_with_static_inline.patch b/meta/recipes-devtools/binutils/binutils/replace_macros_with_static_inline.patch<br>
deleted file mode 100644<br>
index 834f55c..0000000<br>
--- a/meta/recipes-devtools/binutils/binutils/replace_macros_with_static_inline.patch<br>
+++ /dev/null<br>
@@ -1,188 +0,0 @@<br>
-Upstream-Status: Backport<br>
-<br>
-From 27b829ee701e29804216b3803fbaeb629be27491 Mon Sep 17 00:00:00 2001<br>
-From: Nick Clifton <<a href="mailto:nickc@redhat.com">nickc@redhat.com</a>><br>
-Date: Wed, 29 Jan 2014 13:46:39 +0000<br>
-Subject: [PATCH 1/1] Following up on Tom's suggestion I am checking in a patch to replace the various<br>
- bfd_xxx_set macros with static inline functions, so that we can avoid compile time<br>
- warnings about comma expressions with unused values.<br>
-<br>
- * bfd-in.h (bfd_set_section_vma): Delete.<br>
- (bfd_set_section_alignment): Delete.<br>
- (bfd_set_section_userdata): Delete.<br>
- (bfd_set_cacheable): Delete.<br>
- * bfd.c (bfd_set_cacheable): New static inline function.<br>
- * section.c (bfd_set_section_userdata): Likewise.<br>
- (bfd_set_section_vma): Likewise.<br>
- (bfd_set_section_alignment): Likewise.<br>
- * bfd-in2.h: Regenerate.<br>
----<br>
- bfd/ChangeLog | 12 ++++++++++++<br>
- bfd/bfd-in.h | 5 -----<br>
- bfd/bfd-in2.h | 41 +++++++++++++++++++++++++++++++++++------<br>
- bfd/bfd.c | 8 ++++++++<br>
- bfd/section.c | 26 ++++++++++++++++++++++++++<br>
- 5 files changed, 81 insertions(+), 11 deletions(-)<br>
-<br>
-diff --git a/bfd/bfd-in.h b/bfd/bfd-in.h<br>
-index 3afd71b..c7c5a7d 100644<br>
---- a/bfd/bfd-in.h<br>
-+++ b/bfd/bfd-in.h<br>
-@@ -292,9 +292,6 @@ typedef struct bfd_section *sec_ptr;<br>
-<br>
- #define bfd_is_com_section(ptr) (((ptr)->flags & SEC_IS_COMMON) != 0)<br>
-<br>
--#define bfd_set_section_vma(bfd, ptr, val) (((ptr)->vma = (ptr)->lma = (val)), ((ptr)->user_set_vma = TRUE), TRUE)<br>
--#define bfd_set_section_alignment(bfd, ptr, val) (((ptr)->alignment_power = (val)),TRUE)<br>
--#define bfd_set_section_userdata(bfd, ptr, val) (((ptr)->userdata = (val)),TRUE)<br>
- /* Find the address one past the end of SEC. */<br>
- #define bfd_get_section_limit(bfd, sec) \<br>
- (((bfd)->direction != write_direction && (sec)->rawsize != 0 \<br>
-@@ -517,8 +514,6 @@ extern void warn_deprecated (const char *, const char *, int, const char *);<br>
-<br>
- #define bfd_get_symbol_leading_char(abfd) ((abfd)->xvec->symbol_leading_char)<br>
-<br>
--#define bfd_set_cacheable(abfd,bool) (((abfd)->cacheable = bool), TRUE)<br>
--<br>
- extern bfd_boolean bfd_cache_close<br>
- (bfd *abfd);<br>
- /* NB: This declaration should match the autogenerated one in libbfd.h. */<br>
-diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h<br>
-index 71996db..b5aeb40 100644<br>
---- a/bfd/bfd-in2.h<br>
-+++ b/bfd/bfd-in2.h<br>
-@@ -299,9 +299,6 @@ typedef struct bfd_section *sec_ptr;<br>
-<br>
- #define bfd_is_com_section(ptr) (((ptr)->flags & SEC_IS_COMMON) != 0)<br>
-<br>
--#define bfd_set_section_vma(bfd, ptr, val) (((ptr)->vma = (ptr)->lma = (val)), ((ptr)->user_set_vma = TRUE), TRUE)<br>
--#define bfd_set_section_alignment(bfd, ptr, val) (((ptr)->alignment_power = (val)),TRUE)<br>
--#define bfd_set_section_userdata(bfd, ptr, val) (((ptr)->userdata = (val)),TRUE)<br>
- /* Find the address one past the end of SEC. */<br>
- #define bfd_get_section_limit(bfd, sec) \<br>
- (((bfd)->direction != write_direction && (sec)->rawsize != 0 \<br>
-@@ -524,8 +521,6 @@ extern void warn_deprecated (const char *, const char *, int, const char *);<br>
-<br>
- #define bfd_get_symbol_leading_char(abfd) ((abfd)->xvec->symbol_leading_char)<br>
-<br>
--#define bfd_set_cacheable(abfd,bool) (((abfd)->cacheable = bool), TRUE)<br>
--<br>
- extern bfd_boolean bfd_cache_close<br>
- (bfd *abfd);<br>
- /* NB: This declaration should match the autogenerated one in libbfd.h. */<br>
-@@ -1029,7 +1024,7 @@ bfd *bfd_openr (const char *filename, const char *target);<br>
-<br>
- bfd *bfd_fdopenr (const char *filename, const char *target, int fd);<br>
-<br>
--bfd *bfd_openstreamr (const char *, const char *, void *);<br>
-+bfd *bfd_openstreamr (const char * filename, const char * target, void * stream);<br>
-<br>
- bfd *bfd_openr_iovec (const char *filename, const char *target,<br>
- void *(*open_func) (struct bfd *nbfd,<br>
-@@ -1596,6 +1591,32 @@ struct relax_table {<br>
- int size;<br>
- };<br>
-<br>
-+/* Note: the following are provided as inline functions rather than macros<br>
-+ because not all callers use the return value. A macro implementation<br>
-+ would use a comma expression, eg: "((ptr)->foo = val, TRUE)" and some<br>
-+ compilers will complain about comma expressions that have no effect. */<br>
-+static inline bfd_boolean<br>
-+bfd_set_section_userdata (bfd * abfd ATTRIBUTE_UNUSED, asection * ptr, void * val)<br>
-+{<br>
-+ ptr->userdata = val;<br>
-+ return TRUE;<br>
-+}<br>
-+<br>
-+static inline bfd_boolean<br>
-+bfd_set_section_vma (bfd * abfd ATTRIBUTE_UNUSED, asection * ptr, bfd_vma val)<br>
-+{<br>
-+ ptr->vma = ptr->lma = val;<br>
-+ ptr->user_set_vma = TRUE;<br>
-+ return TRUE;<br>
-+}<br>
-+<br>
-+static inline bfd_boolean<br>
-+bfd_set_section_alignment (bfd * abfd ATTRIBUTE_UNUSED, asection * ptr, unsigned int val)<br>
-+{<br>
-+ ptr->alignment_power = val;<br>
-+ return TRUE;<br>
-+}<br>
-+<br>
- /* These sections are global, and are managed by BFD. The application<br>
- and target back end are not permitted to change the values in<br>
- these sections. */<br>
-@@ -6415,6 +6436,14 @@ struct bfd<br>
- unsigned int selective_search : 1;<br>
- };<br>
-<br>
-+/* See note beside bfd_set_section_userdata. */<br>
-+static inline bfd_boolean<br>
-+bfd_set_cacheable (bfd * abfd, bfd_boolean val)<br>
-+{<br>
-+ abfd->cacheable = val;<br>
-+ return TRUE;<br>
-+}<br>
-+<br>
- typedef enum bfd_error<br>
- {<br>
- bfd_error_no_error = 0,<br>
-diff --git a/bfd/bfd.c b/bfd/bfd.c<br>
-index 8d0580c..2d174f3 100644<br>
---- a/bfd/bfd.c<br>
-+++ b/bfd/bfd.c<br>
-@@ -311,6 +311,14 @@ CODE_FRAGMENT<br>
- . unsigned int selective_search : 1;<br>
- .};<br>
- .<br>
-+.{* See note beside bfd_set_section_userdata. *}<br>
-+.static inline bfd_boolean<br>
-+.bfd_set_cacheable (bfd * abfd, bfd_boolean val)<br>
-+.{<br>
-+. abfd->cacheable = val;<br>
-+. return TRUE;<br>
-+.}<br>
-+.<br>
- */<br>
-<br>
- #include "sysdep.h"<br>
-diff --git a/bfd/section.c b/bfd/section.c<br>
-index fb19d8c..a661228 100644<br>
---- a/bfd/section.c<br>
-+++ b/bfd/section.c<br>
-@@ -542,6 +542,32 @@ CODE_FRAGMENT<br>
- . int size;<br>
- .};<br>
- .<br>
-+.{* Note: the following are provided as inline functions rather than macros<br>
-+. because not all callers use the return value. A macro implementation<br>
-+. would use a comma expression, eg: "((ptr)->foo = val, TRUE)" and some<br>
-+. compilers will complain about comma expressions that have no effect. *}<br>
-+.static inline bfd_boolean<br>
-+.bfd_set_section_userdata (bfd * abfd ATTRIBUTE_UNUSED, asection * ptr, void * val)<br>
-+.{<br>
-+. ptr->userdata = val;<br>
-+. return TRUE;<br>
-+.}<br>
-+.<br>
-+.static inline bfd_boolean<br>
-+.bfd_set_section_vma (bfd * abfd ATTRIBUTE_UNUSED, asection * ptr, bfd_vma val)<br>
-+.{<br>
-+. ptr->vma = ptr->lma = val;<br>
-+. ptr->user_set_vma = TRUE;<br>
-+. return TRUE;<br>
-+.}<br>
-+.<br>
-+.static inline bfd_boolean<br>
-+.bfd_set_section_alignment (bfd * abfd ATTRIBUTE_UNUSED, asection * ptr, unsigned int val)<br>
-+.{<br>
-+. ptr->alignment_power = val;<br>
-+. return TRUE;<br>
-+.}<br>
-+.<br>
- .{* These sections are global, and are managed by BFD. The application<br>
- . and target back end are not permitted to change the values in<br>
- . these sections. *}<br>
---<br>
-1.7.1<br>
-<br>
diff --git a/meta/recipes-devtools/binutils/<a href="http://binutils_2.24.bb" target="_blank">binutils_2.24.bb</a> b/meta/recipes-devtools/binutils/<a href="http://binutils_2.25.bb" target="_blank">binutils_2.25.bb</a><br>
similarity index 100%<br>
rename from meta/recipes-devtools/binutils/<a href="http://binutils_2.24.bb" target="_blank">binutils_2.24.bb</a><br>
rename to meta/recipes-devtools/binutils/<a href="http://binutils_2.25.bb" target="_blank">binutils_2.25.bb</a><br>
<span class="HOEnZb"><font color="#888888">--<br>
2.1.4<br>
<br>
--<br>
_______________________________________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.openembedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" target="_blank">http://lists.openembedded.org/mailman/listinfo/openembedded-core</a><br>
</font></span></blockquote></div><br></div>