[PATCH v2 5/6] powerpc/64: Add support for out-of-line static calls

Benjamin Gray bgray at linux.ibm.com
Tue Sep 27 15:18:51 AEST 2022


On Mon, 2022-09-26 at 13:16 +0000, Christophe Leroy wrote:
> Build failure with GCC 5.5 (ppc64le_defconfig):
> 
>    CC      arch/powerpc/kernel/ptrace/ptrace.o
> {standard input}: Assembler messages:
> {standard input}:10: Error: .localentry expression for 
> `__SCT__tp_func_sys_enter' is not a valid power of 2
> {standard input}:29: Error: .localentry expression for 
> `__SCT__tp_func_sys_exit' is not a valid power of 2

Looks support for a literal st_other value in `.localentry` is added in
binutils 2.32 . I'll change the config entry as follows for v3:

  select HAVE_STATIC_CALL if 
      PPC32 || (PPC64_ELF_ABI_V2 && LD_VERSION >= 23200)



More information about the Linuxppc-dev mailing list