[ubsan] Don't add a --dynamic-list for ubsan symbols when building a shared
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 4 Jun 2014 23:28:46 +0000 (23:28 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 4 Jun 2014 23:28:46 +0000 (23:28 +0000)
commit4244ea9ca13926d65ddeb79f1b72331ddede0ab1
tree61e96429781109afdc097130d77ea73586b98b06
parent5659c866f4bf64ee42dccfdce338c78b3f4a14fc
[ubsan] Don't add a --dynamic-list for ubsan symbols when building a shared
library. That results in the linker resolving all references to weak symbols in
the DSO to the definition from within that DSO. Ironically, this rarely causes
observable problems, except that it causes ubsan's own dynamic type check to
spuriously fail (because we fail to properly merge type_info object names).

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