From 458feff9b03178754d4177ff4b94d491d9e92de3 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Mon, 2 Jan 2017 15:52:21 -0500 Subject: [PATCH] add patch fixing static linking bug with gotoff relocs on microblaze --- patches/binutils-2.27/0003-microblaze-pr21017.diff | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 patches/binutils-2.27/0003-microblaze-pr21017.diff diff --git a/patches/binutils-2.27/0003-microblaze-pr21017.diff b/patches/binutils-2.27/0003-microblaze-pr21017.diff new file mode 100644 index 0000000..45711d4 --- /dev/null +++ b/patches/binutils-2.27/0003-microblaze-pr21017.diff @@ -0,0 +1,10 @@ +--- binutils-2.27/bfd/elf32-microblaze.c.orig 2017-01-02 15:44:42.110115295 -0500 ++++ binutils-2.27/bfd/elf32-microblaze.c 2017-01-02 15:43:22.768999626 -0500 +@@ -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) + {