annotate libsanitizer/ubsan/ubsan_win_weak_interception.cc @ 118:fd00160c1b76

ifdef TARGET_64BIT
author mir3636
date Tue, 27 Feb 2018 15:01:35 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 //===-- ubsan_win_weak_interception.cc ------------------------------------===//
kono
parents:
diff changeset
2 //
kono
parents:
diff changeset
3 // This file is distributed under the University of Illinois Open Source
kono
parents:
diff changeset
4 // License. See LICENSE.TXT for details.
kono
parents:
diff changeset
5 //
kono
parents:
diff changeset
6 //===----------------------------------------------------------------------===//
kono
parents:
diff changeset
7 // This module should be included in Ubsan when it is implemented as a shared
kono
parents:
diff changeset
8 // library on Windows (dll), in order to delegate the calls of weak functions to
kono
parents:
diff changeset
9 // the implementation in the main executable when a strong definition is
kono
parents:
diff changeset
10 // provided.
kono
parents:
diff changeset
11 //===----------------------------------------------------------------------===//
kono
parents:
diff changeset
12 #ifdef SANITIZER_DYNAMIC
kono
parents:
diff changeset
13 #include "sanitizer_common/sanitizer_win_weak_interception.h"
kono
parents:
diff changeset
14 #include "ubsan_flags.h"
kono
parents:
diff changeset
15 // Check if strong definitions for weak functions are present in the main
kono
parents:
diff changeset
16 // executable. If that is the case, override dll functions to point to strong
kono
parents:
diff changeset
17 // implementations.
kono
parents:
diff changeset
18 #define INTERFACE_FUNCTION(Name)
kono
parents:
diff changeset
19 #define INTERFACE_WEAK_FUNCTION(Name) INTERCEPT_SANITIZER_WEAK_FUNCTION(Name)
kono
parents:
diff changeset
20 #include "ubsan_interface.inc"
kono
parents:
diff changeset
21 #endif // SANITIZER_DYNAMIC