Hi Segher and ERic

We are very new to Power abi and we are thinking to handle this case
in loader  like  go through the  relocations like R_PPC64_REL24 and
found symbol has the localentry ,then compute the delta (GEP - LEP )
and patch the caller address like (sym.value - delta).

Thank you
~Umesh

On Thu, May 16, 2019 at 9:00 AM Umesh Kalappa <umesh.kalap...@gmail.com> wrote:
>
> >>Can't you get the loader fixed, instead?
> Yes we are thinking the same ,question what should be loader semantics here 
> (update the prologue code to update r12 to Global Entry Point or Update R2 
> with toc base (that don't relay on the R12). )
>
> ~Umesh
> On Thu, May 16, 2019, 05:22 Segher Boessenkool <seg...@kernel.crashing.org> 
> wrote:
>>
>> On Wed, May 15, 2019 at 08:31:27PM +0200, Eric Botcazou wrote:
>> > > Thank you Eric for the suggestion and say that we support in the  loader
>> > > part ,can you please point on elfv2 reference that says implementation 
>> > > for
>> > > this specific case.
>> >
>> > I don't think there is a reference to this specific case in the ABI, only 
>> > the
>> > general stuff about local and global entry points.
>>
>> Yes, it is just a normal jump to a local function.
>>
>> > We have had this patch in
>> > our tree for some time and it works well, so let me submit it for 
>> > inclusion in
>> > the official tree.
>>
>> Can't you get the loader fixed, instead?
>>
>>
>> Segher

Reply via email to