Re: [PATCH] powerpc/64: Use -mprofile-kernel for big endian ELFv2 kernels

2023-05-09 Thread Naveen N. Rao
Nicholas Piggin wrote: -mprofile-kernel is an optimised calling convention for mcount that Linux has only implemented with the ELFv2 ABI, so it was disabled for big endian kernels. However it does work with ELFv2 big endian, so let's allow that if the compiler supports it. Cc: Naveen N. Rao Su

[PATCH] powerpc/64: Use -mprofile-kernel for big endian ELFv2 kernels

2023-05-05 Thread Nicholas Piggin
-mprofile-kernel is an optimised calling convention for mcount that Linux has only implemented with the ELFv2 ABI, so it was disabled for big endian kernels. However it does work with ELFv2 big endian, so let's allow that if the compiler supports it. Cc: Naveen N. Rao Suggested-by: Christophe Le