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.

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);
 }
 

 /* Main program.  */

Reply via email to