target: consider addressable unit size when reading/writing memory
[deliverable/binutils-gdb.git] / bfd / elf32-xtensa.c
index 53af1c6ee287676574e9705bba86211bb150bf45..25236707dae46e7190c646de1601fb1f6ff088fc 100644 (file)
@@ -1360,10 +1360,14 @@ elf_xtensa_gc_sweep_hook (bfd *abfd,
        {
          if (is_plt)
            {
+             /* If the symbol has been localized its plt.refcount got moved
+                to got.refcount.  Handle it as GOT.  */
              if (h->plt.refcount > 0)
                h->plt.refcount--;
+             else
+               is_got = TRUE;
            }
-         else if (is_got)
+         if (is_got)
            {
              if (h->got.refcount > 0)
                h->got.refcount--;
This page took 0.023623 seconds and 4 git commands to generate.