[PowerPC 64]r12 is not updated to GEP when control transferred from virtual thunk function .

Kewen.Lin linkw@linux.ibm.com
Fri May 17 09:29:00 GMT 2019


Hi Eric,

Thanks for the information!  Sorry to know dual entry isn't supported
well on VxWorks.

Thanks,
Kewen

on 2019/5/17 脧脗脦莽3:24, Eric Botcazou wrote:
>> I do think so.  The call is locally, linker should know it's local and
>> fix it up with local entry instead.  We don't need to keep r12 always
>> hold the entry of being called function.
> 
> Yes, but on VxWorks in kernel mode you first do partial linking and then the 
> loader resolves the remaining relocations.  None of them plays the usual dance 
> with the local and global entry points implied by the ELFv2 ABI.
> 



More information about the Gcc mailing list