This is the mail archive of the binutils@sources.redhat.com 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]

Re: [patch] Arm to thumb stubs


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.


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