builder: add chkstk2.S to windows/386 builtins for __alloca symbol

Clang on i386 mingw emits calls to _alloca (decorated as __alloca)
for stack probing. This was provided by chkstk2.S, not chkstk.S
which only provides __chkstk_ms.

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram
2026-07-15 18:57:45 +02:00
committed by Ron Evans
parent a2a638c198
commit 36d3b83e9c
+2 -1
View File
@@ -204,7 +204,8 @@ var avrBuiltins = []string{
// Builtins needed specifically for windows/386.
var windowsI386Builtins = []string{
"i386/chkstk.S", // also _alloca
"i386/chkstk.S", // __chkstk_ms
"i386/chkstk2.S", // _alloca (__alloca)
}
// Builtins needed specifically for windows/amd64.