]> granicus.if.org Git - clang/commit
Add -whole-archive around the ASan runtime archive in the link command.
authorChandler Carruth <chandlerc@gmail.com>
Tue, 4 Dec 2012 22:54:37 +0000 (22:54 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Tue, 4 Dec 2012 22:54:37 +0000 (22:54 +0000)
commit1d1539875bc0a00935ffb41e27a8fd327054c006
treeec5d57c4c145c86a9bcca6d6891e49bdc997bf15
parent79762d3d6d82a314848cf4bfa6d2d58439536dbe
Add -whole-archive around the ASan runtime archive in the link command.

This ensures that even though it comes first, we pick up its .o files.
Note that if we can use this (or something similar / equivalent) on
other platforms, we could potentially remove
ReplaceOperatorsNewAndDelete from the ASan runtimes.

We should probably do something similar for TSan and MSan as well.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169328 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/Tools.cpp
test/Driver/asan-ld.c