This is the mail archive of the binutils@sourceware.org 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: Implementing long branch stubs with PLTs


On Fri, Jul 17, 2009 at 10:07 AM, Christophe LYON<christophe.lyon@st.com> wrote:
> Hi,
>
>
> On 16.07.2009 18:12, Will Newton wrote:
>
>> My question is: how do the arm, hppa and ppc ports avoid this problem?
>> I cannot find any code in those ports that appears to explicitly deal
>> with branches to global symbols via a PLT.
>>
>> Thanks,
>>
>
> Are you looking at sufficiently recent sources? I committed a patch for ARM
> on June 22. Be sure to get a copy of these updated sources.
>
> If you look at elf32_arm_size_stubs() in elf32-arm.c, you will see the
> following comment:
>
> ? ? ? ? ? ? ? ? ? ? ? ? ?/* For a destination in a shared library,
> ? ? ? ? ? ? ? ? ? ? ? ? ? ? use the PLT stub as target address to
> ? ? ? ? ? ? ? ? ? ? ? ? ? ? decide whether a branch stub is
> ? ? ? ? ? ? ? ? ? ? ? ? ? ? needed. ?*/
>
> IIUC your question, it's exactly what you need.

Yes it is, thanks Christophe! It looks to me as if elf32-hppa and
elf64-ppc do not create long branch stubs to PLT entries so avoid this
issue in that way.


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