[PATCH] powerpc/boot: Specify ABI v2 when building an LE boot wrapper
Benjamin Herrenschmidt
benh at kernel.crashing.org
Tue Sep 15 11:24:17 AEST 2015
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 <benh at kernel.crashing.org>
CC: stable at 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
More information about the Linuxppc-dev
mailing list