0dfc6ca
*** ../binutils-2.22.52.0.4.orig/bfd/elf32-arm.c	2012-06-29 13:29:04.526090731 +0100
0dfc6ca
--- bfd/elf32-arm.c	2012-06-29 13:29:35.977091603 +0100
0dfc6ca
*************** elf32_arm_check_relocs (bfd *abfd, struc
0dfc6ca
*** 12629,12635 ****
0dfc6ca
  
0dfc6ca
  	  /* If the symbol is a function that doesn't bind locally,
0dfc6ca
  	     this relocation will need a PLT entry.  */
0dfc6ca
! 	  root_plt->refcount += 1;
0dfc6ca
  
0dfc6ca
  	  if (!call_reloc_p)
0dfc6ca
  	    arm_plt->noncall_refcount++;
0dfc6ca
--- 12629,12636 ----
0dfc6ca
  
0dfc6ca
  	  /* If the symbol is a function that doesn't bind locally,
0dfc6ca
  	     this relocation will need a PLT entry.  */
0dfc6ca
! 	  if (root_plt->refcount != -1)
0dfc6ca
! 	    root_plt->refcount += 1;
0dfc6ca
  
0dfc6ca
  	  if (!call_reloc_p)
0dfc6ca
  	    arm_plt->noncall_refcount++;