1 //===-- asan_mapping.h ------------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file is a part of AddressSanitizer, an address sanity checker.
12 // Premap shadow range with an ifunc resolver.
13 //===----------------------------------------------------------------------===//
16 #ifndef ASAN_PREMAP_SHADOW_H
17 #define ASAN_PREMAP_SHADOW_H
19 #if ASAN_PREMAP_SHADOW
21 // Conservative upper limit.
22 uptr PremapShadowSize();
23 bool PremapShadowFailed();
27 extern "C" INTERFACE_ATTRIBUTE void __asan_shadow();
28 extern "C" decltype(__asan_shadow)* __asan_premap_shadow();
30 #endif // ASAN_PREMAP_SHADOW_H