]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 8867/1: vdso: pass --be8 to linker if necessary
authorJason A. Donenfeld <Jason@zx2c4.com>
Mon, 17 Jun 2019 12:29:19 +0000 (13:29 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Thu, 20 Jun 2019 21:28:52 +0000 (22:28 +0100)
commit3daf1e3b6171bb65f8b3b5eb58807a4a077d3f31
tree421552414d589fdd6fe29a043fd899a09eb8ce69
parent7f3e30282b380958e65348f1509b90f11030d416
ARM: 8867/1: vdso: pass --be8 to linker if necessary

The commit 30d27ffb6e0b ("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@zx2c4.com>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/vdso/Makefile