Skip to content

Commit a3e8fe8

Browse files
Brian GerstIngo Molnar
authored andcommitted
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
1 parent 0ad2507 commit a3e8fe8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/min-tool-version.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ binutils)
1919
gcc)
2020
if [ "$ARCH" = parisc64 ]; then
2121
echo 12.0.0
22+
elif [ "$SRCARCH" = x86 ]; then
23+
echo 8.1.0
2224
else
2325
echo 5.1.0
2426
fi

0 commit comments

Comments
 (0)