zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 08850cfcb249fd806d597b5a718808dc5c00144d (tree)
parent 046002d1a5c9ed4155bc25c11307e96f7921de1c
Author: Alex Rønne Petersen <alex@alexrp.com>
Date:   Wed, 15 Apr 2026 11:37:06 +0200

compiler-rt: export __stack_chk_guard as __guard_local on OpenBSD

closes https://codeberg.org/ziglang/zig/issues/31867

Diffstat:
Mlib/compiler_rt/ssp.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/compiler_rt/ssp.zig b/lib/compiler_rt/ssp.zig @@ -24,7 +24,7 @@ extern fn memmove(dest: ?[*]u8, src: ?[*]const u8, n: usize) callconv(.c) ?[*]u8 comptime { @export(&__stack_chk_fail, .{ .name = if (builtin.os.tag == .openbsd) "__stack_smash_handler" else "__stack_chk_fail", .linkage = compiler_rt.linkage, .visibility = compiler_rt.visibility }); symbol(&__chk_fail, "__chk_fail"); - symbol(&__stack_chk_guard, "__stack_chk_guard"); + symbol(&__stack_chk_guard, if (builtin.os.tag == .openbsd) "__guard_local" else "__stack_chk_guard"); symbol(&__strcpy_chk, "__strcpy_chk"); symbol(&__strncpy_chk, "__strncpy_chk"); symbol(&__strcat_chk, "__strcat_chk");