Explorar o código

* 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 %!s(int64=6) %!d(string=hai) anos
pai
achega
37ae70f925
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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 }