1 See http://sourceware.org/bugzilla/show_bug.cgi?id=13990 for details.
5 @@ -12046,8 +12046,19 @@ elf32_arm_gc_sweep_hook (bfd *
6 if (may_need_local_target_p
7 && elf32_arm_get_plt_info (abfd, eh, r_symndx, &root_plt, &arm_plt))
9 - BFD_ASSERT (root_plt->refcount > 0);
10 - root_plt->refcount -= 1;
11 + /* If PLT refcount book-keeping is wrong and too low, we'll
12 + see a zero value (going to -1) for the root PLT reference
14 + if (root_plt->refcount >= 0)
16 + BFD_ASSERT (root_plt->refcount != 0);
17 + root_plt->refcount -= 1;
20 + /* A value of -1 means the symbol has become local, forced
21 + or seeing a hidden definition. Any other negative value
23 + BFD_ASSERT (root_plt->refcount == -1);
26 arm_plt->noncall_refcount--;