[cfe-commits] Do not link dynamic libraries with the AddressSanitizer runtime

Alexander Potapenko glider at google.com
Mon Dec 5 10:24:38 PST 2011


This patch makes sure that only executables are linked with the ASan
runtime library.
Otherwise we may end up having several instances of the runtime
library, which will lead to a mess.

Also, when building a dynamic library or a bundle with ASan, we need
to mark the undefined symbols added by the instrumentation pass as
dynamic_lookup to avoid linker errors.

-- 
Alexander Potapenko
Software Engineer
Google Moscow
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang-asan-mac.patch
Type: application/octet-stream
Size: 1642 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20111205/206eb30e/attachment.obj>


More information about the cfe-commits mailing list