llvm-project/compiler-rt/lib/asan
Alexey Samsonov 694633e19b [Sanitizer] first effort to start building ASan runtime with -Werror in CMake build
llvm-svn: 163686
2012-09-12 07:38:47 +00:00
..
dynamic [asan] Use a relative include path instead of requiring build system involvement. 2012-09-07 19:57:32 +00:00
lit_tests [ASan] hack initialization-bug test so that it stably passes on both Linux and Mac: make the bug appear independent of the translation unit order 2012-09-07 09:24:29 +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 [Sanitizer] first effort to start building ASan runtime with -Werror in CMake build 2012-09-12 07:38:47 +00:00
CMakeLists.txt CMake build rules for ASan Android runtime and tests. 2012-09-11 11:55:45 +00:00
Makefile.mk build: Teach Makefile build system about asan/dynamic subdir. 2012-09-07 19:57:28 +00:00
README.txt [ASan] Nuke output_tests/ in favor of lit_tests/. Stop using Makefile.old. 2012-09-06 06:39:02 +00:00
asan_allocator.cc [ASan] Add print_full_thread_history runtime option (on by default) that prints all full thread creation paths for threads involved in ASan error report 2012-09-05 07:37:15 +00:00
asan_allocator.h Whitespace/lint 2012-08-30 14:22:21 +00:00
asan_flags.h [ASan] Add print_full_thread_history runtime option (on by default) that prints all full thread creation paths for threads involved in ASan error report 2012-09-05 07:37:15 +00:00
asan_globals.cc Relocate the external headers provided by ASan and the common sanitizer 2012-08-29 02:27:54 +00:00
asan_intercepted_functions.h Fix two compiler warnings: must use at least one argument for "..." in a variadic macros, signed vs. unsigned comparison. 2012-09-06 13:31:13 +00:00
asan_interceptors.cc [Sanitizer] first effort to start building ASan runtime with -Werror in CMake build 2012-09-12 07:38:47 +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_internal.h [asan] one more fix for windows build 2012-08-28 15:25:07 +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 Use the return value of dladdr() to avoid Clang warning. 2012-09-06 12:18:45 +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 For invalid pointers passed to free_common check whether they are actually skewed to hold an additional CFAllocatorRef. 2012-08-29 12:36:24 +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 Relocate the external headers provided by ASan and the common sanitizer 2012-08-29 02:27:54 +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 Revert r163411 based on review discussion. 2012-09-11 01:13:51 +00:00
asan_report.h [ASan] Add print_full_thread_history runtime option (on by default) that prints all full thread creation paths for threads involved in ASan error report 2012-09-05 07:37:15 +00:00
asan_rtl.cc [Sanitizer] Get rid of dependency between sanitizer_common and asan/tsan runtimes: implement tool-specific Die and CheckFailed functions via callbacks 2012-09-11 09:44:48 +00:00
asan_stack.cc Relocate the external headers provided by ASan and the common sanitizer 2012-08-29 02:27:54 +00:00
asan_stack.h [asan] actually move StackTrace to sanitizer_common 2012-08-28 14:11:57 +00:00
asan_stats.cc Relocate the external headers provided by ASan and the common sanitizer 2012-08-29 02:27:54 +00:00
asan_stats.h [asan] more renaming 2012-05-31 14:35:53 +00:00
asan_thread.cc [asan] increase max stack size to 256 (+test) 2012-09-06 10:57:03 +00:00
asan_thread.h [ASan] Add print_full_thread_history runtime option (on by default) that prints all full thread creation paths for threads involved in ASan error report 2012-09-05 07:37:15 +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] fix Windows build 2012-08-28 14:14: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      : File for make-based build.
CMakeLists.txt   : File for cmake-based build.
asan_*.{cc,h}    : Sources of the asan run-time lirbary.
scripts/*        : Helper scripts.
tests/*          : ASan unit tests.
lit_tests/*      : ASan output tests.

Also ASan runtime needs the following libraries:
lib/interception/      : Machinery used to intercept function calls.
lib/sanitizer_common/  : Code shared between ASan and TSan.

Currently ASan runtime can be built by both make and cmake build systems.
(see compiler-rt/make and files Makefile.mk for make-based build and
files CMakeLists.txt for cmake-based build).

ASan unit and output tests work only with cmake. You may run this
command from the root of your cmake build tree:

make check-asan

For more instructions see:
http://code.google.com/p/address-sanitizer/wiki/HowToBuild