Blame view
scripts/Makefile.ubsan
864 Bytes
b24413180 License cleanup: ... |
1 |
# SPDX-License-Identifier: GPL-2.0 |
c6d308534 UBSAN: run-time u... |
2 3 4 5 |
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) |
c6d308534 UBSAN: run-time u... |
6 7 8 |
CFLAGS_UBSAN += $(call cc-option, -fsanitize=signed-integer-overflow) CFLAGS_UBSAN += $(call cc-option, -fsanitize=bounds) CFLAGS_UBSAN += $(call cc-option, -fsanitize=object-size) |
c6d308534 UBSAN: run-time u... |
9 10 11 12 13 14 |
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 |
725c4d22b ubsan: allow to d... |
15 |
|
a76bcf557 Kbuild: enable -W... |
16 17 18 |
# -fsanitize=* options makes GCC less smart than usual and # increase number of 'maybe-uninitialized false-positives CFLAGS_UBSAN += $(call cc-option, -Wno-maybe-uninitialized) |
c6d308534 UBSAN: run-time u... |
19 |
endif |