Browse Source

* set MaxIntResource to 1023 for WebAssembly, because that's where the first
data segment starts, after commit 3218f25d130f9e3989ee3a8c6e3079aacde55c8a,
and even before that, when using the external linker

Nikolay Nikolov 1 year ago
parent
commit
296a792380
1 changed files with 3 additions and 3 deletions
  1. 3 3
      rtl/inc/intres.inc

+ 3 - 3
rtl/inc/intres.inc

@@ -19,10 +19,10 @@ const
     initialized data section, just before the bss (uninitialized data) section,
     therefore it's perfectly possible that their data exist on a relatively low
     address (less than 64KB). So, for WebAssembly we check whether the pointer
-    resides in the first 4KB of linear memory, instead of the first 64KB. Note
-    that the first 4KB of linear memory in WebAssembly aren't used by Free
+    resides in the first 1KB of linear memory, instead of the first 64KB. Note
+    that the first 1KB of linear memory in WebAssembly aren't used by Free
     Pascal. }
-  MaxIntResource=4095;
+  MaxIntResource=1023;
 {$else}
   MaxIntResource=65535;
 {$endif}