commit | 4ccd4317f9301ec9b32aa0d3317a0439b994d7bf | [log] [tgz] |
---|---|---|
author | Evgenii Stepanov <eugenis@google.com> | Tue Jan 31 13:19:30 2017 -0800 |
committer | Evgenii Stepanov <eugenis@google.com> | Tue Jan 31 13:44:55 2017 -0800 |
tree | 10061ae5eae47aa226dbfc15658c1d44b9456884 | |
parent | eb35144e588dc3799b851b8504b0a7db6c9a0b91 [diff] [blame] |
Fix CFI initialization crash on x86. Second try. Bug: 34752378 Test: bionic tests Change-Id: I0a7453154671918b2e6e72f0bb9074c29ceb0f34
diff --git a/linker/linker_cfi.cpp b/linker/linker_cfi.cpp index e9cdab6..28d2eaf 100644 --- a/linker/linker_cfi.cpp +++ b/linker/linker_cfi.cpp
@@ -193,6 +193,7 @@ shadow_start = reinterpret_cast<uintptr_t* (*)(uintptr_t)>(cfi_init)(p); CHECK(shadow_start != nullptr); CHECK(*shadow_start == p); + mprotect(shadow_start, PAGE_SIZE, PROT_READ); return true; }