2011-11-30 09:07:02 +08:00
|
|
|
AddressSanitizer RT
|
|
|
|
================================
|
2014-05-29 07:09:45 +08:00
|
|
|
This directory contains sources of the AddressSanitizer (asan) runtime library.
|
2011-11-30 09:07:02 +08:00
|
|
|
We are in the process of integrating AddressSanitizer with LLVM, stay tuned.
|
|
|
|
|
2014-05-29 07:09:45 +08:00
|
|
|
Directory structure:
|
2011-11-30 09:07:02 +08:00
|
|
|
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.
|
2014-05-29 07:09:45 +08:00
|
|
|
asan_*.{cc,h} : Sources of the asan runtime library.
|
2011-11-30 09:07:02 +08:00
|
|
|
scripts/* : Helper scripts.
|
2012-09-06 14:39:02 +08:00
|
|
|
tests/* : ASan unit 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
|