xref: /netbsd-src/sys/external/bsd/compiler_rt/dist/lib/asan/asan_premap_shadow.h (revision a7c257b03e4462df2b1020128fb82716512d7856)
1 //===-- asan_mapping.h ------------------------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file is a part of AddressSanitizer, an address sanity checker.
11 //
12 // Premap shadow range with an ifunc resolver.
13 //===----------------------------------------------------------------------===//
14 
15 
16 #ifndef ASAN_PREMAP_SHADOW_H
17 #define ASAN_PREMAP_SHADOW_H
18 
19 #if ASAN_PREMAP_SHADOW
20 namespace __asan {
21 // Conservative upper limit.
22 uptr PremapShadowSize();
23 bool PremapShadowFailed();
24 }
25 #endif
26 
27 extern "C" INTERFACE_ATTRIBUTE void __asan_shadow();
28 extern "C" decltype(__asan_shadow)* __asan_premap_shadow();
29 
30 #endif // ASAN_PREMAP_SHADOW_H
31