[PATCH] Always add -lc++abi when using vptr sanitizer on Darwin.

Nico Weber thakis at chromium.org
Fri Jan 16 08:30:42 PST 2015


On Fri, Jan 16, 2015 at 6:50 AM, Alexey Samsonov <vonosmas at gmail.com> wrote:

> Clang driver adds -lstdc++ to linker invocation automatically if user
> provides -fsanitize=address or -fsanitize=undefined, yet we see linker
> errors.
>

libstdc++ doesn't reexport libc++abi symbols. libc++ does.


>
> Alexander or Kuba, could you please check if the problem reproduces for
> you?
>
> On Thu, Jan 15, 2015 at 3:40 AM, kledzik at apple.com <kledzik at apple.com>
> wrote:
>
>> > but they went away after adding -lc++abi.
>>
>>
>> and they would have gone away if they had added -lc++ or -lstdc++
>>
>>
>> http://reviews.llvm.org/D6960
>>
>> EMAIL PREFERENCES
>>   http://reviews.llvm.org/settings/panel/emailpreferences/
>>
>>
>>
>
>
> --
> Alexey Samsonov
> vonosmas at gmail.com
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150116/2a677d15/attachment.html>


More information about the cfe-commits mailing list