2011-11-30 09:07:02 +08:00
|
|
|
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.
|
2012-09-06 14:39:02 +08:00
|
|
|
Makefile.mk : File for make-based build.
|
|
|
|
CMakeLists.txt : File for cmake-based build.
|
2011-11-30 09:07:02 +08:00
|
|
|
asan_*.{cc,h} : Sources of the asan run-time lirbary.
|
|
|
|
scripts/* : Helper scripts.
|
2012-09-06 14:39:02 +08:00
|
|
|
tests/* : ASan unit tests.
|
|
|
|
lit_tests/* : ASan output tests.
|
2011-11-30 09:07:02 +08:00
|
|
|
|
2012-09-06 14:39:02 +08:00
|
|
|
Also ASan runtime needs the following libraries:
|
|
|
|
lib/interception/ : Machinery used to intercept function calls.
|
|
|
|
lib/sanitizer_common/ : Code shared between ASan and TSan.
|
2011-11-30 09:07:02 +08:00
|
|
|
|
2012-09-06 14:39:02 +08:00
|
|
|
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).
|
2011-11-30 09:07:02 +08:00
|
|
|
|
2012-09-06 14:39:02 +08:00
|
|
|
ASan unit and output tests work only with cmake. You may run this
|
|
|
|
command from the root of your cmake build tree:
|
2011-11-30 09:07:02 +08:00
|
|
|
|
2012-09-06 14:39:02 +08:00
|
|
|
make check-asan
|
2011-11-30 09:07:02 +08:00
|
|
|
|
2012-09-06 14:39:02 +08:00
|
|
|
For more instructions see:
|
|
|
|
http://code.google.com/p/address-sanitizer/wiki/HowToBuild
|