xref: /freebsd/contrib/llvm-project/compiler-rt/lib/asan/asan_rtl_static.cpp (revision 81ad626541db97eb356e2c1d4a20eb2a26a766ab)
104eeddc0SDimitry Andric //===-- asan_static_rtl.cpp -----------------------------------------------===//
204eeddc0SDimitry Andric //
304eeddc0SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
404eeddc0SDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
504eeddc0SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
604eeddc0SDimitry Andric //
704eeddc0SDimitry Andric //===----------------------------------------------------------------------===//
804eeddc0SDimitry Andric //
904eeddc0SDimitry Andric // This file is a part of AddressSanitizer, an address sanity checker.
1004eeddc0SDimitry Andric //
1104eeddc0SDimitry Andric // Main file of the ASan run-time library.
1204eeddc0SDimitry Andric //===----------------------------------------------------------------------===//
1304eeddc0SDimitry Andric 
1404eeddc0SDimitry Andric // This file is empty for now. Main reason to have it is workaround for Windows
1504eeddc0SDimitry Andric // build, which complains because no files are part of the asan_static lib.
16*81ad6265SDimitry Andric 
17*81ad6265SDimitry Andric #include "sanitizer_common/sanitizer_common.h"
18*81ad6265SDimitry Andric 
19*81ad6265SDimitry Andric #define REPORT_FUNCTION(Name)                                       \
20*81ad6265SDimitry Andric   extern "C" SANITIZER_WEAK_ATTRIBUTE void Name(__asan::uptr addr); \
21*81ad6265SDimitry Andric   extern "C" void Name##_asm(uptr addr) { Name(addr); }
22*81ad6265SDimitry Andric 
23*81ad6265SDimitry Andric namespace __asan {
24*81ad6265SDimitry Andric 
25*81ad6265SDimitry Andric REPORT_FUNCTION(__asan_report_load1)
26*81ad6265SDimitry Andric REPORT_FUNCTION(__asan_report_load2)
27*81ad6265SDimitry Andric REPORT_FUNCTION(__asan_report_load4)
28*81ad6265SDimitry Andric REPORT_FUNCTION(__asan_report_load8)
29*81ad6265SDimitry Andric REPORT_FUNCTION(__asan_report_load16)
30*81ad6265SDimitry Andric REPORT_FUNCTION(__asan_report_store1)
31*81ad6265SDimitry Andric REPORT_FUNCTION(__asan_report_store2)
32*81ad6265SDimitry Andric REPORT_FUNCTION(__asan_report_store4)
33*81ad6265SDimitry Andric REPORT_FUNCTION(__asan_report_store8)
34*81ad6265SDimitry Andric REPORT_FUNCTION(__asan_report_store16)
35*81ad6265SDimitry Andric 
36*81ad6265SDimitry Andric }  // namespace __asan
37