]> git.baikalelectronics.ru Git - kernel.git/commit
mips: Kconfig: Add ARCH_HAS_FORTIFY_SOURCE
authorDmitry Korotin <dkorotin@wavecomp.com>
Thu, 12 Sep 2019 22:53:45 +0000 (22:53 +0000)
committerPaul Burton <paul.burton@mips.com>
Mon, 7 Oct 2019 16:45:49 +0000 (09:45 -0700)
commit4de921db7c2c66d1710bde6fc43694d8c69b0cf2
treeb233ed08b3f963050479a1ef545824d7328a37f7
parenta9df1a5abdc88a4eb705327bfb8e3012ba2bb107
mips: Kconfig: Add ARCH_HAS_FORTIFY_SOURCE

FORTIFY_SOURCE detects various overflows at compile and run time.
(95ed90a66902 ("include/linux/string.h:
add the option of fortified string.h functions)

ARCH_HAS_FORTIFY_SOURCE means that the architecture can be built and
run with CONFIG_FORTIFY_SOURCE.

Since mips can be built and run with that flag,
select ARCH_HAS_FORTIFY_SOURCE as default.

Signed-off-by: Dmitry Korotin <dkorotin@wavecomp.com>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: linux-mips@vger.kernel.org
arch/mips/Kconfig
arch/mips/include/asm/string.h