• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef BASE_ANDROID_LIBRARY_LOADER_ANCHOR_FUNCTIONS_H_
6 #define BASE_ANDROID_LIBRARY_LOADER_ANCHOR_FUNCTIONS_H_
7 
8 #include <cstdint>
9 #include "base/android/library_loader/anchor_functions_buildflags.h"
10 
11 #include "base/base_export.h"
12 
13 #if BUILDFLAG(SUPPORTS_CODE_ORDERING)
14 
15 namespace base {
16 namespace android {
17 
18 // Start and end of .text, respectively.
19 BASE_EXPORT extern const size_t kStartOfText;
20 BASE_EXPORT extern const size_t kEndOfText;
21 // Start and end of the ordered part of .text, respectively.
22 BASE_EXPORT extern const size_t kStartOfOrderedText;
23 BASE_EXPORT extern const size_t kEndOfOrderedText;
24 
25 // Returns true if the ordering looks sane.
26 BASE_EXPORT bool IsOrderingSane();
27 
28 }  // namespace android
29 }  // namespace base
30 #endif  // BUILDFLAG(SUPPORTS_CODE_ORDERING)
31 
32 #endif  // BASE_ANDROID_LIBRARY_LOADER_ANCHOR_FUNCTIONS_H_
33