aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2011-05-18 13:36:11 +0000
committerNick Clifton <nickc@redhat.com>2011-05-18 13:36:11 +0000
commit9c489990bb00f32858569d48f79ce8116e0ee050 (patch)
tree2d20a881a58ee4efce89c359b628001616614f84 /bfd
parenta1727c1a6c82c8b223661c7495da814edbb2a3ed (diff)
downloadbinutils-9c489990bb00f32858569d48f79ce8116e0ee050.zip
binutils-9c489990bb00f32858569d48f79ce8116e0ee050.tar.gz
binutils-9c489990bb00f32858569d48f79ce8116e0ee050.tar.bz2
PR ld/12778
* elf32-arm.c (elf32_arm_gc_sweep_hook): Use the computed dynamic reloc pointer.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog6
-rw-r--r--bfd/elf32-arm.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 11a1afe..02b1941 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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.
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c
index faf18d0..671a209 100644
--- a/bfd/elf32-arm.c
+++ b/bfd/elf32-arm.c
@@ -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. */