* 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 -
This commit is contained in:
Jonas Maebe 2018-12-01 20:30:37 +00:00
parent a1db586c81
commit 37ae70f925

View File

@ -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 }