From 8137f50ef98b2403dcbdc80770d161ed18119f10 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 8 Oct 2015 16:34:45 +0000 Subject: [PATCH] add patch to fix binutils pr 19091 affecting sh/fdpic shared libs this may not be the correct fix but works for now. patch will be updated as needed. for details see: https://sourceware.org/bugzilla/show_bug.cgi?id=19091 --- patches/binutils-2.25.1/0005-shfdpicgot.diff | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 patches/binutils-2.25.1/0005-shfdpicgot.diff diff --git a/patches/binutils-2.25.1/0005-shfdpicgot.diff b/patches/binutils-2.25.1/0005-shfdpicgot.diff new file mode 100644 index 0000000..7bc6565 --- /dev/null +++ b/patches/binutils-2.25.1/0005-shfdpicgot.diff @@ -0,0 +1,11 @@ +--- binutils-2.25.1/bfd/elf32-sh.c.orig 2015-10-08 16:33:04.413334344 +0000 ++++ binutils-2.25.1/bfd/elf32-sh.c 2015-10-08 16:23:05.709980166 +0000 +@@ -3604,7 +3604,7 @@ sh_elf_size_dynamic_sections (bfd *outpu + return FALSE; + } + else if ((elf_elfheader (output_bfd)->e_flags & EF_SH_FDPIC) +- && htab->sgot->size != 0) ++ /* && htab->sgot->size != 0 */) + { + if (! add_dynamic_entry (DT_PLTGOT, 0)) + return FALSE;