diff options
author | Reid Kleckner <rnk@google.com> | 2016-11-23 17:37:00 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2016-11-23 17:37:00 +0000 |
commit | cc39c11eb96e5c639d86f28ca0f4b51048c45a9e (patch) | |
tree | d01a12fa0be682c23a1e36420400acd983f8a25e /lib/asan/tests | |
parent | a0b00a3e260c72de7c2b1c5a04d3bcb7770cf0ba (diff) |
[asan/win] Fix incremental linking vs. global registration
The MSVC incremental linker pads every global out to 256 bytes in case
it changes size after an incremental link. So, skip over null entries in
the DSO-wide asan globals array. This only works if the global padding
size is divisible by the size of the asan global object, so add some
defensive CHECKs.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@287780 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/tests')
-rw-r--r-- | lib/asan/tests/CMakeLists.txt | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/asan/tests/CMakeLists.txt b/lib/asan/tests/CMakeLists.txt index c45d35b55..3e56763a8 100644 --- a/lib/asan/tests/CMakeLists.txt +++ b/lib/asan/tests/CMakeLists.txt @@ -47,8 +47,6 @@ else() endif() if(MSVC) list(APPEND ASAN_UNITTEST_COMMON_CFLAGS -gcodeview) - # Incremental linking appears to break our global registration mechanism. - list(APPEND ASAN_UNITTEST_COMMON_LINKFLAGS -Wl,-incremental:no) endif() list(APPEND ASAN_UNITTEST_COMMON_LINKFLAGS -g) |