ソースを参照

* pass --eh-frame-hdr to the linker on Linux when using Dwarf-based EH, as
libgcc's unwinder does not work without it

git-svn-id: branches/debug_eh@40435 -

Jonas Maebe 6 年 前
コミット
37ae70f925
1 ファイル変更4 行追加0 行削除
  1. 4 0
      compiler/systems/t_linux.pas

+ 4 - 0
compiler/systems/t_linux.pas

@@ -1424,6 +1424,10 @@ begin
   if HasExports then
     cmdstr:=cmdstr+' -E';
 
+  { create eh_frame_hdr section? }
+  if tf_use_psabieh in target_info.flags then
+    cmdstr:=cmdstr+ ' --eh-frame-hdr';
+
   success:=DoExec(FindUtil(utilsprefix+BinStr),CmdStr,true,false);
 
   { Create external .dbg file with debuginfo }