Skip to content

Commit 93ba586

Browse files
committed
[NTDLL] Make _alloca_probe(_16) private
This avoids a linker error due to a duplicated symbol in ntdll and the statically linked chkstk library. This happens when the linker first resolves _chkstk from the CRT or the chkstk library (which also pulls in _alloca_probe(_16)) and then tries to resolve _alloca_probe(_16) from ntdll.
1 parent c2c4d85 commit 93ba586

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dll/ntdll/def/ntdll.spec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1767,8 +1767,8 @@
17671767
@ cdecl -arch=i386 -ret64 _alldiv(double double)
17681768
@ cdecl -arch=i386 _alldvrm()
17691769
@ cdecl -arch=i386 -ret64 _allmul(double double)
1770-
@ cdecl -arch=i386 -norelay _alloca_probe()
1771-
@ cdecl -version=0x600+ -arch=i386 _alloca_probe_16()
1770+
@ cdecl -arch=i386 -norelay -private _alloca_probe()
1771+
@ cdecl -version=0x600+ -arch=i386 -private _alloca_probe_16()
17721772
@ stub -version=0x600+ -arch=i386 _alloca_probe_8
17731773
@ cdecl -arch=i386 -ret64 _allrem(double double)
17741774
@ cdecl -arch=i386 _allshl()

0 commit comments

Comments
 (0)