Elliott Hughes
3afd77941b
am 35fb49df
: am b58119ea
: Merge "Turn on _FORTIFY_SOURCE=2 for the host."
...
* commit '35fb49df32f0f115f93cce04f7e0fe1be2301b83':
Turn on _FORTIFY_SOURCE=2 for the host.
2015-05-13 20:29:38 +00:00
Elliott Hughes
7dd8ec1761
Revert "Revert "Turn on _FORTIFY_SOURCE=2 for the host.""
...
This reverts commit e27b214fc2
.
Change-Id: I3d739c0594dbe4ecd62c5b07064ada7de6cdaadb
2015-05-13 20:15:19 +00:00
Elliott Hughes
2a3034b336
Merge "Revert "Turn on _FORTIFY_SOURCE=2 for the host.""
2015-05-13 19:33:17 +00:00
Elliott Hughes
e27b214fc2
Revert "Turn on _FORTIFY_SOURCE=2 for the host."
...
This reverts commit 224806d00e
.
Change-Id: I654157ec4be7ff95356ab4a25b27c44762793e74
2015-05-13 19:32:59 +00:00
Elliott Hughes
b58119eab4
Merge "Turn on _FORTIFY_SOURCE=2 for the host."
2015-05-13 19:10:37 +00:00
Andrew Hsieh
46cc3992cc
am 4b4c0df5
: am 75f3c5a8
: Merge "Revert "Revert "Enable linker -fix-cortex-a53-843419"""
...
* commit '4b4c0df54aa54693854fafd0dca1674ef90011fb':
Revert "Revert "Enable linker -fix-cortex-a53-843419""
2015-05-13 16:32:34 +00:00
Elliott Hughes
224806d00e
Turn on _FORTIFY_SOURCE=2 for the host.
...
Bug: http://b/20558757
Change-Id: Ic0c173d25dc6b2fa9c3122a523af5f37bc1b8c55
2015-05-12 21:41:52 -07:00
Andrew Hsieh
75f3c5a849
Merge "Revert "Revert "Enable linker -fix-cortex-a53-843419"""
2015-05-13 01:08:51 +00:00
Andrew Hsieh
0e0259cca6
Revert "Revert "Enable linker -fix-cortex-a53-843419""
...
This reverts commit 32e1689684
.
Now that prebuilts/gcc/darwin-x86/aarch64/aarch64-linux-android-4.9 is also updated
Change-Id: Id95c1c4cc651c434461655e62b8f23afd56b53e4
2015-05-11 06:03:07 +00:00
Dmitriy Ivanov
d189082a1a
am 826673b5
: am 8ace80b3
: Merge "Fix mips build"
...
* commit '826673b5176977d3806df1a8215b3cd70db8a5e2':
Fix mips build
2015-05-06 22:44:31 +00:00
Dan Albert
7f28965c23
am 6a944e5e
: am b9a8aa63
: Merge "Fix prebuilts for target builds with USE_MINGW=1."
...
* commit '6a944e5e0b9dde4aa086d83555adfe09df3f472e':
Fix prebuilts for target builds with USE_MINGW=1.
2015-05-06 22:44:27 +00:00
Chih-Hung Hsieh
0ba68bafa3
Upgrade x86 gcc to 4.9 and disable devirtualization.
...
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 90036610dd
)
2015-05-06 00:24:18 +00:00
Dmitriy Ivanov
392569c12c
Fix mips build
...
Change-Id: Ifbb2df36c173511c118f34cfa39bb01ca7f7d380
2015-05-04 18:10:47 -07:00
Chih-Hung Hsieh
f274888870
Merge "Upgrade x86 gcc to 4.9 and disable devirtualization."
2015-05-04 23:36:51 +00:00
Dan Albert
216ecac61e
Fix prebuilts for target builds with USE_MINGW=1.
...
USE_MINGW=1 mm didn't work in directories that contained target modules
because the build system would use the Windows locations and extensions
when trying to find the host GCC prebuilts. Windows is the target OS,
not the OS we're building from.
Change-Id: Ic994fed15388d0c7d393f71ba28fe7afdc659f5c
2015-05-04 22:44:39 +00:00
Chih-Hung Hsieh
90036610dd
Upgrade x86 gcc to 4.9 and disable devirtualization.
...
Also filter out gcc-only flags -Wno-clobbered and -fno-devirtualize
when compiled with clang/llvm.
BUG: 19872411
Change-Id: I6de57583be04da607f569df65e93531787dbb789
2015-05-04 14:04:58 -07:00
Chris Dearman
ab3a5f490c
Configure synci generation explicitly
...
The default for synci generation is compiler version dependent
Change-Id: I3f94cabd98c45aaa4e5149e8bb050dc47efa61ca
2015-04-30 13:22:16 -07:00
Dmitriy Ivanov
5924f142cc
Revert "Revert "Pack relocations for mips64""
...
This reverts commit 6399dcce59
.
Bug: http://b/20658994
(cherry picked from commit 8387d99ec3
)
2015-04-29 23:11:03 -07:00
Dmitriy Ivanov
8387d99ec3
Revert "Revert "Pack relocations for mips64""
...
This reverts commit 6399dcce59
.
Bug: http://b/20658994
2015-04-29 17:08:54 -07:00
Dmitriy Ivanov
0cabfed78e
Revert "Revert "Pack relocations for mips""
...
This reverts commit d05fd6fc82
.
Bug: http://b/20658994
Change-Id: Iccbd4846b310306ed11b87f4566b8aaadfa63ebb
(cherry picked from commit cb2b3d47ad
)
2015-04-29 15:44:20 -07:00
Dmitriy Ivanov
cb2b3d47ad
Revert "Revert "Pack relocations for mips""
...
This reverts commit d05fd6fc82
.
Bug: http://b/20658994
Change-Id: Iccbd4846b310306ed11b87f4566b8aaadfa63ebb
2015-04-29 15:32:10 -07:00
Dimitry Ivanov
8fb3350f1a
Merge "Revert "Pack relocations for mips"" into mnc-dev
2015-04-29 19:37:46 +00:00
Dimitry Ivanov
d896883bfe
Revert "Pack relocations for mips"
...
This reverts commit 9dc1a7359f
.
Bug: http://b/20658994
Change-Id: Ib10c764a7d06db823ee2fccfa47240e0a639d4bc
(cherry picked from commit d05fd6fc82
)
2015-04-29 12:33:19 -07:00
Dimitry Ivanov
3e037e36d0
Revert "Pack relocations for mips64"
...
This reverts commit 8bd30fe3cb
.
Bug: http://b/20658994
Change-Id: I6c31094559a12b824344802bf3993f91aee79a26
(cherry picked from commit 6399dcce59
)
2015-04-29 12:32:27 -07:00
Dimitry Ivanov
b755009325
Merge "Revert "Pack relocations for mips""
2015-04-29 19:14:17 +00:00
Dimitry Ivanov
dcf8bd8c07
Merge "Revert "Pack relocations for mips64""
2015-04-29 19:03:56 +00:00
Dimitry Ivanov
6399dcce59
Revert "Pack relocations for mips64"
...
This reverts commit 8bd30fe3cb
.
Bug: http://b/20658994
Change-Id: I6c31094559a12b824344802bf3993f91aee79a26
2015-04-29 18:59:05 +00:00
Dimitry Ivanov
d05fd6fc82
Revert "Pack relocations for mips"
...
This reverts commit 9dc1a7359f
.
Bug: http://b/20658994
Change-Id: Ib10c764a7d06db823ee2fccfa47240e0a639d4bc
2015-04-29 18:57:54 +00:00
Nick Kralevich
b126ae9e3a
am c98d6b35
: am 6612d4a0
: am edc3371a
: am f3a6b07b
: Merge "host compiler: enable compiler hardening flags"
...
* commit 'c98d6b35ba7e9381089b1b7c8b47f384e5772a4f':
host compiler: enable compiler hardening flags
2015-04-25 05:15:48 +00:00
Nick Kralevich
100acd1001
host compiler: enable compiler hardening flags
...
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
2015-04-24 21:26:08 -07:00
Dmitriy Ivanov
0be46e11a6
am 80421984
: am aac1b9d9
: am f674a67d
: am 573dfb7c
: Merge "Pack relocations for mips64"
...
* commit '804219841d7f581cf78f3f68e13381b6631513a0':
Pack relocations for mips64
2015-04-25 00:31:30 +00:00
Dmitriy Ivanov
8bd30fe3cb
Pack relocations for mips64
...
Bug: http://b/18051137
Change-Id: I063c5d6cf007658c0efe9cb1d65ed8026b3e7dae
2015-04-24 16:34:09 -07:00
Dmitriy Ivanov
a705b5651d
am 10537b6f
: am 513be561
: am cae46525
: am 691a4379
: Merge "Pack relocations for mips"
...
* commit '10537b6f41342c50fc0c80bd85ff1b126054086f':
Pack relocations for mips
2015-04-24 21:09:38 +00:00
Dmitriy Ivanov
9dc1a7359f
Pack relocations for mips
...
Bug: http://b/18051137
Change-Id: Id5e0adfb55273f23e1c99b4eecb318c6b8d19989
2015-04-24 12:20:02 -07:00
Dmitriy Ivanov
d96e487b9b
am 5754ad7e
: am 5c327ec3
: am 0f7ecd64
: am b1c2727a
: Merge "Pack relocations for x86"
...
* commit '5754ad7ead23fb613f9fe4de2970283d18141ea5':
Pack relocations for x86
2015-04-24 18:28:05 +00:00
Dmitriy Ivanov
1d4804ccd1
Pack relocations for x86
...
Bug: http://b/18051137
Change-Id: I3f316343e9bbd2037a9583d5b6fb41a06be153cd
2015-04-24 10:34:59 -07:00
Dmitriy Ivanov
be55caf288
am 6f2935dc
: am dabf96ab
: am c84b3a78
: am 648f1b66
: Merge "Pack relocation tables for dynamic executables"
...
* commit '6f2935dc1432a38e149498b6efbd43ed9aceb827':
Pack relocation tables for dynamic executables
2015-04-23 23:16:36 +00:00
Dmitriy Ivanov
4c2d1a64fb
Pack relocation tables for dynamic executables
...
Add replocation-packer step for dynmic executables.
Enable it by default for arm and arm64 platforms.
Bug: http://b/18051137
Change-Id: I0c88fd31595bcea62a087f219acb9ecf9c80f2e5
2015-04-23 12:07:16 -07:00
Dimitry Ivanov
bc83d0bb68
am 893ed24d
: am 387a9fee
: am 941d61de
: am 1ff47c7f
: Merge "Revert "Pack relocation tables for all dynamic executables""
...
* commit '893ed24dd7cec9b560fe46862b3635efa327ec65':
Revert "Pack relocation tables for all dynamic executables"
2015-04-23 05:07:11 +00:00
Dimitry Ivanov
1eca10fa9d
Revert "Pack relocation tables for all dynamic executables"
...
This reverts commit e7a1b8a0c6
.
Change-Id: I1a2185e1c68d364941e3b3e525a8c4a7a42e0cc1
2015-04-23 04:22:33 +00:00
Dmitriy Ivanov
943381b7df
am ff084258
: am b7b27621
: am 64119a7f
: am ec6a9773
: Merge "Pack relocation tables for all dynamic executables"
...
* commit 'ff084258ea53c414d724ba87f89c324056def1bd':
Pack relocation tables for all dynamic executables
2015-04-23 03:42:44 +00:00
Dmitriy Ivanov
e7a1b8a0c6
Pack relocation tables for all dynamic executables
...
Bug: http://b/18051137
Change-Id: I277277d5f5eb450ef9b4a23cfec16d75d977eb89
2015-04-22 13:30:43 -07:00
Andrew Hsieh
1849365e7b
am 263e22d4
: am 051f18f0
: am f37e96e2
: Merge "Revert "Enable linker -fix-cortex-a53-843419""
...
* commit '263e22d424a80de023143c4758e1e534c726a07d':
Revert "Enable linker -fix-cortex-a53-843419"
2015-04-14 03:01:10 +00:00
Andrew Hsieh
f37e96e232
Merge "Revert "Enable linker -fix-cortex-a53-843419""
2015-04-13 23:48:28 +00:00
Andrew Hsieh
32e1689684
Revert "Enable linker -fix-cortex-a53-843419"
...
This reverts commit 54b22a5a70
.
Change-Id: I23613490030783fb6da678de5a25f37caebe5f97
2015-04-13 23:39:45 +00:00
Andrew Hsieh
93b8969085
am 00b0f345
: am 45c4c5af
: am 7bd978c2
: Merge "Enable linker -fix-cortex-a53-843419"
...
* commit '00b0f345b62065979dbebb648e4d549953577ac3':
Enable linker -fix-cortex-a53-843419
2015-04-13 03:38:35 +00:00
Andrew Hsieh
7bd978c2b3
Merge "Enable linker -fix-cortex-a53-843419"
2015-04-13 03:06:50 +00:00
Stephen Hines
594dd525e6
am 55acb92d
: am d263924f
: am 69bd465b
: Merge "Don\'t use -Wl,--fix-cortex-a8 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
2015-04-10 16:58:20 +00:00
Stephen Hines
69bd465b6e
Merge "Don't use -Wl,--fix-cortex-a8 for Cortex A7, A9, A15, Krait or Denver"
2015-04-10 16:17:52 +00:00
Ying Wang
aaf9a5b0cc
Remove ancient ranlib workaround on Mac OS X.
...
Apparently we don't need it for Mac OS X 10.7 and above.
Change-Id: I5ee81700c16e8c66b2d5f2b373fd2d523b5ec018
2015-04-09 10:06:33 -07:00