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

2022-09-18 Thread Christophe Leroy
Le 16/09/2022 à 08:23, 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. > > This is n

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

2022-09-15 Thread Benjamin Gray
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. This is necessary for supporting V2 ABI static calls that do not prese