Commit b46f51da057f2a4728f8cc4e30e64e297151db76

Authored by Benjamin Herrenschmidt
Committed by Greg Kroah-Hartman
1 parent 98747a5651

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

commit 655471f54c2e395ba29ae4156ba0f49928177cc1 upstream.

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")
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Showing 1 changed file with 3 additions and 0 deletions Side-by-side Diff

arch/powerpc/boot/Makefile
... ... @@ -28,6 +28,9 @@
28 28 endif
29 29 ifdef CONFIG_CPU_BIG_ENDIAN
30 30 BOOTCFLAGS += -mbig-endian
  31 +else
  32 +BOOTCFLAGS += -mlittle-endian
  33 +BOOTCFLAGS += $(call cc-option,-mabi=elfv2)
31 34 endif
32 35  
33 36 BOOTAFLAGS := -D__ASSEMBLY__ $(BOOTCFLAGS) -traditional -nostdinc