- Jul 31, 2012
-
-
Alexey Samsonov authored
[Sanitizer] Wrapper around llvm::DIContext from LLVM DebugInfo library. If a macro SANITIZER_USES_LLVM_LIBS is defined (by default it is not), then sanitizer runtime includes llvm headers and tries to use LLVM libs for in-process symbolization. To make it functional, we have to link with these LLVM libs - either pass them to linker from Clang driver, or link them into static ASan runtime when we build it. llvm-svn: 161045
-
- Jul 19, 2012
-
-
Kostya Serebryany authored
llvm-svn: 160504
-
Kostya Serebryany authored
llvm-svn: 160503
-
Alexey Samsonov authored
[Sanitizer] When obtaining the data for loaded modules, add address ranges of loadable segments only. Looks like address range of PT_TLS segment may intersect with loadable segments of other modules. llvm-svn: 160498
-
- Jul 18, 2012
-
-
Kostya Serebryany authored
[tsan] minor enhancements in the new tsan allocator and a test malloc replacement library that can be linked to any program to replace malloc (tested on spec2006) llvm-svn: 160436
-
Alexey Samsonov authored
llvm-svn: 160428
-
- Jul 16, 2012
-
-
Alexey Samsonov authored
[Sanitizer] implement straightforward nlogn sorting, as qsort() may call malloc, which leads to deadlock in ASan allocator llvm-svn: 160262
-
- Jul 10, 2012
-
-
Alexey Samsonov authored
llvm-svn: 159988
-
- Jul 09, 2012
-
-
Alexey Samsonov authored
llvm-svn: 159928
-
- Jul 08, 2012
-
-
Alexander Potapenko authored
llvm-svn: 159915
-
- Jul 06, 2012
-
-
Kostya Serebryany authored
llvm-svn: 159825
-
Kostya Serebryany authored
llvm-svn: 159823
-
Kostya Serebryany authored
llvm-svn: 159814
-
Kostya Serebryany authored
llvm-svn: 159812
-
- Jul 05, 2012
-
-
Dmitry Vyukov authored
llvm-svn: 159754
-
Alexey Samsonov authored
llvm-svn: 159748
-
Dmitry Vyukov authored
First, placement new from standard library conflicts with our own. Second, we are in trouble if user uses the same function (we either get instrumented code in runtime, or non-instrumented code in user program). llvm-svn: 159738
-
- Jul 03, 2012
-
-
Alexey Samsonov authored
llvm-svn: 159655
-
Alexey Samsonov authored
[Sanitizer] Extend a symbolizer code. Implemented for Linux only. Use dl_iterate_phdr to get virtual addresses of mapped module sections. To symbolize an address from a module, map this module to memory and obtain pointers to debug info sections. Later these pointers can be passed to constructor of DWARF context-in-memory from LLVM DebugInfo lib. llvm-svn: 159652
-
- Jul 02, 2012
-
-
Dmitry Vyukov authored
llvm-svn: 159518
-
Dmitry Vyukov authored
llvm-svn: 159516
-
Alexey Samsonov authored
[ASan] cmake cleanup: make tab/space padding in CMakeLists consistent, silence/fix some pedantic warnings llvm-svn: 159514
-
- Jun 29, 2012
-
-
Dmitry Vyukov authored
llvm-svn: 159449
-
Dmitry Vyukov authored
llvm-svn: 159447
-
Dmitry Vyukov authored
llvm-svn: 159443
-
Dmitry Vyukov authored
llvm-svn: 159439
-
Dmitry Vyukov authored
llvm-svn: 159438
-
Dmitry Vyukov authored
llvm-svn: 159437
-
Kostya Serebryany authored
llvm-svn: 159432
-
Kostya Serebryany authored
llvm-svn: 159429
-
Kostya Serebryany authored
llvm-svn: 159424
-
- Jun 27, 2012
-
-
Dmitry Vyukov authored
llvm-svn: 159294
-
- Jun 26, 2012
-
-
Kostya Serebryany authored
llvm-svn: 159204
-
- Jun 25, 2012
-
-
Dmitry Vyukov authored
llvm-svn: 159142
-
Kostya Serebryany authored
llvm-svn: 159140
-
Kostya Serebryany authored
llvm-svn: 159139
-
Kostya Serebryany authored
llvm-svn: 159137
-
Chandler Carruth authored
Add the initial support for building ASan tests. The first change here is to try to get the CFLAGS to more closely match those used by the old Makefile. There are probably still goofs here, ASan folks, your review would be appreciated. The second big change is to add support for building both instrumentation based an non-instrumentation based unittests for ASan. They are built a bit differently from how the old makefiles managed things. Specifically, there are two binaries, one for the non-instrumented case, and one for the instrumented case. Also, the instrumented unit tests rely on the host compiler supporting AddressSanitizer's intrumentation pass. This is kind-of gross, but I don't know of a better way yet. I've mailed llvmdev to discuss this issue. One big caveat is that the detection logic currently doesn't work. I've commented it out temporarily as I'd like to get feedback from the ASan developers, etc. llvm-svn: 159134
-
Chandler Carruth authored
ASan, and friends. This explicitly switches the CompilerRT CMake build to require CMake version 2.8.8 or newer which provides first-class support for "object" libraries which consist of a pile of '.o' files -- exactly what is desired for composing runtime libraries. I've gone ahead and switched to using this. I've also added the interception library which I missed initially. And I've added proper dependencies between the various libraries. With this, I'm able to build archives for asan that appear to contain all of the necessary .o files. The final tweak here is to start setting up the compile flags and macro defines expected by ASan and its helper libraries. These may not be entirely correct currently, they're based loosely on my reading of the old Makefiles. However, they can be tweaked more easily now that they're wired up properly. llvm-svn: 159129
-
Kostya Serebryany authored
llvm-svn: 159122
-