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