From 259223d6dd93efe340b7cee1cfaa14c3cd67926f Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sun, 14 Feb 2016 11:55:08 +0100 Subject: fix microblaze musl combination --- toolchain/binutils/patches/2.25.1/microblaze.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 toolchain/binutils/patches/2.25.1/microblaze.patch (limited to 'toolchain/binutils') diff --git a/toolchain/binutils/patches/2.25.1/microblaze.patch b/toolchain/binutils/patches/2.25.1/microblaze.patch new file mode 100644 index 000000000..8b39a10f9 --- /dev/null +++ b/toolchain/binutils/patches/2.25.1/microblaze.patch @@ -0,0 +1,16 @@ +From here: +https://sourceware.org/bugzilla/show_bug.cgi?id=19516 + +diff -Nur binutils-2.25.1.orig/bfd/elf32-microblaze.c binutils-2.25.1/bfd/elf32-microblaze.c +--- binutils-2.25.1.orig/bfd/elf32-microblaze.c 2015-07-21 10:20:58.000000000 +0200 ++++ binutils-2.25.1/bfd/elf32-microblaze.c 2016-02-14 11:38:45.822387506 +0100 +@@ -3293,8 +3293,7 @@ + The entry in the global offset table will already have been + initialized in the relocate_section function. */ + if (info->shared +- && (info->symbolic || h->dynindx == -1) +- && h->def_regular) ++ && ((info->symbolic && h->def_regular) || h->dynindx == -1)) + { + asection *sec = h->root.u.def.section; + microblaze_elf_output_dynamic_relocation (output_bfd, -- cgit v1.2.3