Skip to contentSkip to conversation

powerpc/boot: Specify ABI v2 when building an LE boot wrapper

PATCH Applied Benjamin Herrenschmidt 2 participants 2 messages Sep 15, 2015 – Sep 17, 2015 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/boot: Specify ABI v2 when building an LE boot wrapper

The kernel does it, not the boot wrapper, which breaks with some cross compilers that still default to ABI v1.

--

arch/powerpc/boot/Makefile +3 -0
index 73eddda..4eec430 100644
@@ -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