Skip to content

Commit b7d7446

Browse files
kcbannerandrewrk
authored andcommitted
compiler_rt: export all the chkstk variations on MinGW
1 parent 33041fd commit b7d7446

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/compiler_rt/stack_probe.zig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ comptime {
1313
// Default stack-probe functions emitted by LLVM
1414
if (builtin.target.isMinGW()) {
1515
@export(&_chkstk, .{ .name = "_alloca", .linkage = common.linkage, .visibility = common.visibility });
16+
@export(&__chkstk, .{ .name = "__chkstk", .linkage = common.linkage, .visibility = common.visibility });
17+
@export(&___chkstk, .{ .name = "__alloca", .linkage = common.linkage, .visibility = common.visibility });
18+
@export(&___chkstk, .{ .name = "___chkstk", .linkage = common.linkage, .visibility = common.visibility });
19+
@export(&__chkstk_ms, .{ .name = "__chkstk_ms", .linkage = common.linkage, .visibility = common.visibility });
1620
@export(&___chkstk_ms, .{ .name = "___chkstk_ms", .linkage = common.linkage, .visibility = common.visibility });
17-
18-
if (arch == .thumb or arch == .aarch64) {
19-
@export(&__chkstk, .{ .name = "__chkstk", .linkage = common.linkage, .visibility = common.visibility });
20-
}
2121
} else if (!builtin.link_libc) {
2222
// This symbols are otherwise exported by MSVCRT.lib
2323
@export(&_chkstk, .{ .name = "_chkstk", .linkage = common.linkage, .visibility = common.visibility });

0 commit comments

Comments
 (0)