diff --git a/portage/env/malloc-nopie.conf b/portage/env/malloc-nopie.conf index e23eb8f..06ffc12 100644 --- a/portage/env/malloc-nopie.conf +++ b/portage/env/malloc-nopie.conf @@ -1,19 +1,17 @@ -# Portage - env - Clang - Malloc, No PIE. +# Portage - env - Clang - Malloc, No PIE -# Copyright 2022 Inference -# License: BSD 3-Clause Clear +# Copyright 2022-2023 Inference +# SPDX-License-Identifier: BSD-3-Clause-Clear -# 0.1.0.1 +# Version: 0.1.1.2 -# Flags. -## Hardening flags. +# Flags +## Hardening flags C_SEC="-fPIE -fPIC -fstack-protector-all -fstack-clash-protection -D_FORTIFY_SOURCE=2 -ftrivial-auto-var-init=pattern -fwrapv" LD_SEC="-Wl,--strip-all -Wl,-z,defs -Wl,-z,now -Wl,-z,relro -L/usr/local/lib -lhardened_malloc" - -## Compiler flags. +## Compiler flags CFLAGS="-march=znver3 -O2 -pipe -flto=thin -U__gnu_linux__ ${C_SEC}" CXXFLAGS="-march=znver3 -O2 -pipe -flto=thin ${C_SEC}" - -## Linker flags. +## Linker flags LDFLAGS="-fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind -Wl,--thinlto-jobs=4 ${LD_SEC}"