浏览代码

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

Nikolay Nikolov 1 年之前
父节点
当前提交
033a2ae2e7
共有 1 个文件被更改,包括 2 次插入1 次删除
  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;