[UBSan] Don't link UBSan runtime into shared libraries.
authorAlexey Samsonov <vonosmas@gmail.com>
Mon, 30 Jun 2014 20:27:16 +0000 (20:27 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Mon, 30 Jun 2014 20:27:16 +0000 (20:27 +0000)
commitc6496816b1868fae52cd5e188202ddea12dbb366
treea9160b41f22877b4d4c2830d7a5611ca7284a5ea
parentba405c22b8d7a06dd83ed6b66b87ee63bf78ed85
[UBSan] Don't link UBSan runtime into shared libraries.

It used to be a feature of UBSan (it could sanitize a standalone
shared object instead of the whole program), but now it causes
more problems, like PR20165.

llvm-svn: 212064
clang/lib/Driver/Tools.cpp
clang/test/Driver/sanitizer-ld.c