https://git.reactos.org/?p=reactos.git;a=commitdiff;h=93ba586ec3b345f252b65…
commit 93ba586ec3b345f252b6578adf72810b966abf72
Author: Timo Kreuzer <timo.kreuzer(a)reactos.org>
AuthorDate: Sat Dec 7 10:15:29 2024 +0200
Commit: Timo Kreuzer <timo.kreuzer(a)reactos.org>
CommitDate: Sun Jan 19 09:02:58 2025 +0200
[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.
---
dll/ntdll/def/ntdll.spec | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dll/ntdll/def/ntdll.spec b/dll/ntdll/def/ntdll.spec
index 62f374c05fb..de23297ea55 100644
--- a/dll/ntdll/def/ntdll.spec
+++ b/dll/ntdll/def/ntdll.spec
@@ -1767,8 +1767,8 @@
@ cdecl -arch=i386 -ret64 _alldiv(double double)
@ cdecl -arch=i386 _alldvrm()
@ cdecl -arch=i386 -ret64 _allmul(double double)
-@ cdecl -arch=i386 -norelay _alloca_probe()
-@ cdecl -version=0x600+ -arch=i386 _alloca_probe_16()
+@ cdecl -arch=i386 -norelay -private _alloca_probe()
+@ cdecl -version=0x600+ -arch=i386 -private _alloca_probe_16()
@ stub -version=0x600+ -arch=i386 _alloca_probe_8
@ cdecl -arch=i386 -ret64 _allrem(double double)
@ cdecl -arch=i386 _allshl()