------- Comment #8 from bmei at broadcom dot com 2010-05-24 09:31 ------- I integrated Dave's patch into LD with some modification (only emit those with LTO sections) and hacked collect2 to support that. The size gain of LTO, our main concern, is quite limited for our application. Large amount of functions called only once cannot be inlined across files because compiler doesn't know whether they are referred in non-LTO compiled code (mostly hand-code assembly in our cases). We really need full resolution file, especially LDPR_PREVAILING_DEF_IRONLY type. I will try next to make LD emit full resolution file.
Since GNU LD doesn't have plugin support like GOLD. Won't any changes here be too invasive/specific for LTO purpose to be accepted by LD? We are fine to live with that in our private port. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41376