From 25230da408e27703652542577c9cf8ca43db4267 Mon Sep 17 00:00:00 2001 From: Oleksij Rempel Date: Thu, 29 Sep 2016 21:35:36 +0200 Subject: [PATCH] use binutils 2.27 to provide debian package we need to use binutils 2.27. Signed-off-by: Oleksij Rempel --- Makefile | 6 +++--- local/patches/binutils-2.27_fixup.patch | 13 +++++++++++++ 2 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 local/patches/binutils-2.27_fixup.patch diff --git a/Makefile b/Makefile index 9314199..aca678f 100644 --- 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 index 0000000..fb61345 --- /dev/null +++ b/local/patches/binutils-2.27_fixup.patch @@ -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; -- 2.25.1