[asan] fix the ppc32 build (by Jakub Jelinek). Note that the LLVM build still builds only for 64-bit PowerPC, and not for 32-bit

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

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@199112 91177308-0d34-0410-b5e6-96231b3b80d8
[lsan] Add __lsan_default_suppressions() to the public interface header.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@199121 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Include <sys/stat.h> if __x86_64__ is defined

struct stat defined in <asm/stat.h> is incorrect for x32.  <asm/stat.h>
is included to get struct __old_kernel_stat.  But struct __old_kernel_stat
isn't used for x86-64 nor x32.  This patch includes <sys/stat.h> instead
of <asm/stat.h> and comments out size check of struct __old_kernel_stat
for x86-64.

Patch by H.J. Lu



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@199192 91177308-0d34-0410-b5e6-96231b3b80d8
[tsan] reduce the size of stack frame in MapRodata to please gcc 4.8.2

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@199200 91177308-0d34-0410-b5e6-96231b3b80d8
[tsan] one more explicit memset in tsan rtl (to please gcc 4.8.2)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@199216 91177308-0d34-0410-b5e6-96231b3b80d8
Declare assembler functions as symbols of type function for ELF.
Fixes dynamically linked programs on NetBSD/i386.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@199273 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Fix an incorrect comment.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@199300 91177308-0d34-0410-b5e6-96231b3b80d8
[lsan] remove LeakSanitizerIsTurnedOffForTheCurrentProcess (this was a bad idea), leave __lsan_is_turned_off

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@199304 91177308-0d34-0410-b5e6-96231b3b80d8
Avoid shadowing the global filename. Reorg mangle_filename to be more
precise in the length accounting and use memcpy instead of
strcpy/strcat.

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


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@199332 91177308-0d34-0410-b5e6-96231b3b80d8
Remove support for armv7f slice. <rdar://problem/12478440>

This was never used for anything so we should just get rid of it.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@199333 91177308-0d34-0410-b5e6-96231b3b80d8
ARM's @ comment mode strikes again. Use %function on ARM.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@199342 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Nuke ASAN_FLEXIBLE_MAPPING_AND_OFFSET.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@199370 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Remove leftover use of -fsanitize-address-zero-base-shadow.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@199373 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Implement delayed activation of AddressSanitizer

This change adds ASAN_OPTIONS=start_deactivated=1 flag. When present, ASan will
start in "deactivated" mode, with no heap poisoning, no quarantine, no stack
trace gathering, and minimal redzones. All this features come back when
__asan_init is called for the constructor of an instrumented library.

The primary use case for this feature is Android. Code itself is not
Android-specific, and this patch includes a Linux test for it.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@199377 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Restore lost -pie in Android tests.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@199379 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Fix a bunch of style issues.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@199380 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Add basic support for using libbacktrace in symbolizer.

This change allows to compile sanitizer sources so that *san runtime
will attempt to use libbacktrace and/or libiberty for symbolization
(instead of communicating with llvm-symbolizer).

I've tested this patch by manually defining SANITIZER_LIBBACKTRACE and/or
SANITIZER_CP_DEMANGLE, linking with necessary libraries and verifying that
all tests from ASan test suite work.

Based on patches by Jakub Jelinek!


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@199384 91177308-0d34-0410-b5e6-96231b3b80d8
Add missing __aeabi_fcmpun alias to match C version.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@199386 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Fix a build warning on windows.


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