common: add generic CONFIG_UBSAN plumbing
-fsanitize=undefined allows compile-time instrumentation of code to detect
some classes of runtime undefined behavior.

In preparation for allowing arches to provide infrastructure in support
of this feature, add some generic UBSAN options and associated plumbing.

These are only shown in the debug menu when the arch selects the
appropriate symbol. The option is named equally to their Linux counterparts.

Signed-off-by: Ahmad Fatoum <ahmad@a3f.at>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent a37a49b commit 3af4f067ecd160a5ae5d60b276d4ef0bbec789be
@Ahmad Fatoum Ahmad Fatoum authored on 27 Aug 2019
Sascha Hauer committed on 9 Sep 2019
Showing 8 changed files
View
Makefile
View
common/Kconfig
View
lib/Kconfig.ubsan 0 → 100644
View
lib/Makefile
View
lib/ubsan.c 0 → 100644
View
lib/ubsan.h 0 → 100644
View
scripts/Makefile.lib
View
scripts/Makefile.ubsan 0 → 100644