diff mbox

powerpc/64be: must build vdso32 as BE on LE host

Message ID 1470648927-15590-1-git-send-email-npiggin@gmail.com (mailing list archive)
State Superseded
Headers show

Commit Message

Nicholas Piggin Aug. 8, 2016, 9:35 a.m. UTC
vdso32 should be built with `gcc -m32 --big-endian` when compiling a big
endian kernel.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
---
 arch/powerpc/Makefile | 2 ++
 1 file changed, 2 insertions(+)

Comments

Michael Ellerman Aug. 9, 2016, 10:53 a.m. UTC | #1
Nicholas Piggin <npiggin@gmail.com> writes:

> vdso32 should be built with `gcc -m32 --big-endian` when compiling a big
> endian kernel.

I think I have a better solution. Patch coming RSN.

cheers
diff mbox

Patch

diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile
index 709a22a..bf183b2a 100644
--- a/arch/powerpc/Makefile
+++ b/arch/powerpc/Makefile
@@ -82,6 +82,8 @@  else
 ifeq ($(call cc-option-yn,-mbig-endian),y)
 override CC	+= -mbig-endian
 override AS	+= -mbig-endian
+override CROSS32CC += -mbig-endian
+override CROSS32AS += -mbig-endian
 endif
 override LD	+= -EB
 LDEMULATION	:= ppc