summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2005-03-28 15:32:58 +0000
committerDaniel Jacobowitz <dan@debian.org>2005-03-28 15:32:58 +0000
commit2f3c9fa0f37d4ce8160bc8903779bf368e4a0e67 (patch)
tree641b5ccabe501cfc31e0159f19e71ed3eb6de27f
parentab79d506645b787042f9f2d4d48de7e0d11f21d1 (diff)
downloadgdb-2f3c9fa0f37d4ce8160bc8903779bf368e4a0e67.tar.gz
* elf32-arm.c (elf32_arm_check_relocs): Increment count for all
relocation types. Don't count relocations which will use a PLT.
-rw-r--r--ChangeLog.csl5
-rw-r--r--bfd/elf32-arm.c19
2 files changed, 9 insertions, 15 deletions
diff --git a/ChangeLog.csl b/ChangeLog.csl
index daecaa72846..42be2bf0e8e 100644
--- a/ChangeLog.csl
+++ b/ChangeLog.csl
@@ -1,3 +1,8 @@
+2005-03-28 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * elf32-arm.c (elf32_arm_check_relocs): Increment count for all
+ relocation types. Don't count relocations which will use a PLT.
+
2005-03-23 Jim Blandy <jimb@redhat.com>
* config/tc-arm.c (arm_adjust_symtab): Fetch elf_sym's binding
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c
index 63452ca57fb..2c88fe4c879 100644
--- a/bfd/elf32-arm.c
+++ b/bfd/elf32-arm.c
@@ -4096,18 +4096,9 @@ elf32_arm_check_relocs (bfd *abfd, struct bfd_link_info *info,
relocs_copied field of the hash table entry. */
if ((info->shared || htab->root.is_relocatable_executable)
&& (sec->flags & SEC_ALLOC) != 0
- && ((r_type != R_ARM_PC24
- && r_type != R_ARM_PLT32
-#ifndef OLD_ARM_ABI
- && r_type != R_ARM_CALL
- && r_type != R_ARM_JUMP24
- && r_type != R_ARM_PREL31
-#endif
- && r_type != R_ARM_REL32
- && r_type != R_ARM_THM_PC22)
- || (h != NULL
- && (! info->symbolic
- || !h->def_regular))))
+ && (r_type == R_ARM_ABS32
+ || (h != NULL && ! h->needs_plt
+ && (! info->symbolic || ! h->def_regular))))
{
struct elf32_arm_relocs_copied *p, **head;
@@ -4187,9 +4178,7 @@ elf32_arm_check_relocs (bfd *abfd, struct bfd_link_info *info,
p->count = 0;
}
- if (r_type == R_ARM_ABS32
- || r_type == R_ARM_REL32)
- p->count += 1;
+ p->count += 1;
}
break;