mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-27 19:09:47 +03:00
compiler-rt: export __stack_chk_guard as __guard_local on OpenBSD
closes https://codeberg.org/ziglang/zig/issues/31867
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user