This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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: Support for Thumb PLT entries


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.


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