rjmccall added a comment.

You could also get this effect by somehow making the definitions linkonce_odr 
when they're linked in from the library.  Or you could simply use the classic 
static-archive technique of putting each symbol in its own object file and 
linking against the whole thing as a static archive (.a), which only pulls in 
object files that provide symbols that are used.

Regardless, linkonce won't get the effect you want, because (1) linkonce 
definitions can be dropped at any time when they're not used, so they won't be 
emitted in the library if they're not used there, and (2) the overriding 
definitions will be strong.


http://reviews.llvm.org/D18095



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to