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 | |
15 | #ifndef HWASAN_PREMAP_SHADOW_H |
16 | #define HWASAN_PREMAP_SHADOW_H |
17 | |
18 | #include "sanitizer_common/sanitizer_internal_defs.h" |
19 | |
20 | namespace __hwasan { |
21 | |
22 | uptr FindDynamicShadowStart(uptr shadow_size_bytes); |
23 | void InitShadowGOT(); |
24 | |
25 | } // namespace __hwasan |
26 | |
27 | #endif // HWASAN_PREMAP_SHADOW_H |
28 | |