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. --- src/link.zig | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/link.zig') 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. -- cgit v1.2.3