This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [patch] Arm to thumb stubs
- From: Richard Earnshaw <rearnsha at gcc dot gnu dot org>
- To: Paul Brook <paul at codesourcery dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Fri, 08 Apr 2005 10:21:18 +0100
- Subject: Re: [patch] Arm to thumb stubs
- Organization: GNU
- References: <200504071808.53485.paul@codesourcery.com>
On Thu, 2005-04-07 at 18:08, Paul Brook wrote:
> The current linker generated arm to thumb interworking stubs use the absolute
> address of the target function. Obviously this doesn't work in PIC
> environments (eg. Linux shared libraries and SymbianOS executables).
>
> The attached patch implements a PIC version of these stubs.
>
> Tested with cross to arm-none-eabi.
> Ok?
>
> Paul
>
> 2005-04-07 Paul Brook <paul@codesourcery.com>
>
> * elf32-arm.c (ARM2THUMB_GLUE_SIZE): Rename...
> (ARM2THUMB_STATIC_GLUE_SIZE): ... to this.
> (ARM2THUMB_PIC_GLUE_SIZE): Define.
> (a2t1p_ldr_insn, a2t2p_add_pc_insn, a2t3p_bx_r12_insn): Add.
> (elf32_arm_to_thumb_stub): Create PIC stubs.
> (record_arm_to_thumb_glue): Use different stub size for relocatable
> images.
OK.
R.