[asancov] Write coverage directly to a memory-mapped file.

This way does not require a __sanitizer_cov_dump() call. That's
important on Android, where apps can be killed at arbitrary time.

We write raw PCs to disk instead of module offsets; we also write
memory layout to a separate file. This increases dump size by the
factor of 2 on 64-bit systems.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@209653 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Disable dlopen interceptor on Android.

It can not work, as libdl is always first in the lookup order,
even ahead of LD_PRELOAD-ed libraries.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@209657 91177308-0d34-0410-b5e6-96231b3b80d8
[tsan] Fix tsango build.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@209658 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] use relative line numbers in tests

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@209699 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Add a few stubs to fix windows build.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@209717 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Add a dll thunk for __sanitizer_cov_module_init.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@209718 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan/Win] Use clang rather than clang-cl by default for lit tests. Make Windows-only tests explicitly use clang-cl.

Reviewed at http://reviews.llvm.org/D3893

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@209719 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan tests] Move one more test to POSIX-only directory

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@209722 91177308-0d34-0410-b5e6-96231b3b80d8