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