rafael accepted this revision. rafael added a comment. This revision is now accepted and ready to land. LGTM with the "Preserve externally-visible symbols." part changed to only do it for -shared and -export-dynamic. http://reviews.llvm.org/D13950