OSDN Git Service
Dan Albert [Tue, 28 Apr 2015 21:18:57 +0000 (21:18 +0000)]
Merge "Make asan more closely match clang behavior."
Dan Albert [Tue, 28 Apr 2015 20:23:36 +0000 (13:23 -0700)]
Make asan more closely match clang behavior.
Always link libm with asan. Hasn't been a problem before because ASAN
was only ever used when libc++ was as well, which already links libm.
Pass --no-as-needed for host modules.
These aren't needed for the target builds because the target uses the
shared RTL.
Change-Id: I5d6a3c2dd557b5231be2b7711df6438693753a88
Dan Albert [Tue, 28 Apr 2015 18:32:47 +0000 (18:32 +0000)]
Merge "Fix bad variable names."
Dan Albert [Tue, 28 Apr 2015 18:26:45 +0000 (11:26 -0700)]
Fix bad variable names.
My working tree was still dirty when I verified the original change.
Change-Id: I3e6fa6908b809c016231b398c5d30d8cce3b87ab
Evgenii Stepanov [Mon, 27 Apr 2015 22:46:40 +0000 (22:46 +0000)]
Merge "Fix AddressSanitizer link order and multilib setup."
Evgenii Stepanov [Fri, 24 Apr 2015 23:34:47 +0000 (16:34 -0700)]
Fix AddressSanitizer link order and multilib setup.
ASan runtime library (when using dynamic linking) must be the first
dependency of the main executable to achieve correct symbol
interposition. This matches how the clang driver works.
In multilib setup, ASan-RT name depends on the target arch:
/system/lib/libclang_rt.asan-arm-android.so
/system/lib64/libclang_rt.asan-arm64-android.so
We also set RPATH to /system/lib/asan or /system/lib64/asan
to have a place for ASan-only versions of system libraries.
Change-Id: I5c0cdb89e5e08a1950eb276e406da9f31a6e52dd
Dan Albert [Mon, 27 Apr 2015 19:53:01 +0000 (19:53 +0000)]
Merge "Add LOCAL_SANITIZE_RECOVER."
Dan Albert [Fri, 17 Apr 2015 01:08:44 +0000 (18:08 -0700)]
Add LOCAL_SANITIZE_RECOVER.
This is needed for projects that have known ubsan issues that we can't
fix right away (perhaps because it's an upstream project that we're
diligent about keeping in sync with upsteam).
Also make the normal ubsan use -fno-sanitize-recover=all by default.
Change-Id: I1b0f3309792f32dbd08c18816d7306e76c8d7c30
Elliott Hughes [Sat, 25 Apr 2015 18:04:21 +0000 (18:04 +0000)]
Merge "Fix a trivial comment typo."
Elliott Hughes [Sat, 25 Apr 2015 18:02:40 +0000 (11:02 -0700)]
Fix a trivial comment typo.
Bug: https://code.google.com/p/android/issues/detail?id=170069
Change-Id: Iacd308893561a991971b191d4d10a78ca82753d4
Sami Tolvanen [Sat, 25 Apr 2015 08:00:01 +0000 (08:00 +0000)]
Merge "Check partition hash before resorting to block_image_verify"
Nick Kralevich [Sat, 25 Apr 2015 04:35:46 +0000 (04:35 +0000)]
Merge "host compiler: enable compiler hardening flags"
Nick Kralevich [Sat, 25 Apr 2015 04:26:08 +0000 (21:26 -0700)]
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
Dmitriy Ivanov [Fri, 24 Apr 2015 23:51:28 +0000 (23:51 +0000)]
Merge "Pack relocations for mips64"
Dmitriy Ivanov [Fri, 24 Apr 2015 23:32:38 +0000 (16:32 -0700)]
Pack relocations for mips64
Bug: http://b/
18051137
Change-Id: I063c5d6cf007658c0efe9cb1d65ed8026b3e7dae
Dmitriy Ivanov [Fri, 24 Apr 2015 22:56:08 +0000 (22:56 +0000)]
Merge "Do not pack relocations for prebuilts by default"
Dmitriy Ivanov [Fri, 24 Apr 2015 22:33:14 +0000 (15:33 -0700)]
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
Dmitriy Ivanov [Fri, 24 Apr 2015 19:45:22 +0000 (19:45 +0000)]
Merge "Pack relocations for mips"
Dmitriy Ivanov [Fri, 24 Apr 2015 19:20:02 +0000 (12:20 -0700)]
Pack relocations for mips
Bug: http://b/
18051137
Change-Id: Id5e0adfb55273f23e1c99b4eecb318c6b8d19989
Dmitriy Ivanov [Fri, 24 Apr 2015 17:44:09 +0000 (17:44 +0000)]
Merge "Pack relocations for x86"
Dmitriy Ivanov [Fri, 24 Apr 2015 01:43:05 +0000 (18:43 -0700)]
Pack relocations for x86
Bug: http://b/
18051137
Change-Id: I3f316343e9bbd2037a9583d5b6fb41a06be153cd
Sami Tolvanen [Fri, 24 Apr 2015 10:54:01 +0000 (11:54 +0100)]
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
Dmitriy Ivanov [Fri, 24 Apr 2015 04:48:43 +0000 (04:48 +0000)]
Merge "Disable packed relocations for NDK builds"
Dmitriy Ivanov [Fri, 24 Apr 2015 01:48:52 +0000 (18:48 -0700)]
Disable packed relocations for NDK builds
Bug: http://b/
20537715
Change-Id: I1289a88d5eb694980b026b695cb25edd8ba76ed5
Dmitriy Ivanov [Thu, 23 Apr 2015 22:20:36 +0000 (22:20 +0000)]
Merge "Pack relocation tables for dynamic executables"
Dmitriy Ivanov [Mon, 20 Apr 2015 23:59:05 +0000 (16:59 -0700)]
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
Dimitry Ivanov [Thu, 23 Apr 2015 04:24:46 +0000 (04:24 +0000)]
Merge "Revert "Pack relocation tables for all dynamic executables""
Dimitry Ivanov [Thu, 23 Apr 2015 04:22:33 +0000 (04:22 +0000)]
Revert "Pack relocation tables for all dynamic executables"
This reverts commit
e7a1b8a0c6d5f56e415345a0aceef3afe5ff5eff.
Change-Id: I1a2185e1c68d364941e3b3e525a8c4a7a42e0cc1
Dmitriy Ivanov [Thu, 23 Apr 2015 02:24:44 +0000 (02:24 +0000)]
Merge "Pack relocation tables for all dynamic executables"
Dmitriy Ivanov [Mon, 20 Apr 2015 23:59:05 +0000 (16:59 -0700)]
Pack relocation tables for all dynamic executables
Bug: http://b/
18051137
Change-Id: I277277d5f5eb450ef9b4a23cfec16d75d977eb89
Tao Bao [Wed, 22 Apr 2015 18:26:30 +0000 (18:26 +0000)]
Merge "Add support for full radio option"
dcashman [Wed, 22 Apr 2015 17:02:31 +0000 (17:02 +0000)]
Merge "Add lib dirs to cts distribution."
dcashman [Tue, 21 Apr 2015 18:25:28 +0000 (11:25 -0700)]
Add lib dirs to cts distribution.
Add ability to include dirs to the cts distribtion to enable bundling of shared
libraries on which host-side executables rely.
Bug:
19566396
Change-Id: Id501874244ae98fbfef2aa591885c88dee5b8b02
Tao Bao [Tue, 21 Apr 2015 21:32:35 +0000 (14:32 -0700)]
Add support for full radio option
Occasionally we need to include full radio image in incremental OTAs.
Adding --full_radio option to support that.
It needs matching changes in the releasetools.py in the target_files
zip, which comes from device/<vendor>/<device>/releasetools.py.
Bug:
19994922
Change-Id: Id1fb3a9cdb7e67dd9dbadd8fb6cd5fccd358820e
Dmitriy Ivanov [Mon, 20 Apr 2015 20:18:55 +0000 (20:18 +0000)]
Merge "Remove unsupported *_COMPRESS_MODULE_SYMBOLS"
Dmitriy Ivanov [Mon, 20 Apr 2015 19:06:37 +0000 (12:06 -0700)]
Remove unsupported *_COMPRESS_MODULE_SYMBOLS
Change-Id: Ibb7da2997a0bb5b9f435213c9d3206bc4aad18db
Nick Kralevich [Sat, 18 Apr 2015 00:38:07 +0000 (00:38 +0000)]
Merge "Support LOCAL_PAGE_ALIGN_JNI_SHARED_LIBRARIES for prebuilt APKs"
Nick Kralevich [Fri, 17 Apr 2015 23:53:15 +0000 (16:53 -0700)]
Support LOCAL_PAGE_ALIGN_JNI_SHARED_LIBRARIES for prebuilt APKs
If a prebuilt APK contains shared libraries and the flag
LOCAL_PAGE_ALIGN_JNI_SHARED_LIBRARIES := true is set, then
uncompress any shared libraries stored within the APK.
This allows processes to load the shared library directly from
the APK.
Bug:
20247329
Bug:
8076853
Bug:
1162500
Change-Id: Iac4db32457d9ce31eb7256410023819b44fda0a6
Dan Albert [Fri, 17 Apr 2015 19:33:01 +0000 (19:33 +0000)]
Merge "Add support for a partial ubsan build."
Dmitriy Ivanov [Fri, 17 Apr 2015 18:50:13 +0000 (18:50 +0000)]
Merge "Remove LOCAL_JNI_SHARED_LIBRARIES_ZIP_OPTIONS"
Sami Tolvanen [Fri, 17 Apr 2015 18:43:51 +0000 (18:43 +0000)]
Merge "Calculate max_stashed_blocks correctly for block OTA v3"
Dmitriy Ivanov [Fri, 17 Apr 2015 18:00:15 +0000 (11:00 -0700)]
Remove LOCAL_JNI_SHARED_LIBRARIES_ZIP_OPTIONS
Use LOCAL_PAGE_ALIGN_JNI_SHARED_LIBRARIES instead.
Change-Id: Id30529fbc1652d066e0008813352848b5e404ab9
Dan Albert [Fri, 17 Apr 2015 01:07:07 +0000 (18:07 -0700)]
Add support for a partial ubsan build.
Some of the ubsan checks expose a few pathological performance cases
in clang, and thus aren't suited to be used in SANITIZE_HOST.
This mode is also supported on the target despite not having the
target runtime libraries for ubsan by generating traps.
Change-Id: I0b0f0a08ca84d72e44e2174a66726b1c5e5cad7e
Dan Albert [Fri, 17 Apr 2015 18:33:40 +0000 (18:33 +0000)]
Merge "Fix misuse of my_sanitize_host."
Dan Albert [Fri, 17 Apr 2015 18:33:23 +0000 (18:33 +0000)]
Merge "Make use of sanitizers without clang an error."
Dan Albert [Fri, 17 Apr 2015 18:04:06 +0000 (11:04 -0700)]
Fix misuse of my_sanitize_host.
Ying pointed out in https://android-review.googlesource.com/#/c/147290
that my_sanitize_host would be read as some garbage value for target
builds. Move the configuration later and don't use the local at all.
Change-Id: Id8a095821d000a184e72f950b9481597073a7044
Dan Albert [Fri, 17 Apr 2015 16:48:33 +0000 (09:48 -0700)]
Make use of sanitizers without clang an error.
Previously using a sanitizer would imply clang. It should be an error
instead so it's more obvious.
Change-Id: I67c949bfda3718a0d19da7e358b5fde447fce334
Dan Albert [Fri, 17 Apr 2015 16:47:00 +0000 (16:47 +0000)]
Merge "Clean up sanitizer configuration."
Dan Albert [Thu, 16 Apr 2015 23:21:02 +0000 (16:21 -0700)]
Clean up sanitizer configuration.
* Refactor a few pieces to avoid deeply nested conditionals.
* LOCAL_SANITIZE := never replaces LOCAL_ADDRESS_SANITIZER := false.
Change-Id: I68bb8c5edda6ecd40179c5ba9f18d06e96aaa260
Sami Tolvanen [Fri, 17 Apr 2015 15:28:08 +0000 (16:28 +0100)]
Calculate max_stashed_blocks correctly for block OTA v3
The updater automatically stashes overlapping source blocks to
make it possible to resume if the command performing the update
is interrupted. However, blockimgdiff.py does not take this into
account and therefore, max_stashed_blocks indicates only the
number of explicitly stashed blocks. Change blockimgdiff.py to
correctly calculate the maximum used stash space, including any
automatically stashed blocks.
Bug:
20309033
Change-Id: Ibf5cb1abc38c54e60a6ad3ce4cbce43556b08ac2
Lajos Molnar [Fri, 17 Apr 2015 04:58:21 +0000 (04:58 +0000)]
Merge "core_base.mk: switch to new H264 and MPEG2 software codecs"
Lajos Molnar [Wed, 15 Apr 2015 23:14:39 +0000 (16:14 -0700)]
core_base.mk: switch to new H264 and MPEG2 software codecs
Change-Id: I3078a4ef6e73e95edcdd16b087ac61ae56c4b812
Glenn Kasten [Thu, 16 Apr 2015 23:12:45 +0000 (23:12 +0000)]
Merge "Fix bookmark title"
Glenn Kasten [Thu, 16 Apr 2015 18:56:22 +0000 (11:56 -0700)]
Fix bookmark title
Bug:
20299601
Change-Id: Ie57daf7b378cf370e34ff282d97fd36f2d74031a
Mark Salyzyn [Thu, 16 Apr 2015 17:05:08 +0000 (17:05 +0000)]
Merge "build: fs_config_generate must open file in binary mode"
Lajos Molnar [Thu, 16 Apr 2015 15:57:01 +0000 (15:57 +0000)]
Merge "Revert "core_base.mk: switch to new H264 and MPEG2 software codecs""
Lajos Molnar [Thu, 16 Apr 2015 15:49:08 +0000 (15:49 +0000)]
Revert "core_base.mk: switch to new H264 and MPEG2 software codecs"
clang builds fail on the dependent libraries
This reverts commit
c628500ca5cfd46152e238e9dc24217a3d08b906.
Change-Id: Ibd4cdce82b890bd3cb9d03a1a1bc0e4fc0e22ee8
Mark Salyzyn [Thu, 16 Apr 2015 15:42:19 +0000 (08:42 -0700)]
build: fs_config_generate must open file in binary mode
Bug:
19908228
Change-Id: I2361b8af90b3729deb438e6a7a7179de12680b65
Lajos Molnar [Thu, 16 Apr 2015 15:02:01 +0000 (15:02 +0000)]
Merge "core_base.mk: switch to new H264 and MPEG2 software codecs"
Mark Salyzyn [Wed, 15 Apr 2015 23:50:43 +0000 (23:50 +0000)]
Merge "fs_config: Add fs_config_generate"
Lajos Molnar [Wed, 15 Apr 2015 23:14:39 +0000 (16:14 -0700)]
core_base.mk: switch to new H264 and MPEG2 software codecs
Change-Id: I86777e5efc7dbb138e9348a4ec7271ff047d328f
Mark Salyzyn [Wed, 15 Apr 2015 22:22:42 +0000 (22:22 +0000)]
Merge "fs_config: use libcutils and libselinux shared libraries"
Dan Albert [Wed, 15 Apr 2015 22:06:09 +0000 (22:06 +0000)]
Merge "Add support for ubsan."
Mark Salyzyn [Wed, 1 Apr 2015 21:41:29 +0000 (14:41 -0700)]
fs_config: Add fs_config_generate
fs_config_generate_$(TARGET_DEVICE) is built based off the content
of $(TARGET_ANDROID_FILESYSTEM_CONFIG_H). We also add the rules
fs_config_dirs and fs_config_file to utilize this command
for target contents:
fs_config_generate_$(TARGET_DEVICE) -D -o system/etc/fs_config_dir
fs_config_generate_$(TARGET_DEVICE) -F -o system/etc/fs_config_file
In order to use this feature, one must have the fs_config_dirs and
fs_config_files in the $(PRODUCT_PACKAGES) list defined in the
device make files in $(TARGET_DEVICE_DIR). And either an
android_filesystem_config.h file in that directory, or define a
path in TARGET_ANDROID_FILESYSTEM_CONFIG_H to point to one.
Bug:
19908228
Change-Id: Iee1543d99169f874e0915ae07962a7750ecb6342
Mark Salyzyn [Wed, 15 Apr 2015 19:53:39 +0000 (12:53 -0700)]
fs_config: use libcutils and libselinux shared libraries
- move to libcutils.so and libselinux.so as shared now that
they are in DISTTOOL.
- liblog dependency is part of libcutils, and need not be
called out explicitly now. liblog is in DISTTOOL.
- libcutils fs_config has the right to add Android logging
Bug:
19908228
Change-Id: Iaa60ad624b42d83653840ac3c77bfa03ad8674aa
Kenny Root [Wed, 15 Apr 2015 19:58:20 +0000 (19:58 +0000)]
Merge "Move package signing after file stripping"
Kenny Root [Wed, 15 Apr 2015 19:09:32 +0000 (12:09 -0700)]
Move package signing after file stripping
For dex preopt and JNI library extraction, we should remove the
classes.dex and .so files before we sign the APK so that there
isn't an entry in the manifest.
Prebuilt APKs which are pre-signed will simply not have the files
removed. This may cause some system.img bloat, but signature checks make
this necessary.
Bug:
20247329
Change-Id: I4742d1aa3aa64ab5aea2264304cb8c0bea24f784
Mark Salyzyn [Wed, 15 Apr 2015 14:45:04 +0000 (14:45 +0000)]
Merge "disttools: add liblog, libcutils and libselinux shared libraries"
Dan Albert [Tue, 14 Apr 2015 23:17:39 +0000 (23:17 +0000)]
Merge "Don't use libunwindbacktrace for non-ARM."
Mark Salyzyn [Mon, 13 Apr 2015 16:01:24 +0000 (09:01 -0700)]
disttools: add liblog, libcutils and libselinux shared libraries
Bug:
19908228
Change-Id: I48450a9fb917408cb3bc0e41d70c0593acd2b884
Dan Albert [Tue, 14 Apr 2015 22:04:55 +0000 (22:04 +0000)]
Merge "Use libcompiler_rt-extras on the host too."
Dan Albert [Tue, 14 Apr 2015 21:42:45 +0000 (14:42 -0700)]
Don't use libunwindbacktrace for non-ARM.
After fixing the link order here, it seems libunwindbacktrace no
longer works for exception unwinding, but libgcc now does.
Change-Id: Ice79af4b8f234ed6a053ee818b6dec3aa9706c8a
Andrew Hsieh [Mon, 13 Apr 2015 23:48:28 +0000 (23:48 +0000)]
Merge "Revert "Enable linker -fix-cortex-a53-843419""
Andrew Hsieh [Mon, 13 Apr 2015 23:39:45 +0000 (23:39 +0000)]
Revert "Enable linker -fix-cortex-a53-843419"
This reverts commit
54b22a5a706f6556cda6ef3de13b9b0bdc22e989.
Change-Id: I23613490030783fb6da678de5a25f37caebe5f97
Ying Wang [Mon, 13 Apr 2015 22:07:40 +0000 (22:07 +0000)]
Merge "Add host tool fastboot to every build."
Ying Wang [Mon, 13 Apr 2015 21:49:19 +0000 (14:49 -0700)]
Add host tool fastboot to every build.
Some tools expect fastboot to be present even in user builds.
Change-Id: I4b6ee458eb2feb0dc7a77ec33a04219c5f4adc0d
David Srbecky [Mon, 13 Apr 2015 20:34:49 +0000 (20:34 +0000)]
Merge "Add --include-cfi compiler option."
David Srbecky [Mon, 13 Apr 2015 18:50:51 +0000 (19:50 +0100)]
Add --include-cfi compiler option.
Decouple generation of CFI from the rest of debug symbols.
This makes it possible to generate oat with CFI but without
the rest of debug symbols.
This is in line with intention of the .eh_frame section.
The section does not have the .debug_ prefix because it
is considered somewhat different to the rest of debug symbols.
Change-Id: I32816ecd4f30ac4e0dc69d69a4993e349c737f96
Andrew Hsieh [Mon, 13 Apr 2015 03:06:48 +0000 (03:06 +0000)]
Merge "Enable linker -fix-cortex-a53-843419"
Pirama Arumuga Nainar [Fri, 10 Apr 2015 21:22:52 +0000 (21:22 +0000)]
Merge "Use -Wno-format-pedantic to disable overly aggressive format string warning."
Stephen Hines [Fri, 10 Apr 2015 16:17:52 +0000 (16:17 +0000)]
Merge "Don't use -Wl,--fix-cortex-a8 for Cortex A7, A9, A15, Krait or Denver"
Stephen Hines [Fri, 10 Apr 2015 16:06:12 +0000 (09:06 -0700)]
Use -Wno-format-pedantic to disable overly aggressive format string warning.
Bug:
20148343
The latest clang warns on "%p" being used with non-void pointer types, which
would require a great deal of cleanup in several sub-projects.
Change-Id: I4175d5cf8709504455067c906a2eb8ccc8e25432
Tao Bao [Fri, 10 Apr 2015 02:04:35 +0000 (02:04 +0000)]
Merge "Dump fingerprints into recovery log"
Tao Bao [Wed, 8 Apr 2015 22:30:27 +0000 (15:30 -0700)]
Dump fingerprints into recovery log
No more guessing. We should have the info for OTA issues diagnosis.
Change-Id: I0ce919434444ab16a38cc7af818e64785509b0fb
Dan Albert [Thu, 9 Apr 2015 21:41:06 +0000 (14:41 -0700)]
Use libcompiler_rt-extras on the host too.
Clang will sometimes generate this call (dex2oat with ubsan is one
known case), and it doesn't exist in libgcc.
Change-Id: I2eb68e2a326eb0407dca03b5870077eeebca1c0a
Colin Cross [Thu, 9 Apr 2015 20:47:15 +0000 (20:47 +0000)]
Merge "Change the default multilib for host libraries to "both""
Ying Wang [Thu, 9 Apr 2015 17:07:43 +0000 (17:07 +0000)]
Merge "Remove ancient ranlib workaround on Mac OS X."
Ying Wang [Thu, 9 Apr 2015 16:22:36 +0000 (09:22 -0700)]
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
Andrew Hsieh [Thu, 9 Apr 2015 04:37:36 +0000 (12:37 +0800)]
Enable linker -fix-cortex-a53-843419
Change-Id: Icb8a4ce4d5688847cfe536eba2139cdf7f6406f3
Tao Bao [Wed, 8 Apr 2015 23:55:28 +0000 (23:55 +0000)]
Merge "Fix the font size selection for recovery mode"
Ying Wang [Wed, 8 Apr 2015 23:40:34 +0000 (23:40 +0000)]
Merge "Remove unnecessary confusing use of $(intermediate)."
Ying Wang [Wed, 8 Apr 2015 23:37:34 +0000 (16:37 -0700)]
Remove unnecessary confusing use of $(intermediate).
Change-Id: I0e73c3c1bf94540419e1fd227a3096da148e2459
Dan Albert [Fri, 12 Dec 2014 02:56:26 +0000 (18:56 -0800)]
Add support for ubsan.
Rather than adding LOCAL_UB_SANITIZER, LOCAL_THREAD_SANITIZER, etc for
each new sanitizer, deprecate LOCAL_ADDRESS_SANITIZER in favor of
LOCAL_SANITZE that mirrors the behavior of -fsanitize=<sanitizers>.
For example, the following will use both asan and ubsan:
LOCAL_SANITIZE := address undefined
We'll leave LOCAL_ADDRESS_SANITIZER around for compatibility until we
can clean up the tree.
Change-Id: I8a62315129d4753f8e992584ca6db1e5dfdd4d2a
Nick Kralevich [Wed, 8 Apr 2015 22:50:03 +0000 (22:50 +0000)]
Merge "AndroidConfig.h: ensure HAVE_MALLOC_H always has a value."
Tao Bao [Wed, 8 Apr 2015 21:14:43 +0000 (14:14 -0700)]
Fix the font size selection for recovery mode
shamu has a 560dpi density, which is between xxhdpi and xxxhdpi. It
deserves the large font (18x32), otherwise it falls back to use the
small one and makes it mostly unreadable under recovery mode. Amend
the list to include 560dpi and 400dpi that are higher than xhdpi.
Ideally we should map string formats back to numbers for easy
comparison (and to handle any high but odd density values).
Change-Id: Ie08d9ce5e1c8850ff30a79bcbfd1b89e971b7e07
Ying Wang [Wed, 8 Apr 2015 20:53:45 +0000 (20:53 +0000)]
Merge "Better way to package up the otatools-package."
Ying Wang [Wed, 8 Apr 2015 19:24:37 +0000 (12:24 -0700)]
Better way to package up the otatools-package.
With this, you can easily add more executables, jars or shared libraries
to the package. Also now it automatically takes care of
32-bit-v.s.-64-bit library issue.
Change-Id: I5afe00fadc978d0da229b192eca1a4b1c149764e
Nick Kralevich [Wed, 8 Apr 2015 19:21:54 +0000 (12:21 -0700)]
AndroidConfig.h: ensure HAVE_MALLOC_H always has a value.
Some programs (cough sqlite cough) do an improper check to see if
HAVE_MALLOC_H is defined. Instead of defining it with no value,
define it with a value so those checks pass.
Needed for bug:
20099586
Change-Id: I4c293b2c1b5f4caad85ffc1fc34ac385bab23f5c
Colin Cross [Tue, 7 Apr 2015 22:11:37 +0000 (15:11 -0700)]
Change the default multilib for host libraries to "both"
Change host library builds to build for both architectures to
match device builds, removing the need for LOCAL_MULTILIB := both
in all the art library makefiles.
Change-Id: I2689f67c66f5055f93941f40b3e825127f693eca
Mark Salyzyn [Tue, 7 Apr 2015 16:40:05 +0000 (16:40 +0000)]
Merge changes I75d472ed,I6d681071
* changes:
fs_get_stats: add logging
fs_config: add logging