From 52597eeae4c6ee3e9e0410c6f6dc69a551d1bf1b Mon Sep 17 00:00:00 2001 From: inference Date: Tue, 17 Jan 2023 01:39:03 +0000 Subject: [PATCH] Fix stack clash protection compiler hardening flag. Sort all flags A-Z. --- portage/env/gcc-nolto-nopie.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/portage/env/gcc-nolto-nopie.conf b/portage/env/gcc-nolto-nopie.conf index 473e136..5d1d85b 100644 --- a/portage/env/gcc-nolto-nopie.conf +++ b/portage/env/gcc-nolto-nopie.conf @@ -3,7 +3,7 @@ # Copyright 2022-2023 Inference # SPDX-License-Identifier: BSD-3-Clause-Clear -# Version: 2.0.0.3 +# Version: 2.0.1.4 # Toolchain. @@ -23,8 +23,8 @@ STRIP="strip" # Flags ## Hardening flags -C_SEC="-fPIC -fstack-clash=protection -fstack-protector-strong -fwrapv" -LD_SEC="-Wl,-z,defs -Wl,-z,now -Wl,-z,relro -Wl,--strip-all" +C_SEC="-fPIC -fstack-clash-protection -fstack-protector-strong -fwrapv" +LD_SEC="-Wl,--strip-all -Wl,-z,defs -Wl,-z,now -Wl,-z,relro" ## Compiler flags CFLAGS="-march=znver3 -mtune=znver3 -O2 -pipe -U__gnu_linux__ ${C_SEC}" CXXFLAGS="-march=znver3 -mtune=znver3 -O2 -pipe ${C_SEC}"