Skip to content

Commit

Permalink
x86/build: Raise the minimum GCC version to 8.1
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Brian Gerst authored and Ingo Molnar committed Feb 18, 2025
1 parent 0ad2507 commit a3e8fe8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/min-tool-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ binutils)
gcc)
if [ "$ARCH" = parisc64 ]; then
echo 12.0.0
elif [ "$SRCARCH" = x86 ]; then
echo 8.1.0
else
echo 5.1.0
fi
Expand Down

0 comments on commit a3e8fe8

Please sign in to comment.