linux/lib/test_fortify
Arnd Bergmann 118c40b7b5 kbuild: require gcc-8 and binutils-2.30
Commit a3e8fe814a ("x86/build: Raise the minimum GCC version to 8.1")
raised the minimum compiler version as enforced by Kbuild to gcc-8.1
and clang-15 for x86.

This is actually the same gcc version that has been discussed as the
minimum for all architectures several times in the past, with little
objection. A previous concern was the kernel for SLE15-SP7 needing to
be built with gcc-7. As this ended up still using linux-6.4 and there
is no plan for an SP8, this is no longer a problem.

Change it for all architectures and adjust the documentation accordingly.
A few version checks can be removed in the process.  The binutils
version 2.30 is the lowest version used in combination with gcc-8 on
common distros, so use that as the corresponding minimum.

Link: https://lore.kernel.org/lkml/20240925150059.3955569-32-ardb+git@google.com/
Link: https://lore.kernel.org/lkml/871q7yxrgv.wl-tiwai@suse.de/
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2025-04-30 21:53:35 +02:00
..
.gitignore fortify: refactor test_fortify Makefile to fix some build problems 2024-08-15 09:26:02 -07:00
Makefile kbuild: require gcc-8 and binutils-2.30 2025-04-30 21:53:35 +02:00
read_overflow-memchr.c
read_overflow-memchr_inv.c
read_overflow-memcmp.c
read_overflow-memscan.c
read_overflow2-memcmp.c
read_overflow2-memcpy.c
read_overflow2-memmove.c
read_overflow2_field-memcpy.c
read_overflow2_field-memmove.c fortify: Detect struct member overflows in memmove() at compile-time 2022-02-13 16:50:06 -08:00
test_fortify.h
test_fortify.sh fortify: move test_fortify.sh to lib/test_fortify/ 2024-08-15 09:26:02 -07:00
write_overflow-memcpy.c
write_overflow-memmove.c
write_overflow-memset.c
write_overflow-strcpy-lit.c
write_overflow-strcpy.c
write_overflow-strncpy-src.c
write_overflow-strncpy.c
write_overflow-strscpy.c
write_overflow_field-memcpy.c
write_overflow_field-memmove.c fortify: Detect struct member overflows in memmove() at compile-time 2022-02-13 16:50:06 -08:00
write_overflow_field-memset.c fortify: Detect struct member overflows in memset() at compile-time 2022-02-13 16:50:06 -08:00