------- Comment #2 from rguenth at gcc dot gnu dot org 2009-08-16 17:13 ------- Like forcing -Wl,-Tltoscript if using GNU ld with ltoscript being
SECTIONS { /DISCARD/ : { *(.gnu.lto_*) } } INSERT BEFORE .text placing this in the std GCC private library path should be enough together with adjusting the default specs. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41079