Commit 11bb1678 authored by Kees Cook's avatar Kees Cook
Browse files

integer-wrap: Force full rebuild when .scl file changes



Since the integer wrapping sanitizer's behavior depends on its associated
.scl file, we must force a full rebuild if the file changes. If not,
instrumentation may differ between targets based on when they were built.

Generate a new header file, integer-wrap.h, any time the Clang .scl
file changes. Include the header file in compiler-version.h when its
associated feature name, INTEGER_WRAP, is defined. This will be picked
up by fixdep and force rebuilds where needed.

Acked-by: default avatarJustin Stitt <justinstitt@google.com>
Link: https://lore.kernel.org/r/20250503184623.2572355-3-kees@kernel.org


Reviewed-by: default avatarNicolas Schier <n.schier@avm.de>
Signed-off-by: default avatarKees Cook <kees@kernel.org>
parent 056000c4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment