Blame SOURCES/binutils-2.20.51.0.10-ppc64-pie.patch

58725c
*** ../binutils-2.23.51.0.2.orig/bfd/elf64-ppc.c	2012-09-11 12:13:00.637448573 +0100
58725c
--- bfd/elf64-ppc.c	2012-09-11 12:13:17.922449052 +0100
58725c
*************** ppc64_elf_relocate_section (bfd *output_
58725c
*** 13523,13528 ****
58725c
--- 13523,13531 ----
58725c
  		{
58725c
  		  BFD_ASSERT (h->elf.dynindx != -1);
58725c
  		  outrel.r_info = ELF64_R_INFO (h->elf.dynindx, r_type);
58725c
+ 		  if (h->elf.dynindx == -1
58725c
+ 		      && h->elf.root.type == bfd_link_hash_undefweak)
58725c
+ 		    memset (&outrel, 0, sizeof outrel);
58725c
  		}
58725c
  	      else
58725c
  		{