llvm-project/compiler-rt/lib/asan
Kostya Serebryany 3a55cfacf1 [asan] temporary reinstate string.h/strings.h. Removal of those caused a Mac build failulre which I failed to observe before the commit
llvm-svn: 147810
2012-01-09 22:45:05 +00:00
..
mach_override [asan] interceptor for strcat. Patch by samsonov@google.com 2011-12-28 19:08:49 +00:00
scripts AddressSanitizer run-time library. Not yet integrated with the compiler-rt build system, but can be built using the old makefile. See details in README.txt 2011-11-30 01:07:02 +00:00
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] refactoring: move some common linux/mac code to asan_posix.cc 2012-01-09 19:18:27 +00:00
README.txt AddressSanitizer run-time library. Not yet integrated with the compiler-rt build system, but can be built using the old makefile. See details in README.txt 2011-11-30 01:07:02 +00:00
asan_allocator.cc [asan] move more stuff to OS-specific files 2012-01-06 02:12:25 +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] temporary reinstate string.h/strings.h. Removal of those caused a Mac build failulre which I failed to observe before the commit 2012-01-09 22:45:05 +00:00
asan_interceptors.h [asan] don't use strstr/strncat from libc, use our own versions instead 2012-01-09 22:20:49 +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: move some common linux/mac code to asan_posix.cc 2012-01-09 19:18:27 +00:00
asan_linux.cc [asan] refactoring: move some common linux/mac code to asan_posix.cc 2012-01-09 19:18:27 +00:00
asan_lock.h AddressSanitizer run-time library. Not yet integrated with the compiler-rt build system, but can be built using the old makefile. See details in README.txt 2011-11-30 01:07:02 +00:00
asan_mac.cc [asan] refactoring: move some common linux/mac code to asan_posix.cc 2012-01-09 19:18:27 +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_posix.cc [asan] refactoring: move some common linux/mac code to asan_posix.cc 2012-01-09 19:18:27 +00:00
asan_printf.cc [asan] implement our own /proc/self/maps reader and use it on linux instead of sysinfo.h 2012-01-05 00:44:33 +00:00
asan_procmaps.h [asan] use dl_iterate_phdr for pre-symbolization on linux instead of parsing /proc/self/maps 2012-01-05 23:50:34 +00:00
asan_rtl.cc [asan] don't use strstr/strncat from libc, use our own versions instead 2012-01-09 22:20:49 +00:00
asan_stack.cc [asan] fix mac build once more 2012-01-09 19:50:06 +00:00
asan_stack.h AddressSanitizer run-time library. Not yet integrated with the compiler-rt build system, but can be built using the old makefile. See details in README.txt 2011-11-30 01:07:02 +00:00
asan_stats.cc [asan] always collect malloc statstics (removed FLAG_stats) 2011-12-05 19:17:53 +00:00
asan_stats.h AddressSanitizer run-time library. Not yet integrated with the compiler-rt build system, but can be built using the old makefile. See details in README.txt 2011-11-30 01:07:02 +00:00
asan_thread.cc [asan] refactoring: move some common linux/mac code to asan_posix.cc 2012-01-09 19:18:27 +00:00
asan_thread.h [asan] do not use new/delete for the internal thread structure 2012-01-06 19:44:11 +00:00
asan_thread_registry.cc [asan] do not use new/delete for the internal thread structure 2012-01-06 19:44:11 +00:00
asan_thread_registry.h AddressSanitizer run-time library. Not yet integrated with the compiler-rt build system, but can be built using the old makefile. See details in README.txt 2011-11-30 01:07:02 +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).
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/