summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/asan/asan_globals.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* [asan] simplify the code that poisons global redzones, add some more testsKostya Serebryany2013-01-231-15/+9
| | | | llvm-svn: 173251
* [asan] kill some dead codeKostya Serebryany2013-01-181-18/+0
| | | | llvm-svn: 172815
* asan/tsan: move blocking mutex from asan to sanitizer_commonDmitry Vyukov2013-01-141-8/+8
| | | | llvm-svn: 172380
* Relocate the external headers provided by ASan and the common sanitizerChandler Carruth2012-08-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | library. These headers are intended to be available to user code when built with AddressSanitizer (or one of the other sanitizer's in the future) to interface with the runtime library. As such, they form stable external C interfaces, and the headers shouldn't be located within the implementation. I've pulled them out into what seem like fairly obvious locations and names, but I'm wide open to further bikeshedding of these names and locations. I've updated the code and the build system to cope with the new locations, both CMake and Makefile. Please let me know if this breaks anyone's build. The eventual goal is to install these headers along side the Clang builtin headers when we build the ASan runtime and install it. My current thinking is to locate them at: <prefix>/lib/clang/X.Y/include/sanitizer/common_interface_defs.h <prefix>/lib/clang/X.Y/include/sanitizer/asan_interface.h <prefix>/lib/clang/X.Y/include/sanitizer/... But maybe others have different suggestions? Fixing the style of the #include between these headers at least unblocks experimentation with installing them as they now should work when installed in these locations. llvm-svn: 162822
* [Sanitizer] Use low-level allocator in flag parsing to avoid calling ↵Alexey Samsonov2012-08-271-1/+1
| | | | | | malloc() before ASan/TSan initialization is done llvm-svn: 162673
* [asan] run-time part of the initialization order checker. Patch by Reid ↵Kostya Serebryany2012-08-211-8/+73
| | | | | | Watson with some bits from kcc. The sub-pass is off by default for now. On simple tests it works fine. llvm-svn: 162278
* [ASan] move code that describes globals to asan_report.ccAlexey Samsonov2012-08-091-31/+4
| | | | llvm-svn: 161572
* [ASan] move some functions that describe addresses to asan_report.ccAlexey Samsonov2012-08-091-2/+1
| | | | llvm-svn: 161571
* [ASan] Use common flags parsing machinery.Alexey Samsonov2012-07-091-8/+8
| | | | llvm-svn: 159933
* [Sanitizer]: Introduce a common internal printf function. For now, also use ↵Alexey Samsonov2012-06-061-9/+9
| | | | | | tool-specific wrappers TsanPrintf (its output is controlled by TSan flags) and AsanPrintf (which copies its results to the ASan-private buffer). Supported formats: %[z]{d,u,x}, %s, %p. Re-write all format strings in TSan according to this format (this should have no effect on 64-bit platforms). llvm-svn: 158065
* [ASan] Make printf arguments match format strings better.Alexey Samsonov2012-06-061-4/+4
| | | | llvm-svn: 158059
* Remove file-type tags for .cc files in ASan run-time libraryAlexey Samsonov2012-06-041-1/+1
| | | | llvm-svn: 157927
* [asan] more renamingKostya Serebryany2012-05-311-1/+1
| | | | llvm-svn: 157747
* [asan] more renamingKostya Serebryany2012-05-311-6/+6
| | | | llvm-svn: 157746
* [asan,tsan] introduce sanitizer_common/sanitizer_defs.h and perform some ↵Kostya Serebryany2012-05-311-5/+5
| | | | | | renaming in asan rt. More to come. llvm-svn: 157743
* [asan] Support for %z to Printf()Evgeniy Stepanov2012-03-211-6/+6
| | | | | | | | | | | | At the moment, asan internal Printf() uses %l modifier for printing values of size_t and related types. This works, because we control both the implementation of Printf and all its uses, but can be a little misleading. This change adds support for %z to Printf(). All callers that print sizes and pointers as integers are switched to %zu / %zx. llvm-svn: 153177
* [asan] fix a bug (issue 19) where dlclose and the following mmap caused a ↵Kostya Serebryany2011-12-151-8/+34
| | | | | | false positive. run-time part. llvm-svn: 146687
* [asan] poison the internal asan heap memory, just in case. Change Printf to ↵Kostya Serebryany2011-12-151-1/+1
| | | | | | Report when debugging globals. llvm-svn: 146663
* [asan] get rid of std::map. No STL and almost no libstdc++ left. Kostya Serebryany2011-12-021-14/+16
| | | | llvm-svn: 145706
* Refactor shadow poisoning done by asan-rt, no funtionality changes; patch by ↵Kostya Serebryany2011-11-301-11/+10
| | | | | | samsonov@google.com llvm-svn: 145505
* AddressSanitizer run-time library. Not yet integrated with the compiler-rt ↵Kostya Serebryany2011-11-301-0/+144
build system, but can be built using the old makefile. See details in README.txt llvm-svn: 145463
OpenPOWER on IntegriCloud