11e172b4bdec57329bf904f063a29f99cddf2d85fKostya SerebryanyAddressSanitizer RT
21e172b4bdec57329bf904f063a29f99cddf2d85fKostya Serebryany================================
386277eb844c4983c81de62d7c050e92fe7155788Stephen HinesThis directory contains sources of the AddressSanitizer (ASan) runtime library.
41e172b4bdec57329bf904f063a29f99cddf2d85fKostya Serebryany
56a211c5814e25d6745a5058cc0e499e5235d3821Stephen HinesDirectory structure:
61e172b4bdec57329bf904f063a29f99cddf2d85fKostya SerebryanyREADME.txt       : This file.
75b1f0202cefdab3970b4d5372777d586ffa49dd3Alexey SamsonovMakefile.mk      : File for make-based build.
85b1f0202cefdab3970b4d5372777d586ffa49dd3Alexey SamsonovCMakeLists.txt   : File for cmake-based build.
96a211c5814e25d6745a5058cc0e499e5235d3821Stephen Hinesasan_*.{cc,h}    : Sources of the asan runtime library.
101e172b4bdec57329bf904f063a29f99cddf2d85fKostya Serebryanyscripts/*        : Helper scripts.
115b1f0202cefdab3970b4d5372777d586ffa49dd3Alexey Samsonovtests/*          : ASan unit tests.
121e172b4bdec57329bf904f063a29f99cddf2d85fKostya Serebryany
135b1f0202cefdab3970b4d5372777d586ffa49dd3Alexey SamsonovAlso ASan runtime needs the following libraries:
145b1f0202cefdab3970b4d5372777d586ffa49dd3Alexey Samsonovlib/interception/      : Machinery used to intercept function calls.
1586277eb844c4983c81de62d7c050e92fe7155788Stephen Hineslib/sanitizer_common/  : Code shared between various sanitizers.
161e172b4bdec57329bf904f063a29f99cddf2d85fKostya Serebryany
1786277eb844c4983c81de62d7c050e92fe7155788Stephen HinesASan runtime currently also embeds part of LeakSanitizer runtime for
1886277eb844c4983c81de62d7c050e92fe7155788Stephen Hinesleak detection (lib/lsan/lsan_common.{cc,h}).
191e172b4bdec57329bf904f063a29f99cddf2d85fKostya Serebryany
2086277eb844c4983c81de62d7c050e92fe7155788Stephen HinesASan runtime can only be built by CMake. You can run ASan tests
2186277eb844c4983c81de62d7c050e92fe7155788Stephen Hinesfrom the root of your CMake build tree:
221e172b4bdec57329bf904f063a29f99cddf2d85fKostya Serebryany
235b1f0202cefdab3970b4d5372777d586ffa49dd3Alexey Samsonovmake check-asan
241e172b4bdec57329bf904f063a29f99cddf2d85fKostya Serebryany
255b1f0202cefdab3970b4d5372777d586ffa49dd3Alexey SamsonovFor more instructions see:
265b1f0202cefdab3970b4d5372777d586ffa49dd3Alexey Samsonovhttp://code.google.com/p/address-sanitizer/wiki/HowToBuild
27