summaryrefslogtreecommitdiffstats
path: root/lib/ubsan.c
Commit message (Collapse)AuthorAgeFilesLines
* common: add generic CONFIG_UBSAN plumbingAhmad Fatoum2019-09-091-0/+442
-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>