diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-08-19 06:41:34 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-19 06:41:34 -0400 |
| commit | be2bd5848a880765f4bc7e2363ef201a0930a04b (patch) | |
| tree | 868694d734e82cb93b52b6c0c155d932f5f65f8f /src/clang_options_data.zig | |
| parent | 2ccaa5414b904edb2f4af293291f5401d106f277 (diff) | |
| parent | fdb934a157230ae6d3f11dee8d0d62013d5b919e (diff) | |
| download | zig-be2bd5848a880765f4bc7e2363ef201a0930a04b.tar.gz zig-be2bd5848a880765f4bc7e2363ef201a0930a04b.zip | |
Merge pull request #12472 from ziglang/stage2-stack-protector
stage2: implement stack protectors
Diffstat (limited to 'src/clang_options_data.zig')
| -rw-r--r-- | src/clang_options_data.zig | 45 |
1 files changed, 40 insertions, 5 deletions
diff --git a/src/clang_options_data.zig b/src/clang_options_data.zig index 76e687c7d6..90ba377847 100644 --- a/src/clang_options_data.zig +++ b/src/clang_options_data.zig @@ -3290,7 +3290,14 @@ flagpd1("fno-stack-arrays"), .psl = false, }, flagpd1("fno-stack-clash-protection"), -flagpd1("fno-stack-protector"), +.{ + .name = "fno-stack-protector", + .syntax = .flag, + .zig_equivalent = .no_stack_protector, + .pd1 = true, + .pd2 = false, + .psl = false, +}, flagpd1("fno-stack-size-section"), flagpd1("fno-standalone-debug"), flagpd1("fno-strength-reduce"), @@ -3588,9 +3595,30 @@ flagpd1("fstack-arrays"), .psl = false, }, flagpd1("fstack-clash-protection"), -flagpd1("fstack-protector"), -flagpd1("fstack-protector-all"), -flagpd1("fstack-protector-strong"), +.{ + .name = "fstack-protector", + .syntax = .flag, + .zig_equivalent = .stack_protector, + .pd1 = true, + .pd2 = false, + .psl = false, +}, +.{ + .name = "fstack-protector-all", + .syntax = .flag, + .zig_equivalent = .stack_protector, + .pd1 = true, + .pd2 = false, + .psl = false, +}, +.{ + .name = "fstack-protector-strong", + .syntax = .flag, + .zig_equivalent = .stack_protector, + .pd1 = true, + .pd2 = false, + .psl = false, +}, flagpd1("fstack-size-section"), flagpd1("fstack-usage"), flagpd1("fstandalone-debug"), @@ -4809,7 +4837,14 @@ flagpd1("single_module"), }, sepd1("split-dwarf-file"), sepd1("split-dwarf-output"), -sepd1("stack-protector"), +.{ + .name = "stack-protector", + .syntax = .separate, + .zig_equivalent = .stack_protector, + .pd1 = true, + .pd2 = false, + .psl = false, +}, sepd1("stack-protector-buffer-size"), sepd1("stack-usage-file"), .{ |
