[nolibc] Make SymbolizerPrepareForSandboxing weak and optional.

Differential Revision: http://llvm-reviews.chandlerc.com/D872

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182765 91177308-0d34-0410-b5e6-96231b3b80d8
[nolibc] Add a test case for Linux/x86_64.

Differential Revision: http://llvm-reviews.chandlerc.com/D873

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182770 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Change report header to be more alike to ASan and TSan.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182774 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Improve getaddrinfo interceptor.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182775 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Share TSan accept & accept4 interceptors with other sanitizers.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182835 91177308-0d34-0410-b5e6-96231b3b80d8
Make InternalAlloc/InternalFree in sanitizer runtimes libc-free by switching to a custom allocator.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182836 91177308-0d34-0410-b5e6-96231b3b80d8
Exclude sanitizer_nolibc_test from TSan test run. Fix lint warnings

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182837 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] modf/modff/modfl interceptors.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182838 91177308-0d34-0410-b5e6-96231b3b80d8
[lsan] Convert the remaining LSan tests to output tests.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182839 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Use raw check in internal allocator to prevent self-deadlocks. Try to fix Windows build.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182840 91177308-0d34-0410-b5e6-96231b3b80d8
[nolibc] Now that we have a custom allocator, remove dummy allocator
definitions from test.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182841 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: match "race" suppressions against "race on vptr" reports


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182842 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Move TSan and MSan recvmsg interceptors to common.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182843 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Intercept getpeername.


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


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182845 91177308-0d34-0410-b5e6-96231b3b80d8
Fix MSVC warnings at the -W2 level

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182848 91177308-0d34-0410-b5e6-96231b3b80d8
[nolibc] Unweak SymbolizerPrepareForSandboxing and move it to libc-independent part.

Fixes the Go build.

Differential Revision: http://llvm-reviews.chandlerc.com/D877

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182851 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Fix getaddrinfo interceptor to use the actual returned sockaddr size.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182852 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Change the way GetThreadStackAndTls() obtains the thread descriptor address.

Instead of using arch_prctl(ARCH_GET_FS), read the address from the
tread descriptor itself. This lets us avoid sandboxing issues. Also,
GetThreadStackAndTls() can now be implemented on i386.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182853 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Make ASan report the correct thread address ranges to LSan.

This CL enables thread support in LSan when used on top of ASan.

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