summaryrefslogtreecommitdiff
path: root/toolchain/binutils
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-01-03 07:32:02 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2017-01-03 07:32:02 +0100
commit15af74ec6a1c9a2e82d22ce6b735a961bf93e210 (patch)
treefc13aeb31135ae212fc2d3b9919e08a61efef4b7 /toolchain/binutils
parent934977676293077c85c32b32ccf5b75d6ceb493e (diff)
microblaze: fix static linking
Diffstat (limited to 'toolchain/binutils')
-rw-r--r--toolchain/binutils/patches/2.26.1/microblaze-static.patch13
-rw-r--r--toolchain/binutils/patches/2.27/microblaze-static.patch14
2 files changed, 27 insertions, 0 deletions
diff --git a/toolchain/binutils/patches/2.26.1/microblaze-static.patch b/toolchain/binutils/patches/2.26.1/microblaze-static.patch
new file mode 100644
index 000000000..55962b000
--- /dev/null
+++ b/toolchain/binutils/patches/2.26.1/microblaze-static.patch
@@ -0,0 +1,13 @@
+From:
+https://sourceware.org/bugzilla/show_bug.cgi?id=21017
+diff -Nur binutils-2.26.1.orig/bfd/elf32-microblaze.c binutils-2.26.1/bfd/elf32-microblaze.c
+--- binutils-2.26.1.orig/bfd/elf32-microblaze.c 2015-11-13 09:27:40.000000000 +0100
++++ binutils-2.26.1/bfd/elf32-microblaze.c 2017-01-03 06:31:27.305957954 +0100
+@@ -2402,6 +2402,7 @@
+ tls_type |= (TLS_TLS | TLS_LD);
+ dogottls:
+ sec->has_tls_reloc = 1;
++ case R_MICROBLAZE_GOTOFF_64:
+ case R_MICROBLAZE_GOT_64:
+ if (htab->sgot == NULL)
+ {
diff --git a/toolchain/binutils/patches/2.27/microblaze-static.patch b/toolchain/binutils/patches/2.27/microblaze-static.patch
new file mode 100644
index 000000000..4e8c400f1
--- /dev/null
+++ b/toolchain/binutils/patches/2.27/microblaze-static.patch
@@ -0,0 +1,14 @@
+From:
+https://sourceware.org/bugzilla/show_bug.cgi?id=21017
+
+diff -Nur binutils-2.27.orig/bfd/elf32-microblaze.c binutils-2.27/bfd/elf32-microblaze.c
+--- binutils-2.27.orig/bfd/elf32-microblaze.c 2016-08-03 09:36:50.000000000 +0200
++++ binutils-2.27/bfd/elf32-microblaze.c 2017-01-03 04:43:49.173901997 +0100
+@@ -2399,6 +2399,7 @@
+ tls_type |= (TLS_TLS | TLS_LD);
+ dogottls:
+ sec->has_tls_reloc = 1;
++ case R_MICROBLAZE_GOTOFF_64:
+ case R_MICROBLAZE_GOT_64:
+ if (htab->sgot == NULL)
+ {