Skip to content

Commit

Permalink
[NTDLL] Make _alloca_probe(_16) private
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tkreuzer committed Jan 15, 2025
1 parent 98eb328 commit e5830e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dll/ntdll/def/ntdll.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit e5830e6

Please sign in to comment.