PR ld/12778
authorNick Clifton <nickc@redhat.com>
Wed, 18 May 2011 13:36:11 +0000 (13:36 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 18 May 2011 13:36:11 +0000 (13:36 +0000)
* elf32-arm.c (elf32_arm_gc_sweep_hook): Use the computed dynamic
reloc pointer.

bfd/ChangeLog
bfd/elf32-arm.c

index 11a1afeebe501b28c4576750a2860cea7fb75022..02b19414a36e3d6a3e7b5737a4481f979fa7115d 100644 (file)
@@ -1,3 +1,9 @@
+2011-05-18  RafaƂ Krypa  <r.krypa@samsung.com>
+
+       PR ld/12778
+       * elf32-arm.c (elf32_arm_gc_sweep_hook): Use the computed dynamic
+       reloc pointer.
+
 2011-05-18  Tristan Gingold  <gingold@adacore.com>
 
        * xcofflink.c (xcoff_link_add_symbols): Handle C_DWARF symbols.
index faf18d0044ce81626c4ca9ac4501b60eafe943ea..671a20996ee2ef2287be0dcbf43859a3fd229676 100644 (file)
@@ -12025,7 +12025,7 @@ elf32_arm_gc_sweep_hook (bfd *                     abfd,
          struct elf_dyn_relocs *p;
 
          if (h != NULL)
-           pp = &((struct elf32_arm_link_hash_entry *) h)->dyn_relocs;
+           pp = &(eh->dyn_relocs);
          else
            {
              Elf_Internal_Sym *isym;
@@ -12038,7 +12038,7 @@ elf32_arm_gc_sweep_hook (bfd *                     abfd,
              if (pp == NULL)
                return FALSE;
            }
-         for (pp = &eh->dyn_relocs; (p = *pp) != NULL; pp = &p->next)
+         for (; (p = *pp) != NULL; pp = &p->next)
            if (p->sec == sec)
              {
                /* Everything must go for SEC.  */