Fix PR ld/17277: bogus dynamic relocs and TEXTREL for ARM PC-relative relocs
[deliverable/binutils-gdb.git] / bfd / ChangeLog
index 47dea00424f1521a8bf70677efb9201088545500..6dd80be29c9b840159403653b735109e3f139a2a 100644 (file)
@@ -1,3 +1,15 @@
+2014-08-20  Roland McGrath  <mcgrathr@google.com>
+
+       PR ld/17277
+       * elf32-arm.c (elf32_arm_check_relocs): Increment P->pc_count for
+       all reloc types with pc_relative set in the howto, not just for
+       R_ARM_REL32 and R_ARM_REL32_NOI.
+       (allocate_dynrelocs_for_symbol): Update comment.
+       (elf32_arm_gc_sweep_hook): For all reloc types with pc_relative
+       set in the howto, set call_reloc_p and may_need_local_target_p but
+       not may_become_dynamic_p; not only for R_ARM_REL32 and R_ARM_REL32_NOI.
+       (elf32_arm_check_relocs): Likewise.
+
 2014-08-20  Will Newton  <will.newton@linaro.org>
 
        * config.bfd: Default armeb-*-eabi* to big endian.
This page took 0.025789 seconds and 4 git commands to generate.