OSDN Git Service
Dimitry Ivanov [Wed, 1 Feb 2017 19:30:39 +0000 (19:30 +0000)]
Do not load second copy of a library into same namespace am:
3bd906146b
am:
dac77f6315
Change-Id: I57655867ee2f48c854ebd69492c4202b3c482e31
Dimitry Ivanov [Wed, 1 Feb 2017 19:28:08 +0000 (19:28 +0000)]
Do not load second copy of a library into same namespace
am:
3bd906146b
Change-Id: I11498855ff95af2af4b0edcc3a5712d957470b55
Dimitry Ivanov [Wed, 1 Feb 2017 16:54:43 +0000 (08:54 -0800)]
Do not load second copy of a library into same namespace
This workaround was introduced in M in order to make sure
that linker loads libraries provided in apk in case a library
with the same name was loaded by the system.
This is no longer a problem starting with Android N because
app is using different namespace and therefore does not see
libraries loaded by the system.
Test: bionic-unit-tests --gtest_filter=dl*:Dl*
Change-Id: I9995258c0f361e8df35420682b84e85a0cb924b4
Elliott Hughes [Wed, 1 Feb 2017 16:21:58 +0000 (16:21 +0000)]
Merge "Remove the global thread list." am:
9b9d4ebc8b
am:
959ef64b41
Change-Id: I84d9a72adaac8baee9e241062c2c974d7dacc61b
Elliott Hughes [Wed, 1 Feb 2017 16:19:27 +0000 (16:19 +0000)]
Merge "Remove the global thread list."
am:
9b9d4ebc8b
Change-Id: I590ffebd5bfa287fdc4c7018e487c7c086f8ae7e
Elliott Hughes [Wed, 1 Feb 2017 16:16:41 +0000 (16:16 +0000)]
Merge "Remove the global thread list."
Greg Hackmann [Wed, 1 Feb 2017 04:45:27 +0000 (04:45 +0000)]
Merge "bionic: move ADF uapi header out of bionic" am:
b88112dcfc
am:
04951b227c
Change-Id: Idd9987f6cf8c1454064d021d3699eaea73170038
Greg Hackmann [Wed, 1 Feb 2017 04:42:54 +0000 (04:42 +0000)]
Merge "bionic: move ADF uapi header out of bionic"
am:
b88112dcfc
Change-Id: I9e8d80152b5b43fbf6a0544de5f4d957785be891
Treehugger Robot [Wed, 1 Feb 2017 04:38:12 +0000 (04:38 +0000)]
Merge "bionic: move ADF uapi header out of bionic"
Evgenii Stepanov [Wed, 1 Feb 2017 01:21:36 +0000 (01:21 +0000)]
Merge "Revert "Fix CFI initialization crash on x86."" am:
9586fe2744
am:
567965435f
Change-Id: I6db0e14856137f28c9234b2ce8203b3432ad146b
Evgenii Stepanov [Wed, 1 Feb 2017 01:19:36 +0000 (01:19 +0000)]
Merge "Revert "Fix CFI initialization crash on x86.""
am:
9586fe2744
Change-Id: Iae5548dea289cd77b406d37ecb13e9123d9f490f
Evgenii Stepanov [Wed, 1 Feb 2017 01:14:48 +0000 (01:14 +0000)]
Merge "Revert "Fix CFI initialization crash on x86.""
Evgenii Stepanov [Wed, 1 Feb 2017 01:10:03 +0000 (17:10 -0800)]
Revert "Fix CFI initialization crash on x86."
Breaks aosp-master/sdk.
This reverts commit
4ccd4317f9301ec9b32aa0d3317a0439b994d7bf.
Evgenii Stepanov [Wed, 1 Feb 2017 00:36:33 +0000 (00:36 +0000)]
Merge "Fix CFI initialization crash on x86." am:
dd76f744e7
am:
291d11c8c8
Change-Id: I3b0b306caac31d16e9d5e2e4cfe8c94750ede95c
Evgenii Stepanov [Wed, 1 Feb 2017 00:34:04 +0000 (00:34 +0000)]
Merge "Fix CFI initialization crash on x86."
am:
dd76f744e7
Change-Id: I66175dd9bc705a64a5ad59edf26d471b4f304ea3
Evgenii Stepanov [Wed, 1 Feb 2017 00:29:57 +0000 (00:29 +0000)]
Merge "Fix CFI initialization crash on x86."
Evgenii Stepanov [Tue, 31 Jan 2017 21:19:30 +0000 (13:19 -0800)]
Fix CFI initialization crash on x86.
Second try.
Bug:
34752378
Test: bionic tests
Change-Id: I0a7453154671918b2e6e72f0bb9074c29ceb0f34
Elliott Hughes [Tue, 31 Jan 2017 18:29:28 +0000 (18:29 +0000)]
Merge "s/NULL/nullptr/ in system properties code." am:
eb35144e58
am:
5f7024d846
Change-Id: I78324168525b0bd4fb676fa794139abc4806624d
Elliott Hughes [Tue, 31 Jan 2017 18:25:30 +0000 (18:25 +0000)]
Merge "s/NULL/nullptr/ in system properties code."
am:
eb35144e58
Change-Id: Ibfa128262eacf89b20f58c6de88b744978e6087d
Treehugger Robot [Tue, 31 Jan 2017 18:19:46 +0000 (18:19 +0000)]
Merge "s/NULL/nullptr/ in system properties code."
Elliott Hughes [Tue, 31 Jan 2017 16:24:43 +0000 (08:24 -0800)]
s/NULL/nullptr/ in system properties code.
gerrit still hasn't sent out the mail asking for this in an earlier code
review...
Bug: http://b/
33926793
Test: builds and boots.
Change-Id: I080de633e50e47f9a052211d47da96b971b16424
Elliott Hughes [Tue, 31 Jan 2017 15:24:54 +0000 (15:24 +0000)]
Merge "clang-format system_properties.cpp." am:
44bea80d31
am:
7048f79b2a
Change-Id: Ic7955005e1b60440338d24eef23f197fb4e19f01
Elliott Hughes [Tue, 31 Jan 2017 15:22:23 +0000 (15:22 +0000)]
Merge "clang-format system_properties.cpp."
am:
44bea80d31
Change-Id: Ib3365fbb65588d6e7f65212a9e764714cc64616b
Treehugger Robot [Tue, 31 Jan 2017 15:20:19 +0000 (15:20 +0000)]
Merge "clang-format system_properties.cpp."
Alex Cheung [Tue, 31 Jan 2017 06:32:25 +0000 (06:32 +0000)]
Merge "Revert "Fix CFI initialization crash on x86."" am:
9750d6b691
am:
083f79000d
Change-Id: I5e9fbcec63ba9172255e74909ae6b739855a6331
Alex Cheung [Tue, 31 Jan 2017 06:29:55 +0000 (06:29 +0000)]
Merge "Revert "Fix CFI initialization crash on x86.""
am:
9750d6b691
Change-Id: I40dde15cb6a5a6748284a0aebce7caa8865c41f1
Alex Cheung [Tue, 31 Jan 2017 06:27:17 +0000 (06:27 +0000)]
Merge "Revert "Fix CFI initialization crash on x86.""
Alex Cheung [Tue, 31 Jan 2017 04:05:00 +0000 (04:05 +0000)]
Revert "Fix CFI initialization crash on x86."
This reverts commit
be46d3871c91902504e5ec4c7f575c86f647aafc.
Reverting due to broken build:
https://android-build.googleplex.com/builds/branch-dashboard/aosp-master?build_id=
3687823
Change-Id: I30968398edd9a094fce878839ba0a002ed487a77
Elliott Hughes [Tue, 31 Jan 2017 01:54:57 +0000 (17:54 -0800)]
clang-format system_properties.cpp.
Asked for on a previous code review.
Bug: http://b/
33926793
Test: builds and boots.
Change-Id: Idf34804896149db5edbddf4ed88396a5df7f708a
Evgenii Stepanov [Tue, 31 Jan 2017 01:06:03 +0000 (01:06 +0000)]
Merge "Fix CFI initialization crash on x86." am:
a5066640cc
am:
e3852f36b9
Change-Id: Ife1de6d8bff3f4df0da501945b37cd3d373b5e88
Evgenii Stepanov [Tue, 31 Jan 2017 01:04:03 +0000 (01:04 +0000)]
Merge "Fix CFI initialization crash on x86."
am:
a5066640cc
Change-Id: Ie0ecb7225f7c392f5229cbfc49b6eb396789e969
Evgenii Stepanov [Tue, 31 Jan 2017 00:58:09 +0000 (00:58 +0000)]
Merge "Fix CFI initialization crash on x86."
Elliott Hughes [Mon, 30 Jan 2017 23:05:54 +0000 (23:05 +0000)]
Merge "glibc ipc64_perm __key compatibility." am:
5dc75c6c4d
am:
d0e08b37b1
Change-Id: I4f0bb0d2e335664024f94b43955b588a3fd4230e
Elliott Hughes [Mon, 30 Jan 2017 23:03:55 +0000 (23:03 +0000)]
Merge "glibc ipc64_perm __key compatibility."
am:
5dc75c6c4d
Change-Id: I781475ecad513babc647115f606e316ad4599863
Treehugger Robot [Mon, 30 Jan 2017 23:01:00 +0000 (23:01 +0000)]
Merge "glibc ipc64_perm __key compatibility."
Evgenii Stepanov [Fri, 27 Jan 2017 21:42:03 +0000 (13:42 -0800)]
Fix CFI initialization crash on x86.
Bug:
34752378
Test: bionic tests
Change-Id: If8e33f76a1a2d83356d818fed506ea624f579860
Sandeep Patil [Mon, 30 Jan 2017 19:25:08 +0000 (19:25 +0000)]
Merge "property_contexts: split into platform and non-platform components" am:
93e272d00a
am:
df39712df5
Change-Id: Ia4dca6d830b93c9fd37941907b7dcf869765fcdd
Sandeep Patil [Mon, 30 Jan 2017 19:25:03 +0000 (19:25 +0000)]
property_contexts: split into platform and non-platform components am:
34f0cfa3a8
am:
dbac5f634c
Change-Id: I493473a003a55b439b2350aec16489841c3dba6c
Sandeep Patil [Mon, 30 Jan 2017 19:21:56 +0000 (19:21 +0000)]
Merge "property_contexts: split into platform and non-platform components"
am:
93e272d00a
Change-Id: Iad3eada49f676597bc3210e1843d6bdd21c8aa8b
Sandeep Patil [Mon, 30 Jan 2017 19:21:22 +0000 (19:21 +0000)]
property_contexts: split into platform and non-platform components
am:
34f0cfa3a8
Change-Id: Ia1bcc896d3901217323a3d1299aada8223eceff5
Sandeep Patil [Mon, 30 Jan 2017 19:16:16 +0000 (19:16 +0000)]
Merge "property_contexts: split into platform and non-platform components"
Elliott Hughes [Sat, 28 Jan 2017 16:51:00 +0000 (16:51 +0000)]
Merge "Remove backwards compatibility for old system properties." am:
0c6f806b1d
am:
0f265255a6
Change-Id: Ia66376e579c4eaa92e177394fb5d442abb465e7f
Elliott Hughes [Sat, 28 Jan 2017 16:48:29 +0000 (16:48 +0000)]
Merge "Remove backwards compatibility for old system properties."
am:
0c6f806b1d
Change-Id: I5da3b1f0de50f2fc78e8fa54facd435837a9ec28
Treehugger Robot [Sat, 28 Jan 2017 16:44:09 +0000 (16:44 +0000)]
Merge "Remove backwards compatibility for old system properties."
Elliott Hughes [Sat, 28 Jan 2017 03:12:32 +0000 (19:12 -0800)]
glibc ipc64_perm __key compatibility.
glibc gives the `struct ipc64_perm` fields `key` and `seq` double-underscore
names. strace refers to the fields by those names, and there's no obvious
reason not to go along with this.
Bug: N/A
Test: built strace 4.15 with a hacked NDK
Change-Id: I8b2b0f75363349d99edaecda50fe897ee0fa0c65
Elliott Hughes [Fri, 27 Jan 2017 00:48:57 +0000 (16:48 -0800)]
Remove backwards compatibility for old system properties.
No-one is directly upgrading from pre-K to O...
Also move more implementation details out of the header file.
Bug: http://b/
33926793
Test: boots
Change-Id: I7a0936acbb1cea8a3b2cd6797ec53ba7e4a050f3
Christopher Ferris [Fri, 27 Jan 2017 21:17:10 +0000 (21:17 +0000)]
Merge "Update to kernel headers v4.9.6." am:
6a9e0c8f15
am:
553293dd96
Change-Id: Id0c472fe933d57418539f5ac091bf2d9e88cc0cd
Christopher Ferris [Fri, 27 Jan 2017 21:15:10 +0000 (21:15 +0000)]
Merge "Update to kernel headers v4.9.6."
am:
6a9e0c8f15
Change-Id: I58e144ccbd4c6174de09b686fdb8d66502024e71
Sandeep Patil [Wed, 28 Dec 2016 01:37:44 +0000 (17:37 -0800)]
property_contexts: split into platform and non-platform components
Bug:
33746484
Bug:
34370523
Test: Successfully boot with original service and property contexts.
Test: Successfully boot with split serivce and property contexts.
Test: Incremental build works on sailfish (reported in b/
34370523)
Test: adb sideload works with aosp updater (reported in b/
34370523)
Change-Id: Idf24856193032a8bc89ec384a72451e578a9d5ac
Signed-off-by: Sandeep Patil <sspatil@google.com>
Treehugger Robot [Fri, 27 Jan 2017 21:11:50 +0000 (21:11 +0000)]
Merge "Update to kernel headers v4.9.6."
Greg Hackmann [Fri, 27 Jan 2017 18:07:36 +0000 (10:07 -0800)]
bionic: move ADF uapi header out of bionic
ADF isn't a candidate for upstreaming and isn't (directly) usable from
unprivileged NDK code, so it makes more sense to keep video/adf.h as a
private header inside libadf, where it'll still be usable by HWC
implementations without shipping in the NDK.
libadf exports its entire include/ directory, so this shouldn't have any
impact on HWC implementations that already link against libadf.
Test: mmm system/core/adf/libadf
Test: /data/nativetest64/adf-unit-tests/adf-unit-tests (on Nexus 9)
Change-Id: I6573f539cfd7fc65433237d0b115b8b7b2728133
Signed-off-by: Greg Hackmann <ghackmann@google.com>
Christopher Ferris [Fri, 27 Jan 2017 18:49:48 +0000 (10:49 -0800)]
Update to kernel headers v4.9.6.
Test: Built arm/arm64/x86/x86_64 targets.
Change-Id: Id4d2711aaa96fe537f3726a0a89f2959e9cca34a
Christopher Ferris [Fri, 27 Jan 2017 17:56:59 +0000 (17:56 +0000)]
Merge "Update to kernel headers v4.9.3." am:
00e388df4e
am:
16875896ac
Change-Id: I154ea1d11d0235270bd4dec2f6eebe0307fdff40
Christopher Ferris [Fri, 27 Jan 2017 17:54:30 +0000 (17:54 +0000)]
Merge "Update to kernel headers v4.9.3."
am:
00e388df4e
Change-Id: I8dd0475aedb2139835d59a60d8360a9d01cf0848
Christopher Ferris [Fri, 27 Jan 2017 17:50:45 +0000 (17:50 +0000)]
Merge "Update to kernel headers v4.9.3."
Pavel Labath [Fri, 27 Jan 2017 14:05:41 +0000 (14:05 +0000)]
Merge "Silence unused variable warning in sys_ptrace_test" am:
15db5d0d29
am:
f0c213da63
Change-Id: I019f6c02b793dc656a47bbb459d7a20efcab536b
Pavel Labath [Fri, 27 Jan 2017 14:03:11 +0000 (14:03 +0000)]
Merge "Silence unused variable warning in sys_ptrace_test"
am:
15db5d0d29
Change-Id: I7f234cb977c1f3b49580d3081d4e5b464cb6e894
Pavel Labath [Fri, 27 Jan 2017 13:59:15 +0000 (13:59 +0000)]
Merge "Silence unused variable warning in sys_ptrace_test"
Pavel Labath [Fri, 27 Jan 2017 13:04:26 +0000 (13:04 +0000)]
Silence unused variable warning in sys_ptrace_test
This fixes the mips build broken by
I7d8a7d79585477d78da1f033c85f8d2cc3b34340.
Change-Id: Ib960bdb51ac81be068f1fdf702aa7c10b183f2a0
Test: lunch mips && cd bionic && mma
Pavel Labath [Fri, 27 Jan 2017 12:45:08 +0000 (12:45 +0000)]
Merge "Add hardware breakpoint ptrace test" am:
3f62787cf9
am:
f464d5b5b2
Change-Id: I95646953d12c53c80fdd7fa34b1bc5fb89030232
Pavel Labath [Fri, 27 Jan 2017 12:42:39 +0000 (12:42 +0000)]
Merge "Add hardware breakpoint ptrace test"
am:
3f62787cf9
Change-Id: I808820a80a3b7c2e02284236a85e04592fa092be
Pavel Labath [Fri, 27 Jan 2017 12:39:51 +0000 (12:39 +0000)]
Merge "Add hardware breakpoint ptrace test"
Pavel Labath [Mon, 23 Jan 2017 15:41:35 +0000 (15:41 +0000)]
Add hardware breakpoint ptrace test
This adds a ptrace test which tests the hardware breakpoint
functionality of the ptrace api.
I've also renamed the test case to sys_ptrace to better match the naming
scheme in the other files. I've ran the tests on angler (32 and 64 bit)
and fugu.
Test: run the test
Change-Id: I7d8a7d79585477d78da1f033c85f8d2cc3b34340
Dimitry Ivanov [Fri, 27 Jan 2017 03:12:51 +0000 (03:12 +0000)]
Merge "Remove dependency on libc.a from the linker" am:
2ca556bb6e
am:
6fcea73028
Change-Id: I09fc09bfb149fd7b169bbc5cab1276b1aa7c8b76
Dimitry Ivanov [Fri, 27 Jan 2017 03:12:41 +0000 (03:12 +0000)]
Merge "Remove bionic-unit-tests-gcc" am:
55aae03a60
am:
a47e3a958b
Change-Id: I35c1389fd3c48a3884a5c0a44c200e8caae10c58
Dimitry Ivanov [Fri, 27 Jan 2017 03:08:09 +0000 (03:08 +0000)]
Merge "Remove dependency on libc.a from the linker"
am:
2ca556bb6e
Change-Id: I59069880a84609efe04033b62dc6ac64b0293757
Treehugger Robot [Fri, 27 Jan 2017 03:03:50 +0000 (03:03 +0000)]
Merge "Remove dependency on libc.a from the linker"
Dimitry Ivanov [Fri, 27 Jan 2017 01:31:33 +0000 (01:31 +0000)]
Merge "Remove bionic-unit-tests-gcc"
am:
55aae03a60
Change-Id: I3c51948df527b0fe6aeec5fb750044e4862c3b9e
Dimitry Ivanov [Fri, 27 Jan 2017 01:28:03 +0000 (01:28 +0000)]
Merge "Remove bionic-unit-tests-gcc"
Dimitry Ivanov [Fri, 27 Jan 2017 00:52:59 +0000 (16:52 -0800)]
Remove dependency on libc.a from the linker
Provide stub for unused but needed symbol __find_icu_symbol
which is not included to libc_nomalloc.a.
Test: mm and boot
Change-Id: I57ca09c990556d1d401e2f4a75bc49b61b4cd85d
Dimitry Ivanov [Thu, 17 Nov 2016 21:01:47 +0000 (13:01 -0800)]
Remove bionic-unit-tests-gcc
Test: mm
Bug:
34747525
Change-Id: Ib17ac3535b6f3358af7098df0602d19c6e318cb7
Max Spector [Thu, 26 Jan 2017 18:50:48 +0000 (18:50 +0000)]
Merge "Adding kuser_helper on note to all arm32 binaries." am:
577a944200
am:
36c6ce26a2
Change-Id: I6af912a1f7e52574be15e64ec099459592dd1beb
Max Spector [Thu, 26 Jan 2017 18:47:43 +0000 (18:47 +0000)]
Merge "Adding kuser_helper on note to all arm32 binaries."
am:
577a944200
Change-Id: I20287f1d8d5909e39df9d64655948045eddeffe8
Max Spector [Thu, 26 Jan 2017 18:43:39 +0000 (18:43 +0000)]
Merge "Adding kuser_helper on note to all arm32 binaries."
Victor Khimenko [Thu, 26 Jan 2017 10:20:41 +0000 (10:20 +0000)]
Merge "Fix bionic-unit-tests in arch with binary translator" am:
3c0363d7fd
am:
cfe98d3195
Change-Id: I8c8346316694a0c5fcc7141c60e20151f69ef0dd
Victor Khimenko [Thu, 26 Jan 2017 10:17:40 +0000 (10:17 +0000)]
Merge "Fix bionic-unit-tests in arch with binary translator"
am:
3c0363d7fd
Change-Id: I8d1e2b359e2048d553d7ee3e3605b317e37ecacc
Victor Khimenko [Thu, 26 Jan 2017 10:11:13 +0000 (10:11 +0000)]
Merge "Fix bionic-unit-tests in arch with binary translator"
Stephen Hines [Thu, 26 Jan 2017 07:24:57 +0000 (07:24 +0000)]
Merge "Don't mark __res_params or android_net_context as packed." am:
0c45c7dc5e
am:
6776efa346
Change-Id: I6b83f36d0e344c9174f7fcdd210ceecbafdd3027
Stephen Hines [Thu, 26 Jan 2017 07:19:19 +0000 (07:19 +0000)]
Merge "Don't mark __res_params or android_net_context as packed."
am:
0c45c7dc5e
Change-Id: I9009bbe594502e890c61c90deee0621662ac1476
Treehugger Robot [Thu, 26 Jan 2017 07:13:16 +0000 (07:13 +0000)]
Merge "Don't mark __res_params or android_net_context as packed."
mspector [Wed, 25 Jan 2017 05:51:51 +0000 (21:51 -0800)]
Adding kuser_helper on note to all arm32 binaries.
A kernel change is going in for 64bit arm to disable kuser_helper vector
pages for 32bit processes. This change adds a special elf note to
all arm32 binaries built with bionic. This note tells the kernel to
load the kuser_helper vector page for the process.
Bug:
33689037
Test: Manual - Phone boots, 32bit binaries have the notes, 64bit
binaries do not.
Change-Id: Ib8366e2a0810092b71381d57dee4bdaa56369a24
Christopher Ferris [Fri, 13 Jan 2017 22:09:31 +0000 (14:09 -0800)]
Update to kernel headers v4.9.3.
Test: Built arm, arm64, x86, x86_64 targets.
Test: Booted on angler, and ran bionic unit tests (32 bit and 64 bit).
Change-Id: I14a8dcbea11b41f83431eabed6590cd25af07b1d
Paul Lawrence [Wed, 25 Jan 2017 22:52:56 +0000 (22:52 +0000)]
Merge "Use trap not kill in seccomp filter" am:
6418f95ca2
am:
b5a151a12d
Change-Id: Icae95f9dfd6f7b4ab7e5422ee8e1b103e9c62b61
Paul Lawrence [Wed, 25 Jan 2017 22:49:56 +0000 (22:49 +0000)]
Merge "Use trap not kill in seccomp filter"
am:
6418f95ca2
Change-Id: If004fbd71c34916c8e445565416f6419097d3062
Paul Lawrence [Wed, 25 Jan 2017 22:46:05 +0000 (22:46 +0000)]
Merge "Use trap not kill in seccomp filter"
Victor Khimenko [Wed, 25 Jan 2017 18:59:16 +0000 (19:59 +0100)]
Fix bionic-unit-tests in arch with binary translator
If binary translator is involved then libc is not place in /system/lib
or /system/lib64. It's placed into /syste/lib/arm, /system/lib/arm64,
etc. FUGU is an example of such an architecture.
Support both cases by picking right path at runtime.
Test: run bionic-unit-tests --gtest_filter=dlfcn.dladdr_libc
Change-Id: I8345c0f6c19376ebe5106f9670fd2addeb9b9080
Victor Khimenko [Wed, 25 Jan 2017 10:11:35 +0000 (10:11 +0000)]
Merge "Fix bionic-unit-tests in some non-standard builds" am:
18c009ca96
am:
dc7ec2bb8a
Change-Id: Iaee419cd20af017ecd6466f2f303e95afdb1071a
Victor Khimenko [Wed, 25 Jan 2017 10:09:04 +0000 (10:09 +0000)]
Merge "Fix bionic-unit-tests in some non-standard builds"
am:
18c009ca96
Change-Id: Idd15fa0633e4f1449cd86d4405e849f4214e3bc8
Victor Khimenko [Wed, 25 Jan 2017 10:05:40 +0000 (10:05 +0000)]
Merge "Fix bionic-unit-tests in some non-standard builds"
Stephen Hines [Wed, 25 Jan 2017 08:39:47 +0000 (00:39 -0800)]
Don't mark __res_params or android_net_context as packed.
Bug: http://b/
31532493
These internal API structures are never actually used anywhere that
would change behavior because it is "packed", so it is safe to remove.
Test: Builds correctly with the latest toolchain.
Change-Id: I5431992d840777605be75ab91dc21158d6d22c26
Dimitry Ivanov [Wed, 25 Jan 2017 03:58:55 +0000 (03:58 +0000)]
Merge changes from topic 'property_service_protocol_v2' am:
3f6d599775
am:
fc7be4575a
Change-Id: Idef9ac8ffbc458064121c43031de1a07a4300f90
Dimitry Ivanov [Wed, 25 Jan 2017 03:58:50 +0000 (03:58 +0000)]
Do not send 0 byte string content. am:
cafd355375
am:
6fd88344a5
Change-Id: If8fd7fac36d145cf6f611cc562ab5b5b345e33d9
Dimitry Ivanov [Wed, 25 Jan 2017 03:58:46 +0000 (03:58 +0000)]
Revert "Revert "Remove limit of system property name length"" am:
16b2a4de14
am:
d91e7766ec
Change-Id: I19be17e5aec71182a9b83e3720e3fc3dd0cf5d0e
Dimitry Ivanov [Wed, 25 Jan 2017 03:56:59 +0000 (03:56 +0000)]
Merge changes from topic 'property_service_protocol_v2'
am:
3f6d599775
Change-Id: Ia0a7f1371743a345dbfbfe6d224caadd74dd6187
Dimitry Ivanov [Wed, 25 Jan 2017 03:56:47 +0000 (03:56 +0000)]
Do not send 0 byte string content.
am:
cafd355375
Change-Id: I8c2cc596f4f5d6e9ecc0de6130be8bdfcb19c1ec
Dimitry Ivanov [Wed, 25 Jan 2017 03:56:42 +0000 (03:56 +0000)]
Revert "Revert "Remove limit of system property name length""
am:
16b2a4de14
Change-Id: I585a55769cdca1d7f9edee479b5ec94d8821b673
Dimitry Ivanov [Wed, 25 Jan 2017 03:53:56 +0000 (03:53 +0000)]
Merge changes from topic 'property_service_protocol_v2'
* changes:
Do not send 0 byte string content.
Revert "Revert "Remove limit of system property name length""
Dimitry Ivanov [Tue, 24 Jan 2017 20:39:33 +0000 (12:39 -0800)]
Do not send 0 byte string content.
Trying to send even 0 bytes to closed socket leads to
broken pipe error. Sometimes property service is just
quick enough and closes the socket between send(valuelen)
and send(value) in the case where valuelen is 0.
Bug: http://b/
34670529
Test: adb reboot 20 times and make sure phone service did not fail
Test: run bionic-unit-tests --gtest_filter=prop*
Change-Id: I96f90ca6fe1790614e7efd3015bffed1ef1e9040
Victor Khimenko [Tue, 24 Jan 2017 21:12:07 +0000 (22:12 +0100)]
Fix bionic-unit-tests in some non-standard builds
The binary bionic-unit-tests is linked with some shared libraries
and these libraries are found in ${ORIGIN}/../bionic-loader-test-libs
directory specified by runpath. This makes it higly unlikely that
anyone would be run these files when ${ORIGIN}/../bionic-loader-test-libs
does not include proper files.
Bug: http://b/
34681268
Test: run bionic-unit-tests --gtest_filter=dl*:Dl*
Change-Id: I52fc31339fdfa232c0fdafa218eadaeaf5551a8d
Evgenii Stepanov [Tue, 24 Jan 2017 21:04:11 +0000 (21:04 +0000)]
Merge "[cfi] Handle large libraries correctly." am:
d8388cd303
am:
7eb9bb3099
Change-Id: I4d5fe54ae8f26fdfc2a0baf6b391575a8be82c5a