asan_rtl_static.cpp 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  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. // This file is empty for now. Main reason to have it is workaround for Windows
  14. // build, which complains because no files are part of the asan_static lib.
  15. #include "sanitizer_common/sanitizer_common.h"
  16. #define REPORT_FUNCTION(Name) \
  17. extern "C" SANITIZER_WEAK_ATTRIBUTE void Name(__asan::uptr addr); \
  18. extern "C" void Name##_asm(uptr addr) { Name(addr); }
  19. namespace __asan {
  20. REPORT_FUNCTION(__asan_report_load1)
  21. REPORT_FUNCTION(__asan_report_load2)
  22. REPORT_FUNCTION(__asan_report_load4)
  23. REPORT_FUNCTION(__asan_report_load8)
  24. REPORT_FUNCTION(__asan_report_load16)
  25. REPORT_FUNCTION(__asan_report_store1)
  26. REPORT_FUNCTION(__asan_report_store2)
  27. REPORT_FUNCTION(__asan_report_store4)
  28. REPORT_FUNCTION(__asan_report_store8)
  29. REPORT_FUNCTION(__asan_report_store16)
  30. } // namespace __asan