mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-25 10:31:47 +02:00
* don't subtract two from the end of the stack segment when calculating the
initial SP value - seems to be wlink compatible git-svn-id: trunk@31399 -
This commit is contained in:
parent
2431b6e63b
commit
0eb1cd157a
@ -2227,7 +2227,7 @@ implementation
|
||||
if assigned(stackseg) then
|
||||
begin
|
||||
Header.InitialSS:=stackseg.MemBasePos shr 4;
|
||||
Header.InitialSP:=stackseg.MemPos+stackseg.Size-stackseg.MemBasePos-2;
|
||||
Header.InitialSP:=stackseg.MemPos+stackseg.Size-stackseg.MemBasePos;
|
||||
end
|
||||
else
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user