Commit graph

28308 commits

Author SHA1 Message Date
Alex Light
7448f3e5dd Mark lib_async_safe_headers as supporting linux_bionic
This target is needed by linux_bionic targets and so should support
it.

Test: ./art/tools/build_linux_bionic.sh com.android.runtime.host
Change-Id: Ib12f1cf1d70e606b0921f507b3e460f5d543017e
2019-02-19 09:47:40 -08:00
vichang
e1c7bac90f Merge "Redirect /system/lib/libicuuc.so regardless of duplication in /system"
am: 54c864052b

Change-Id: Id077e161ed2a1d49c1bc865f67f81820120fdc53
2019-02-19 02:24:11 -08:00
vichang
54c864052b Merge "Redirect /system/lib/libicuuc.so regardless of duplication in /system" 2019-02-19 10:14:31 +00:00
Elliott Hughes
f05dd837cb Add TEST_MAPPING.
Test: treehugger
Change-Id: I28eced257260028553bb0dc02a9d99bcbf266378
2019-02-16 09:06:57 -08:00
Jiyong Park
47db6df7c8 Merge "Fix: symbols/bionic/lib64/libc.so is the wrong variant"
am: a60488109c

Change-Id: Ie286ca39b5815896dcd7d15a3b83871d48517073
2019-02-15 18:10:05 -08:00
Treehugger Robot
a60488109c Merge "Fix: symbols/bionic/lib64/libc.so is the wrong variant" 2019-02-16 01:51:11 +00:00
Elliott Hughes
0d8ce157a9 Merge "Switch linker tests to Android.bp."
am: d102cf62d1

Change-Id: I8ab767a84ac6a9b26fc0e0e29efc76ecd01db961
2019-02-15 17:22:47 -08:00
Elliott Hughes
d102cf62d1 Merge "Switch linker tests to Android.bp." 2019-02-16 01:11:56 +00:00
Elliott Hughes
4f1610d621 Merge "libasync_safe: stop clobbering other folks' identifiers."
am: f84d0a95bd

Change-Id: I17e708264382206d19dcee776905ccb4b9d1c903
2019-02-15 16:21:27 -08:00
Elliott Hughes
f84d0a95bd Merge "libasync_safe: stop clobbering other folks' identifiers." 2019-02-16 00:12:51 +00:00
Yi Kong
f41783fee0 Merge changes Ibce7bd9d,Ieab5af35
am: f60449c21c

Change-Id: If3c331cb786c350419dd213a52d5fddb437b5509
2019-02-15 16:11:43 -08:00
Yi Kong
f60449c21c Merge changes Ibce7bd9d,Ieab5af35
* changes:
  Turn on XOM for libc
  Switch libc to libcrt.builtins
2019-02-15 23:58:10 +00:00
Elliott Hughes
59986fc473 Merge "Remove unused .mk file."
am: f4533e6956

Change-Id: I3aefffbf72b29635d52aa4337e62cbcf4b5d84b1
2019-02-15 15:57:01 -08:00
Treehugger Robot
f4533e6956 Merge "Remove unused .mk file." 2019-02-15 23:42:46 +00:00
Sandeep Patil
761b215dc7 Merge "bionic/malloc_iterate_test: Adjust callback for procinfo::ReadMapFile"
am: cf6cec8489

Change-Id: I3d211f901e85f81608dbfb20fb6152676873625c
2019-02-15 15:09:32 -08:00
Treehugger Robot
cf6cec8489 Merge "bionic/malloc_iterate_test: Adjust callback for procinfo::ReadMapFile" 2019-02-15 23:03:00 +00:00
Elliott Hughes
15a2b7b17b Switch linker tests to Android.bp.
Life is easier if we just keep test code in the same directory as the
stuff it's testing...

Test: tests still build and pass
Change-Id: I9b35d689098bdc28a71d69645b0ca9fdd6ea0108
2019-02-15 14:40:08 -08:00
Elliott Hughes
2ae246d0d1 Remove unused .mk file.
Test: treehugger
Change-Id: I5e560247e466dd2fe0038e787756f5a47461f240
2019-02-15 13:24:09 -08:00
Yi Kong
51b8255cf5 Turn on XOM for libc
Test: bionic-unit-tests
Bug: 122993569
Bug: 123241361
Change-Id: Ibce7bd9dc45c39a27fee33fd0566483dd8427cce
2019-02-15 12:48:26 -08:00
Yi Kong
165b1cf57b Switch libc to libcrt.builtins
With the switch to libcrt.builtins, some symbols no longer becomes
exported. Add dummy references to them to force them to be exported.
This is to maintain backwards binary compatibility with ancient Android
versions.

x86 and x86_64 crashes with libcrt, keep using libgcc for now.

Test: bionic-unit-tests
Bug: 29275768
Bug: 122993569
Change-Id: Ieab5af354e3924af4a03d888b28c6e75090cb613
2019-02-15 12:46:19 -08:00
Pirama Arumuga Nainar
b829c97855 Merge "Clarify reason for native_coverage being off for libdl"
am: a192c50e5a

Change-Id: I4cd3feb50822406838e892bff325586de10b7ccc
2019-02-15 12:10:16 -08:00
Pirama Arumuga Nainar
a192c50e5a Merge "Clarify reason for native_coverage being off for libdl" 2019-02-15 19:52:26 +00:00
Pirama Arumuga Nainar
eeb2ee65f7 Clarify reason for native_coverage being off for libdl
Bug: http://b/124067925

It's off because it doesn't link with any system_shared_libs.

Test: N/A
Change-Id: I293fb9ba8df213f8f6bbec85135a974e5966f0cc
2019-02-15 11:40:40 -08:00
Dan Albert
8ad5d2bfee Merge "Remove removed functions from symbol_ordering."
am: be9b7240c2

Change-Id: I3f2cb80bf00b50e7ebe0ddb956d02e3575dd796d
2019-02-15 00:22:36 -08:00
Treehugger Robot
be9b7240c2 Merge "Remove removed functions from symbol_ordering." 2019-02-15 08:11:50 +00:00
Christopher Ferris
1f74c57cbe Merge "malloc debug: fix LogFreeError error log"
am: 7ae03335fc

Change-Id: Iaec4ab20a6acb898cf575e69ad155f8bc58b5c8e
2019-02-14 23:01:52 -08:00
Christopher Ferris
7ae03335fc Merge "malloc debug: fix LogFreeError error log" 2019-02-15 06:52:07 +00:00
Jiyong Park
88d03200d4 Fix: symbols/bionic/lib64/libc.so is the wrong variant
The new module type bionic_mountpoint wasn't mutated by the sanitizer.
As a result, it has been taking non-sanitized symbol libraries even for
sanitized builds. Fixing the issue by making the module type to
implement the cc.Sanitizeable interface so that it can be mutated by the
sanitizer.

Bug: 124469750
Test: SANITIZE_TARGET=hwaddress m
Inspect Android-<target>.mk and check that LOCAL_SOONG_UNSTRIPPED_BINARY
for libc.mountpoint module is pointing to a hwasan variant of libc.so

Change-Id: I10c863c0dbd361463648a4b7d897a4f88a9c85cb
2019-02-15 12:15:27 +09:00
Pirama Arumuga Nainar
64d3fc90e5 Merge "Disable native_coverage for ld-android and linker"
am: 4788931135

Change-Id: Ib78b2fb266af7687d15d9b0d2d58d2a69245c219
2019-02-14 18:26:31 -08:00
Treehugger Robot
4788931135 Merge "Disable native_coverage for ld-android and linker" 2019-02-15 02:17:45 +00:00
Christopher Ferris
5c9a5e5922 Merge "Avoid heapprofd init when other hooks enabled."
am: 6cf828c310

Change-Id: I60d378400893d01bd1abd5c7a640262dc894aaf9
2019-02-14 17:54:28 -08:00
Christopher Ferris
6cf828c310 Merge "Avoid heapprofd init when other hooks enabled." 2019-02-15 01:43:19 +00:00
Iris Chang
b34415046c malloc debug: fix LogFreeError error log
When free_track option is enabled and malloc debug detects error in
VerifyFreedPointer flow, if freed pointer's usable_size is more than
g_debug->config().fill_on_free_bytes(), the error log is not correct.

The max. bytes printed to error message should be the max bytes to
cmp, not usable size.

Bug: 124420174
Test: build pass and test pass
Change-Id: I41f35ab3330e49e0a6ad276d405bf4f6c3f0ea92
2019-02-14 17:15:03 -08:00
Dan Albert
30a0bf0aec Remove removed functions from symbol_ordering.
Test: treehugger
Bug: None
Change-Id: Id398f8d5b3d8a6f9acc25cf222ba8c963e4a6341
2019-02-14 14:52:41 -08:00
Elliott Hughes
3019d78d4a libasync_safe: stop clobbering other folks' identifiers.
The log priorities and ids are in an NDK header, available to everyone.

Move CHECK into its own header for now. This would be better if it was
more like the <android-base/logging.h> CHECK family, but I don't have an
easy way to do that without lots of copy & paste, so punting for now.

Bug: https://issuetracker.google.com/issues/119713191
Test: boots
Change-Id: I4566be8a0a024fede0e2d257c98b908ec67af2a8
2019-02-14 14:23:13 -08:00
Pirama Arumuga Nainar
fcd35380dd Disable native_coverage for ld-android and linker
Bug: http://b/116873221

The coverage library, which depends on libc, cannot link with libraries
since they opt of libc.

Test: m NATIVE_COVERAGE=true COVERAGE_PATHS=bionic
Change-Id: Iaaca8bc30c8ba59e5d4f7092b1a0fce8e8c14c72
2019-02-14 13:50:55 -08:00
Christopher Ferris
2822856e98 Avoid heapprofd init when other hooks enabled.
All of the heapprofd code assumes that it's the only hook that
has been enabled. Enforce that by disallowing heapprofd from
enabling if malloc debug or malloc hooks have been enabled.

Test: Ran all unit tests (bionic/malloc hooks/malloc debug/perfetto).
Test: Enabled malloc debug ran perfetto integration tests and verified
Test: that an error message goes to the log.
Change-Id: I506fbf1c5b8e4052855531fa0d161f5de06e6c1a
2019-02-14 10:23:58 -08:00
Christopher Ferris
e8baac2891 Merge "Fix hwasan build."
am: 1b82812635

Change-Id: I5350a46560eaa93e12ca10fed17051cd8c0e507c
2019-02-14 00:14:07 -08:00
Treehugger Robot
1b82812635 Merge "Fix hwasan build." 2019-02-14 08:04:46 +00:00
Christopher Ferris
883144719a Fix hwasan build.
Test: hwasan builds properly.
Change-Id: I3c911da08d1925b797423671e3beb72770a934b0
2019-02-13 22:15:28 -08:00
Jiyong Park
6b35a16aea Merge "Symbols files under $(OUT)/symbols/bionic/"
am: 1462d267e2

Change-Id: Id7b290ab02b4f79d890776dba2dc7aea8bf54fba
2019-02-13 21:34:18 -08:00
Treehugger Robot
1462d267e2 Merge "Symbols files under $(OUT)/symbols/bionic/" 2019-02-14 05:27:44 +00:00
Pirama Arumuga Nainar
e514adc1bf Merge "Disable native_coverage for libdl"
am: bd912d2868

Change-Id: I1c8eb23ec509bc4981be4408688265405b5aa945
2019-02-13 16:25:55 -08:00
Elliott Hughes
3272d82928 Merge "Sync with upstream NetBSD."
am: b5c1b12389

Change-Id: Ie102594cac997d017ac1d0eb5c33f600e1194212
2019-02-13 16:24:52 -08:00
Pirama Arumuga Nainar
bd912d2868 Merge "Disable native_coverage for libdl" 2019-02-14 00:05:57 +00:00
Treehugger Robot
b5c1b12389 Merge "Sync with upstream NetBSD." 2019-02-14 00:04:20 +00:00
Yi Kong
ff3426010f Merge "Use no_libcrt property instead of hard coding projects to exclude"
am: 0197b0a92f

Change-Id: I624434a9d7ee5f47d4b33b21d4c7a7b65a35e2d0
2019-02-13 14:58:56 -08:00
Elliott Hughes
4fc93ffa62 Sync with upstream NetBSD.
Bug: http://b/123359356
Test: treehugger
Change-Id: Ide95d7eeb24cc0e22914162be423f8bacfdd3548
2019-02-13 14:17:18 -08:00
Treehugger Robot
0197b0a92f Merge "Use no_libcrt property instead of hard coding projects to exclude" 2019-02-13 21:53:26 +00:00
Christopher Ferris
578f95aeb3 Merge "Refactor malloc common into distinct pieces."
am: c2136b51aa

Change-Id: If13aacb62bff37e9bb68c669eabca5d71a9ab035
2019-02-13 10:54:59 -08:00