--- zzzz-none-000/linux-4.4.271/arch/Kconfig 2021-06-03 06:22:09.000000000 +0000 +++ maple-fsgw-759/linux-4.4.271/arch/Kconfig 2023-12-20 10:36:59.000000000 +0000 @@ -356,6 +356,42 @@ See Documentation/prctl/seccomp_filter.txt for details. +config HAVE_GCC_PLUGINS + bool + help + An arch should select this symbol if it supports building with + GCC plugins. + +menuconfig GCC_PLUGINS + bool "GCC plugins" + depends on HAVE_GCC_PLUGINS + help + GCC plugins are loadable modules that provide extra features to the + compiler. They are useful for runtime instrumentation and static analysis. + + See Documentation/gcc-plugins.txt for details. + +config GCC_PLUGIN_CYC_COMPLEXITY + bool "Compute the cyclomatic complexity of a function" + depends on GCC_PLUGINS + help + The complexity M of a function's control flow graph is defined as: + M = E - N + 2P + where + + E = the number of edges + N = the number of nodes + P = the number of connected components (exit nodes). + +config GCC_PLUGIN_SANCOV + bool + depends on GCC_PLUGINS + help + This plugin inserts a __sanitizer_cov_trace_pc() call at the start of + basic blocks. It supports all gcc versions with plugin support (from + gcc-4.5 on). It is based on the commit "Add fuzzing coverage support" + by Dmitry Vyukov . + config HAVE_CC_STACKPROTECTOR bool help @@ -423,6 +459,15 @@ endchoice +config CC_STACKPROTECTOR_BUG_ON_FAIL + bool "Detection of stack-corruption will trigger BUG()" + default n + depends on CC_STACKPROTECTOR + help + Detection of stack-corruption will trigger BUG(). + Depend on implementation of BUG() further info (backtrace, + registerdump,stacktrace) possible. + config HAVE_CONTEXT_TRACKING bool help