summaryrefslogtreecommitdiffstats
path: root/core/combo
Commit message (Collapse)AuthorAgeFilesLines
* Enable -fstack-protector-strong for arm.Elliott Hughes2017-03-141-1/+1
| | | | | | | | | | | | | | | | | | | This results in nearly all functions with the possibility of stack corruption getting stack canaries, because it applies to any function taking a reference to the frame or with a local array rather than just the functions with arrays larger than 8 bytes. It was developed for use in Chrome (and Chrome OS) and has also been adopted by various other distributions (Arch, Fedora, Ubuntu, etc). The code size increase ranges from ~1.5% to ~2.5%, compared to ~0.3% to ~0.7% with the more conservative switch. The increase in the performance loss is usually minimal. The overall size increase once everything other than C and C++ code is taken into account is minimal, and it greatly improves the mitigation of stack buffer overflow vulnerabilities. https://lwn.net/Articles/584225/ Change-Id: Iccc20852db8a5e4dd9792f9da6d5e325fc59b0a5
* Merge branch 'cm-13.0' of https://github.com/CyanogenMod/android_build into ↵Wolfgang Wiedmeyer2016-03-181-1/+1
|\ | | | | | | | | | | replicant-6.0 Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
| * Set mcpu targets based on cpu variant.Christopher Ferris2016-02-101-1/+1
| | | | | | | | | | | | Make cortex-a53 and cortex-a53.a57 use cortex-a7. Change-Id: I89d5b3f044c867ec99aae319eafc33f2edf1f9f2
* | fix gcc tools pathWolfgang Wiedmeyer2016-01-142-6/+6
| | | | | | | | | | | | export androideabi arm toolchain path Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
* | don't use the prebuilt host toolchainWolfgang Wiedmeyer2016-01-072-6/+6
|/ | | | | | | this is just an initial version various config parts need cleanup and more testing is necessary Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
* Apply correct, optimized mfpu compiler flag for ARMv7-A Cortex CPUsarter972015-10-271-7/+6
| | | | | | | | | | | | | | | | | For those ARMv7-A Cortex CPUs that can handle VFPv4 floating point, We can set "-mfpu=neon-vfpv4" instead of generic "-mfpu=neon" to gain extra performance improvements. References : - GCC : https://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html - Cortex A15 : http://www.arm.com/products/processors/cortex-a/cortex-a15.php - Cortex A9 : http://www.arm.com/products/processors/cortex-a/cortex-a9.php - Cortex A8 : http://www.arm.com/products/processors/cortex-a/cortex-a8.php - Cortex A7 : http://www.arm.com/products/processors/cortex-a/cortex-a7.php Change-Id: I91893789ed8edabf3767e1782e494b81158332bb Signed-off-by: Park Ju Hyung <qkrwngud825@gmail.com> Signed-off-by: Maxime Poulain <maxime.poulain@student.uclouvain.be>
* Fix ccache mismergesMichael Bestas2015-10-271-62/+0
| | | | | | * ccache config has moved to a separate makefile in M Change-Id: If1f426e647715f72c09f2339a61ac2a13121b477
* Set kernel gcc version to 4.8 for ARM targetsBrandon McAnsh2015-10-101-0/+1
| | | | | | | | | | | | | * This causes the check during path setup for an arm-eabi-4.9 toolchain to fail, thus only leaving the arm-linux-androideabi- to exist. * This is only temporary as Google is building with 4.9 and 4.8 gcc's have been removed in their next release Was updated to 4.9 here: https://github.com/CyanogenMod/android_build/commit/bf8346e90c5a6d5d809fa7166d50714b2b6bc30d Toolchain check here: https://github.com/CyanogenMod/android_build/blob/cm-13.0/envsetup.sh#L189 Change-Id: I24bff10e392a6cdced1797870e523144e83d611d Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
* build: Enable custom ccache cache dir for AndroidMatt Mower2015-10-091-0/+6
| | | | | | | | | | | | During lunch, check environment variables for ANDROID_CCACHE_DIR. If it is specified, CCACHE_DIR is set to match. Prevents issues with multiple versions of ccache writing to the same cache dir. ANDROID_CCACHE_SIZE should also be specified, allowing for a distinct cache directory size from the default. Syntax for ANDROID_CCACHE_SIZE is the same as applied in the command: 'ccache -M$ANDROID_CCACHE_SIZE' Change-Id: I17497a6f56347850e0fa7b8ebd4de0b5a0b13e55
* Add Xcode 7 (10.11) SDK support to mac supported listBrandon McAnsh2015-10-081-1/+1
| | | | | | | * Allows lunch and a build to start Change-Id: I9cd4b851cf05390b80e1b8d292643e59e636fe3c Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
* Fix OSX support for new CLI Tools (starting with 7.1)Brian Chu2015-10-072-0/+12
| | | | | | | | To build on OSX with late-2015 CLI Tools, the build system must include C++ headers from a new location. Mid-2015 CLI Tools and older can still be used, so the older location will also be kept. Change-Id: I422d28cb41ab57fcc816538a822df8aecdf7d9d6
* Add support for OSX up to 10.10 and CLI ToolsBrian Chu2015-10-061-3/+18
| | | | | | | | | | | | | | | | - Support using OSX versions 10.9 and 10.10 as the compilation host. Please note that the prebuilt darwin-x86 gcc is missing an upstream patch that properly identifies 10.10 as newer than 10.2, which restricts mac_sdk_versions_supported to 10.9. - Support using Xcode Command Line Tools, waiving the requirement for installing the full Xcode development suite for 600k worth of C++ headers. These build modifications have been verified by successfully compiling a cm12-hammerhead image from scratch on a OSX Yosemite 10.10.1 host with Xcode Command Line Tools 6.1.1 installed. Change-Id: Id1741ef583d186eb6a42093e5111431ae7b08a2c
* core: armv7-a-neon.mk: Add missing endifArne Coucheron2015-10-061-0/+1
| | | | Change-Id: Id6f9c952d01d3c980115a52605d9c86038b3b5bd
* core: Enable -mcpu=cortex-a9 flag for Cortex-A9 cpu variantCristoforo Cataldo2015-10-061-0/+3
| | | | Change-Id: I9294a518bcdc21ccbae72eadd9f3c1a12982d028
* core: Enable -mcpu=cortex-a8 flag for Scorpion cpu variantCristoforo Cataldo2015-10-061-1/+1
| | | | | | | To be used with http://review.cyanogenmod.org/#/c/77758/ Change-Id: I7ecc4707fa45bd7098165615c0521a12c85fb087
* Fix file-size stats on OSXKoushik Dutta2015-10-061-1/+6
| | | | | | | | | | | | | | Kernel makefiles that the stat on the system is GNU stat. GNU stat uses the "-c" option to specify format. Darwin stat uses the "-f" option to specify format. This discrepency will cause kernel build breaks. On my system, I symlink stat to GNU stat. This causes the "get-file-size" define to fail. The fix for this is to detect "gstat", aka GNU stat, and use that appropriately. Change-Id: I987c155b7dc3ff14ffe6da40edf834ca34b7df75 Fix up the get-file-size function that was broken due to the prior commit that made it utilize gnu stat (gstat) Change-Id: I24bba2bfcb509ad1ad76d2260eedd685ba45c393
* Don't set CCACHE_BASEDIR if its already setMike Grissom2015-10-061-1/+3
| | | | | | * enable use of shared ccache Change-Id: Ic708a5d5169291d674b167aa2c87bf2c8adaafae
* build: Set ccache base to build topTom Marshall2015-10-061-0/+54
| | | | | | This enables ccache sharing between different build tree paths. Change-Id: I99636bdd2779a6ccf0649f027e35cf67df44b6ae
* Split [CC|CXX]_WRAPPER from [TARGET|HOST]_[CC|CXX]Ying Wang2015-07-201-59/+0
| | | | | | | | | - Don't overwrite [TARGET|HOST]_[CC|CXX] with the [CC|CXX]_WRAPPER prefix, so that we can disable the wrapper per module. - Disable ccache on a module when FDO is enabled. Bug: 22612634 Change-Id: Ibc04a4742d589955066c7eceb43a0da9a2b893bc
* Add support for cortex-a53 variants when building 64-bit.Tim Murray2015-06-111-1/+5
| | | | Change-Id: I3f1fb5dbde731d9c3d6db26a46bc7f0f54d8e071
* Revert "Revert "Enable linker -fix-cortex-a53-843419""Andrew Hsieh2015-06-021-0/+1
| | | | | | | | This reverts commit 32e1689684682aadf1a5d5af523ccafae5907572. Now that prebuilts/gcc/darwin-x86/aarch64/aarch64-linux-android-4.9 is also updated Change-Id: Id95c1c4cc651c434461655e62b8f23afd56b53e4
* Add $ORIGIN/lib[64] to host binary's rpath.Ying Wang2015-06-011-0/+2
| | | | | | | | | | | Normally the binaries use the exsiting $ORIGIN/../lib[64] with binaries in the bin subdirectory; For historical reason the binaries in the SDK package don't have a bin subdirectory. This workaround enables them to work in the exsiting SDK directory structure. Bug: 21301578 Change-Id: Ibebfbfb8b30e81e7bbaf13a21bb205f3f0282d24
* Remove gcc 4.9 workaround.Chih-Hung Hsieh2015-05-292-8/+0
| | | | | | | The gcc 4.9 devirtualization bug was fixed with a cherry pick of r212222. BUG: 19872411 Change-Id: I6d9677f112402fe84d70da770f364392398e9cc9
* Upgrade x86 gcc to 4.9 and disable devirtualization.Chih-Hung Hsieh2015-05-062-3/+11
| | | | | | | | | | Also filter out gcc-only flags -Wno-clobbered and -fno-devirtualize when compiled with clang/llvm. BUG: 19872411 Change-Id: I6de57583be04da607f569df65e93531787dbb789 (cherry picked from AOSP commit 90036610ddfe0455553a1b46bb8adbeafde0cac1)
* Revert "Revert "Pack relocations for mips64""Dmitriy Ivanov2015-04-291-0/+2
| | | | | | | This reverts commit 6399dcce598c2ac54bd87bc754028513405c049f. Bug: http://b/20658994 (cherry picked from commit 8387d99ec3649390f815d447a44674fc9ca18823)
* Revert "Revert "Pack relocations for mips""Dmitriy Ivanov2015-04-291-0/+2
| | | | | | | | This reverts commit d05fd6fc821db3e09c988370c6ac24c3354232f7. Bug: http://b/20658994 Change-Id: Iccbd4846b310306ed11b87f4566b8aaadfa63ebb (cherry picked from commit cb2b3d47addad6b7370df4b8aa77a53f98045cfb)
* Merge "Revert "Pack relocations for mips"" into mnc-devDimitry Ivanov2015-04-291-2/+0
|\
| * Revert "Pack relocations for mips"Dimitry Ivanov2015-04-291-2/+0
| | | | | | | | | | | | | | | | This reverts commit 9dc1a7359f2351e18f08d69ea725f884541b2f2f. Bug: http://b/20658994 Change-Id: Ib10c764a7d06db823ee2fccfa47240e0a639d4bc (cherry picked from commit d05fd6fc821db3e09c988370c6ac24c3354232f7)
* | Revert "Pack relocations for mips64"Dimitry Ivanov2015-04-291-2/+0
|/ | | | | | | | This reverts commit 8bd30fe3cb82e50caab50e4091c5977e5e24db0e. Bug: http://b/20658994 Change-Id: I6c31094559a12b824344802bf3993f91aee79a26 (cherry picked from commit 6399dcce598c2ac54bd87bc754028513405c049f)
* am c98d6b35: am 6612d4a0: am edc3371a: am f3a6b07b: Merge "host compiler: ↵Nick Kralevich2015-04-252-6/+6
|\ | | | | | | | | | | | | enable compiler hardening flags" * commit 'c98d6b35ba7e9381089b1b7c8b47f384e5772a4f': host compiler: enable compiler hardening flags
| * host compiler: enable compiler hardening flagsNick Kralevich2015-04-242-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable the following compiler hardening flags: * -Wl,-z,relro * -Wl,-z,now * -fstack-protector relro / bind_now make the relro region read-only after linking, preventing certain attacks against ELF data structures. stack-protector adds stack canaries, which can detect exploits which overwrite parts of the stack. Explicitly not added in this change is FORTIFY_SOURCE=2. Adding that option turns on glibc's warn_unused_result attributes. This generates a huge number of new compile time warnings, and for the multiple makefiles which have -Werror in them, turns those warnings into errors. I'm not able to fix all the errors right away. Bug: 20558757 Change-Id: I86791177c6695f5325233d9dd9a5dd3ccc2b1a2f
* | am 80421984: am aac1b9d9: am f674a67d: am 573dfb7c: Merge "Pack relocations ↵Dmitriy Ivanov2015-04-251-0/+2
|\ \ | |/ | | | | | | | | | | for mips64" * commit '804219841d7f581cf78f3f68e13381b6631513a0': Pack relocations for mips64
| * Pack relocations for mips64Dmitriy Ivanov2015-04-241-0/+2
| | | | | | | | | | Bug: http://b/18051137 Change-Id: I063c5d6cf007658c0efe9cb1d65ed8026b3e7dae
* | am 10537b6f: am 513be561: am cae46525: am 691a4379: Merge "Pack relocations ↵Dmitriy Ivanov2015-04-241-0/+2
|\ \ | |/ | | | | | | | | | | for mips" * commit '10537b6f41342c50fc0c80bd85ff1b126054086f': Pack relocations for mips
| * Pack relocations for mipsDmitriy Ivanov2015-04-241-0/+2
| | | | | | | | | | Bug: http://b/18051137 Change-Id: Id5e0adfb55273f23e1c99b4eecb318c6b8d19989
* | am 5754ad7e: am 5c327ec3: am 0f7ecd64: am b1c2727a: Merge "Pack relocations ↵Dmitriy Ivanov2015-04-241-0/+2
|\ \ | |/ | | | | | | | | | | for x86" * commit '5754ad7ead23fb613f9fe4de2970283d18141ea5': Pack relocations for x86
| * Pack relocations for x86Dmitriy Ivanov2015-04-241-0/+2
| | | | | | | | | | Bug: http://b/18051137 Change-Id: I3f316343e9bbd2037a9583d5b6fb41a06be153cd
* | am 6f2935dc: am dabf96ab: am c84b3a78: am 648f1b66: Merge "Pack relocation ↵Dmitriy Ivanov2015-04-236-10/+2
|\ \ | |/ | | | | | | | | | | tables for dynamic executables" * commit '6f2935dc1432a38e149498b6efbd43ed9aceb827': Pack relocation tables for dynamic executables
| * Pack relocation tables for dynamic executablesDmitriy Ivanov2015-04-236-10/+2
| | | | | | | | | | | | | | | | | | Add replocation-packer step for dynmic executables. Enable it by default for arm and arm64 platforms. Bug: http://b/18051137 Change-Id: I0c88fd31595bcea62a087f219acb9ecf9c80f2e5
* | am 893ed24d: am 387a9fee: am 941d61de: am 1ff47c7f: Merge "Revert "Pack ↵Dimitry Ivanov2015-04-236-0/+12
|\ \ | |/ | | | | | | | | | | relocation tables for all dynamic executables"" * commit '893ed24dd7cec9b560fe46862b3635efa327ec65': Revert "Pack relocation tables for all dynamic executables"
| * Revert "Pack relocation tables for all dynamic executables"Dimitry Ivanov2015-04-236-0/+12
| | | | | | | | | | | | This reverts commit e7a1b8a0c6d5f56e415345a0aceef3afe5ff5eff. Change-Id: I1a2185e1c68d364941e3b3e525a8c4a7a42e0cc1
* | am ff084258: am b7b27621: am 64119a7f: am ec6a9773: Merge "Pack relocation ↵Dmitriy Ivanov2015-04-236-12/+0
|\ \ | |/ | | | | | | | | | | tables for all dynamic executables" * commit 'ff084258ea53c414d724ba87f89c324056def1bd': Pack relocation tables for all dynamic executables
| * Pack relocation tables for all dynamic executablesDmitriy Ivanov2015-04-226-12/+0
| | | | | | | | | | Bug: http://b/18051137 Change-Id: I277277d5f5eb450ef9b4a23cfec16d75d977eb89
* | am 263e22d4: am 051f18f0: am f37e96e2: Merge "Revert "Enable linker ↵Andrew Hsieh2015-04-141-1/+0
|\ \ | |/ | | | | | | | | | | -fix-cortex-a53-843419"" * commit '263e22d424a80de023143c4758e1e534c726a07d': Revert "Enable linker -fix-cortex-a53-843419"
| * Merge "Revert "Enable linker -fix-cortex-a53-843419""Andrew Hsieh2015-04-131-1/+0
| |\
| | * Revert "Enable linker -fix-cortex-a53-843419"Andrew Hsieh2015-04-131-1/+0
| | | | | | | | | | | | | | | | | | This reverts commit 54b22a5a706f6556cda6ef3de13b9b0bdc22e989. Change-Id: I23613490030783fb6da678de5a25f37caebe5f97
* | | am 00b0f345: am 45c4c5af: am 7bd978c2: Merge "Enable linker ↵Andrew Hsieh2015-04-131-0/+1
|\ \ \ | |/ / | | | | | | | | | | | | | | | -fix-cortex-a53-843419" * commit '00b0f345b62065979dbebb648e4d549953577ac3': Enable linker -fix-cortex-a53-843419
| * | Merge "Enable linker -fix-cortex-a53-843419"Andrew Hsieh2015-04-131-0/+1
| |\ \ | | |/
| | * Enable linker -fix-cortex-a53-843419Andrew Hsieh2015-04-091-0/+1
| | | | | | | | | | | | Change-Id: Icb8a4ce4d5688847cfe536eba2139cdf7f6406f3
* | | am 55acb92d: am d263924f: am 69bd465b: Merge "Don\'t use -Wl,--fix-cortex-a8 ↵Stephen Hines2015-04-101-3/+9
|\ \ \ | |/ / | | | | | | | | | | | | | | | for Cortex A7, A9, A15, Krait or Denver" * commit '55acb92d825f12469e855485b23bfcd5e2461978': Don't use -Wl,--fix-cortex-a8 for Cortex A7, A9, A15, Krait or Denver