commit | deec799746e92ab0487eca489499ade08a2610bf | [log] [tgz] |
---|---|---|
author | Caroline Tice <cmtice@google.com> | Mon Jan 08 10:25:12 2018 -0800 |
committer | Caroline Tice <cmtice@google.com> | Mon Jan 08 10:25:12 2018 -0800 |
tree | 9a2c42ca86130fa98e61c5d7bfb7e890f501a066 | |
parent | dca601e5d2b032ac5cca1df90ac56077ccf5d665 [diff] |
[GCC] Commit retpoline patch code, for fixing security issues. This applies the Intel GCC code patches, to allow compiling with appropriate flags for mitigating the indirect branch variant of the speculative execution security flaw. Bug: None Test: This is already in place in ChromeOS and has been tested on the ChromeOS kernels. Change-Id: Ideffb433b697f1fe7e4ca2c1eaa968160abfcc8b
The following process is used to build the GCC that is used by both the Android platfrom and the NDK.
Both Linux and Windows toolchains are built on Linux machines. Windows host binaries are built with mingw. Building binaries for Mac OS X should be built using 10.8 to ensure compatibility with Android's minimum supported hosts.
Check out the branch gcc
repo init -u https://android.googlesource.com/platform/manifest -b gcc # Googlers, use repo init -u \ persistent-https://android.git.corp.google.com/platform/manifest \ -b gcc
Additional Linux Dependencies (available from apt):
Mac OS X also requires Xcode.
# Additional options and toolchain names will be show with --help. $ python build.py --toolchain TOOLCHAIN_NAME
$ python build.py --system windows TOOLCHAIN_NAME