[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/17277] ld -shared: bogus DT_TEXTREL marker (and R_ARM_NONE) for

From: cvs-commit at gcc dot gnu.org
Subject: [Bug ld/17277] ld -shared: bogus DT_TEXTREL marker (and R_ARM_NONE) for PC-relative cross-section relocs (e.g. movw/movt)
Date: Wed, 20 Aug 2014 17:45:42 +0000


--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gdb and binutils".

The branch, master has been updated
       via  469a34932ae4208240e98c843b01ea1f00892137 (commit)
      from  01e6c1a48d2c56a5e8a78f54b3b2021da42257e7 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------

commit 469a34932ae4208240e98c843b01ea1f00892137
Author: Roland McGrath <address@hidden>
Date:   Wed Aug 20 10:12:57 2014 -0700

    Fix PR ld/17277: bogus dynamic relocs and TEXTREL for ARM PC-relative

        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.

        PR ld/17277
        * ld-arm/pcrel-shared.s: New file.
        * ld-arm/pcrel-shared.rd: New file.
        * ld-arm/arm-elf.exp (armelftests_common): Add it.


Summary of changes:
 bfd/ChangeLog                       |   12 ++++++++++++
 bfd/elf32-arm.c                     |   24 ++++++++++++------------
 ld/testsuite/ChangeLog              |    7 +++++++
 ld/testsuite/ld-arm/arm-elf.exp     |    4 ++++
 ld/testsuite/ld-arm/pcrel-shared.rd |   16 ++++++++++++++++
 ld/testsuite/ld-arm/pcrel-shared.s  |   25 +++++++++++++++++++++++++
 6 files changed, 76 insertions(+), 12 deletions(-)
 create mode 100644 ld/testsuite/ld-arm/pcrel-shared.rd
 create mode 100644 ld/testsuite/ld-arm/pcrel-shared.s

You are receiving this mail because:
You are on the CC list for the bug.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]