Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Android 14: Don't set execute-only on FIPS .text segment (#1460)
### Description of changes: * Android 14 enforces execute-only memory (XOM) as is being requested by our call to [mprotect](https://man7.org/linux/man-pages/man2/mprotect.2.html) * ARM64 Android is the only platform for which we were explicitly enabling XOM. * The process of moving all static/const variables from `.text` to `.rodata` segments [has been started](a4bc612) but is not yet complete. Follow up in CryptoAlg-2360 ### Testing: * Verified locally with Android 14 emulator: ``` 130|emu64a:/data/local/tmp/aws-lc-build $ uname -a Linux localhost 6.6.9-android15-0-g515a956763d8-ab11275718 #1 SMP PREEMPT Thu Jan 4 21:38:14 UTC 2024 aarch64 Toybox emu64a:/data/local/tmp/aws-lc-build $ ./crypto/crypto_test [==========] Running 2420 tests from 127 test suites. [----------] Global test environment set-up. [----------] 2 tests from ABITest [ RUN ] ABITest.SanityCheck [ OK ] ABITest.SanityCheck (0 ms) [ RUN ] ABITest.AArch64 [ OK ] ABITest.AArch64 (1 ms) ... [----------] 120 tests from TrustTokenAllBadKeyTest/TrustTokenBadKeyTest (1990 ms total) [----------] Global test environment tear-down [==========] 2420 tests from 127 test suites ran. (109149 ms total) [ PASSED ] 2418 tests. ``` By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license. --------- Co-authored-by: Andrew Hopkins <andhop@amazon.com>
- Loading branch information