summaryrefslogtreecommitdiff
path: root/arch/arm/configs/multi_v7_defconfig
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2019-01-22 12:09:12 +0100
committerArnd Bergmann <arnd@arndb.de>2019-01-30 22:42:08 +0100
commit34332ef736c09f87af87586a4080e94740c350e2 (patch)
tree3c857b471cf226e5ded7c59a0fce4d80c054f245 /arch/arm/configs/multi_v7_defconfig
parent37ad688497785c9ad1471236e28efda1e2f39741 (diff)
ARM: multi_v7_defconfig: enable GCC plugin support and structleak plugin
Enable the base GCC plugin support symbol CONFIG_GCC_PLUGINS for multi_v7_defconfig so that builds hosted on systems that have a supported version of GCC along with the prerequisite headers will allow GCC plugins to be used during the build. At the moment, this will also enable the ARM per-task stack protector plugin, since all its remaining Kconfig dependencies are fulfilled by default. At the same time, enable the structleak plugin. This plugin ensures that local struct type variables are fully initialized, preventing inadvertent leaks of kernel state if such variables are shared with userland. This is a reasonable transformation to apply by default, since it does not adversely affect performance, and does not affect GCC compiler diagnostics regarding the use of uninitialized local variables. Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/configs/multi_v7_defconfig')
-rw-r--r--arch/arm/configs/multi_v7_defconfig2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig
index aa8d43c9b7f4..842215dddb9a 100644
--- a/arch/arm/configs/multi_v7_defconfig
+++ b/arch/arm/configs/multi_v7_defconfig
@@ -1029,3 +1029,5 @@ CONFIG_CRYPTO_AES_ARM_CE=m
CONFIG_CRYPTO_GHASH_ARM_CE=m
CONFIG_CRYPTO_CRC32_ARM_CE=m
CONFIG_CRYPTO_CHACHA20_NEON=m
+CONFIG_GCC_PLUGINS=y
+CONFIG_GCC_PLUGIN_STRUCTLEAK=y