All supported toolchains now have it.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
config CC_SPLIT_SECTIONS
bool
-# Compiler supports -fsanitize=undefined
-config CC_HAS_UBSAN
- def_bool $(cc-option,-fsanitize=undefined)
-
# Set code alignment.
#
# Allow setting on a boolean basis, and then convert such selection to an
config UBSAN
bool "Undefined behaviour sanitizer"
- depends on HAS_UBSAN && CC_HAS_UBSAN
+ depends on HAS_UBSAN
help
Enable undefined behaviour sanitizer. It uses compiler to insert code
snippets so that undefined behaviours in C are detected during runtime.