------- Comment #7 from rguenther at suse dot de  2010-05-05 08:55 -------
Subject: Re:  collect2 does not handle static libraries

On Tue, 4 May 2010, bmei at broadcom dot com wrote:

> ------- Comment #6 from bmei at broadcom dot com  2010-05-04 16:54 -------
> > So this is a rough first draft of the-kind-of-thing-i-was-thinking-of.  We 
> > get
> > collect2 to run a dummy link early, and extract the output from the
> > --lto-assist flag to get a list of archive members that we need lto to
> > recompile for us.
> > 
> 
> Well I spent some time to read into collect2/lto code and understand pro/cons
> of different approaches. So far, adding --lto-assist to ld/hacking collect2
> approach looks reasonable to me, though it does require gnu ld. What extra 
> info
> should be in a complete symbol resolution file?

Basically what lto-plugin puts there.  A list of symbols for each
object files that is linked (thus, all required ar archive members)
together with the symbol resolution the linker chose (whether the
symbol was overridden, resolved to sth external, or used as the
prevailing definition).

Richard.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41376

Reply via email to