aboutsummaryrefslogtreecommitdiff
path: root/src/link.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-08-17 18:42:39 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-08-19 03:41:13 -0700
commitc0b7f20893ea5ca42e0d02b59db6f459c2f80ca1 (patch)
tree6fea31632a6d8803b0689081b7f16e74cf0660ff /src/link.zig
parent2ccaa5414b904edb2f4af293291f5401d106f277 (diff)
downloadzig-c0b7f20893ea5ca42e0d02b59db6f459c2f80ca1.tar.gz
zig-c0b7f20893ea5ca42e0d02b59db6f459c2f80ca1.zip
stage2: implement stack protectors
This is one of the final remaining TODOs for the LLVM backend.
Diffstat (limited to 'src/link.zig')
-rw-r--r--src/link.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/link.zig b/src/link.zig
index 31b54f705a..a0c0c5c369 100644
--- a/src/link.zig
+++ b/src/link.zig
@@ -90,6 +90,9 @@ pub const Options = struct {
entry: ?[]const u8,
stack_size_override: ?u64,
image_base_override: ?u64,
+ /// 0 means no stack protector
+ /// other value means stack protector with that buffer size.
+ stack_protector: u32,
cache_mode: CacheMode,
include_compiler_rt: bool,
/// Set to `true` to omit debug info.