stdenv: promote zerocallusedregs to defaultHardeningFlags

This commit is contained in:
Robert Scott 2024-06-01 13:00:17 +01:00
parent c85826c3df
commit dd80ca4d00
2 changed files with 1 additions and 1 deletions

View File

@ -45,6 +45,7 @@
"relro"
"stackprotector"
"strictoverflow"
"zerocallusedregs"
] ++ lib.optional (with stdenvNoCC;
# Musl-based platforms will keep "pie", other platforms will not.
# If you change this, make sure to update section `{#sec-hardening-in-nixpkgs}`

View File

@ -292,7 +292,6 @@ let
pkgsExtraHardening = super';
stdenv = super'.withDefaultHardeningFlags (
super'.stdenv.cc.defaultHardeningFlags ++ [
"zerocallusedregs"
"trivialautovarinit"
]
) super'.stdenv;