cb347a
--- a/bfd/elf64-ppc.c	2012-09-11 12:13:00.637448573 +0100
cb347a
+++ b/bfd/elf64-ppc.c	2012-09-11 12:13:17.922449052 +0100
cb347a
@@ -13523,6 +13523,9 @@
cb347a
 		{
cb347a
 		  BFD_ASSERT (h->elf.dynindx != -1);
cb347a
 		  outrel.r_info = ELF64_R_INFO (h->elf.dynindx, r_type);
cb347a
+		  if (h->elf.dynindx == -1
cb347a
+		      && h->elf.root.type == bfd_link_hash_undefweak)
cb347a
+		    memset (&outrel, 0, sizeof outrel);
cb347a
 		}
cb347a
 	      else
cb347a
 		{