linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc/boot: Specify ABI v2 when building an LE boot wrapper
@ 2015-09-15  1:24 Benjamin Herrenschmidt
  2015-09-17  5:13 ` Michael Ellerman
  0 siblings, 1 reply; 2+ messages in thread
From: Benjamin Herrenschmidt @ 2015-09-15  1:24 UTC (permalink / raw)
  To: linuxppc-dev

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@kernel.crashing.org>
CC: stable@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	

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: powerpc/boot: Specify ABI v2 when building an LE boot wrapper
  2015-09-15  1:24 [PATCH] powerpc/boot: Specify ABI v2 when building an LE boot wrapper Benjamin Herrenschmidt
@ 2015-09-17  5:13 ` Michael Ellerman
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Ellerman @ 2015-09-17  5:13 UTC (permalink / raw)
  To: Benjamin Herrenschmidt, linuxppc-dev

On Tue, 2015-15-09 at 01:24:17 UTC, Benjamin Herrenschmidt wrote:
> 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@kernel.crashing.org>
> CC: stable@vger.kernel.org

Applied to powerpc fixes, thanks.

https://git.kernel.org/powerpc/c/655471f54c2e395ba29ae415

cheers

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-09-17  5:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-15  1:24 [PATCH] powerpc/boot: Specify ABI v2 when building an LE boot wrapper Benjamin Herrenschmidt
2015-09-17  5:13 ` Michael Ellerman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).