This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [PowerPC 64]r12 is not updated to GEP when control transferred from virtual thunk function .
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: "Kewen.Lin" <linkw at linux dot ibm dot com>
- Cc: gcc at gcc dot gnu dot org, Segher Boessenkool <segher at kernel dot crashing dot org>, Umesh Kalappa <umesh dot kalappa0 at gmail dot com>
- Date: Fri, 17 May 2019 09:24:33 +0200
- Subject: Re: [PowerPC 64]r12 is not updated to GEP when control transferred from virtual thunk function .
- References: <CAGfacvQc=X8vcxoVqbjbimTPLctQzKbzex1odEggRsjrphnurw@mail.gmail.com> <20190515233719.GM8599@gate.crashing.org> <1c9540e2-81c8-83b3-60c1-8ef316a1a30c@linux.ibm.com>
> 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.
--
Eric Botcazou