Linux/linux c5d0e49arch/arm/vdso Makefile

ARM: 8867/1: vdso: pass --be8 to linker if necessary

The commit fe00e50b2db8 ("ARM: 8858/1: vdso: use $(LD) instead of $(CC)
to link VDSO") removed the passing of CFLAGS, since ld doesn't take
those directly. However, prior, big-endian ARM was relying on gcc to
translate its -mbe8 option into ld's --be8 option. Lacking this, ld
generated be32 code, making the VDSO generate SIGILL when called by
userspace.

This commit passes --be8 if CONFIG_CPU_ENDIAN_BE8 is enabled.

Signed-off-by: Jason A. Donenfeld <Jason at zx2c4.com>
Cc: Masahiro Yamada <yamada.masahiro at socionext.com>
Cc: Arnd Bergmann <arnd at arndb.de>
Cc: Ard Biesheuvel <ard.biesheuvel at linaro.org>
Signed-off-by: Russell King <rmk+kernel at armlinux.org.uk>
DeltaFile
+3-2arch/arm/vdso/Makefile
+3-21 files

UnifiedSplitRaw