Răsfoiți Sursa

* wasm internal linker: set mempos of the .wasm_tags (and .wasm_globals) section to 0

Nikolay Nikolov 1 an în urmă
părinte
comite
033a2ae2e7
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      compiler/ogwasm.pas

+ 2 - 1
compiler/ogwasm.pas

@@ -5041,7 +5041,8 @@ implementation
             { calculate size of the section }
             exesec.Size:=CurrMemPos-exesec.MemPos;
           end
-        else if Copy(aname,1,Length(DebugPrefix))=DebugPrefix then
+        else if (aname='.wasm_globals') or (aname='.wasm_tags') or
+                (Copy(aname,1,Length(DebugPrefix))=DebugPrefix) then
           begin
             CurrMemPos:=0;
             inherited;