diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2015-09-14 21:24:17 -0400 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2015-09-16 08:05:55 -0400 |
commit | 655471f54c2e395ba29ae4156ba0f49928177cc1 (patch) | |
tree | d0384d3feb4ee913b83a4f8ea9ecee92451592f8 | |
parent | 2cd55c68c0a49a75433b15c7dbd1991fef81e662 (diff) |
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.
Fixes: 147c05168fc8 ("powerpc/boot: Add support for 64bit little endian wrapper")
Cc: stable@vger.kernel.org # v3.16+
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
-rw-r--r-- | arch/powerpc/boot/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile index 73eddda53b8e..4eec430d8fa8 100644 --- a/arch/powerpc/boot/Makefile +++ b/arch/powerpc/boot/Makefile | |||
@@ -28,6 +28,9 @@ BOOTCFLAGS += -m64 | |||
28 | endif | 28 | endif |
29 | ifdef CONFIG_CPU_BIG_ENDIAN | 29 | ifdef CONFIG_CPU_BIG_ENDIAN |
30 | BOOTCFLAGS += -mbig-endian | 30 | BOOTCFLAGS += -mbig-endian |
31 | else | ||
32 | BOOTCFLAGS += -mlittle-endian | ||
33 | BOOTCFLAGS += $(call cc-option,-mabi=elfv2) | ||
31 | endif | 34 | endif |
32 | 35 | ||
33 | BOOTAFLAGS := -D__ASSEMBLY__ $(BOOTCFLAGS) -traditional -nostdinc | 36 | BOOTAFLAGS := -D__ASSEMBLY__ $(BOOTCFLAGS) -traditional -nostdinc |