فهرست منبع

+ wasi internal linker: also write the fpc.resources section to the file

Nikolay Nikolov 1 سال پیش
والد
کامیت
c4f046f1b8
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      compiler/ogwasm.pas

+ 2 - 1
compiler/ogwasm.pas

@@ -4635,11 +4635,12 @@ implementation
         var
           DataCount: Integer;
         begin
-          DataCount:=2;
+          DataCount:=3;
           WriteUleb(FWasmSections[wsiDataCount],DataCount);
           WriteUleb(FWasmSections[wsiData],DataCount);
           WriteExeSection(FindExeSection('.rodata'));
           WriteExeSection(FindExeSection('.data'));
+          WriteExeSection(FindExeSection('fpc.resources'));
         end;
 
       procedure WriteTableAndElemSections;