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