kernel: Kconfig: Define dependencies for STACK_CANARIES

STACK_CANARIES relies on random value for the canarie so
ENTROPY_GENERATOR or TEST_RANDOM_GENERATOR needs to be
selected to get sys_rand32_get included in the build.

Fixes: #20587

Signed-off-by: David Leach <david.leach@nxp.com>
This commit is contained in:
David Leach 2019-11-12 16:02:05 -06:00 committed by Maureen Helm
commit aa91113af7

View file

@ -620,6 +620,7 @@ menu "Security Options"
config STACK_CANARIES
bool "Compiler stack canaries"
depends on ENTROPY_GENERATOR || TEST_RANDOM_GENERATOR
help
This option enables compiler stack canaries.