hanchenye-llvm-project/compiler-rt/lib/asan
Kostya Serebryany d45a71c2bc [asan] test for issue #66
llvm-svn: 155127
2012-04-19 14:53:51 +00:00
..
interception Handle two-byte short jumps in the relocated code. 2012-03-22 11:29:53 +00:00
output_tests [asan] minor fix: pass flag -g to output tests as a part of CXXFLAGS 2012-04-12 13:31:13 +00:00
scripts More accurate atos execution which depends on the file type (EXECUTE, DYLIB) of the binary. 2012-01-26 17:06:50 +00:00
tests [asan] test for issue #66 2012-04-19 14:53:51 +00:00
CMakeLists.txt Initial, very rough cut at a new CMake build system for compiler-rt. 2012-04-04 22:12:04 +00:00
Makefile.mk AddressSanitizer: move mach_override inside interception library 2012-02-09 11:36:12 +00:00
Makefile.old [ASan] move replacements for new/delete to separate file 2012-04-06 08:21:08 +00:00
README.txt Delete sysinfo/* and all references to it. 2012-01-18 11:42:30 +00:00
asan_allocator.cc [asan] make __asan::Deallocate immune to racy double-free (issue #57) 2012-04-05 15:55:09 +00:00
asan_allocator.h Check that the FakeStack size is non-zero before looking into it. 2012-02-21 08:45:41 +00:00
asan_globals.cc [asan] Support for %z to Printf() 2012-03-21 11:32:46 +00:00
asan_interceptors.cc Partially revert r154390 (http://llvm.org/viewvc/llvm-project?view=rev&revision=154390) 2012-04-16 08:33:01 +00:00
asan_interceptors.h Add internal_memset and replace the uses of REAL(memset) with it where the performance allows. 2012-03-29 12:20:47 +00:00
asan_interface.h [asan] last bit for gcc compatibility 2012-04-06 20:36:18 +00:00
asan_internal.h [asan] last bit for gcc compatibility 2012-04-06 20:36:18 +00:00
asan_linux.cc Avoid including link.h. 2012-03-26 09:48:41 +00:00
asan_lock.h [asan] move OS-dependent code away from asan_lock.h 2012-01-10 21:24:40 +00:00
asan_mac.cc [ASan] remove dispatch.h header once again - it's not present on Leopard, and we don't want to break the build of compiler-rt there. See https://trac.macports.org/ticket/33362 2012-04-09 16:45:18 +00:00
asan_malloc_linux.cc [asan] Support for %z to Printf() 2012-03-21 11:32:46 +00:00
asan_malloc_mac.cc Add internal_memset and replace the uses of REAL(memset) with it where the performance allows. 2012-03-29 12:20:47 +00:00
asan_malloc_win.cc [ASan] Add a few more malloc-related interceptors for Windows 2012-03-23 11:33:02 +00:00
asan_mapping.h [asan] performance optimization: make sure the check for poisoned shadow inside inteceptors is inlined 2012-03-15 01:18:06 +00:00
asan_new_delete.cc [ASan] move replacements for new/delete to separate file 2012-04-06 08:21:08 +00:00
asan_poisoning.cc [asan] performance optimization: make sure the check for poisoned shadow inside inteceptors is inlined 2012-03-15 01:18:06 +00:00
asan_posix.cc [asan] add flags: disable_core, abort_on_error and unmap_shadow_on_exit 2012-04-06 01:27:11 +00:00
asan_printf.cc [asan] Support for %z to Printf() 2012-03-21 11:32:46 +00:00
asan_procmaps.h [asan] don't use dl_iterate_phdr on linux, go back to using /proc/self/maps. Hopefully fixes the problem reported by our mozilla friends. 2012-03-08 21:19:07 +00:00
asan_rtl.cc [asan] minor change to please gcc 2012-04-06 20:19:59 +00:00
asan_stack.cc [asan] Support for %z to Printf() 2012-03-21 11:32:46 +00:00
asan_stack.h [asan] fix unwinding inside libc intercepors (asan issue #46) 2012-03-15 01:36:00 +00:00
asan_stats.cc [asan] Support for %z to Printf() 2012-03-21 11:32:46 +00:00
asan_stats.h
asan_thread.cc Introduce the use_sigaltstack flag (off by default), which enables using alternate 2012-04-05 10:54:52 +00:00
asan_thread.h [ASan] Intercept CreateThread on Windows 2012-02-24 15:28:43 +00:00
asan_thread_registry.cc Allow calling GetCurrentTidOrMinusOne() before AsanThreadRegistry was initialized. 2012-04-05 10:10:57 +00:00
asan_thread_registry.h Allow calling GetCurrentTidOrMinusOne() before AsanThreadRegistry was initialized. 2012-04-05 10:10:57 +00:00
asan_win.cc [asan] add flags: disable_core, abort_on_error and unmap_shadow_on_exit 2012-04-06 01:27:11 +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/