hanchenye-llvm-project/compiler-rt/lib/asan
Kostya Serebryany cc1d7893d6 [asan] remove objdump-based tests in favour of much simpler LLVM-ish tests
llvm-svn: 147514
2012-01-04 02:08:46 +00:00
..
mach_override [asan] interceptor for strcat. Patch by samsonov@google.com 2011-12-28 19:08:49 +00:00
scripts
sysinfo [asan] fix some more format warnings in sysinfo/sysinfo.cc 2011-12-13 23:34:59 +00:00
tests [asan] remove objdump-based tests in favour of much simpler LLVM-ish tests 2012-01-04 02:08:46 +00:00
Makefile.mk build: Add ModuleName per-subdir variable as a way to organize the different 2011-12-02 02:42:07 +00:00
Makefile.old [asan] build asan-rt with -funwind-tables 2011-12-29 17:29:20 +00:00
README.txt
asan_allocator.cc [asan] refactoring: don't #include <sys/mman.h> in non-os-specific files 2011-12-28 23:28:54 +00:00
asan_allocator.h [asan] make use-after-return mode more robust: allow to call instrumented functions while reporting an error 2011-12-09 01:49:31 +00:00
asan_globals.cc [asan] fix a bug (issue 19) where dlclose and the following mmap caused a false positive. run-time part. 2011-12-15 21:55:34 +00:00
asan_interceptors.cc [asan] use custom libc-free getenv; a bit of refactoring around mmap calls 2011-12-28 22:58:01 +00:00
asan_interceptors.h [asan] use custom libc-free getenv; a bit of refactoring around mmap calls 2011-12-28 22:58:01 +00:00
asan_interface.h [asan] rely on __has_feature(address_sanitizer) instead of the ADDRESS_SANITIZER macro 2011-12-27 21:57:12 +00:00
asan_internal.h [asan] refactoring: don't #include <sys/mman.h> in non-os-specific files 2011-12-28 23:28:54 +00:00
asan_linux.cc [asan] refactoring: don't #include <sys/mman.h> in non-os-specific files 2011-12-28 23:28:54 +00:00
asan_lock.h
asan_mac.cc [asan] refactoring: don't #include <sys/mman.h> in non-os-specific files 2011-12-28 23:28:54 +00:00
asan_mac.h [asan] flatten the asan-rt build slightly 2011-12-01 21:40:52 +00:00
asan_malloc_linux.cc [asan] flatten the asan-rt build slightly 2011-12-01 21:40:52 +00:00
asan_malloc_mac.cc asan: #if 0 out some unused functions (we build with -Werror). 2011-12-01 23:35:47 +00:00
asan_mapping.h Refactor shadow poisoning done by asan-rt, no funtionality changes; patch by samsonov@google.com 2011-11-30 18:50:23 +00:00
asan_poisoning.cc [asan] minimize the use of STL. One bit is still left. 2011-12-02 18:42:04 +00:00
asan_printf.cc [asan] use custom libc-free getenv; a bit of refactoring around mmap calls 2011-12-28 22:58:01 +00:00
asan_rtl.cc [asan] force the __asan_unregister_globals to reside in the runtime library 2011-12-28 23:35:46 +00:00
asan_stack.cc [asan] enable memset/memcpy/memmove interceptors in asan-rt (in addition to those in the compiler module) 2011-12-28 19:55:30 +00:00
asan_stack.h
asan_stats.cc [asan] always collect malloc statstics (removed FLAG_stats) 2011-12-05 19:17:53 +00:00
asan_stats.h
asan_thread.cc [asan] refactoring: don't #include <sys/mman.h> in non-os-specific files 2011-12-28 23:28:54 +00:00
asan_thread.h Recently the GCD tests started failing because of the invalid size of 2011-12-16 19:13:35 +00:00
asan_thread_registry.cc [asan] missing PTHREAD_DESTRUCTOR_ITERATIONS on Android. patch by eugeni.stepanov@gmail.com 2011-12-28 20:47:21 +00:00
asan_thread_registry.h

README.txt

AddressSanitizer RT
================================
This directory contains sources of the AddressSanitizer (asan) run-time library.
We are in the process of integrating AddressSanitizer with LLVM, stay tuned.

Directory structre:

README.txt       : This file.
Makefile.mk      : Currently a stub for a proper makefile. not usable.
Makefile.old     : Old out-of-tree makefile, the only usable one so far.
asan_*.{cc,h}    : Sources of the asan run-time lirbary.
mach_override/*  : Utility to override functions on Darwin (MIT License).
sysinfo/*        : Portable utility to iterate over /proc/maps (BSD License).
scripts/*        : Helper scripts.

Temporary build instructions (verified on linux):

cd lib/asan
make -f Makefile.old get_third_party  # gets googletest and cpplint
make -f Makefile.old test -j 8 CLANG_BUILD=/path/to/Release+Asserts
# Optional:
# make -f Makefile.old install # installs clang and rt to lib/asan_clang_linux

For more info see http://code.google.com/p/address-sanitizer/