yaxunl added a comment. If __attribute__((linkonce_odr_linkage)) is not a proper name for explicitly setting linkage, how about __attribute((linkage=linkonce_odr))? This can be extended to other linkages too. http://reviews.llvm.org/D18095