|  | Commit message (Collapse) | Author | Age | Files | Lines | 
|---|
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | Summary:
Part of the code inspired by the original work on libsanitizer in GCC 5.4 by Christos Zoulas.
Sponsored by <The NetBSD Foundation>
Reviewers: joerg, kcc, vitalybuka, filcab
Reviewed By: vitalybuka
Subscribers: llvm-commits, #sanitizers
Tags: #sanitizers
Differential Revision: https://reviews.llvm.org/D36321
llvm-svn: 310351 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| | This fixes a crash in pthread_create on linux/i386 due to abi
incompatibility between intercepted and non-intercepted functions.
See the test case for more details.
llvm-svn: 248325 | 
| | 
| 
| 
| 
| 
| | Kutuzov
llvm-svn: 202009 | 
| | 
| 
| 
| | llvm-svn: 197806 | 
| | 
| 
| 
| 
| 
| 
| 
| | INTERCEPT_FUNCTION_VER.
This is a workaround for clang-format bug (PR17874).
llvm-svn: 194468 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | Reviewers: eugenis, dvyukov
Reviewed By: dvyukov
CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D1937
llvm-svn: 192774 | 
| | 
| 
| 
| 
| 
| 
| | versioned symbols can not be linked into dynamic library w/o linker script
also simplifies code as side effect
llvm-svn: 191056 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| | libpthread is weird:
/lib/x86_64-linux-gnu/libpthread.so.0:000000000000b9b0 T pthread_cond_init@@GLIBC_2.3.2
/lib/x86_64-linux-gnu/libpthread.so.0:000000000000c720 T pthread_cond_init@GLIBC_2.2.5
let's do it with @@ for now
we can always introduce more macros parameters later
llvm-svn: 189788 | 
| | 
| 
| 
| 
| 
| | android does not have dlvsym
llvm-svn: 189781 | 
| | 
| 
| 
| | llvm-svn: 189767 | 
| | 
| 
| 
| 
| 
| | pointer-to-function to pointer-to-object, so we use cast via integral type
llvm-svn: 161168 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| | The idea isthat asan/tsan can survive if user intercepts the same functions. At the same time user has an ability to call back into asan/tsan runtime. See the following tests for examples:
asan/output_tests/interception_failure_test-linux.cc
asan/output_tests/interception_test-linux.cc
asan/output_tests/interception_malloc_test-linux.cc
llvm-svn: 157388 | 
|  | (e.g. tsan) can use it
llvm-svn: 156816 |