asan_premap_shadow.h 913 B

1234567891011121314151617181920212223242526272829
  1. //===-- asan_mapping.h ------------------------------------------*- C++ -*-===//
  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. // Premap shadow range with an ifunc resolver.
  12. //===----------------------------------------------------------------------===//
  13. #ifndef ASAN_PREMAP_SHADOW_H
  14. #define ASAN_PREMAP_SHADOW_H
  15. #if ASAN_PREMAP_SHADOW
  16. namespace __asan {
  17. // Conservative upper limit.
  18. uptr PremapShadowSize();
  19. bool PremapShadowFailed();
  20. }
  21. #endif
  22. extern "C" INTERFACE_ATTRIBUTE void __asan_shadow();
  23. extern "C" decltype(__asan_shadow)* __asan_premap_shadow();
  24. #endif // ASAN_PREMAP_SHADOW_H