OSDN Git Service
Christopher Ferris [Tue, 29 Sep 2015 15:11:45 +0000 (15:11 +0000)]
am
93a91f0c: Force cts to only run one test at a time.
* commit '
93a91f0cf4f015762ac1ed57395c4c0de8ba7db3':
Force cts to only run one test at a time.
Christopher Ferris [Fri, 25 Sep 2015 01:45:53 +0000 (18:45 -0700)]
Force cts to only run one test at a time.
Also, slightly increase the timeout for each test run.
Bug:
24198050
(cherry picked from commit
daaaed18ce1d2f2da9d2240e974922299d937670)
Change-Id: I29e169e962da803a89abf0a28e071abcafa315b7
Yabin Cui [Tue, 22 Sep 2015 18:16:15 +0000 (11:16 -0700)]
Increase alternative signal stack size on 64-bit devices.
Bug:
23041777
Bug:
24187462
Change-Id: I7d84c0cc775a74753a3e8e101169c0fb5dbf7437
Neil Fuller [Tue, 25 Aug 2015 11:46:33 +0000 (12:46 +0100)]
Update timezone data to 2015f
Changes affecting future time stamps
North Korea switches to +0830 on 2015-08-15. (Thanks to Steffen Thorsen.)
The abbreviation remains "KST". (Thanks to Robert Elz.)
Uruguay no longer observes DST. (Thanks to Steffen Thorsen
and Pablo Camargo.)
Changes affecting past and future time stamps
Moldova starts and ends DST at 00:00 UTC, not at 01:00 UTC.
(Thanks to Roman Tudos.)
Bug:
23480367
(cherry-picked from commit
6e7bc700e287f5d46165862a7031236670fa94d5)
Change-Id: I4d82604366e9e30a2100e09433e2772fe6957fff
Yabin Cui [Tue, 11 Aug 2015 19:05:43 +0000 (19:05 +0000)]
am
a6a12a78: am
0fdcdd00: Merge "Fix flaky test time.timer_settime_0." into lollipop-mr1-cts-dev
* commit '
a6a12a7804402273e193074a58162cc0b3890812':
Fix flaky test time.timer_settime_0.
Yabin Cui [Tue, 11 Aug 2015 18:56:43 +0000 (18:56 +0000)]
am
0fdcdd00: Merge "Fix flaky test time.timer_settime_0." into lollipop-mr1-cts-dev
* commit '
0fdcdd0067af88e7deef73070d0861ceb9f53c37':
Fix flaky test time.timer_settime_0.
Yabin Cui [Tue, 11 Aug 2015 18:41:17 +0000 (18:41 +0000)]
Merge "Fix flaky test time.timer_settime_0." into lollipop-mr1-cts-dev
Yabin Cui [Tue, 11 Aug 2015 18:23:16 +0000 (11:23 -0700)]
Fix flaky test time.timer_settime_0.
It fixes the problem reported in https://code.google.com/p/android/issues/detail?id=182395.
Change-Id: Ie16aa04095dac08a62dd0d4c50e763b36526624c
Dmitriy Ivanov [Sun, 26 Jul 2015 14:37:09 +0000 (07:37 -0700)]
Restore protection flags for ifunc during relocs.
IFUNC relocations require executable flag for the load
segment containing .text. When dso has text relocs linker
removes exec which causes crash during ifunc relocations.
This patch fixes this problem by restoring segments protection
for ifunc relocs.
Bug: http://b/
22611399
Change-Id: Icbf3be0fec0e42bf805bcad7533e2032a2e11b9c
Yabin Cui [Wed, 22 Jul 2015 00:27:54 +0000 (17:27 -0700)]
Don't abort when failed to write tracing message.
Also make the code thread-safe with lock.
Bug:
20666100
Change-Id: I0f331a617b75280f36179c187418450230d713ef
(cherry picked from commit
166112531558a1d4ea179c29147f27db7045db22)
Dan Albert [Tue, 21 Jul 2015 23:09:35 +0000 (23:09 +0000)]
Merge "Revert "Stop libc from cross-referencing unwind symbols"" into mnc-dev
Ying Wang [Tue, 21 Jul 2015 20:51:26 +0000 (20:51 +0000)]
Merge "We don't have CXX_BARE any more" into mnc-dev
Christopher Ferris [Thu, 16 Jul 2015 21:49:17 +0000 (14:49 -0700)]
Add support for non-zero vaddr in maps.
If a map has a non-zero vaddr then it needs to be added to the
computed relative offset.
Bug:
22532054
(cherry picked from commit
70b6e1daffd58ebce006d4b504cd0fb9672b6d07)
Change-Id: I1e98741d6ff3b5bbb7fc5f88cc85b27ace75ee2e
Ying Wang [Tue, 21 Jul 2015 01:51:30 +0000 (18:51 -0700)]
We don't have CXX_BARE any more
Now we have split CXX_WRAPPER from TARGET_CXX and CXX_BARE isn't needed
any more.
Bug:
22612634
Change-Id: I52c78b0d1b325910e875a786d17f780731778b4b
Dan Albert [Mon, 20 Jul 2015 23:56:51 +0000 (16:56 -0700)]
Revert "Stop libc from cross-referencing unwind symbols"
This reverts commit
cd13b14e98d4921af126667fae0cf6613a5615c5.
Bug: http://b/
19958712
Change-Id: I7cc7f69728c42c37e129aee30d761c4cd7e30e94
(cherry picked from commit
95fd031c4d22b90c542621170bb6d4d05bb94457)
Christopher Ferris [Mon, 13 Jul 2015 20:15:29 +0000 (20:15 +0000)]
Merge "Do not hold hash table lock while backtracing." into mnc-dev
Christopher Ferris [Sun, 12 Jul 2015 05:47:06 +0000 (22:47 -0700)]
Do not hold hash table lock while backtracing.
There is a deadlock if holding the hash table lock while trying to do
a backtrace. Change the code so that the hash table lock is only held
while actually modifying either g_hash_table, or while modifying an
entry from g_hash_table.
Bug:
22423683
Change-Id: I604ea56f940f22e99da41ea4dcdf97bedaac268d
Neil Fuller [Fri, 10 Jul 2015 09:47:51 +0000 (09:47 +0000)]
Merge "Update timezone data to 2015e" into mnc-dev
Dmitriy Ivanov [Wed, 8 Jul 2015 22:26:46 +0000 (15:26 -0700)]
Fix memory-leak on soinfo_free()
Bug: http://b/
22290728
Change-Id: I00747056db2cd3ff8b33936278464daed7236536
(cherry picked from commit
609f11b31ecedc4e9f2a1f6017b60b1f51b15c22)
Elliott Hughes [Mon, 6 Jul 2015 21:16:12 +0000 (14:16 -0700)]
Fix alignment after variable-length data.
In the serialized output from netd, the strings come first. Some code
assumes -- reasonably enough -- that it can do unaligned reads of pointers,
so we need to ensure alignment after all the strings.
Bug: http://b/
21192318
Change-Id: I456639127db9a2583f7f738e6b8103375d9387fd
Dmitriy Ivanov [Tue, 30 Jun 2015 22:10:51 +0000 (15:10 -0700)]
Improve personality initialization
1. Personality parameter should be unsigned int (not long)
2. Do not reset bits outside of PER_MASK when setting
personality value.
3. Set personality for static executables.
Bug: http://b/
21900686
Change-Id: I4c7e34079cbd59b818ce221eed325c05b9bb2303
Neil Fuller [Tue, 30 Jun 2015 15:21:34 +0000 (16:21 +0100)]
Update timezone data to 2015e
Changes affecting future time stamps
Morocco will suspend DST from 2015-06-14 03:00 through 2015-07-19 02:00,
not 06-13 and 07-18 as we had guessed. (Thanks to Milamber.)
Assume Cayman Islands will observe DST starting next year, using US rules.
Although it isn't guaranteed, it is the most likely.
Bug:
21836574
Change-Id: I30ab9ba8524c79e389ed0ff8c4af4378b7048265
Erik Kline [Thu, 25 Jun 2015 05:27:34 +0000 (14:27 +0900)]
Pass around struct android_net_context for better behaviour
Group network context elements in to a single struct and
add a version of android_getaddrinfofornet() that accepts it.
The introduction of UID-based routing means that the UID is an
integral part of the network context when evaluating connectivity,
sorting addresses, etc.
Also, introduce a distinction between DNS netids/marks and those
expected to be used by the application. This can be important
when the network an application is using is not the same as the
network on which DNS queries will be issued.
Additionally, de-duplicate the UDP connect logic (collapse both
_test_connect() and _find_src_addr() into just the latter).
Bug:
19470192
Bug:
20733156
Bug:
21832279
Change-Id: If16c2f4744695f507993afdac078ca105eb5d3e4
(cherry picked from commit
01e37c9665018534c798daaa59d5b0adb408e0a4)
Dmitriy Ivanov [Mon, 29 Jun 2015 21:48:25 +0000 (14:48 -0700)]
Lock on dl_interate_phdr
There is possibility of someone dlclosing a library
while dl_iterate_phdr in progress which can lead to
dl_iterate_phdr calling callback with invalid address
if it was unmapped by dlclose.
Bug: http://b/
22047255
Change-Id: I3fc0d9fd2c51fb36fd34cb035f37271fa893a7be
Dmitriy Ivanov [Thu, 25 Jun 2015 22:51:41 +0000 (15:51 -0700)]
Fix crash when trying to load invalid ELF file.
Bug: http://b/
22047255
Bug: http://b/
22091640
Change-Id: I6c51cff43287a6ac4b25fa9ce6a6fc3d232fd047
Dimitry Ivanov [Wed, 24 Jun 2015 20:42:33 +0000 (20:42 +0000)]
Revert "[MIPS] Support FR=0 emulation on FR=1 64-bit FP registers"
This reverts commit
40d9e7bf842423e328cda58e21ff5fc0cbab5c8a.
Bug: http://b/
22045439
Change-Id: Ia9c56f65d35e404332a462f46460335cef39f0a4
Duane Sand [Mon, 1 Jun 2015 23:29:14 +0000 (16:29 -0700)]
[MIPS] Support FR=0 emulation on FR=1 64-bit FP registers
Enables running of older MIPS NDK-built apps on mips64r6.
Works with kernel supporting FRE emulation, and old kernels.
Bug: http://b/
21555893
Change-Id: I13923fe62cd83ad1d337f13a50f2eda2dfdd906f
(cherry picked from commit
d02ec08427b006e80191ce60690ce48a788fb832)
Elliott Hughes [Tue, 23 Jun 2015 16:14:16 +0000 (09:14 -0700)]
Fix bad merge of
64e9e71cdb7d88397e510e1986d494b797ed3b45.
Bug: http://b/
22029751
Change-Id: I6245fe5f274c9af8a632da5eebe50cf9fe29dc4a
Dmitriy Ivanov [Mon, 22 Jun 2015 19:25:36 +0000 (19:25 +0000)]
Merge "Remove libdl* tests from bionic-unit-tests-static" into mnc-dev
Dmitriy Ivanov [Mon, 22 Jun 2015 19:25:15 +0000 (19:25 +0000)]
Merge "Remove text-relocs support for apps targeting M+" into mnc-dev
Dmitriy Ivanov [Mon, 22 Jun 2015 18:54:58 +0000 (11:54 -0700)]
Remove libdl* tests from bionic-unit-tests-static
Bug: http://b/
21900592
Change-Id: I907cc15684b121ec2fbdeca49fc584bb6d2eaacc
(cherry picked from commit
de4e27e231143e4e1982b4ca9effd03c1ca12d86)
Yabin Cui [Fri, 19 Jun 2015 19:06:22 +0000 (19:06 +0000)]
am
8beb0c34: am
b245bc75: am
0f455612: Merge "Fix flaky test of timer_create_multiple in L." into lollipop-mr1-cts-dev
* commit '
8beb0c34da46a5146a2de8256db8bb42febb283c':
Fix flaky test of timer_create_multiple in L.
Yabin Cui [Fri, 19 Jun 2015 18:55:51 +0000 (18:55 +0000)]
am
b245bc75: am
0f455612: Merge "Fix flaky test of timer_create_multiple in L." into lollipop-mr1-cts-dev
* commit '
b245bc750021ce6d220e71625fca66620cdd1f05':
Fix flaky test of timer_create_multiple in L.
Yabin Cui [Fri, 19 Jun 2015 18:40:59 +0000 (18:40 +0000)]
am
0f455612: Merge "Fix flaky test of timer_create_multiple in L." into lollipop-mr1-cts-dev
* commit '
0f455612d3325932a851418634a17a61307948c5':
Fix flaky test of timer_create_multiple in L.
David Srbecky [Fri, 19 Jun 2015 18:25:56 +0000 (18:25 +0000)]
Merge "Add flag that makes linker honor min(p_vaddr)" into mnc-dev
Yabin Cui [Fri, 19 Jun 2015 18:00:52 +0000 (18:00 +0000)]
Merge "Fix flaky test of timer_create_multiple in L." into lollipop-mr1-cts-dev
Yabin Cui [Thu, 18 Jun 2015 23:19:02 +0000 (16:19 -0700)]
Fix flaky test of timer_create_multiple in L.
Bug:
20677618
Change-Id: I0cb5faf77edce042b10611543180f3e2e73d3d05
Dmitriy Ivanov [Sat, 6 Jun 2015 05:16:23 +0000 (22:16 -0700)]
Add flag that makes linker honor min(p_vaddr)
(cherry picked from commit
8a1162835597be38705b381ac34c07da17932568)
Bug:
21924613
Bug: http://b/
21523078
Change-Id: I3f944a08dd2ed1df4d8a807da4fee423fdd35eb7
Christopher Ferris [Thu, 18 Jun 2015 00:18:39 +0000 (00:18 +0000)]
Merge "[MIPS] Add optimized string functions" into mnc-dev
Nikola Veljkovic [Tue, 26 May 2015 10:06:09 +0000 (12:06 +0200)]
[MIPS] Add optimized string functions
Use same string functions for all MIPS architectures.
Bug:
21555893
(cherry picked from commit
38f2eaa07b0ad2e01a40607d3a0ac240ff53abbf)
Change-Id: I94521f023d0bb136a4672782148a9f6e77cc6f1e
Dmitriy Ivanov [Tue, 16 Jun 2015 22:38:21 +0000 (15:38 -0700)]
Improve library lookup logic
Linker tries to open a library even if it can
be found by soname. This only happens if the
library was previously opened under different
target sdk version.
Bug: http://b/
21876587
Bug: http://b/
21153477
Bug: http://b/
21171302
Bug: https://code.google.com/p/android/issues/detail?id=160921
Change-Id: I7dbbcc3b49933bffd89ca0af55371e1a1f2bf4c2
Dmitriy Ivanov [Fri, 5 Jun 2015 01:30:51 +0000 (18:30 -0700)]
Add versions to libm.so symbols
Bug: http://b/
20139821
Change-Id: Ifdfcac62d59eb8f0985990aa8512046ecb87449e
(cherry picked from commit
636f5ddddcd9e0bcfc7139b0905ebc92d4adc40a)
Dimitry Ivanov [Wed, 17 Jun 2015 20:43:22 +0000 (20:43 +0000)]
Merge "Revert "Improve library lookup logic"" into mnc-dev
Dimitry Ivanov [Wed, 17 Jun 2015 20:42:20 +0000 (20:42 +0000)]
Revert "Improve library lookup logic"
This reverts commit
ea4ef52fa46602a5853df0e5b1ddd71b194d54ce.
Bug: http://b/
21876587
Bug: http://b/
21153477
Bug: http://b/
21171302
Bug: https://code.google.com/p/android/issues/detail?id=160921
Change-Id: I23ddbd69294023c56c9cbabad29d26c8f736ab43
Dmitriy Ivanov [Wed, 17 Jun 2015 17:15:04 +0000 (17:15 +0000)]
Merge "Improve library lookup logic" into mnc-dev
Elliott Hughes [Tue, 16 Jun 2015 23:04:35 +0000 (16:04 -0700)]
Fixes for building gdbserver (and gdb) out of the box.
Bug: http://b/
21695943
Change-Id: Iadb600b2ae619515d7038a4db9bf464ba31adb36
(cherry picked from commit
895241efbba344c1590b76fcada89c48f4743cf2)
Dmitriy Ivanov [Tue, 16 Jun 2015 22:38:21 +0000 (15:38 -0700)]
Improve library lookup logic
Linker tries to open a library even if it can
be found by soname. This only happens if the
library was previously opened under different
target sdk version.
Bug: http://b/
21876587
Bug: http://b/
21153477
Bug: http://b/
21171302
Bug: https://code.google.com/p/android/issues/detail?id=160921
Change-Id: I769a04b6b1368a107d43f399297be14050338bbc
Tim Murray [Tue, 16 Jun 2015 20:47:16 +0000 (20:47 +0000)]
Merge "Add support for cortex-a53 in bionic." into mnc-dev
Tim Murray [Thu, 11 Jun 2015 22:33:06 +0000 (15:33 -0700)]
Add support for cortex-a53 in bionic.
allows -mcpu=cortex-a53 to be passed as part of a command line.
Change-Id: Id4203a9fd197f4c3b661bad21ac58c32819fd687
Dmitriy Ivanov [Thu, 4 Jun 2015 00:48:51 +0000 (17:48 -0700)]
Add version to libc.so symbols
Bug: http://b/
21617095
Bug: http://b/
20139821
Change-Id: If3d42d2a0b4a0c49721fd9b9ecbb4f7bee5a1eff
(cherry picked from commit
665607a6b7a7a8f129c30ee73c6606f4a56cea0c)
Elliott Hughes [Tue, 16 Jun 2015 02:39:04 +0000 (19:39 -0700)]
Hide accidentally-exposed __clock_nanosleep.
Bug: http://b/
21858067
Change-Id: Iaa83a5e17cfff796aed4f641d0d14427614d9399
(cherry picked from commit
b1304935b64ffcd59cd787cc9ac83a2d14dc587b)
Elliott Hughes [Tue, 16 Jun 2015 01:47:39 +0000 (18:47 -0700)]
Avoid name collision with user_fpsimd_state in <asm/ptrace.h>.
We don't want to use <asm/ptrace.h> because (a) it'll drag in a bunch of
namespace pollution and (b) the registers should be "long double" for
userspace, not the kernel's uint128s. So just use a slightly different
name for our struct (which matches the traditional names for these structs
anyway).
Bug: http://b/
21695943
Bug: https://code.google.com/p/android/issues/detail?id=86712
Change-Id: I8812ca98cfe6b649dbd31f7d6aea41928ba2acbd
(cherry picked from commit
0577733c2e15a4745d5c75f59e5f56dd179a4aa7)
Dan Albert [Wed, 4 Mar 2015 18:31:29 +0000 (10:31 -0800)]
Add a sys/procfs.h.
Needed for building gdbserver out of the box.
Bug: http://b/
21695943
Bug: https://code.google.com/p/android/issues/detail?id=86712
Change-Id: Ieadda2b595f08bfddfa61fcd68006b8e7c1a438d
(cherry picked from commit
bf18c61798d1ae9197ae087ed85e94eef55e8678)
Elliott Hughes [Tue, 16 Jun 2015 00:49:54 +0000 (17:49 -0700)]
Fix two accidentally leaked mips64 symbols.
Bug: http://b/
21857154
Change-Id: Ie1fb63f54c6c527b8c1172e8f6ce48f23fca9b41
(cherry picked from commit
469b418784a01c759a2ddd889437d6e6c18b256e)
Sharvil Nanavati [Mon, 15 Jun 2015 15:48:00 +0000 (15:48 +0000)]
am
00cef820: am
64e9e71c: Define nonportable pthread mutex macros with the _NP suffix.
* commit '
00cef82013c0826bb43c11651d25de8b99335618':
Define nonportable pthread mutex macros with the _NP suffix.
Dmitriy Ivanov [Fri, 12 Jun 2015 22:00:31 +0000 (15:00 -0700)]
Remove text-relocs support for apps targeting M+
Remove support of text-relocations for apps targeting sdk version > 22
Bug: http://b/
20013628
Change-Id: I2127739544480c747315e32df15dfbd1b79de4f5
Sharvil Nanavati [Fri, 12 Jun 2015 20:13:46 +0000 (20:13 +0000)]
am
64e9e71c: Define nonportable pthread mutex macros with the _NP suffix.
* commit '
64e9e71cdb7d88397e510e1986d494b797ed3b45':
Define nonportable pthread mutex macros with the _NP suffix.
Sharvil Nanavati [Fri, 12 Jun 2015 17:56:17 +0000 (10:56 -0700)]
Define nonportable pthread mutex macros with the _NP suffix.
Change-Id: I1066352e5b2607f64daf6aeb0030d0bbe88ead8d
Dmitriy Ivanov [Thu, 11 Jun 2015 21:54:53 +0000 (21:54 +0000)]
Merge "Make path to apk compliant with jar url format" into mnc-dev
Dmitriy Ivanov [Thu, 11 Jun 2015 02:46:19 +0000 (19:46 -0700)]
Fix l_addr for the linker
Bug: http://b/
21765603
Change-Id: I97710ef2436eac2160e29ba3e4521f6e63a1907c
(cherry picked from commit
175dae92d78cc6338125a49ea8dbabbd2f22ddf0)
Elliott Hughes [Thu, 11 Jun 2015 00:24:20 +0000 (17:24 -0700)]
Add process_vm_readv and process_vm_writev.
Bug: http://b/
21761353
Change-Id: Ic8ef3f241d62d2a4271fbc783c8af50257bac498
(cherry picked from commit
be57a40d2973739c4fb0aa1cfb0014f34aeec2bd)
Elliott Hughes [Thu, 11 Jun 2015 00:55:40 +0000 (00:55 +0000)]
Merge "Statically linked executables should honor AT_SECURE." into mnc-dev
Dmitriy Ivanov [Wed, 10 Jun 2015 23:55:50 +0000 (16:55 -0700)]
Fix application_sdk_versions_smoke test
Bug: http://b/
21364029
Change-Id: I9716d6b0ea7fae6483629a290dbe695b68526588
Elliott Hughes [Tue, 9 Jun 2015 01:04:00 +0000 (18:04 -0700)]
Statically linked executables should honor AT_SECURE.
Bug: http://b/
19647373
Change-Id: I10e7682d9cec26a523f1a3597ca5326c3ca42ebe
(cherry picked from commit
1801db3d3fe17df543e721b9fb355e5c882dc6cc)
Dmitriy Ivanov [Mon, 8 Jun 2015 17:41:33 +0000 (10:41 -0700)]
Check if strtab exists before using it
Bug: http://b/
21696087
Change-Id: I1e22d5fd6fe2faead332249493123c9a085081e9
(cherry picked from commit
624b8f17a1ce9b968f11e73231733442a07ac001)
Christopher Ferris [Wed, 10 Jun 2015 01:46:15 +0000 (18:46 -0700)]
Allow NULL in pthread_mutex_lock/unlock.
The pthread_mutex_lock and pthread_mutex_unlock were allowed to
fail silently on L 32 bit devices when passed a NULL. We changed
this to a crash on 32 bit devices, but there are still games that make
these calls and are not likely to be updated. Therefore, once again
allow NULL to be passed in on 32 bit devices.
Bug:
19995172
Change-Id: If7e8860075ecd63c0064d80f64e226fad7bd3c26
Dmitriy Ivanov [Tue, 9 Jun 2015 20:46:51 +0000 (13:46 -0700)]
Make path to apk compliant with jar url format
Bug: http://b/
21726698
Bug: http://b/
8076853
Change-Id: I8c1942a98fe3119746b4dc9f60a7ff215ea7009c
Ying Wang [Sat, 6 Jun 2015 18:55:16 +0000 (11:55 -0700)]
Fix Mac checkbuild.
Bug:
21669400
Change-Id: I54691661605a2e2c1871781964aed343840b8560
(cherry-pick from commit
33c2d441b8f816722bed984c6e12b82b888c3ca2)
Christopher Ferris [Sat, 6 Jun 2015 00:12:17 +0000 (17:12 -0700)]
Export two dlmalloc functions everywhere.
The functions dlmalloc_inspect_all and dlmalloc_trim get
exported on devices that use dlmalloc, so be consistent and
export them everywhere.
Bug:
21640784
(cherry picked from commit
f9554a17765fd91d97d1f74913a626f01e880cee)
Change-Id: I1000221423c16c356bb6301e55f726db01c3f209
Christopher Ferris [Fri, 5 Jun 2015 02:24:07 +0000 (19:24 -0700)]
Fix a few libc makefile mishaps.
These are the problems fixed in this CL:
- The ndk_cruft.cpp file was not compiled for 64 bit.
- Some files where not compiled for libc_bionic.a due to a missing
patch-up-arch-specific-flags call.
- The libc_bionic_ndk.a patch up call was using bionic src, not
the bionic_ndk_src_files.
- Move mmap.cpp to the ndk src list where it was before because of
the above errors.
Bug:
21640784
(cherry picked from commit
19fee2ca8beb4fae5b5c142de19757410171dc93)
Change-Id: Ib9a9cfd72720586d3400b11cd7189f021e9a06c6
Yabin Cui [Fri, 5 Jun 2015 02:18:45 +0000 (02:18 +0000)]
am
61b040a5: resolved conflicts for merge of
ea248d9c to lmp-mr1-ub-dev
* commit '
61b040a57094093cfb090ebb1c321d4a69c20b64':
Make sys_resource test more robust.
Dmitriy Ivanov [Thu, 4 Jun 2015 21:33:18 +0000 (14:33 -0700)]
Hide __atexit
Bug: http://b/
21640806
Change-Id: I778b35c8c7538859179e97fcf5a82db2fcd9e50f
(cherry picked from commit
9cf6fc304bbbfb26911e0b624b80d862c40b0308)
Christopher Ferris [Thu, 4 Jun 2015 20:57:23 +0000 (20:57 +0000)]
Merge "Reorder DIR structure due to bad apps." into mnc-dev
Christopher Ferris [Thu, 4 Jun 2015 20:30:45 +0000 (13:30 -0700)]
Reorder DIR structure due to bad apps.
It turns out that apportable apps expect that the DIR structure is
the same as in L and below. Modify the structure to have the same
order, and move the new variable to the end of the structure.
Bug:
21037208
Change-Id: Id1258e9dc19423109a2c3a8086d3022965591166
Dmitriy Ivanov [Thu, 4 Jun 2015 17:12:37 +0000 (10:12 -0700)]
Strip version info when extracting symbols
Bug: http://b/
20139821
Change-Id: I1c1ed1b97a75936407e996698b98b94a7175ac30
(cherry picked from commit
6cda0742895e46aa4ad0e4e8d5637d166f9f46f2)
Dmitriy Ivanov [Wed, 3 Jun 2015 01:09:33 +0000 (01:09 +0000)]
Merge "Backward compatibility for dlsym(RTLD_DEFAULT, ...)" into mnc-dev
Dmitriy Ivanov [Wed, 3 Jun 2015 00:36:54 +0000 (17:36 -0700)]
Backward compatibility for dlsym(RTLD_DEFAULT, ...)
Do not skip RTLD_LOCAL libraries in dlsym(RTLD_DEFAULT, ...)
if the library is opened by application with target api level <= 22
Bug: http://b/
21565766
Bug: http://b/
17512583
Change-Id: Ic45ed1e4f53e84cba9d74cab6b0049c0c7aa8423
Yabin Cui [Tue, 2 Jun 2015 23:47:42 +0000 (16:47 -0700)]
resolved conflicts for merge of
ea248d9c to lmp-mr1-ub-dev
Change-Id: I362ab2e25e3368c71cb1af51cee2e8fb5ce53e61
Yabin Cui [Tue, 2 Jun 2015 22:03:23 +0000 (22:03 +0000)]
Merge "Make sys_resource test more robust." into lollipop-cts-dev
automerge:
492a0bf
* commit '
492a0bf212973baa1c33d584d57e75395774447f':
Make sys_resource test more robust.
Nick Kralevich [Tue, 2 Jun 2015 22:02:42 +0000 (22:02 +0000)]
Merge "libc: Add O_PATH support for fgetxattr / fsetxattr" into mnc-dev
Yabin Cui [Tue, 2 Jun 2015 22:02:28 +0000 (22:02 +0000)]
Merge "Make sys_resource test more robust." into lollipop-cts-dev
Yabin Cui [Mon, 5 Jan 2015 19:06:30 +0000 (11:06 -0800)]
Make sys_resource test more robust.
Bug:
19482626
"ulimit -c xxx" command may run before bionic-unit-tests.
Make sure sys_resource test fails gently in that case.
Change-Id: Ic3b5ed8b20acba56df8c5ef082c88e5050e761aa
(cherry picked from commit
4853f40f3fb6664cb1b7af97b6b3e795717026b1)
Dmitriy Ivanov [Tue, 2 Jun 2015 20:28:06 +0000 (13:28 -0700)]
Work around for libraries without dt_soname
Applies only for apps targeting sdk version <= 22
Bug: http://b/
21565766
Change-Id: If0bf2229dc1341e9ca09f9a05d0890515273d5a2
Nick Kralevich [Sun, 31 May 2015 20:43:13 +0000 (13:43 -0700)]
libc: Add O_PATH support for fgetxattr / fsetxattr
Support O_PATH file descriptors when handling fgetxattr and fsetxattr.
This avoids requiring file read access to pull extended attributes.
This is needed to support O_PATH file descriptors when calling
SELinux's fgetfilecon() call. In particular, this allows the querying
and setting of SELinux file context by using something like the following
code:
int dirfd = open("/path/to/dir", O_DIRECTORY);
int fd = openat(dirfd, "file", O_PATH | O_NOFOLLOW);
char *context;
fgetfilecon(fd, &context);
This change was motivated by a comment in
https://android-review.googlesource.com/#/c/152680/1/toys/posix/ls.c
(cherrypicked from commit
2825f10b7f61558c264231a536cf3affc0d84204)
Change-Id: Ic0cdf9f9dd0e35a63b44a4c4a08400020041eddf
Dmitriy Ivanov [Sat, 30 May 2015 20:04:39 +0000 (13:04 -0700)]
Fix dlsym(handle_of_main_executable, ...)
According to man dlopen(3) and posix docs in the case when si is handle
of the main executable we need to search not only in the executable and its
dependencies but also in all libraries loaded with RTLD_GLOBAL.
see also: http://pubs.opengroup.org/onlinepubs/
9699919799/functions/dlopen.html
Bug: http://b/
21528224
Bug: http://b/
17512583
Bug: https://code.google.com/p/android/issues/detail?id=173822
Change-Id: Ib2801367ba48b6f3704da89a6d9f5e6911430013
(cherry picked from commit
f439b5a3186ca0fef1092f45770abc716da9d87a)
Dan Albert [Mon, 1 Jun 2015 18:28:31 +0000 (11:28 -0700)]
Cleanup ftruncate negative test.
Addresses post-submit comments from
I54692ab8105dd09db6af7a2c0894a17bdd118aa0.
Bug: http://b/
21309901
Change-Id: Ie19ee8cdcc4055a65fe7dfc103156e54eafe8977
(cherry picked from commit
9d476a02e9a14e847669a6683c585028175aa322)
Dan Albert [Wed, 20 May 2015 01:17:31 +0000 (18:17 -0700)]
Fix error handling for negative size in ftruncate.
Bug:
21309901
Change-Id: I54692ab8105dd09db6af7a2c0894a17bdd118aa0
(cherry picked from commit
c05554ec5c9aff5e0f1e83de9bb62c3569eecca2)
Dmitriy Ivanov [Thu, 28 May 2015 18:44:31 +0000 (11:44 -0700)]
Improve some of error/warning messages
Bug: http://b/
20464031
Change-Id: I948141c46f9e054fc45f5934153dee56ce3cd558
(cherry picked from commit
087005f37e02b48809746947159d824493885b1e)
Dmitriy Ivanov [Thu, 28 May 2015 01:29:41 +0000 (18:29 -0700)]
Work around incorrect dt_needed entries
This applies for apps targeting sdk<=22 and
only for lp32 platforms.
Bug: http://b/
21364029
Change-Id: I903e81c9ccda2a8beaba1d132d68c77d30a4cdb2
(cherry picked from commit
d974e8804689058714dc4fe9adcb57ee9a6996a8)
Dmitriy Ivanov [Fri, 22 May 2015 00:43:49 +0000 (17:43 -0700)]
Add functions to provide target sdk version
Bug: http://b/
21364029
Change-Id: I8648d1bff6c8fd6e7cd12da7f128e048b9f2829a
(cherry picked from commit
79fd668bb4ddb22432eeda2ebd8d10359013d9a8)
Dmitriy Ivanov [Fri, 22 May 2015 19:34:42 +0000 (12:34 -0700)]
Fix RTLD_NEXT lookup for the local_group
Linker used to skip RTLD_NEXT within local_group when
caller->next is nullptr (which represents load order
but not the order within local_group dependency tree)
Bug: http://b/
21380474
Change-Id: I178fc4657b19bceb871635b177c1df67855b1708
(cherry picked from commit
b96ac41b32e61799c48f3fd07831cc168b95068d)
Yabin Cui [Wed, 20 May 2015 21:48:09 +0000 (21:48 +0000)]
am
fd20a8c2: resolved conflicts for merge of
473d96c0 to lmp-mr1-ub-dev
* commit '
fd20a8c2d669b3f2d63e2d33a32b90d1b7f17b82':
Fix timer flaky test in lollipop-mr1-cts-dev.
Yabin Cui [Wed, 20 May 2015 20:36:56 +0000 (13:36 -0700)]
resolved conflicts for merge of
473d96c0 to lmp-mr1-ub-dev
Change-Id: I48269218b152054d527d9257d40490b54205140f
Yabin Cui [Mon, 18 May 2015 18:19:11 +0000 (11:19 -0700)]
Hide rt_sigqueueinfo.
Bug:
19358804
Change-Id: I38a53ad64c81d0eefdd1d24599e769fd8a477a56
(cherry picked from commit
40a8f214a5264efe5feaaffd55cea67fb87d097b)
Yabin Cui [Thu, 7 May 2015 23:53:25 +0000 (16:53 -0700)]
Remove pthread_detach_no_leak test.
This test has lost its purpose as we are using mmap/munmap for pthread_internal_t. And it is a flaky test.
Bug:
21205574
Bug:
20860440
Change-Id: I7cbb6bc3fd8a2ca430415beab5ee27a856ce4ea7
(cherry picked from commit
2957cc5f1043adf0b9c0f1cdfff2d408952e40f5)
Dmitriy Ivanov [Sat, 16 May 2015 16:57:15 +0000 (16:57 +0000)]
Merge "Apply work around b/
19059885 to x86" into mnc-dev
Dmitriy Ivanov [Sat, 16 May 2015 00:53:39 +0000 (17:53 -0700)]
Apply work around b/
19059885 to x86
Bug: http://b/
19059885
Bug: http://b/
21203348
Change-Id: Ic375e9f877d68de8f866d17362879a7dde638465
Chih-Hung Hsieh [Mon, 11 May 2015 18:21:19 +0000 (11:21 -0700)]
Use unified syntax to compile with both llvm and gcc.
All arch-arm and arch-arm64 .S files were compiled
by gcc with and without this patch. The output object files
were identical. When compiled with llvm and this patch,
the output files were also identical to gcc's output.
BUG:
18061004
Change-Id: I458914d512ddf5496e4eb3d288bf032cd526d32b
(cherry picked from commit
33f33515b503b634d9fbc57dda7123ea9cf23fc6)
Chih-Hung Hsieh [Thu, 23 Apr 2015 21:27:10 +0000 (14:27 -0700)]
Fix opcode to compile with both gcc and llvm.
BUG:
17302991
Change-Id: I31febd9ad24312388068803ce247b295bd73b607
(cherry picked from commit
0a93df369cf3f44d40ca1f0cb4a58aeab42fb39c)
Elliott Hughes [Fri, 15 May 2015 23:20:07 +0000 (16:20 -0700)]
Don't use TEMP_FAILURE_RETRY on close in bionic.
Bug: http://b/
20501816
Change-Id: Id64b5109cc2b165fa0351b6edbb865a5e5058008
(cherry picked from commit
4e8ef698d0d76be3f8d75de32701e6e6327c1fbd)