From c0b7f20893ea5ca42e0d02b59db6f459c2f80ca1 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 17 Aug 2022 18:42:39 -0700 Subject: stage2: implement stack protectors This is one of the final remaining TODOs for the LLVM backend. --- tools/update_clang_options.zig | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'tools') diff --git a/tools/update_clang_options.zig b/tools/update_clang_options.zig index d261b5ee33..f1656546f0 100644 --- a/tools/update_clang_options.zig +++ b/tools/update_clang_options.zig @@ -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", -- cgit v1.2.3