mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 02:07:53 +02:00
* set MaxIntResource to 1023 for WebAssembly, because that's where the first
data segment starts, after commit 3218f25d13
,
and even before that, when using the external linker
This commit is contained in:
parent
3218f25d13
commit
296a792380
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user