1 : // Copyright 2015 Google Inc. All Rights Reserved.
2 : //
3 : // Licensed under the Apache License, Version 2.0 (the "License");
4 : // you may not use this file except in compliance with the License.
5 : // You may obtain a copy of the License at
6 : //
7 : // http://www.apache.org/licenses/LICENSE-2.0
8 : //
9 : // Unless required by applicable law or agreed to in writing, software
10 : // distributed under the License is distributed on an "AS IS" BASIS,
11 : // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 : // See the License for the specific language governing permissions and
13 : // limitations under the License.
14 : //
15 : // Defines the Asan Hot Patching CRT interceptors.
16 : //
17 : // Hot Patching Asan transformed links modules against these functions
18 : // instead of the CRT ones. When hot patching is inactive, these functions
19 : // call the respective system functions.
20 : // TODO(cseri): When hot patching Asan mode is activated, the import entries
21 : // of these functions must be overwritten to call the respective functions
22 : // from the SyzyAsan runtime library.
23 : #ifndef SYZYGY_AGENT_ASAN_HP_CRT_INTERCEPTORS_H_
24 : #define SYZYGY_AGENT_ASAN_HP_CRT_INTERCEPTORS_H_
25 :
26 : #include "syzygy/agent/asan/crt_interceptors_macros.h"
27 :
28 : // Exposes the CRT interceptors.
29 m : extern "C" {
30 :
31 : // See crt_interceptors_macros.h for details.
32 m : ASAN_CRT_INTERCEPTORS(ASAN_CRT_INTERCEPTORS_DECL, hp_asan_);
33 :
34 m : } // extern "C"
35 :
36 : #endif // SYZYGY_AGENT_ASAN_HP_CRT_INTERCEPTORS_H_
|