This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] Improved branches to weak symbols
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: Daniel Gutson <dgutson at codesourcery dot com>
- Cc: binutils at sourceware dot org
- Date: Tue, 18 Aug 2009 11:54:14 +0100
- Subject: Re: [PATCH] Improved branches to weak symbols
- References: <4A847A6F.2020103@codesourcery.com>
On Thu, 2009-08-13 at 17:41 -0300, Daniel Gutson wrote:
> Hi,
>
> the attached patch improves the instructions to generate when
> branching to weak symbols.
>
> Rather than jumping to the next instruction, NOPs are generated, and
> selected according to the architecture.
>
> Please let me know if OK to commit.
>
> Thanks!
> Daniel.
>
> -----
>
> bfd/
> * elf32-arm.c (arch_has_thumb2_nop): New function.
> (arch_has_arm_nop): New function.
> (elf32_arm_final_link_relocate): NOP opcodes changed.
>
> ld/testsuite/
> * ld-arm/callweak.d: Opcodes updated.
> * ld-arm/callweak.s: Architecture specified.
> * ld-arm/callweak-2.d: New test case.
> * ld-arm/callweak-2.s: New file.
>
OK
R.