mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-19 11:09:22 +02:00
* WebAssembly internal linker: also don't remove unused data sections if
smartlinking is turned off.
This commit is contained in:
parent
36ecb2b5da
commit
aba44452f3
@ -4388,7 +4388,10 @@ implementation
|
||||
with DataSegments[i] do
|
||||
if Active then
|
||||
begin
|
||||
CurrSec:=ObjData.createsection(SegName,1 shl SegAlignment,[oso_Data,oso_load,oso_write],false);
|
||||
if not (cs_link_smart in current_settings.globalswitches) then
|
||||
CurrSec:=ObjData.createsection(SegName,1 shl SegAlignment,[oso_Data,oso_load,oso_write,oso_keep],false)
|
||||
else
|
||||
CurrSec:=ObjData.createsection(SegName,1 shl SegAlignment,[oso_Data,oso_load,oso_write],false);
|
||||
CurrSec.DataPos:=DataPos;
|
||||
CurrSec.MemPos:=Offset;
|
||||
CurrSec.Size:=Len;
|
||||
|
Loading…
Reference in New Issue
Block a user