]> git.baikalelectronics.ru Git - kernel.git/commit
stack-protector: Fix test with 32-bit userland and CONFIG_64BIT=y
authorSven Joachim <svenjoac@gmx.de>
Mon, 18 Jun 2018 17:45:25 +0000 (19:45 +0200)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 25 Jun 2018 14:21:13 +0000 (23:21 +0900)
commit9b38db2cca776704587d75b039b3db0f9b4f326b
treeeff137d1e3f56efc28a0a810f1fde032371d49ed
parent0ff11874857ca22dc28e77ffc938f56aeb00f31a
stack-protector: Fix test with 32-bit userland and CONFIG_64BIT=y

When building a 64-bit 4.18-rc1 kernel with a 32-bit userland, I
noticed that stack protection was silently disabled.  Adding -m64 in
gcc-x86_64-has-stack-protector.sh fixed that, similar to what has been
noticed in commit ee2502342771 ("stack-protector: test compiler
capability in Kconfig and drop AUTO mode") for
gcc-x86_32-has-stack-protector.sh.

Signed-off-by: Sven Joachim <svenjoac@gmx.de>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/gcc-x86_64-has-stack-protector.sh