Re: [PATCH v3 2/6] powerpc/module: Handle caller-saved TOC in module linker
From: Andrew Donnellan <hidden>
Date: 2022-10-06 03:52:50
From: Andrew Donnellan <hidden>
Date: 2022-10-06 03:52:50
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 ?
Should probably explain explicitly that this is the .localentry NAME, 1 directive. -- Andrew Donnellan OzLabs, ADL Canberra ajd@linux.ibm.com IBM Australia Limited