This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Support for Thumb PLT entries
- From: Richard Earnshaw <rearnsha at gcc dot gnu dot org>
- To: Arnald Samthambi <ssarnald at gmail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 04 Aug 2004 16:53:53 +0100
- Subject: Re: Support for Thumb PLT entries
- Organization: GNU
- References: <94420f6d0408040845cc888c2@mail.gmail.com>
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.