2018-11-16 Richard Biener <rguenther@suse.de>
[official-gcc.git] / libsanitizer / asan / asan_premap_shadow.h
blob345b56ea6a676f62831a35b0b8df018848157fdc
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 //===----------------------------------------------------------------------===//
14 #ifndef ASAN_PREMAP_SHADOW_H
15 #define ASAN_PREMAP_SHADOW_H
17 #if ASAN_PREMAP_SHADOW
18 namespace __asan {
19 // Conservative upper limit.
20 uptr PremapShadowSize();
21 bool PremapShadowFailed();
23 #endif
25 extern "C" INTERFACE_ATTRIBUTE void __asan_shadow();
26 extern "C" decltype(__asan_shadow)* __asan_premap_shadow();
28 #endif // ASAN_PREMAP_SHADOW_H