1 # SPDX-License-Identifier: GPL-2.0 2 3 # Enable available and selected UBSAN features 4 ubsan-cflags-$(CONFIG_UBSAN_ALIGNMENT) 5 ubsan-cflags-$(CONFIG_UBSAN_BOUNDS_STRICT) 6 ubsan-cflags-$(CONFIG_UBSAN_ARRAY_BOUNDS) 7 ubsan-cflags-$(CONFIG_UBSAN_LOCAL_BOUNDS) 8 ubsan-cflags-$(CONFIG_UBSAN_SHIFT) 9 ubsan-cflags-$(CONFIG_UBSAN_DIV_ZERO) 10 ubsan-cflags-$(CONFIG_UBSAN_UNREACHABLE) 11 ubsan-cflags-$(CONFIG_UBSAN_BOOL) 12 ubsan-cflags-$(CONFIG_UBSAN_ENUM) 13 ubsan-cflags-$(CONFIG_UBSAN_TRAP) 14 15 export CFLAGS_UBSAN := $(ubsan-cflags-y) 16 17 ubsan-signed-wrap-cflags-$(CONFIG_UBSAN_SIGNED 18 export CFLAGS_UBSAN_SIGNED_WRAP := $(ubsan-sig
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.