hwasan_dynamic_shadow.h 838 B

123456789101112131415161718192021222324252627
  1. //===-- hwasan_dynamic_shadow.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. /// \file
  10. /// This file is a part of HWAddressSanitizer. It reserves dynamic shadow memory
  11. /// region.
  12. ///
  13. //===----------------------------------------------------------------------===//
  14. #ifndef HWASAN_PREMAP_SHADOW_H
  15. #define HWASAN_PREMAP_SHADOW_H
  16. #include "sanitizer_common/sanitizer_internal_defs.h"
  17. namespace __hwasan {
  18. uptr FindDynamicShadowStart(uptr shadow_size_bytes);
  19. void InitShadowGOT();
  20. } // namespace __hwasan
  21. #endif // HWASAN_PREMAP_SHADOW_H