1*3cab2bb3Spatrick //===-- ubsan_win_dll_thunk.cpp -------------------------------------------===// 2*3cab2bb3Spatrick // 3*3cab2bb3Spatrick // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4*3cab2bb3Spatrick // See https://llvm.org/LICENSE.txt for license information. 5*3cab2bb3Spatrick // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6*3cab2bb3Spatrick // 7*3cab2bb3Spatrick //===----------------------------------------------------------------------===// 8*3cab2bb3Spatrick // 9*3cab2bb3Spatrick // This file defines a family of thunks that should be statically linked into 10*3cab2bb3Spatrick // the DLLs that have instrumentation in order to delegate the calls to the 11*3cab2bb3Spatrick // shared runtime that lives in the main binary. 12*3cab2bb3Spatrick // See https://github.com/google/sanitizers/issues/209 for the details. 13*3cab2bb3Spatrick //===----------------------------------------------------------------------===// 14*3cab2bb3Spatrick #ifdef SANITIZER_DLL_THUNK 15*3cab2bb3Spatrick #include "sanitizer_common/sanitizer_win_dll_thunk.h" 16*3cab2bb3Spatrick // Ubsan interface functions. 17*3cab2bb3Spatrick #define INTERFACE_FUNCTION(Name) INTERCEPT_SANITIZER_FUNCTION(Name) 18*3cab2bb3Spatrick #define INTERFACE_WEAK_FUNCTION(Name) INTERCEPT_SANITIZER_WEAK_FUNCTION(Name) 19*3cab2bb3Spatrick #include "ubsan_interface.inc" 20*3cab2bb3Spatrick #endif // SANITIZER_DLL_THUNK 21