瀏覽代碼

* WebAssembly internal linker: write the memory section before the export section, so it appears in a more logical order in the map file

Nikolay Nikolov 7 月之前
父節點
當前提交
326356e8e9
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      compiler/ogwasm.pas

+ 2 - 1
compiler/ogwasm.pas

@@ -5220,7 +5220,6 @@ implementation
         WriteTableAndElemSections;
         WriteGlobalSection;
         WriteTagSection;
-        WriteExportSection;
 
         if not (ts_wasm_threads in current_settings.targetswitches) then
           begin
@@ -5244,6 +5243,8 @@ implementation
               end;
           end;
 
+        WriteExportSection;
+
         if ts_wasm_threads in current_settings.targetswitches then
           WriteUleb(FWasmSections[wsiStart],FInitSharedMemoryFunctionSym.LinkingData.ExeFunctionIndex);