powerpc/64: Add module check for ELF ABI version
authorNicholas Piggin <npiggin@gmail.com>
Mon, 28 Nov 2022 04:15:37 +0000 (14:15 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 2 Dec 2022 06:54:07 +0000 (17:54 +1100)
commitde3d098dd1fc635535e3689c5d4aa0684242adde
treeecd7b7abca817735bcaa65839491cf578c6131a7
parentf9231a996e229c13d23f907352c2cea84bd1c30a
powerpc/64: Add module check for ELF ABI version

Override the generic module ELF check to provide a check for the ELF ABI
version. This becomes important if we allow big-endian ELF ABI V2 builds
but it doesn't hurt to check now.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20221128041539.1742489-3-npiggin@gmail.com
arch/powerpc/kernel/module_64.c