OSDN Git Service
Dmitriy Ivanov [Fri, 27 Mar 2015 00:01:30 +0000 (00:01 +0000)]
am
cfd794a9: Merge "Explain why we need objcopy for the linker"
* commit '
cfd794a96d0c4f1d97e54b701b408dafdb514d17':
Explain why we need objcopy for the linker
Dmitriy Ivanov [Thu, 26 Mar 2015 23:49:23 +0000 (23:49 +0000)]
Merge "Explain why we need objcopy for the linker"
Dmitriy Ivanov [Thu, 26 Mar 2015 23:47:18 +0000 (16:47 -0700)]
Explain why we need objcopy for the linker
Change-Id: I646673abc6095b56f72add493b60925375b75b78
Yabin Cui [Thu, 26 Mar 2015 18:27:10 +0000 (18:27 +0000)]
am
8f3eb5a4: Merge "Revert "Cause Fatal error when invalid pthread_id is detected.""
* commit '
8f3eb5a4e5dbbac1fb431e40e25eec07ecc24ee8':
Revert "Cause Fatal error when invalid pthread_id is detected."
Simon Baldwin [Thu, 26 Mar 2015 18:16:10 +0000 (18:16 +0000)]
am
7c01e3a9: Merge "Fix comment drift in assorted relocation packer modules."
* commit '
7c01e3a9ba80c85c7e7998d2347885e9a6e3bbf2':
Fix comment drift in assorted relocation packer modules.
Yabin Cui [Thu, 26 Mar 2015 18:14:22 +0000 (18:14 +0000)]
Merge "Revert "Cause Fatal error when invalid pthread_id is detected.""
Yabin Cui [Thu, 26 Mar 2015 18:13:07 +0000 (18:13 +0000)]
Revert "Cause Fatal error when invalid pthread_id is detected."
Some code like in https://buganizer.corp.google.com/u/0/issues/
19942911 need to change first.
This reverts commit
03324780aae9ff28c8acf52debf0ea39120e5ab8.
Change-Id: I13ff1e5b3d0672bae9cde234ffba32fbbf33d338
Dmitriy Ivanov [Thu, 26 Mar 2015 18:08:37 +0000 (18:08 +0000)]
am
f2d153f8: Merge "Initial implementation of __cxa_thread_atexit_impl"
* commit '
f2d153f836e529892854b91452fabd2c2fa79c05':
Initial implementation of __cxa_thread_atexit_impl
Simon Baldwin [Thu, 26 Mar 2015 18:01:13 +0000 (18:01 +0000)]
Merge "Fix comment drift in assorted relocation packer modules."
Dmitriy Ivanov [Thu, 26 Mar 2015 17:50:23 +0000 (17:50 +0000)]
Merge "Initial implementation of __cxa_thread_atexit_impl"
Simon Baldwin [Thu, 26 Mar 2015 17:13:19 +0000 (17:13 +0000)]
Fix comment drift in assorted relocation packer modules.
Some of the commentary in relocation packer code is relevant
only to the packing strategy employed by chromium, and no
longer applies here. This change fixes or deletes it.
Code comment change only; no functional effect.
Change-Id: Id229ee1d802bba608be15b79bc75bf90df557dab
Signed-off-by: Simon Baldwin <simonb@google.com>
Simon Baldwin [Thu, 26 Mar 2015 16:55:09 +0000 (16:55 +0000)]
am
7f8d91ea: Merge "Remove unused/unusable relocation packer files."
* commit '
7f8d91ea8e24e89db39ae868085913e763e04557':
Remove unused/unusable relocation packer files.
Simon Baldwin [Thu, 26 Mar 2015 16:41:00 +0000 (16:41 +0000)]
Merge "Remove unused/unusable relocation packer files."
Yabin Cui [Thu, 26 Mar 2015 04:36:16 +0000 (04:36 +0000)]
am
b9232c94: Merge "Remove PTHREAD_RECURSIVE_MUTEX_INITIALIZER and PTHREAD_ERRORCHECK_MUTEX_INITIALIZER."
* commit '
b9232c94da831d485b3896580a3d1ac9abc46a4f':
Remove PTHREAD_RECURSIVE_MUTEX_INITIALIZER and PTHREAD_ERRORCHECK_MUTEX_INITIALIZER.
Yabin Cui [Thu, 26 Mar 2015 04:21:15 +0000 (04:21 +0000)]
Merge "Remove PTHREAD_RECURSIVE_MUTEX_INITIALIZER and PTHREAD_ERRORCHECK_MUTEX_INITIALIZER."
Yabin Cui [Thu, 26 Mar 2015 04:19:40 +0000 (04:19 +0000)]
am
69847bc2: Merge "Hide internal of pthread_mutex_t."
* commit '
69847bc298de62917663d22b6733ef75b57124fa':
Hide internal of pthread_mutex_t.
Yabin Cui [Thu, 26 Mar 2015 04:19:39 +0000 (04:19 +0000)]
am
fa3dcecc: Merge "Fix in error handling in pthread_create.cpp."
* commit '
fa3dcecc0fd7bbbf04234e41be690a5d33277870':
Fix in error handling in pthread_create.cpp.
Yabin Cui [Thu, 26 Mar 2015 02:59:00 +0000 (19:59 -0700)]
Remove PTHREAD_RECURSIVE_MUTEX_INITIALIZER and PTHREAD_ERRORCHECK_MUTEX_INITIALIZER.
These macros are also not used in glibc. And we should use
PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
and PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP instead.
Change-Id: I35195e2f499712dcde9305bbb93622d0f7ca874b
Yabin Cui [Thu, 26 Mar 2015 02:10:06 +0000 (02:10 +0000)]
Merge "Hide internal of pthread_mutex_t."
Dmitriy Ivanov [Thu, 26 Mar 2015 00:38:10 +0000 (17:38 -0700)]
Initial implementation of __cxa_thread_atexit_impl
This is initial implementations; does not yet handle
dlclose - undefined behavior, needs linker support to
handle it right.
Bug:
19800080
Bug:
16696563
Change-Id: I7a3e21ed7f7ec01e62ea1b7cb2ab253590ea0686
Yabin Cui [Sat, 21 Mar 2015 22:08:25 +0000 (15:08 -0700)]
Hide internal of pthread_mutex_t.
Bug:
19249079
Change-Id: Iffb79c8d861b698d474f212dc80c638fc2cf1620
Yabin Cui [Thu, 26 Mar 2015 00:26:59 +0000 (00:26 +0000)]
Merge "Fix in error handling in pthread_create.cpp."
Yabin Cui [Wed, 25 Mar 2015 23:18:21 +0000 (16:18 -0700)]
Fix in error handling in pthread_create.cpp.
It is due to a previous change "Let g_thread_list_lock only protect g_thread_list".
We need to add the newly created thread to thread_list even if
__init_thread fails, so the thread can exit successfully.
Change-Id: I0332df11acfdd181350bcc092b12d90d679057a4
Yabin Cui [Wed, 25 Mar 2015 23:04:27 +0000 (23:04 +0000)]
am
36d5b6f4: Merge "Cause Fatal error when invalid pthread_id is detected."
* commit '
36d5b6f47dd14fd9733d935174d2b8e0deb979c6':
Cause Fatal error when invalid pthread_id is detected.
Yabin Cui [Wed, 25 Mar 2015 22:53:49 +0000 (22:53 +0000)]
Merge "Cause Fatal error when invalid pthread_id is detected."
Yabin Cui [Wed, 25 Mar 2015 00:43:14 +0000 (17:43 -0700)]
Cause Fatal error when invalid pthread_id is detected.
This is a patch testing whether we can use abort() instead of
returning ESRCH for invalid pthread ids. It is an intermediate
step to remove g_thread_list/g_thread_list_lock.
Bug:
19636317
Change-Id: Idd8e4a346c7ce91e1be0c2ebcb78ce51c0d0a31d
Yabin Cui [Wed, 25 Mar 2015 20:28:51 +0000 (20:28 +0000)]
am
0c3b632b: Merge "Add O_APPEND flag for __libc_write_stderr."
* commit '
0c3b632bd6570064bab1055d2b8a51cfb85e60bb':
Add O_APPEND flag for __libc_write_stderr.
Yabin Cui [Wed, 25 Mar 2015 20:17:34 +0000 (20:17 +0000)]
Merge "Add O_APPEND flag for __libc_write_stderr."
Yabin Cui [Wed, 25 Mar 2015 19:36:18 +0000 (12:36 -0700)]
Add O_APPEND flag for __libc_write_stderr.
For DeathTests, we are testing the output of stderr to check if it is the
death we are expecting. To collect the output, Gtest redirects stderr to
a temporary file. But in __libc_write_stderr in libc_logging.cpp, we are
writing to stderr without a O_APPEND flag, so a new message will overwrite
a previous message.
The above situation makes almost all the DeathTests fail on host. Because
the expected message are always overwritten in host DeathTests. So I add
O_APPEND flag in __libc_write_stderr, which makes all host DeathTests pass.
Change-Id: Ic2f6044fdb181eebe132a6f170b57db43c5c3289
Christopher Ferris [Wed, 25 Mar 2015 18:59:06 +0000 (18:59 +0000)]
am
f6364486: Merge "Use ALIAS_SYMBOL for assembler aliasing."
* commit '
f6364486fb0fcd2891094a871041a3dc6c2334f8':
Use ALIAS_SYMBOL for assembler aliasing.
Christopher Ferris [Wed, 25 Mar 2015 17:52:49 +0000 (17:52 +0000)]
Merge "Use ALIAS_SYMBOL for assembler aliasing."
Simon Baldwin [Wed, 25 Mar 2015 16:14:30 +0000 (16:14 +0000)]
Remove unused/unusable relocation packer files.
Removes:
- src/run_length_encoder.h
artifact of the original packing tool, not used here
- test_data/generate_elf_file_unittest_relocs.sh
- test_data/generate_elf_file_unittest_relocs.py
test data generation for chromium/gyp, not usable here
- README.TXT
because it is now almost entirely outdated
Change-Id: Ic4cd372647d9a365dc52833a6cc1cf66f0c95ec9
Christopher Ferris [Wed, 25 Mar 2015 16:12:00 +0000 (09:12 -0700)]
Use ALIAS_SYMBOL for assembler aliasing.
Change-Id: I8d04d2da0a1ac440cc9044fc819c9a8eda5ff17d
Christopher Ferris [Wed, 25 Mar 2015 04:31:15 +0000 (04:31 +0000)]
am
f5e0ba94: Merge "Make gensyscalls.py use the ALIAS_SYMBOL macro."
* commit '
f5e0ba94d911ef2622ecfd3f7fabc4432a4806d3':
Make gensyscalls.py use the ALIAS_SYMBOL macro.
Christopher Ferris [Wed, 25 Mar 2015 04:20:45 +0000 (04:20 +0000)]
Merge "Make gensyscalls.py use the ALIAS_SYMBOL macro."
Christopher Ferris [Tue, 24 Mar 2015 23:50:46 +0000 (16:50 -0700)]
Make gensyscalls.py use the ALIAS_SYMBOL macro.
Change-Id: Ib94c0abb6fc85126ecc5ed3f1962b2b8b90b9952
Dmitriy Ivanov [Wed, 25 Mar 2015 00:55:44 +0000 (00:55 +0000)]
am
70cafb16: Merge "Replace fixed arrays with vectors"
* commit '
70cafb16ec9ab23ad65542534af5a1ac7d6e70e4':
Replace fixed arrays with vectors
Dmitriy Ivanov [Wed, 25 Mar 2015 00:45:19 +0000 (00:45 +0000)]
Merge "Replace fixed arrays with vectors"
Dmitriy Ivanov [Tue, 24 Mar 2015 01:43:02 +0000 (18:43 -0700)]
Replace fixed arrays with vectors
This effectively removes limit on length and count
of LD_LIBRARY_PATH and LD_PRELOAD entries.
Change-Id: Ie7ea34a50d99c4018f9dd1a33aaebc4049a7f424
Dan Albert [Tue, 24 Mar 2015 21:41:56 +0000 (21:41 +0000)]
am
ee4997ec: Merge "Convert result of a call to JSON."
* commit '
ee4997ecc3daeb9af110d932ddb27f969cc7271a':
Convert result of a call to JSON.
Dan Albert [Tue, 24 Mar 2015 21:28:30 +0000 (21:28 +0000)]
Merge "Convert result of a call to JSON."
Dan Albert [Tue, 24 Mar 2015 18:43:55 +0000 (11:43 -0700)]
Convert result of a call to JSON.
I still had the service that was relying on this running on top of
local changes, so this hadn't been a problem yet.
Change-Id: I63b45b8c7cf81972dbb7128013c1c777a2342d4c
Yabin Cui [Tue, 24 Mar 2015 02:51:53 +0000 (02:51 +0000)]
am
93d44ff2: Merge "Let g_thread_list_lock only protect g_thread_list."
* commit '
93d44ff2a6e0febe18d42d5690e85023545318b4':
Let g_thread_list_lock only protect g_thread_list.
Yabin Cui [Tue, 24 Mar 2015 02:39:50 +0000 (02:39 +0000)]
Merge "Let g_thread_list_lock only protect g_thread_list."
Yabin Cui [Thu, 19 Mar 2015 21:19:19 +0000 (14:19 -0700)]
Let g_thread_list_lock only protect g_thread_list.
As glibc/netbsd don't protect access to thread struct members by a global
lock, we don't want to do it either. This change reduces the
responsibility of g_thread_list_lock to only protect g_thread_list.
Bug:
19636317
Change-Id: I897890710653dac165d8fa4452c7ecf74abdbf2b
Dmitriy Ivanov [Tue, 24 Mar 2015 01:00:49 +0000 (01:00 +0000)]
am
32b039e4: Merge "RTLD_LAZY is not supported, use RTLD_NOW instead."
* commit '
32b039e46eee4d40b9979eab873a957e86fbf969':
RTLD_LAZY is not supported, use RTLD_NOW instead.
Dmitriy Ivanov [Tue, 24 Mar 2015 00:48:57 +0000 (00:48 +0000)]
Merge "RTLD_LAZY is not supported, use RTLD_NOW instead."
Yabin Cui [Mon, 23 Mar 2015 23:28:49 +0000 (23:28 +0000)]
am
f8246ac6: Merge "Add test for pthread types alignment check."
* commit '
f8246ac65f1985e23023df12112a6ce47057a4dd':
Add test for pthread types alignment check.
Yabin Cui [Mon, 23 Mar 2015 23:18:27 +0000 (23:18 +0000)]
Merge "Add test for pthread types alignment check."
Dmitriy Ivanov [Mon, 23 Mar 2015 21:58:45 +0000 (14:58 -0700)]
RTLD_LAZY is not supported, use RTLD_NOW instead.
Change-Id: Ia08ed6416aef686435224b50b3e58955d09f04e2
Dan Albert [Mon, 23 Mar 2015 20:44:52 +0000 (20:44 +0000)]
am
27b38599: Merge "Work around a bug in the Jenkins queue API."
* commit '
27b38599dc4b0b4941906d8da30022f516abf143':
Work around a bug in the Jenkins queue API.
Dan Albert [Mon, 23 Mar 2015 20:32:15 +0000 (20:32 +0000)]
Merge "Work around a bug in the Jenkins queue API."
Dan Albert [Mon, 23 Mar 2015 20:29:15 +0000 (13:29 -0700)]
Work around a bug in the Jenkins queue API.
https://issues.jenkins-ci.org/browse/JENKINS-27256
1.601 broke the ability to get a build's URL before the build had
actually started. The bug is pseudo-fixed, but would require
installing a new plugin and fixing the python jenkinsapi plugin for
the time being to use /queuefix/ rather than /queue/.
Just avoiding logging a URL for now.
Change-Id: Ibf90e5887fc4532dac688082ad7729787897da11
Yabin Cui [Sat, 21 Mar 2015 17:11:22 +0000 (17:11 +0000)]
am
7f1e2068: Merge "Fix alignment error for pthread_internal_t/pthread stack."
* commit '
7f1e206815032aa152e9f181e477ae2a3f128d67':
Fix alignment error for pthread_internal_t/pthread stack.
Yabin Cui [Tue, 17 Mar 2015 05:46:42 +0000 (22:46 -0700)]
Add test for pthread types alignment check.
Bug:
19249079
Change-Id: I83c4f0d11ec5d82a346ae0057d02a92bb1d519e8
Yabin Cui [Fri, 20 Mar 2015 23:26:23 +0000 (23:26 +0000)]
Merge "Fix alignment error for pthread_internal_t/pthread stack."
Yabin Cui [Fri, 20 Mar 2015 17:58:04 +0000 (10:58 -0700)]
Fix alignment error for pthread_internal_t/pthread stack.
aligned attribute can only control compiler's behavior, but we
are manually allocating pthread_internal_t. So we need to make
sure of alignment manually.
Change-Id: Iea4c46eadf10dfd15dc955c5f41cf6063cfd8536
Dmitriy Ivanov [Fri, 20 Mar 2015 04:18:23 +0000 (04:18 +0000)]
am
9bc8ce7c: Merge "Limit soinfo compatibility fields to arm32"
* commit '
9bc8ce7c6a8abc09e76b0f35064d881385861537':
Limit soinfo compatibility fields to arm32
Dmitriy Ivanov [Fri, 20 Mar 2015 04:05:51 +0000 (04:05 +0000)]
Merge "Limit soinfo compatibility fields to arm32"
Dmitriy Ivanov [Fri, 20 Mar 2015 00:50:29 +0000 (17:50 -0700)]
Limit soinfo compatibility fields to arm32
Change-Id: I3924cd68397c223c0d206295d587f9dd8ebdc086
Yabin Cui [Fri, 20 Mar 2015 00:11:58 +0000 (00:11 +0000)]
am
4149dc94: Merge "Return EINVAL when calling pthread_detach for joined thread."
* commit '
4149dc944bbe3c5f1c14fc998106975e68bdd6bf':
Return EINVAL when calling pthread_detach for joined thread.
Yabin Cui [Fri, 20 Mar 2015 00:00:29 +0000 (00:00 +0000)]
Merge "Return EINVAL when calling pthread_detach for joined thread."
Yabin Cui [Thu, 19 Mar 2015 23:53:04 +0000 (23:53 +0000)]
am
7875b506: Merge "Fix two errors in pthread_detach.cpp."
* commit '
7875b506edfb1fe593034eaf4bc9aa156179fbd2':
Fix two errors in pthread_detach.cpp.
Yabin Cui [Thu, 19 Mar 2015 22:19:25 +0000 (15:19 -0700)]
Return EINVAL when calling pthread_detach for joined thread.
Change-Id: I717015132187e087e0ad485284a13c8801e25e77
Yabin Cui [Thu, 19 Mar 2015 23:38:40 +0000 (23:38 +0000)]
Merge "Fix two errors in pthread_detach.cpp."
Yabin Cui [Thu, 19 Mar 2015 23:28:19 +0000 (16:28 -0700)]
Fix two errors in pthread_detach.cpp.
The errors are introduced in "Make pthread join_state not protected by g_thread_list_lock".
Bug:
19636317
Change-Id: I58ae9711da94bfbac809abfd81311eeb70301a4b
Dmitriy Ivanov [Thu, 19 Mar 2015 17:19:32 +0000 (17:19 +0000)]
am
2e495081: Merge "Move open from zip tests to dlext"
* commit '
2e49508187254903943b83df7bb241d5fb6a8593':
Move open from zip tests to dlext
Dmitriy Ivanov [Thu, 19 Mar 2015 17:06:15 +0000 (17:06 +0000)]
Merge "Move open from zip tests to dlext"
Dmitriy Ivanov [Thu, 19 Mar 2015 05:50:01 +0000 (22:50 -0700)]
Move open from zip tests to dlext
To avoid building them for glibc.
Also replace snprintf with std::string
Change-Id: I12e1d2e4ab46ff5af6c05453da67842e0d838fc5
Yabin Cui [Thu, 19 Mar 2015 03:03:21 +0000 (03:03 +0000)]
am
6943f296: Merge "Make __get_thread inlined."
* commit '
6943f2968cb6054f8874e30b309985b41a37e2e0':
Make __get_thread inlined.
Dmitriy Ivanov [Thu, 19 Mar 2015 02:53:57 +0000 (02:53 +0000)]
am
6420fb46: Merge "Implement lookup by DT_SONAME"
* commit '
6420fb467f52f7c27c921b1bf53dc95ad5851077':
Implement lookup by DT_SONAME
Yabin Cui [Thu, 19 Mar 2015 02:50:19 +0000 (02:50 +0000)]
Merge "Make __get_thread inlined."
Dmitriy Ivanov [Thu, 19 Mar 2015 02:40:30 +0000 (02:40 +0000)]
Merge "Implement lookup by DT_SONAME"
Yabin Cui [Wed, 18 Mar 2015 21:14:02 +0000 (14:14 -0700)]
Make __get_thread inlined.
Bug:
19825434
Change-Id: Ifb672a45a5776b83625a25654ed0d6f7fc368ae3
Dmitriy Ivanov [Wed, 18 Mar 2015 03:06:36 +0000 (20:06 -0700)]
Implement lookup by DT_SONAME
This CL also fixes SEARCH_NAME hack and resolves
https://code.google.com/p/android/issues/detail?id=6670
once and for all.
Bug: https://code.google.com/p/android/issues/detail?id=6670
Change-Id: I9b8d6a672cd722f30fbfbb40cdee8d9b39cfe56e
Elliott Hughes [Wed, 18 Mar 2015 23:22:56 +0000 (23:22 +0000)]
am
c6fbbb42: Merge "Hide statfs/fstatfs\' ST_VALID flag from userspace."
* commit '
c6fbbb42e69bef4f058d0cbfaaaf3cbf51f95694':
Hide statfs/fstatfs' ST_VALID flag from userspace.
Elliott Hughes [Wed, 18 Mar 2015 23:11:51 +0000 (23:11 +0000)]
Merge "Hide statfs/fstatfs' ST_VALID flag from userspace."
Elliott Hughes [Wed, 18 Mar 2015 22:46:48 +0000 (15:46 -0700)]
Hide statfs/fstatfs' ST_VALID flag from userspace.
Spotted while debugging the strace 4.10 upgrade.
Change-Id: I1af1be9c9440151f55f74a835e1df71529b0e4fe
Dmitriy Ivanov [Wed, 18 Mar 2015 22:22:59 +0000 (22:22 +0000)]
am
0cf2657b: Merge "Fix library lookup for filenames with slash."
* commit '
0cf2657bc25242c097d42346d17eaae4107b1d55':
Fix library lookup for filenames with slash.
Dmitriy Ivanov [Wed, 18 Mar 2015 22:09:07 +0000 (22:09 +0000)]
Merge "Fix library lookup for filenames with slash."
Dimitry Ivanov [Wed, 18 Mar 2015 17:37:58 +0000 (17:37 +0000)]
am
c0eaa732: Merge "Support loading shared libraries from zip files"
* commit '
c0eaa732844a8397d40a7ec82641f709e4b47a61':
Support loading shared libraries from zip files
Dmitriy Ivanov [Wed, 18 Mar 2015 00:12:18 +0000 (17:12 -0700)]
Fix library lookup for filenames with slash.
If filename contains a slash, then it is interpreted
as a (relative or absolute) pathname.
Bug: https://code.google.com/p/android/issues/detail?id=6670
Change-Id: Iba57d638301f3089ad47ba083edca2dd36b801ed
Dimitry Ivanov [Wed, 18 Mar 2015 17:25:32 +0000 (17:25 +0000)]
Merge "Support loading shared libraries from zip files"
Elliott Hughes [Wed, 18 Mar 2015 01:24:59 +0000 (01:24 +0000)]
am
ab12dc70: Merge "Fix _PATH_DEFPATH to correspond to the actual default path."
* commit '
ab12dc70f3ef551c490dcfede76033e57ceee64d':
Fix _PATH_DEFPATH to correspond to the actual default path.
Elliott Hughes [Wed, 18 Mar 2015 01:18:01 +0000 (01:18 +0000)]
am
b380b7d7: Merge "set errno to ENOENT in getauxval per glibc 2.19"
* commit '
b380b7d78cf4dbd034f51fcf7fc8ebdb037330c3':
set errno to ENOENT in getauxval per glibc 2.19
Elliott Hughes [Wed, 18 Mar 2015 01:15:04 +0000 (01:15 +0000)]
Merge "Fix _PATH_DEFPATH to correspond to the actual default path."
Elliott Hughes [Wed, 18 Mar 2015 01:05:23 +0000 (01:05 +0000)]
Merge "set errno to ENOENT in getauxval per glibc 2.19"
Elliott Hughes [Wed, 18 Mar 2015 00:34:14 +0000 (17:34 -0700)]
Fix _PATH_DEFPATH to correspond to the actual default path.
This is currently set in init.rc, but I plan on making init
set PATH to _PATH_DEFPATH and removing the line from init.rc...
Bug:
19564110
Change-Id: Ifa7226a3a5a90d141a788d7d6b1ae86245674218
Daniel Micay [Mon, 16 Mar 2015 01:39:25 +0000 (21:39 -0400)]
set errno to ENOENT in getauxval per glibc 2.19
Bionic's getauxval(...) implementation returns zero when entries are
missing. Zero can be a valid value, so there is no unambiguous way of
detecting an error. Since glibc 2.19, errno is set to ENOENT when an
entry is missing to make it possible to detect this. Bionic should match
this behavior as code in the Linux ecosystem will start relying on it to
check for the presence of newly added entries.
Change-Id: Ic1efe29bc45fc87489274c96c4d2193f3a7b8854
Signed-off-by: Daniel Micay <danielmicay@gmail.com>
Yabin Cui [Tue, 17 Mar 2015 21:33:33 +0000 (21:33 +0000)]
am
d917b20b: Merge "Change name of rwlock benchmark."
* commit '
d917b20b613fd51e5f1056c8648fe8769ae8161e':
Change name of rwlock benchmark.
Yabin Cui [Tue, 17 Mar 2015 21:20:52 +0000 (21:20 +0000)]
Merge "Change name of rwlock benchmark."
Yabin Cui [Tue, 17 Mar 2015 18:19:07 +0000 (11:19 -0700)]
Change name of rwlock benchmark.
rw_lock is not easy for me to remember, so I prefer changing it to rwlock.
Change-Id: I0784acaca0c3b46c28184a77eb29ffe696f9ea07
Yabin Cui [Tue, 17 Mar 2015 18:52:13 +0000 (18:52 +0000)]
am
a75771e3: Merge "Fix build: pthread_mutex/pthread_detach."
* commit '
a75771e3ab429fae2f9af770416150733264a281':
Fix build: pthread_mutex/pthread_detach.
Yabin Cui [Tue, 17 Mar 2015 18:40:38 +0000 (18:40 +0000)]
Merge "Fix build: pthread_mutex/pthread_detach."
Yabin Cui [Tue, 17 Mar 2015 18:34:57 +0000 (11:34 -0700)]
Fix build: pthread_mutex/pthread_detach.
Change-Id: I9c7b6297d3bf3ab8004d05d44cc4c95159315c9e
Yabin Cui [Tue, 17 Mar 2015 18:21:49 +0000 (18:21 +0000)]
am
94babaee: Merge "Make pthread join_state not protected by g_thread_list_lock."
* commit '
94babaee1b6598b15bd807461055d4dcaaa52f10':
Make pthread join_state not protected by g_thread_list_lock.
Yabin Cui [Tue, 17 Mar 2015 18:21:48 +0000 (18:21 +0000)]
am
5490bebd: Merge "Remove duplication in pthread_mutex.cpp."
* commit '
5490bebd7cdd4406780358f590391b75ab8a7d84':
Remove duplication in pthread_mutex.cpp.
Yabin Cui [Tue, 17 Mar 2015 18:12:58 +0000 (18:12 +0000)]
Merge "Make pthread join_state not protected by g_thread_list_lock."
Yabin Cui [Tue, 17 Mar 2015 18:12:32 +0000 (18:12 +0000)]
Merge "Remove duplication in pthread_mutex.cpp."
Simon Baldwin [Fri, 16 Jan 2015 13:22:54 +0000 (13:22 +0000)]
Support loading shared libraries from zip files
Add code to support loading shared libraries directly from within
APK files.
Extends the linker's handling of LD_LIBRARY_PATH, DT_RUNPATH, etc
to allow elements to be either directories as normal, or ZIP
format files. For ZIP, the ZIP subdirectory string is separated
from the path to file by '!'.
For example, if DT_NEEDED is libchrome.so and Chrome.apk is the
Android ARM APK then the path element
/system/app/Chrome.apk!lib/armeabi-v7a
would cause the linker to load lib/armeabi-v7a/libchrome.so
directly from inside Chrome.apk. For loading to succeed,
libchrome.so must be 'stored' and not compressed in Chrome.apk,
and must be page aligned within the file.
Motivation:
Chromium tracking issue:
https://code.google.com/p/chromium/issues/detail?id=390618
Bug:
8076853
Change-Id: Ic49046600b1417eae3ee8f37ee98c8ac1ecc19e7