Skip to contentSkip to conversation

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

PATCH In review Nicholas Piggin 2 participants 2 messages Aug 8, 2016 – Aug 9, 2016 PowerPC

lore
Share & tools
lore

Nicholas Piggin

author reviewer
#0 lore raw

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

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

---
 arch/powerpc/Makefile | 2 ++
 1 file changed, 2 insertions(+)
arch/powerpc/Makefile +2 -0
index 709a22a..bf183b2a 100644
@@ -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
Signature · 1 line
2.8.1
#1 lore raw
Quoted 2 lines · Nicholas Piggin

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