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

Kostya Serebryany kcc at google.com
Mon Dec 5 15:10:51 PST 2011


make sense to me.
I can land it tomorrow if nobody objects.

--kcc


On Mon, Dec 5, 2011 at 10:24 AM, Alexander Potapenko <glider at google.com>wrote:

> 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 --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20111205/45d91243/attachment.html>


More information about the cfe-commits mailing list