Revert "Add a patch for binutils 2.23.1"
authorOleksij Rempel <linux@rempel-privat.de>
Fri, 16 Sep 2016 06:14:08 +0000 (08:14 +0200)
committerOleksij Rempel <linux@rempel-privat.de>
Mon, 19 Sep 2016 17:15:58 +0000 (19:15 +0200)
This reverts commit 24b475841870cc495417619637c42d65381be38e.
We are using now binutils 2.26.1. So we can drop this patch.

Makefile
local/patches/binutils-elf32-xtensa-sec_cache.patch [deleted file]

index 942e0c5d246d02ffac4a8d76325201e868bd7233..c7afb9b1068b71881cf01d28b9d7ce9530a760d4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -17,7 +17,7 @@ BINUTILS_VER=2.26.1
 BINUTILS_URL=https://ftp.gnu.org/gnu/binutils/binutils-$(BINUTILS_VER).tar.bz2
 BINUTILS_TAR=binutils-$(BINUTILS_VER).tar.bz2
 BINUTILS_DIR=binutils-$(BINUTILS_VER)
-BINUTILS_PATCHES=local/patches/binutils.patch local/patches/binutils-elf32-xtensa-sec_cache.patch
+BINUTILS_PATCHES=local/patches/binutils.patch
 
 GCC_VER=6.2.0
 GCC_URL=https://ftp.gnu.org/gnu/gcc/gcc-$(GCC_VER)/gcc-$(GCC_VER).tar.bz2
diff --git a/local/patches/binutils-elf32-xtensa-sec_cache.patch b/local/patches/binutils-elf32-xtensa-sec_cache.patch
deleted file mode 100644 (file)
index facf709..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
---- a/bfd/elf32-xtensa.c       2012-06-29 17:46:01.000000000 +0300
-+++ b/bfd/elf32-xtensa.c       2013-05-08 19:16:39.436716824 +0300
-@@ -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;