xref: /netbsd-src/sys/external/bsd/compiler_rt/dist/lib/ubsan/ubsan_win_dll_thunk.cc (revision a7c257b03e4462df2b1020128fb82716512d7856)
1 //===-- ubsan_win_dll_thunk.cc --------------------------------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file defines a family of thunks that should be statically linked into
11 // the DLLs that have instrumentation in order to delegate the calls to the
12 // shared runtime that lives in the main binary.
13 // See https://github.com/google/sanitizers/issues/209 for the details.
14 //===----------------------------------------------------------------------===//
15 #ifdef SANITIZER_DLL_THUNK
16 #include "sanitizer_common/sanitizer_win_dll_thunk.h"
17 // Ubsan interface functions.
18 #define INTERFACE_FUNCTION(Name) INTERCEPT_SANITIZER_FUNCTION(Name)
19 #define INTERFACE_WEAK_FUNCTION(Name) INTERCEPT_SANITIZER_WEAK_FUNCTION(Name)
20 #include "ubsan_interface.inc"
21 #endif // SANITIZER_DLL_THUNK
22