hanchenye-llvm-project/compiler-rt/lib/asan
Kostya Serebryany a57b4e823a [asan] even more refactoring to move StackTrace to sanitizer_common
llvm-svn: 162754
2012-08-28 13:49:49 +00:00
..
dynamic Re-implement the wrappers for libdispatch functions using blocks where appropriate 2012-08-23 09:34:40 +00:00
lit_tests [ASan] use write instead of puts in malloc hooks test for ASan, as puts calls malloc on Mac 2012-08-22 13:32:37 +00:00
output_tests [ASan] get rid of ASAN_USE_EXTERNAL_SYMBOLIZER compiler def in favor of __asan_set_symbolize_callback interface function. Now the user doesn't have to recompile ASan runtime to provide its own symbolizer 2012-08-22 13:31:37 +00:00
scripts Pass offset of the frame address within the binary to addr2line instead of the absolute address. 2012-08-15 13:58:24 +00:00
tests [ASan] CMake build: share more compile flags between instrumented and non-instrumented tests 2012-08-28 12:38:17 +00:00
CMakeLists.txt [asan] get rid of AsanPrintf in favor of Printf from sanitizer_common 2012-08-28 11:34:40 +00:00
Makefile.mk [ASan] add missing build dependency on sanitizer_common headers 2012-08-27 13:47:28 +00:00
Makefile.old [asan] improve SetErrorReportCallbackTest to actually catch missing functionality in __asan_set_error_report_callback 2012-08-28 11:21:01 +00:00
README.txt Delete sysinfo/* and all references to it. 2012-01-18 11:42:30 +00:00
asan_allocator.cc [asan] even more refactoring to move StackTrace to sanitizer_common 2012-08-28 13:49:49 +00:00
asan_allocator.h [asan] some renaming before we move StackTrace into sanitizer_common 2012-08-28 11:54:30 +00:00
asan_flags.h If the program is linked to a dynamic ASan runtime which is not present in DYLD_INSERT_LIBRARIES 2012-08-24 09:22:05 +00:00
asan_globals.cc [Sanitizer] Use low-level allocator in flag parsing to avoid calling malloc() before ASan/TSan initialization is done 2012-08-27 14:04:54 +00:00
asan_intercepted_functions.h Re-implement the wrappers for libdispatch functions using blocks where appropriate 2012-08-23 09:34:40 +00:00
asan_interceptors.cc Fix lint warnings. 2012-08-17 10:08:51 +00:00
asan_interceptors.h If the program is linked to a dynamic ASan runtime which is not present in DYLD_INSERT_LIBRARIES 2012-08-24 09:22:05 +00:00
asan_interface.h [ASan] get rid of ASAN_USE_EXTERNAL_SYMBOLIZER compiler def in favor of __asan_set_symbolize_callback interface function. Now the user doesn't have to recompile ASan runtime to provide its own symbolizer 2012-08-22 13:31:37 +00:00
asan_internal.h [asan] some renaming before we move StackTrace into sanitizer_common 2012-08-28 11:54:30 +00:00
asan_linux.cc [asan] more refactoring to move StackTrace to sanitizer_common 2012-08-28 13:25:55 +00:00
asan_lock.h tsan/asan: unify ScopedLock 2012-06-29 17:10:08 +00:00
asan_mac.cc [asan] more refactoring to move StackTrace to sanitizer_common 2012-08-28 13:25:55 +00:00
asan_mac.h Move the prototype of __CFInitialize to asan_mac.h so that asan_malloc_mac.cc may use it in the dynamic library mode. 2012-08-15 12:23:36 +00:00
asan_malloc_linux.cc A few tweaks for building ASanRT against Android NDK. 2012-08-27 11:15:55 +00:00
asan_malloc_mac.cc [asan] get rid of AsanPrintf in favor of Printf from sanitizer_common 2012-08-28 11:34:40 +00:00
asan_malloc_win.cc Remove file-type tags for .cc files in ASan run-time library 2012-06-04 13:50:10 +00:00
asan_mapping.h A few tweaks for building ASanRT against Android NDK. 2012-08-27 11:15:55 +00:00
asan_new_delete.cc A few tweaks for building ASanRT against Android NDK. 2012-08-27 11:15:55 +00:00
asan_poisoning.cc [ASan] Use common flags parsing machinery. 2012-07-09 14:36:04 +00:00
asan_posix.cc [ASan] Create new files asan_report.{h,cc} as a preparation for refactoring of ASan error reporting code. 2012-08-09 07:40:58 +00:00
asan_report.cc [asan] even more refactoring to move StackTrace to sanitizer_common 2012-08-28 13:49:49 +00:00
asan_report.h [asan] some renaming before we move StackTrace into sanitizer_common 2012-08-28 11:54:30 +00:00
asan_rtl.cc [asan] get rid of AsanPrintf in favor of Printf from sanitizer_common 2012-08-28 11:34:40 +00:00
asan_stack.cc [asan] even more refactoring to move StackTrace to sanitizer_common 2012-08-28 13:49:49 +00:00
asan_stack.h [asan] even more refactoring to move StackTrace to sanitizer_common 2012-08-28 13:49:49 +00:00
asan_stats.cc [asan] get rid of AsanPrintf in favor of Printf from sanitizer_common 2012-08-28 11:34:40 +00:00
asan_stats.h [asan] more renaming 2012-05-31 14:35:53 +00:00
asan_thread.cc [asan] some renaming before we move StackTrace into sanitizer_common 2012-08-28 11:54:30 +00:00
asan_thread.h [asan] even more refactoring to move StackTrace to sanitizer_common 2012-08-28 13:49:49 +00:00
asan_thread_registry.cc A few tweaks for building ASanRT against Android NDK. 2012-08-27 11:15:55 +00:00
asan_thread_registry.h [ASan] cmake cleanup: make tab/space padding in CMakeLists consistent, silence/fix some pedantic warnings 2012-07-02 06:48:10 +00:00
asan_win.cc [asan] some renaming before we move StackTrace into sanitizer_common 2012-08-28 11:54:30 +00:00

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).
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/