summaryrefslogtreecommitdiffstats
path: root/cross-binutils-2.23.2-xtensa-memset.patch
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2013-08-09 11:08:07 +0100
committerDavid Howells <dhowells@redhat.com>2013-08-09 11:08:07 +0100
commit0e6f9bc0daaef77834a5bda03b6ea3a46dfb43cd (patch)
treead40a77a6aa8fec427ec5f688bfed91ecf044f1a /cross-binutils-2.23.2-xtensa-memset.patch
parent033f247765c67c6ddc207ed5dba5aa8d4d55f438 (diff)
parent7e2c5c0039655bd049c9d16e82aac8265ca9d5a9 (diff)
downloadcross-binutils-0e6f9bc0daaef77834a5bda03b6ea3a46dfb43cd.tar.gz
cross-binutils-0e6f9bc0daaef77834a5bda03b6ea3a46dfb43cd.tar.xz
cross-binutils-0e6f9bc0daaef77834a5bda03b6ea3a46dfb43cd.zip
Merge branch 'f19'
Conflicts: cross-binutils.spec The Fedora-20 mass-rebuild altered the release number from the f19 base.
Diffstat (limited to 'cross-binutils-2.23.2-xtensa-memset.patch')
-rw-r--r--cross-binutils-2.23.2-xtensa-memset.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/cross-binutils-2.23.2-xtensa-memset.patch b/cross-binutils-2.23.2-xtensa-memset.patch
new file mode 100644
index 0000000..de891ac
--- /dev/null
+++ b/cross-binutils-2.23.2-xtensa-memset.patch
@@ -0,0 +1,22 @@
+diff -ur binutils-2.23.2-old/bfd/elf32-xtensa.c binutils-2.23.2/bfd/elf32-xtensa.c
+--- binutils-2.23.2-old/bfd/elf32-xtensa.c 2012-06-29 15:46:01.000000000 +0100
++++ binutils-2.23.2/bfd/elf32-xtensa.c 2013-08-09 09:06:51.271162551 +0100
+@@ -6075,7 +6075,7 @@
+ release_internal_relocs (sec_cache->sec, sec_cache->relocs);
+ if (sec_cache->ptbl)
+ free (sec_cache->ptbl);
+- memset (sec_cache, 0, sizeof (sec_cache));
++ memset (sec_cache, 0, sizeof (*sec_cache));
+ }
+ }
+
+@@ -6117,7 +6117,7 @@
+
+ /* Fill in the new section cache. */
+ clear_section_cache (sec_cache);
+- memset (sec_cache, 0, sizeof (sec_cache));
++ memset (sec_cache, 0, sizeof (*sec_cache));
+
+ sec_cache->sec = sec;
+ sec_cache->contents = contents;
+