diff --git a/portage/env/nolto-nopie.conf b/portage/env/nolto-nopie.conf index 53199f3..0c90f4a 100644 --- a/portage/env/nolto-nopie.conf +++ b/portage/env/nolto-nopie.conf @@ -3,16 +3,16 @@ # Copyright 2022-2023 Inference # SPDX-License-Identifier: BSD-3-Clause-Clear -# Version: 2.0.0.4 +# Version: 3.0.0.5 # Flags ## Hardening flags -C_SEC="-fPIC -fstack-protector-all -fstack-clash-protection -D_FORTIFY_SOURCE=2 -ftrivial-auto-var-init=pattern -fwrapv" +C_SEC="-fPIC -fstack-clash-protection -fstack-protector-strong -ftrivial-auto-var-init=zero -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}" -RUSTFLAGS="-C target-cpu=znver3 -C opt-level=2 -C debuginfo=0" +RUSTFLAGS="-C debuginfo=0 -C opt-level=2 -C target-cpu=znver3" ## Linker flags LDFLAGS="-fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind ${LD_SEC}"