瀏覽代碼

+ add the debug sections in the WASI internal linker script file

Nikolay Nikolov 2 年之前
父節點
當前提交
995309c209
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      compiler/systems/t_wasi.pas

+ 1 - 0
compiler/systems/t_wasi.pas

@@ -316,6 +316,7 @@ begin
   LinkScript.Concat('  OBJSECTION .bss');
   LinkScript.Concat('ENDEXESECTION');
 
+  ScriptAddGenericSections('.debug_abbrev,.debug_info,.debug_line,.debug_aranges,.debug_ranges');
 end;
 
 function TInternalLinkerWasi.GetDataSize(aExeOutput: TExeOutput): QWord;