rafael accepted this revision. rafael added a comment. This revision is now accepted and ready to land. LGTM with an additional testcase showing the handling of weak undefined symbols. http://reviews.llvm.org/D13579