[PATCH v3 2/6] powerpc/module: Handle caller-saved TOC in module linker
Benjamin Gray
bgray at linux.ibm.com
Thu Oct 6 15:39:30 AEDT 2022
On Wed, 2022-10-05 at 19:18 +0000, Christophe Leroy wrote:
>
>
> Le 05/10/2022 à 07:32, Benjamin Gray a écrit :
> > The callee may set a field in st_other to 1 to indicate r2 should
> > be
> > treated as caller-saved. This means a trampoline must be used to
> > save
> > the current TOC before calling it and restore it afterwards, much
> > like
> > external calls.
>
> The 'callee', what is that here in that context ?
>
> Don't you mean the 'linker' instead ?
Callee in the sense of the function body, as opposed to the call-site
like the R_PPC64_REL24, etc., relocations are (which I was thinking of
as the caller). I can see how the comment needs more context though.
More information about the Linuxppc-dev
mailing list