mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 06:36:44 +07:00
18 lines
830 B
Makefile
18 lines
830 B
Makefile
|
ifdef CONFIG_UBSAN
|
||
|
CFLAGS_UBSAN += $(call cc-option, -fsanitize=shift)
|
||
|
CFLAGS_UBSAN += $(call cc-option, -fsanitize=integer-divide-by-zero)
|
||
|
CFLAGS_UBSAN += $(call cc-option, -fsanitize=unreachable)
|
||
|
CFLAGS_UBSAN += $(call cc-option, -fsanitize=vla-bound)
|
||
|
CFLAGS_UBSAN += $(call cc-option, -fsanitize=null)
|
||
|
CFLAGS_UBSAN += $(call cc-option, -fsanitize=signed-integer-overflow)
|
||
|
CFLAGS_UBSAN += $(call cc-option, -fsanitize=bounds)
|
||
|
CFLAGS_UBSAN += $(call cc-option, -fsanitize=object-size)
|
||
|
CFLAGS_UBSAN += $(call cc-option, -fsanitize=returns-nonnull-attribute)
|
||
|
CFLAGS_UBSAN += $(call cc-option, -fsanitize=bool)
|
||
|
CFLAGS_UBSAN += $(call cc-option, -fsanitize=enum)
|
||
|
|
||
|
ifdef CONFIG_UBSAN_ALIGNMENT
|
||
|
CFLAGS_UBSAN += $(call cc-option, -fsanitize=alignment)
|
||
|
endif
|
||
|
endif
|