https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86490
--- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> --- (In reply to Alexander Monakov from comment #4) > (In reply to H.J. Lu from comment #3) > > It is because gold doesn't check archive for a common definition. > > Please elaborate - does ld.bfd try to extract static archive members when it > already has a common definition? Why? When ld sees a common symbol, it will use a non-common definiton in a library, .a or .so, to override it. > > Is there a common symbol involved? > > I don't think so, but I'm not sure. We've also seen other pain points like > the same member extracted and given to the plugin multiple times, even > though the second extraction cannot possibly satisfy any unresolved > references. Do you have a testcase?