0126fe8
--- binutils-2.26.orig/bfd/elf32-i386.c	2016-02-29 15:47:45.172597805 +0000
0126fe8
+++ binutils-2.26/bfd/elf32-i386.c	2016-02-29 15:48:42.161904973 +0000
0126fe8
@@ -4016,10 +4016,12 @@ elf_i386_relocate_section (bfd *output_b
0126fe8
 
0126fe8
 	  /* It is relative to .got.plt section.  */
0126fe8
 	  if (h->got.offset != (bfd_vma) -1)
0126fe8
-	    /* Use GOT entry.  */
0126fe8
+           /* Use GOT entry.  Mask off the least significant bit in
0126fe8
+              GOT offset which may be set by R_386_GOT32 processing
0126fe8
+              below.  */
0126fe8
 	    relocation = (htab->elf.sgot->output_section->vma
0126fe8
 			  + htab->elf.sgot->output_offset
0126fe8
-			  + h->got.offset - offplt);
0126fe8
+			  + (h->got.offset & ~1) - offplt);
0126fe8
 	  else
0126fe8
 	    /* Use GOTPLT entry.  */
0126fe8
 	    relocation = (h->plt.offset / plt_entry_size - 1 + 3) * 4;