powerpc/64be: must build vdso32 as BE on LE host
Nicholas Piggin
reviewerPATCH 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.
Signed-off-by Nicholas Piggin <[email protected]>
--- arch/powerpc/Makefile | 2 ++ 1 file changed, 2 insertions(+)
arch/powerpc/Makefile +2 -0
@@ -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
Michael Ellerman
reviewerQuoted 2 lines · Nicholas Piggin
vdso32 should be built with
gcc -m32 --big-endianwhen compiling a big endian kernel.
I think I have a better solution. Patch coming RSN.
cheers