Support for Thumb PLT entries
Richard Earnshaw
rearnsha@gcc.gnu.org
Wed Aug 4 15:53:00 GMT 2004
On Wed, 2004-08-04 at 16:45, Arnald Samthambi wrote:
> Hi,
>
> Since I didn't receive response from gcc-help I am trying here.
>
> I am trying to create shared library using arm-elf-gcc for THUMB
> (using option -mthumb). It seems to me that the arm-elf-ld does not
> generate PLT entries for extern functions, however it generates GOT
> entries. I am able to see the PLT and GOT entries in ARM mode.
>
> I am using:
> Binutils - 2.14
> Gcc - 4.4.1
>
> Is it a known problem in GCC or am I missing anything?
>
> >From the link http://sources.redhat.com/ml/binutils/2002-07/msg00578.html
> I understand that the issues is known and fixed, am I making sense
> here?
It's a known problem. There's currently no support for shared libraries
that are entered in Thumb state.
If you've got an ARM v5 processor (arm9e or higher) then you can just
use the standard ARM sequences, otherwise it gets much more complex.
Your best bet is build everything with interworking enabled and then
ensure that all shared library entry points are in ARM state.
And no, gcc doesn't support this directly yet.
R.
More information about the Gcc
mailing list