]>
Commit | Line | Data |
---|---|---|
5d3805fc JJ |
1 | //===-- sanitizer_coverage_win_weak_interception.cc -----------------------===// |
2 | // | |
3 | // This file is distributed under the University of Illinois Open Source | |
4 | // License. See LICENSE.TXT for details. | |
5 | // | |
6 | //===----------------------------------------------------------------------===// | |
7 | // This module should be included in Sanitizer Coverage when it implemented as a | |
8 | // shared library on Windows (dll), in order to delegate the calls of weak | |
9 | // functions to the implementation in the main executable when a strong | |
10 | // definition is provided. | |
11 | //===----------------------------------------------------------------------===// | |
12 | #ifdef SANITIZER_DYNAMIC | |
13 | #include "sanitizer_win_weak_interception.h" | |
14 | #include "sanitizer_interface_internal.h" | |
15 | #include "sancov_flags.h" | |
16 | // Check if strong definitions for weak functions are present in the main | |
17 | // executable. If that is the case, override dll functions to point to strong | |
18 | // implementations. | |
19 | #define INTERFACE_FUNCTION(Name) | |
20 | #define INTERFACE_WEAK_FUNCTION(Name) INTERCEPT_SANITIZER_WEAK_FUNCTION(Name) | |
21 | #include "sanitizer_coverage_interface.inc" | |
22 | #endif // SANITIZER_DYNAMIC |