use binutils 2.27
authorOleksij Rempel <linux@rempel-privat.de>
Thu, 29 Sep 2016 19:35:36 +0000 (21:35 +0200)
committerOleksij Rempel <linux@rempel-privat.de>
Sun, 2 Oct 2016 17:18:40 +0000 (19:18 +0200)
to provide debian package we need to use binutils 2.27.

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Makefile
local/patches/binutils-2.27_fixup.patch [new file with mode: 0644]

index 93141993685227cce9a20af5e8193b3ae317b934..aca678fb23da13647fb6bc744d9429647c7f6487 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -16,12 +16,12 @@ MPC_TAR=mpc-$(MPC_VER).tar.gz
 MPC_DIR=mpc-$(MPC_VER)
 MPC_SUM=617decc6ea09889fb08ede330917a00b16809b8db88c29c31bfbb49cbf88ecc3
 
-BINUTILS_VER=2.26.1
+BINUTILS_VER=2.27
 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
-BINUTILS_SUM=39c346c87aa4fb14b2f786560aec1d29411b6ec34dce3fe7309fe3dd56949fd8
+BINUTILS_PATCHES=local/patches/binutils.patch local/patches/binutils-2.27_fixup.patch
+BINUTILS_SUM=369737ce51587f92466041a97ab7d2358c6d9e1b6490b3940eb09fb0a9a6ac88
 
 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-2.27_fixup.patch b/local/patches/binutils-2.27_fixup.patch
new file mode 100644 (file)
index 0000000..fb61345
--- /dev/null
@@ -0,0 +1,13 @@
+diff --git a/gas/config/tc-xtensa.c b/gas/config/tc-xtensa.c
+index d062044..ca261ae 100644
+--- a/gas/config/tc-xtensa.c
++++ b/gas/config/tc-xtensa.c
+@@ -2228,7 +2228,7 @@ xg_reverse_shift_count (char **cnt_argp)
+   cnt_arg = *cnt_argp;
+   /* replace the argument with "31-(argument)" */
+-  new_arg = concat ("31-(", cnt_argp, ")", (char *) NULL);
++  new_arg = concat ("31-(", cnt_arg, ")", (char *) NULL);
+   free (cnt_arg);
+   *cnt_argp = new_arg;