summaryrefslogtreecommitdiff
path: root/toolchain
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2016-02-14 11:55:08 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2016-02-14 11:55:08 +0100
commit259223d6dd93efe340b7cee1cfaa14c3cd67926f (patch)
tree1c4ec6e29f6b0c54d735a836506c89bd39cbfeb6 /toolchain
parentdc534e5812ba0bf6f6a9ca8fd6f092e99ce01a33 (diff)
fix microblaze musl combination
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/binutils/patches/2.25.1/microblaze.patch16
1 files changed, 16 insertions, 0 deletions
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,