The kernel does it, not the boot wrapper, which breaks with some cross compilers that still default to ABI v1.
Signed-off-by: Benjamin Herrenschmidt <b...@kernel.crashing.org> CC: sta...@vger.kernel.org -- diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile index 73eddda..4eec430 100644 --- a/arch/powerpc/boot/Makefile +++ b/arch/powerpc/boot/Makefile @@ -28,6 +28,9 @@ BOOTCFLAGS += -m64 endif ifdef CONFIG_CPU_BIG_ENDIAN BOOTCFLAGS += -mbig-endian +else +BOOTCFLAGS += -mlittle-endian +BOOTCFLAGS += $(call cc-option,-mabi=elfv2) endif BOOTAFLAGS := -D__ASSEMBLY__ $(BOOTCFLAGS) -traditional -nostdinc _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev