stage2: implement stack protectors

This is one of the final remaining TODOs for the LLVM backend.
This commit is contained in:
Andrew Kelley
2022-08-17 18:42:39 -07:00
parent 2ccaa5414b
commit c0b7f20893
13 changed files with 184 additions and 53 deletions

View File

@@ -352,6 +352,26 @@ const known_options = [_]KnownOpt{
.name = "fno-stack-check",
.ident = "no_stack_check",
},
.{
.name = "stack-protector",
.ident = "stack_protector",
},
.{
.name = "fstack-protector",
.ident = "stack_protector",
},
.{
.name = "fno-stack-protector",
.ident = "no_stack_protector",
},
.{
.name = "fstack-protector-strong",
.ident = "stack_protector",
},
.{
.name = "fstack-protector-all",
.ident = "stack_protector",
},
.{
.name = "MD",
.ident = "dep_file",