Quellcode durchsuchen

+ create exe sections in the wasi internal linker script

Nikolay Nikolov vor 1 Jahr
Ursprung
Commit
605740fd0a
1 geänderte Dateien mit 11 neuen und 0 gelöschten Zeilen
  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;