1 | //===-- asan_static_rtl.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 is a part of AddressSanitizer, an address sanity checker. |
10 | // |
11 | // Main file of the ASan run-time library. |
12 | //===----------------------------------------------------------------------===// |
13 | |
14 | // This file is empty for now. Main reason to have it is workaround for Windows |
15 | // build, which complains because no files are part of the asan_static lib. |
16 | |
17 | #include "sanitizer_common/sanitizer_common.h" |
18 | |
19 | #define REPORT_FUNCTION(Name) \ |
20 | extern "C" SANITIZER_WEAK_ATTRIBUTE void Name(__asan::uptr addr); \ |
21 | extern "C" void Name##_asm(uptr addr) { Name(addr); } |
22 | |
23 | namespace __asan { |
24 | |
25 | REPORT_FUNCTION(__asan_report_load1) |
26 | REPORT_FUNCTION(__asan_report_load2) |
27 | REPORT_FUNCTION(__asan_report_load4) |
28 | REPORT_FUNCTION(__asan_report_load8) |
29 | REPORT_FUNCTION(__asan_report_load16) |
30 | REPORT_FUNCTION(__asan_report_store1) |
31 | REPORT_FUNCTION(__asan_report_store2) |
32 | REPORT_FUNCTION(__asan_report_store4) |
33 | REPORT_FUNCTION(__asan_report_store8) |
34 | REPORT_FUNCTION(__asan_report_store16) |
35 | |
36 | } // namespace __asan |
37 |