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