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-16 12:34:37+02:00
log88b68e6815077a71b10e7cbd801f1962fbce1405
tree8ff015e4c4fdbbb03ef5d60b1f48d6b0cb145800
parentfb789d46e7f81c7e34c597931954dc30af78fc63
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

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");