hanchenye-llvm-project/compiler-rt/lib/asan
Kostya Serebryany 8423f5654f [asan] fix the old-style Makefile, which we still need to run asan tests
llvm-svn: 156818
2012-05-15 12:41:14 +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] fix asan issue #66 (correctly report type of the bug) 2012-04-23 10:08:16 +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 [asan] move lib/asan/interception to lib/interception so that other tools (e.g. tsan) can use it 2012-05-15 12:21:33 +00:00
Makefile.old [asan] fix the old-style Makefile, which we still need to run asan tests 2012-05-15 12:41:14 +00:00
README.txt Delete sysinfo/* and all references to it. 2012-01-18 11:42:30 +00:00
asan_allocator.cc [asan] fix asan issue #66 (correctly report type of the bug) 2012-04-23 10:08:16 +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 Fix GetFrameNameByAddr hitting stale stack guards. 2012-05-12 12:33:10 +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 Increase error_message_buffer_size to 64K (16K is insufficient for large programs) 2012-05-12 12:33:41 +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 Fix GetFrameNameByAddr hitting stale stack guards. 2012-05-12 12:33:10 +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/