Thread (25 messages) 25 messages, 5 authors, 2022-10-06

Re: [PATCH v3 2/6] powerpc/module: Handle caller-saved TOC in module linker

From: Benjamin Gray <hidden>
Date: 2022-10-06 04:40:55

On Wed, 2022-10-05 at 19:18 +0000, Christophe Leroy wrote:

Le 05/10/2022 à 07:32, Benjamin Gray a écrit :
quoted
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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help