authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-04-15 11:37:06+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-04-15 16:22:54+02:00
log08850cfcb249fd806d597b5a718808dc5c00144d
treee8a82888a82559dfa49f3ee6cdeb220241e82d5b
parent046002d1a5c9ed4155bc25c11307e96f7921de1c

compiler-rt: export __stack_chk_guard as __guard_local on OpenBSD

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

1 files changed, 1 insertions(+), 1 deletions(-)

lib/compiler_rt/ssp.zig+1-1
......@@ -24,7 +24,7 @@ extern fn memmove(dest: ?[*]u8, src: ?[*]const u8, n: usize) callconv(.c) ?[*]u8
2424comptime {
2525 @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 });
2626 symbol(&__chk_fail, "__chk_fail");
27 symbol(&__stack_chk_guard, "__stack_chk_guard");
27 symbol(&__stack_chk_guard, if (builtin.os.tag == .openbsd) "__guard_local" else "__stack_chk_guard");
2828 symbol(&__strcpy_chk, "__strcpy_chk");
2929 symbol(&__strncpy_chk, "__strncpy_chk");
3030 symbol(&__strcat_chk, "__strcat_chk");