Commit graph

21963 commits

Author SHA1 Message Date
Chris Banes
8f168d1b98 Add design support library docs
BUG: 20524332
Change-Id: I471ab17a2a5ccc43f4ef0fa04b7c2e9077d56361
2015-04-28 12:01:49 +01:00
Ryosuke Matsuuchi
02ff9f36d2 am 64879ead: am 90ac39d2: Merge "doc: Add Korean version of DAC/distribute/ page." into lmp-docs
* commit '64879ead4514463a4efc7dcd00c4339d14136d11':
2015-04-27 07:24:27 +00:00
Dirk Dougherty
2b540ab581 am 1bd563a8: am 42321423: Merge "Doc change: increment metadata for updated Distribute landing page content." into lmp-docs
* commit '1bd563a8ab4adb1df9b36e07739804453bc37d0c':
2015-04-27 07:24:25 +00:00
Ryosuke Matsuuchi
64879ead45 am 90ac39d2: Merge "doc: Add Korean version of DAC/distribute/ page." into lmp-docs
* commit '90ac39d2b56171b92f8d136fb8e35a63f8b70ff1':
  doc: Add Korean version of DAC/distribute/ page.
2015-04-26 19:15:27 +00:00
Dirk Dougherty
1bd563a8ab am 42321423: Merge "Doc change: increment metadata for updated Distribute landing page content." into lmp-docs
* commit '4232142313a582939d80209a1449f3e4a08f6701':
  Doc change: increment metadata for updated Distribute landing page content.
2015-04-26 19:15:15 +00:00
Elliott Hughes
6e40faa241 am 44984951: am 162e1906: am b271669a: Merge "Fix a trivial comment typo."
* commit '449849513b995021e326b3b1a500139cea712ba8':
  Fix a trivial comment typo.
2015-04-25 18:31:57 +00:00
Elliott Hughes
449849513b am 162e1906: am b271669a: Merge "Fix a trivial comment typo."
* commit '162e19061c7fcdf9e212a561f75427cf1126ea67':
  Fix a trivial comment typo.
2015-04-25 18:23:50 +00:00
Elliott Hughes
162e19061c am b271669a: Merge "Fix a trivial comment typo."
* commit 'b271669a0c6dd4287ed1631acecd94c3f443bc8d':
  Fix a trivial comment typo.
2015-04-25 18:10:58 +00:00
Elliott Hughes
b271669a0c Merge "Fix a trivial comment typo." 2015-04-25 18:04:21 +00:00
Elliott Hughes
ae1d4b0d18 Fix a trivial comment typo.
Bug: https://code.google.com/p/android/issues/detail?id=170069
Change-Id: Iacd308893561a991971b191d4d10a78ca82753d4
2015-04-25 11:02:40 -07:00
Sami Tolvanen
045d817cce am 497b74d5: am d21d1d27: am 00e1f003: Merge "Check partition hash before resorting to block_image_verify"
* commit '497b74d5a28d9471566159535038e454ffa15857':
  Check partition hash before resorting to block_image_verify
2015-04-25 09:48:19 +00:00
Sami Tolvanen
497b74d5a2 am d21d1d27: am 00e1f003: Merge "Check partition hash before resorting to block_image_verify"
* commit 'd21d1d273b83e701667beeabe0c76fd6888e15fc':
  Check partition hash before resorting to block_image_verify
2015-04-25 09:32:33 +00:00
Sami Tolvanen
d21d1d273b am 00e1f003: Merge "Check partition hash before resorting to block_image_verify"
* commit '00e1f0033eede8f23ff72097c98b7fd70a4e349d':
  Check partition hash before resorting to block_image_verify
2015-04-25 08:07:04 +00:00
Sami Tolvanen
00e1f0033e Merge "Check partition hash before resorting to block_image_verify" 2015-04-25 08:00:03 +00:00
Nick Kralevich
c98d6b35ba am 6612d4a0: am edc3371a: am f3a6b07b: Merge "host compiler: enable compiler hardening flags"
* commit '6612d4a0888bce32ff987e9897dede9829b5a822':
  host compiler: enable compiler hardening flags
2015-04-25 05:04:39 +00:00
Nick Kralevich
6612d4a088 am edc3371a: am f3a6b07b: Merge "host compiler: enable compiler hardening flags"
* commit 'edc3371aeaf0f963d95b4d8bfb0e35b8b17ee648':
  host compiler: enable compiler hardening flags
2015-04-25 04:54:12 +00:00
Nick Kralevich
edc3371aea am f3a6b07b: Merge "host compiler: enable compiler hardening flags"
* commit 'f3a6b07b80a32b822f63cb1d34de64e8395484a8':
  host compiler: enable compiler hardening flags
2015-04-25 04:44:34 +00:00
Nick Kralevich
f3a6b07b80 Merge "host compiler: enable compiler hardening flags" 2015-04-25 04:35:46 +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
804219841d am aac1b9d9: am f674a67d: am 573dfb7c: Merge "Pack relocations for mips64"
* commit 'aac1b9d9bfc82aa739c7f38c82538ac73ea1040f':
  Pack relocations for mips64
2015-04-25 00:20:48 +00:00
Dmitriy Ivanov
aac1b9d9bf am f674a67d: am 573dfb7c: Merge "Pack relocations for mips64"
* commit 'f674a67d6ef3d446dd726ce9600bd905815506b6':
  Pack relocations for mips64
2015-04-25 00:09:51 +00:00
Dmitriy Ivanov
f674a67d6e am 573dfb7c: Merge "Pack relocations for mips64"
* commit '573dfb7cb8f768452744ddb781cc65412ed1a618':
  Pack relocations for mips64
2015-04-24 23:59:03 +00:00
Dmitriy Ivanov
573dfb7cb8 Merge "Pack relocations for mips64" 2015-04-24 23:52:40 +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
7347196acb am df7afb47: am 3b023915: am 4fa4e4be: Merge "Do not pack relocations for prebuilts by default"
* commit 'df7afb47d8d69f53316218dd4b0510aa8201ce7c':
  Do not pack relocations for prebuilts by default
2015-04-24 23:26:31 +00:00
Dmitriy Ivanov
df7afb47d8 am 3b023915: am 4fa4e4be: Merge "Do not pack relocations for prebuilts by default"
* commit '3b023915e8374341c6a69cd40b0811e10b3cb1b5':
  Do not pack relocations for prebuilts by default
2015-04-24 23:14:00 +00:00
Dmitriy Ivanov
3b023915e8 am 4fa4e4be: Merge "Do not pack relocations for prebuilts by default"
* commit '4fa4e4befd5bc88ab37d7c7b20d3a67d351a1925':
  Do not pack relocations for prebuilts by default
2015-04-24 23:04:46 +00:00
Dmitriy Ivanov
4fa4e4befd Merge "Do not pack relocations for prebuilts by default" 2015-04-24 22:56:08 +00:00
Dmitriy Ivanov
64762c3027 Do not pack relocations for prebuilts by default
Do not pack relocations for prebuilds unless
 LOCAL_PACK_MODULE_RELOCATIONS is true

Bug: http://b/20537715
Bug: http://b/18051137
Change-Id: Iddef3b09741da6ae10d73c98103b868cc7695d38
2015-04-24 15:33:14 -07:00
Dmitriy Ivanov
10537b6f41 am 513be561: am cae46525: am 691a4379: Merge "Pack relocations for mips"
* commit '513be561e9eca26bd73a0a6c8c2764b20430d60f':
  Pack relocations for mips
2015-04-24 20:12:37 +00:00
Dmitriy Ivanov
513be561e9 am cae46525: am 691a4379: Merge "Pack relocations for mips"
* commit 'cae4652514c220d1b8d9fbbdca1204bc6cb25954':
  Pack relocations for mips
2015-04-24 20:05:03 +00:00
Dmitriy Ivanov
cae4652514 am 691a4379: Merge "Pack relocations for mips"
* commit '691a4379c3386e39fc362d632acca5276060c23a':
  Pack relocations for mips
2015-04-24 19:55:39 +00:00
Dmitriy Ivanov
691a4379c3 Merge "Pack relocations for mips" 2015-04-24 19:45:22 +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
5754ad7ead am 5c327ec3: am 0f7ecd64: am b1c2727a: Merge "Pack relocations for x86"
* commit '5c327ec39cc83f1f87f012abb29a9b13a0be02b7':
  Pack relocations for x86
2015-04-24 18:16:35 +00:00
Dmitriy Ivanov
5c327ec39c am 0f7ecd64: am b1c2727a: Merge "Pack relocations for x86"
* commit '0f7ecd648bd5aa7f2798615559eb2cfd72e5d918':
  Pack relocations for x86
2015-04-24 18:07:03 +00:00
Dmitriy Ivanov
0f7ecd648b am b1c2727a: Merge "Pack relocations for x86"
* commit 'b1c2727aecfbd769bc002e1feeea0f6b745c9795':
  Pack relocations for x86
2015-04-24 17:54:11 +00:00
Dmitriy Ivanov
b1c2727aec Merge "Pack relocations for x86" 2015-04-24 17:44:09 +00:00
Dmitriy Ivanov
1d4804ccd1 Pack relocations for x86
Bug: http://b/18051137
Change-Id: I3f316343e9bbd2037a9583d5b6fb41a06be153cd
2015-04-24 10:34:59 -07:00
Sami Tolvanen
e09d096ed6 Check partition hash before resorting to block_image_verify
It's not necessary to call block_image_verify for the most common
case where we attempt an update for the first time and the target
partition has expected contents. It is sufficient to confirm that
the target partition is intact.

Computing a hash is much faster than simulating the update, which
means this change should make the update speed for v3 much closer
to v2 for the common case. If the update was interrupted, this is
going to make resuming somewhat slower, of course. Hopefully this
should be rather rare.

Bug: 20309033
Change-Id: I04792f3681bf2cd5d9a4e1c41eb883c7f26c6f58
2015-04-24 10:56:59 +00:00
Dmitriy Ivanov
6a2b812b8c am cda3d433: am eacc8a05: am 529943c7: Merge "Disable packed relocations for NDK builds"
* commit 'cda3d43345a43059065b538b63228007a2da62fc':
  Disable packed relocations for NDK builds
2015-04-24 05:19:24 +00:00
Dmitriy Ivanov
cda3d43345 am eacc8a05: am 529943c7: Merge "Disable packed relocations for NDK builds"
* commit 'eacc8a052f30fc78a9b593a8b7bd4f0f8f5eb7d3':
  Disable packed relocations for NDK builds
2015-04-24 05:10:51 +00:00
Dmitriy Ivanov
eacc8a052f am 529943c7: Merge "Disable packed relocations for NDK builds"
* commit '529943c7234a20de4eeb489df9f1c896a09b345f':
  Disable packed relocations for NDK builds
2015-04-24 04:59:15 +00:00
Dmitriy Ivanov
529943c723 Merge "Disable packed relocations for NDK builds" 2015-04-24 04:48:44 +00:00
Dmitriy Ivanov
3b51f20be9 Disable packed relocations for NDK builds
Bug: http://b/20537715
Change-Id: I1289a88d5eb694980b026b695cb25edd8ba76ed5
2015-04-23 18:55:23 -07:00
Dmitriy Ivanov
6f2935dc14 am dabf96ab: am c84b3a78: am 648f1b66: Merge "Pack relocation tables for dynamic executables"
* commit 'dabf96ab0a0761539a5d01043d9a2f5b261c80a0':
  Pack relocation tables for dynamic executables
2015-04-23 22:46:33 +00:00
Dmitriy Ivanov
dabf96ab0a am c84b3a78: am 648f1b66: Merge "Pack relocation tables for dynamic executables"
* commit 'c84b3a781c0065cba994e8cdd49b6bdb51e93399':
  Pack relocation tables for dynamic executables
2015-04-23 22:35:01 +00:00
Dmitriy Ivanov
c84b3a781c am 648f1b66: Merge "Pack relocation tables for dynamic executables"
* commit '648f1b66b4a6532383d5382148d586d354026305':
  Pack relocation tables for dynamic executables
2015-04-23 22:28:49 +00:00
Dmitriy Ivanov
648f1b66b4 Merge "Pack relocation tables for dynamic executables" 2015-04-23 22:20:37 +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