bintools: disable relro/bindnow hardening on windows

This commit is contained in:
Weijia Wang 2024-01-06 15:30:24 +01:00
parent 8fcbe295cc
commit fda4c4e299

View File

@ -321,7 +321,7 @@ stdenv.mkDerivation {
hardening_unsupported_flags+=" pic" hardening_unsupported_flags+=" pic"
'' ''
+ optionalString targetPlatform.isAvr '' + optionalString (targetPlatform.isAvr || targetPlatform.isWindows) ''
hardening_unsupported_flags+=" relro bindnow" hardening_unsupported_flags+=" relro bindnow"
'' ''