Index: binutils-2.18/bfd/elf32-ppc.c =================================================================== --- binutils-2.18.orig/bfd/elf32-ppc.c 2007-08-06 21:59:29.000000000 +0200 +++ binutils-2.18/bfd/elf32-ppc.c 2009-12-28 22:36:41.000000000 +0100 @@ -3968,7 +3968,7 @@ { bfd_vma addend = r_type == R_PPC_PLTREL24 ? rel->r_addend : 0; struct plt_entry *ent = find_plt_ent (h, got2, addend); - if (ent->plt.refcount > 0) + if (ent != NULL && ent->plt.refcount > 0) ent->plt.refcount -= 1; } break;