[patch] Arm to thumb stubs

Richard Earnshaw rearnsha@gcc.gnu.org
Fri Apr 8 09:21:00 GMT 2005
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.



More information about the Binutils mailing list