Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gcc-plugins: randstruct: Remove GCC 4.7 or newer requirement

Since the kernel currently requires GCC 5.1 as a minimum, remove the
unnecessary GCC version >= 4.7 check.

Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com>
Link: https://lore.kernel.org/r/20240723165332.1947-1-thorsten.blum@toblux.com
Signed-off-by: Kees Cook <kees@kernel.org>

authored by

Thorsten Blum and committed by
Kees Cook
f32e90c0 f91f7ac9

-4
-4
scripts/gcc-plugins/randomize_layout_plugin.c
··· 19 19 #include "gcc-common.h" 20 20 #include "randomize_layout_seed.h" 21 21 22 - #if BUILDING_GCC_MAJOR < 4 || (BUILDING_GCC_MAJOR == 4 && BUILDING_GCC_MINOR < 7) 23 - #error "The RANDSTRUCT plugin requires GCC 4.7 or newer." 24 - #endif 25 - 26 22 #define ORIG_TYPE_NAME(node) \ 27 23 (TYPE_NAME(TYPE_MAIN_VARIANT(node)) != NULL_TREE ? ((const unsigned char *)IDENTIFIER_POINTER(TYPE_NAME(TYPE_MAIN_VARIANT(node)))) : (const unsigned char *)"anonymous") 28 24