diff mbox

run dsymutil post lto

Message ID 84132D54-F3B7-45E3-9DEC-2B9BB34E4D69@comcast.net
State New
Headers show

Commit Message

Mike Stump May 29, 2014, 11:21 p.m. UTC
Jack finally found the answer to a question I had back in 2010…  Why, yes, one does have to arrange to run the post ld pass when lto runs but doesn’t have to relink.

Committed revision 211067.

Thanks Jack.
	
	PR debug/61352
	* collect2.c (maybe_run_lto_and_relink): Be sure to always run
        post ld passes when lto is used.

 /* Main program.  */
diff mbox

Patch

Index: collect2.c
===================================================================
--- collect2.c	(revision 211062)
+++ collect2.c	(working copy)
@@ -848,6 +848,8 @@  maybe_run_lto_and_relink (char **lto_ld_
       fork_execute ("ld", lto_ld_argv);
       post_ld_pass (false);
     }
+  else
+    post_ld_pass (true);
 }