From 2f5000670a056361831ae4500b8f66a921afcf19 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Thu, 9 Mar 2017 05:19:48 +0100 Subject: add different patches to gcc/binutils to fix issues with cris/microblaze/ia64/tile --- .../binutils/patches/2.28/crisv10-assertion-remove.patch | 15 +++++++++++++++ toolchain/binutils/patches/2.28/microblaze-pr21017.patch | 11 +++++++++++ 2 files changed, 26 insertions(+) create mode 100644 toolchain/binutils/patches/2.28/crisv10-assertion-remove.patch create mode 100644 toolchain/binutils/patches/2.28/microblaze-pr21017.patch (limited to 'toolchain/binutils') diff --git a/toolchain/binutils/patches/2.28/crisv10-assertion-remove.patch b/toolchain/binutils/patches/2.28/crisv10-assertion-remove.patch new file mode 100644 index 000000000..e7ccf1e61 --- /dev/null +++ b/toolchain/binutils/patches/2.28/crisv10-assertion-remove.patch @@ -0,0 +1,15 @@ +diff -Nur binutils-2.28.orig/bfd/elf32-cris.c binutils-2.28/bfd/elf32-cris.c +--- binutils-2.28.orig/bfd/elf32-cris.c 2017-03-02 09:23:53.000000000 +0100 ++++ binutils-2.28/bfd/elf32-cris.c 2017-03-05 09:38:18.895667626 +0100 +@@ -2713,11 +2713,6 @@ + { + struct bfd_link_info *info = (struct bfd_link_info *) p; + +- /* A GOTPLT reloc, when activated, is supposed to be included into +- the PLT refcount. */ +- BFD_ASSERT (h->gotplt_refcount == 0 +- || h->gotplt_refcount <= h->root.plt.refcount); +- + /* If nobody wanted a GOTPLT with this symbol, we're done. */ + if (h->gotplt_refcount <= 0) + return TRUE; diff --git a/toolchain/binutils/patches/2.28/microblaze-pr21017.patch b/toolchain/binutils/patches/2.28/microblaze-pr21017.patch new file mode 100644 index 000000000..2cf5263e7 --- /dev/null +++ b/toolchain/binutils/patches/2.28/microblaze-pr21017.patch @@ -0,0 +1,11 @@ +diff -Nur binutils-2.28.orig/bfd/elf32-microblaze.c binutils-2.28/bfd/elf32-microblaze.c +--- binutils-2.28.orig/bfd/elf32-microblaze.c 2017-03-02 09:23:53.000000000 +0100 ++++ binutils-2.28/bfd/elf32-microblaze.c 2017-03-06 02:57:42.760601301 +0100 +@@ -2353,6 +2353,7 @@ + dogottls: + sec->has_tls_reloc = 1; + /* Fall through. */ ++ case R_MICROBLAZE_GOTOFF_64: + case R_MICROBLAZE_GOT_64: + if (htab->elf.sgot == NULL) + { -- cgit v1.2.3