Browse Source

+ WASI internal linker: also add .debug_frame and .debug_str sections to the output binary

Nikolay Nikolov 1 year ago
parent
commit
749688b3b0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/systems/t_wasi.pas

+ 1 - 1
compiler/systems/t_wasi.pas

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