[PATCH] powerpc/64be: must build vdso32 as BE on LE host
    Nicholas Piggin 
    npiggin at gmail.com
       
    Mon Aug  8 19:35:27 AEST 2016
    
    
  
vdso32 should be built with `gcc -m32 --big-endian` when compiling a big
endian kernel.
Signed-off-by: Nicholas Piggin <npiggin at gmail.com>
---
 arch/powerpc/Makefile | 2 ++
 1 file changed, 2 insertions(+)
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
-- 
2.8.1
    
    
More information about the Linuxppc-dev
mailing list