aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/randomize_layout_plugin.c
diff options
context:
space:
mode:
authorJan Hendrik Farr <[email protected]>2025-04-30 18:42:31 +0000
committerKees Cook <[email protected]>2025-05-08 16:42:05 +0000
commit5106c6506c51aa93198908b094228a7143292b9e (patch)
treed418f450b051d1370736f22d40fa60793d613173 /scripts/gcc-plugins/randomize_layout_plugin.c
parentoverflow: Fix direct struct member initialization in _DEFINE_FLEX() (diff)
downloadkernel-5106c6506c51aa93198908b094228a7143292b9e.tar.gz
kernel-5106c6506c51aa93198908b094228a7143292b9e.zip
hardening: simplify CONFIG_CC_HAS_COUNTED_BY
Simplifies CONFIG_CC_HAS_COUNTED_BY by removing the build test and relying solely on gcc/clang version numbering (GCC_VERSION >= 150100 and CLANG_VERSION >= 190103). The build test was used to allow unreleased gcc 15.0 builds to use the __counted_by attribute. Now that gcc 15.1.0 has been released, this is not needed anymore. Note: This will disable __counted_by on unreleased gcc 15.0 builds. clang version support for __counted_by remains unchanged. Link: https://lore.kernel.org/all/Zw8iawAF5W2uzGuh@archlinux/T/#m204c09f63c076586a02d194b87dffc7e81b8de7b Link: https://lore.kernel.org/r/[email protected] Suggested-by: Nathan Chancellor <[email protected]> Signed-off-by: Jan Hendrik Farr <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Nathan Chancellor <[email protected]> Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions