Pārlūkot izejas kodu

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
Rich Felker 9 gadi atpakaļ
vecāks
revīzija
8137f50ef9
1 mainītis faili ar 11 papildinājumiem un 0 dzēšanām
  1. 11 0
      patches/binutils-2.25.1/0005-shfdpicgot.diff

+ 11 - 0
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;