Sfoglia il codice sorgente

+ create exe sections in the wasi internal linker script

Nikolay Nikolov 1 anno fa
parent
commit
605740fd0a
1 ha cambiato i file con 11 aggiunte e 0 eliminazioni
  1. 11 0
      compiler/systems/t_wasi.pas

+ 11 - 0
compiler/systems/t_wasi.pas

@@ -298,6 +298,17 @@ begin
     if s<>'' then
       LinkScript.Concat('READOBJECT ' + maybequoted(s));
   end;
+
+  LinkScript.Concat('EXESECTION .text');
+  LinkScript.Concat('  OBJSECTION .text.*');
+  LinkScript.Concat('ENDEXESECTION');
+
+  LinkScript.Concat('EXESECTION .data');
+  LinkScript.Concat('  OBJSECTION .rodata.*');
+  LinkScript.Concat('  OBJSECTION .data.*');
+  LinkScript.Concat('  OBJSECTION .bss');
+  LinkScript.Concat('ENDEXESECTION');
+
 end;
 
 function TInternalLinkerWasi.GetCodeSize(aExeOutput: TExeOutput): QWord;