Use general hardening flag toggle lists

The following parameters are now available:

  * hardeningDisable
    To disable specific hardening flags
  * hardeningEnable
    To enable specific hardening flags

Only the cc-wrapper supports this right now, but these may be reused by
other wrappers, builders or setup hooks.

cc-wrapper supports the following flags:

  * fortify
  * stackprotector
  * pie (disabled by default)
  * pic
  * strictoverflow
  * format
  * relro
  * bindnow
This commit is contained in:
Franz Pletz
2016-03-05 18:55:26 +01:00
parent a2e449e43e
commit aff1f4ab94
309 changed files with 366 additions and 373 deletions
+1 -1
View File
@@ -5,5 +5,5 @@ import ./generic.nix (args // rec {
extraPatches = [ ./cygwin-4.4.patch ];
sha256 = "0y9vsq8dkarx1mhhip1vaciz6imbbyv37c1dm8b20l7p064bg2i9";
branch = "4.4";
drvArgs = { hardening_format = false; };
drvArgs = { hardeningDisable = [ "format" ]; };
})
+1 -1
View File
@@ -5,5 +5,5 @@ import ./generic.nix (args // rec {
extraPatches = [ ./cygwin-4.5.patch ./register-race-fix.patch ];
sha256 = "0bd81k0qv5i8w5gbddrvld45xi9k1gvmcrfm0393v0lrm37dab7m";
branch = "4.5";
drvArgs = { hardening_format = false; };
drvArgs = { hardeningDisable = [ "format" ]; };
})
+1 -1
View File
@@ -4,5 +4,5 @@ import ./generic.nix (args // rec {
version = "4.7.25";
sha256 = "0gi667v9cw22c03hddd6xd6374l0pczsd56b7pba25c9sdnxjkzi";
branch = "4.7";
drvArgs = { hardening_format = false; };
drvArgs = { hardeningDisable = [ "format" ]; };
})
+1 -1
View File
@@ -5,5 +5,5 @@ import ./generic.nix (args // rec {
extraPatches = [ ./clang-4.8.patch ];
sha256 = "0ampbl2f0hb1nix195kz1syrqqxpmvnvnfvphambj7xjrl3iljg0";
branch = "4.8";
drvArgs = { hardening_format = false; };
drvArgs = { hardeningDisable = [ "format" ]; };
})