This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH, binutils, ARM] Fix Thumb-2 BL detection
- From: Nick Clifton <nickc at redhat dot com>
- To: Thomas Preudhomme <thomas dot preudhomme at foss dot arm dot com>, binutils at sourceware dot org
- Date: Fri, 1 Jul 2016 12:13:34 +0100
- Subject: Re: [PATCH, binutils, ARM] Fix Thumb-2 BL detection
- Authentication-results: sourceware.org; auth=none
- References: <6384989 dot zGxr96xTRU at e108577-lin>
Hi Thomas,
> *** bfd/ChangeLog ***
>
> 2016-06-20 Thomas Preud'homme <thomas.preudhomme@arm.com>
>
> * elf32-arm.c (using_thumb2_bl): New function.
> (arm_type_of_stub): Declare thumb2 variable together and change type
> to bfd_boolean. Use using_thumb2_bl () to determine whether
> THM_MAX_FWD_BRANCH_OFFSET or THM2_MAX_FWD_BRANCH_OFFSET should be
> checked for BL range.
> (elf32_arm_final_link_relocate): Use using_thumb2_bl () to determine
> the bit size of BL offset.
>
>
> *** ld/ChangeLog ***
>
> 2016-06-20 Thomas Preud'homme <thomas.preudhomme@arm.com>
>
> * testsuite/ld-arm/arm-elf.exp (Thumb-2 BL): Assemble for ARMv7.
> (Thumb-2 BL on ARMv6-M): New testcase.
> * testsuite/ld-arm/thumb2-bl.d: Do not try to match testcase filename.
> * testsuite/ld-arm/thumb2-bl.s: Do not select architecture.
Approved - please apply.
Cheers
Nick