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

Kostya Serebryany kcc at google.com
Tue Dec 6 11:24:32 PST 2011


r145955.

On Mon, Dec 5, 2011 at 3:10 PM, Kostya Serebryany <kcc at google.com> wrote:

> 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/20111206/d4a00454/attachment.html>


More information about the cfe-commits mailing list