tsan: fix Go build
Go linker does not like function-static objects.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200534 91177308-0d34-0410-b5e6-96231b3b80d8
Make signal-related functions use __sanitizer_* structures instead of __sanitizer_kernel_* ones.
Also rename internal_sigaction() into internal_sigaction_norestorer(), as this function doesn't fully
implement the sigaction() functionality on Linux.

This change is a part of refactoring intended to have common signal handling behavior in all tools.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200535 91177308-0d34-0410-b5e6-96231b3b80d8
Fix compilation: don't convert NULL to a pointer-incompatible type.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200536 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Run LSan for ASan unit tests only on 64-bit Linux

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200537 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Move the SIGSEGV/SIGBUS handling to sanitizer_common

This change is a part of refactoring intended to have common signal handling behavior in all tools.
This particular CL moves InstallSignalHandlers() into sanitizer_common (making it InstallDeadlySignalHandlers()), but doesn't enable default signal handlers for any tool other than ASan.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200542 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Support most ioctls from /usr/include/sound/.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200544 91177308-0d34-0410-b5e6-96231b3b80d8
Enable compilation of RT on ARM

Adding the ARM RT sources to the CMake files, and enabling some
sanitizers to also build on ARM. This is far from supported or
production quality, but enabling it to build will get us errors
that we can actually fix.

Having said that, the Compiler-RT and the Asan libraries are
know to work on some variations of ARM.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200546 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Attempt to fix Android build.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200547 91177308-0d34-0410-b5e6-96231b3b80d8
[libsanitizer] Fix compilation for gotsan.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200549 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Read extra flags from a system property on activation on Android.


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


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200551 91177308-0d34-0410-b5e6-96231b3b80d8
Sorting ARM Sources alphabetically

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200552 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Add a failing test that demonstrates that ASan currently breaks dead code stripping on Linux.
See https://code.google.com/p/address-sanitizer/issues/detail?id=260 for more info.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200553 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Implement __sanitizer::InstallDeadlySignalHandlers() and __asan::AsanOnSIGSEGV() on Windows.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200554 91177308-0d34-0410-b5e6-96231b3b80d8
Remove /FS as it's auto-added by CMake 2.8.12.1; also, remove /wd4221 as 4221 is a linker warning, not a compiler warning

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200564 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Partial revert of recent ioctl changes.

Some build environments are missing the required headers.
This reverts r200544, r200547, r200551. This does not revert the change that
introduced READWRITE ioctl type.

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