Selaa lähdekoodia

+ WASI: set StackBottom on startup

Nikolay Nikolov 1 vuosi sitten
vanhempi
commit
68f4191119
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      rtl/wasi/system.pp

+ 1 - 0
rtl/wasi/system.pp

@@ -431,6 +431,7 @@ end;
 
 begin
   StackLength:=CheckInitialStkLen(stklen);
+  StackBottom:=Pointer(PtrUInt(InitialHeapBlockStart)-PtrUInt(StackLength));
   { To be set if this is a GUI or console application }
   IsConsole := TRUE;
 {$ifdef FPC_HAS_FEATURE_DYNLIBS}