Fix build on some architectures caused by r215247.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@215380 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Add new options for asan_symbolize.py script.

The patch adds new features in asan-symbolizer script which are helpful for using ASan on embedded systems:

1) add cross-compile prefix for binutils
2) define path to sysroot with sanitized binaries

Features are enabled by command line options.
The patch also extends command line interface with help option.

Reviewed in http://reviews.llvm.org/D4703.

Patch by Maria Guseva!


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@215381 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan/Win] Fix PR18987: warning about overriding '/MD' with '/MT'

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@215435 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Use more appropriate return types for strlen/wcslen to avoid MSVC warnings

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@215436 91177308-0d34-0410-b5e6-96231b3b80d8
Fix the CMake build when setting MACOSX_DEPLOYMENT_TARGET

If we don't reset CMAKE_OSX_DEPLOYMENT_TARGET, it will end up in
CFLAGS together with the -mmacosx-version-min that we set,
and the compiler errors about the conflict.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@215468 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Kill deprecated allocator interfaces in ASan, MSan and TSan in favor of
a unified interface in <sanitizer/allocator_interface.h>.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@215469 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Make disable_coredump a common flag and use it in TSan

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@215479 91177308-0d34-0410-b5e6-96231b3b80d8
[TSan] Share the code the setup code calling getrlim/setrlim with sanitizer_common

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@215481 91177308-0d34-0410-b5e6-96231b3b80d8
[MSan] Disable coredump for 64-bit binaries.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@215482 91177308-0d34-0410-b5e6-96231b3b80d8
[UBSan] Add returns-nonnull sanitizer.

Summary:
This patch adds a runtime check verifying that functions
annotated with "returns_nonnull" attribute do in fact return nonnull pointers.
It is based on suggestion by Jakub Jelinek:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20140623/223693.html.

Test Plan: regression test suite

Reviewers: rsmith

Reviewed By: rsmith

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D4849

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@215485 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: fix unaligned memory access routine
It was possimitically handling an aligned 8-byte access as 2 4-byte accesses.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@215546 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan/Win] Mark tests that require -MT asan_dll_thunk as such

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@215638 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan/Win] Slightly update&relax test expectations to work with both -MT and -MD (in progress, PR20214) CRTs

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@215641 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan/Win] Remove old, unused and non-functional code that will be re-written soon

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@215707 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan/Win] Remove a hack that seems not to be required with VS2013 anymore

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@215708 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan/Win] We don't really need to use .CRT to call __asan_init when using -MD

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@215719 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan/Win] Remove one more reference to __interception::GetRealFunctionAddress (follow-up to r215707)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@215722 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan/Win] Introduce a new macro for malloc-like function attributes; also, clang-format the definitions of these functions

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@215724 91177308-0d34-0410-b5e6-96231b3b80d8
Follow-up to r215724: fix a lint warning

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@215725 91177308-0d34-0410-b5e6-96231b3b80d8
[TSan] Initialize flags as early as possible. Disables back coredump, accidentally enabled in r215479. Add a test.

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