Browse Source

+ WASI internal linker: add the 'fpc.resources' and 'fpc.reshandles' sections as well

Nikolay Nikolov 1 year ago
parent
commit
e17b6291f5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/systems/t_wasi.pas

+ 1 - 1
compiler/systems/t_wasi.pas

@@ -303,7 +303,7 @@ begin
   LinkScript.Concat('  OBJSECTION .wasm_globals.*');
   LinkScript.Concat('  OBJSECTION .wasm_globals.*');
   LinkScript.Concat('ENDEXESECTION');
   LinkScript.Concat('ENDEXESECTION');
 
 
-  ScriptAddGenericSections('.wasm_tags,.text,.rodata,.data,.bss,.debug_frame,.debug_info,.debug_line,.debug_abbrev,.debug_aranges,.debug_ranges,.debug_str');
+  ScriptAddGenericSections('.wasm_tags,.text,.rodata,.data,fpc.resources,fpc.reshandles,.bss,.debug_frame,.debug_info,.debug_line,.debug_abbrev,.debug_aranges,.debug_ranges,.debug_str');
 end;
 end;
 
 
 function TInternalLinkerWasi.GetDataSize(aExeOutput: TExeOutput): QWord;
 function TInternalLinkerWasi.GetDataSize(aExeOutput: TExeOutput): QWord;