+ auto add oso_data and oso_sparse_data when creating a .bss segment on the wasm target

This commit is contained in:
Nikolay Nikolov 2023-12-28 15:18:47 +02:00
parent 605740fd0a
commit 791328ccb5

View File

@ -1469,6 +1469,8 @@ implementation
end;
end;
result:=secoptions[atype];
if (target_info.system in systems_wasm) and (atype=sec_bss) then
Result:=Result+[oso_data,oso_sparse_data];
{$ifdef OMFOBJSUPPORT}
{ in the huge memory model, BSS data is actually written in the regular
FAR_DATA segment of the module }