This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH][GOLD] Fix overflow check in R_ARM_THM_JUMP11 and R_ARM_THM_JUMP8.


Hi Ian,

    This patch fixes problems in overflow checking of
R_ARM_THM_JUMP{11,8}.  It also adds two new tests.

-Doug


2011-06-25  Doug Kwan  <dougkwan@google.com>

        * arm.cc (Arm_relocate_functions::thm_jump8,
        Arm_relocate_functions::thm_jump11): Use a wider signed
        type to compute offset.
        * testsuite/Makefile.am: Add new tests arm_thm_jump11 and
        arm_thm_jump8.
        * testsuite/Makefile.in: Regenerate.
        * testsuite/arm_branch_in_range.sh: Check test results of
        arm_thm_jump11 and arm_thm_jump8.
        * testsuite/arm_thm_jump11.s: New test source file.
        * testsuite/arm_thm_jump11.t: New linker script.
        * testsuite/arm_thm_jump8.s: New test source file.
        * testsuite/arm_thm_jump8.t: New linker script.

Attachment: patch-thm-jump.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]