[PATCH] D54905: [AddressSanitizer] Add flag to disable linking with CXX runtime

Evgenii Stepanov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 3 13:24:46 PST 2018


eugenis added a comment.

Linux linkers won't include a member of an archive only because it resolves a weak symbol, so in your example the answer is none.

ASan uses -Wl,-whole-archive to pull all its members, this will resolve operator new to ASan definition unless there is another definition in the main executable. In general, the first one in the order of command line arguments will be used.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D54905/new/

https://reviews.llvm.org/D54905





More information about the cfe-commits mailing list