]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/build: Raise the minimum GCC version to 8.1
authorBrian Gerst <brgerst@gmail.com>
Thu, 23 Jan 2025 19:07:33 +0000 (14:07 -0500)
committerIngo Molnar <mingo@kernel.org>
Tue, 18 Feb 2025 09:14:40 +0000 (10:14 +0100)
commita3e8fe814ad15c16735cdf394454a8bd96eb4d56
tree0d5540674a4a742494b21ce373ee43fab8fa1f9e
parent0ad2507d5d93f39619fc42372c347d6006b64319
x86/build: Raise the minimum GCC version to 8.1

Stack protector support on 64-bit currently requires that the percpu
section is linked at absolute address 0, because older compilers fixed
the location of the canary value relative to the GS segment base.

GCC 8.1 introduced options to change where the canary value is located,
allowing it to be configured as a standard per-CPU variable.  This has
already been done for 32-bit.  Doing the same for 64-bit will enable
removing the code needed to support zero-based percpu.

Signed-off-by: Brian Gerst <brgerst@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: https://lore.kernel.org/r/20250123190747.745588-2-brgerst@gmail.com
scripts/min-tool-version.sh