OSDN Git Service

android-x86/bionic.git
9 years agoFix clang build breakage ("arithmetic on a pointer to void").
Elliott Hughes [Mon, 30 Mar 2015 21:33:02 +0000 (14:33 -0700)]
Fix clang build breakage ("arithmetic on a pointer to void").

Change-Id: Ia0953fc1cd0f8ea2d4423b3c6e34f6dc7a9f31e9

9 years agoMerge "add guard pages to the internal signal stacks"
Elliott Hughes [Mon, 30 Mar 2015 21:24:35 +0000 (21:24 +0000)]
Merge "add guard pages to the internal signal stacks"

9 years agoadd guard pages to the internal signal stacks
Daniel Micay [Sun, 29 Mar 2015 04:03:55 +0000 (00:03 -0400)]
add guard pages to the internal signal stacks

Signal handlers tend to be lean, but can still overflow the (tiny)
stack.

Change-Id: Ia21c6453d92a9f8d1536ad01ff26a1a84c05f8fb

9 years agoMerge "linker_environ: clear MALLOC_CONF when AT_SECURE=1"
Nick Kralevich [Fri, 27 Mar 2015 22:55:20 +0000 (22:55 +0000)]
Merge "linker_environ: clear MALLOC_CONF when AT_SECURE=1"

9 years agolinker_environ: clear MALLOC_CONF when AT_SECURE=1
Nick Kralevich [Fri, 27 Mar 2015 21:01:00 +0000 (14:01 -0700)]
linker_environ: clear MALLOC_CONF when AT_SECURE=1

Clear JE_MALLOC_CONF and MALLOC_CONF

Change-Id: Ia76e263783194ecaa362e8ccafbe13a28a4a1ba6

9 years agoMerge "Fix libstdc++.so hash-style."
Dmitriy Ivanov [Fri, 27 Mar 2015 22:46:52 +0000 (22:46 +0000)]
Merge "Fix libstdc++.so hash-style."

9 years agoFix libstdc++.so hash-style.
Dmitriy Ivanov [Fri, 27 Mar 2015 22:27:07 +0000 (15:27 -0700)]
Fix libstdc++.so hash-style.

Bug: 19059885
Bug: 19958712
Change-Id: I167457a54cc688d64912a50f5fb75e4e2f3e3937

9 years agoMerge "Add test for thread_local keyword."
Dmitriy Ivanov [Fri, 27 Mar 2015 20:07:33 +0000 (20:07 +0000)]
Merge "Add test for thread_local keyword."

9 years agoAdd test for thread_local keyword.
Dmitriy Ivanov [Thu, 26 Mar 2015 18:07:04 +0000 (11:07 -0700)]
Add test for thread_local keyword.

  For gcc only for the time being.

Bug: 19800080
Bug: 16696563
Change-Id: Ifaa59a131ca2d9030554cee7ce631dcb1d081938

9 years agoMerge "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"

9 years agoExplain 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

9 years agoMerge "Revert "Cause Fatal error when invalid pthread_id is detected.""
Yabin Cui [Thu, 26 Mar 2015 18:14:22 +0000 (18:14 +0000)]
Merge "Revert "Cause Fatal error when invalid pthread_id is detected.""

9 years agoRevert "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

9 years agoMerge "Fix comment drift in assorted relocation packer modules."
Simon Baldwin [Thu, 26 Mar 2015 18:01:13 +0000 (18:01 +0000)]
Merge "Fix comment drift in assorted relocation packer modules."

9 years agoMerge "Initial implementation of __cxa_thread_atexit_impl"
Dmitriy Ivanov [Thu, 26 Mar 2015 17:50:23 +0000 (17:50 +0000)]
Merge "Initial implementation of __cxa_thread_atexit_impl"

9 years agoFix comment drift in assorted relocation packer modules.
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>
9 years agoMerge "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."

9 years agoMerge "Remove PTHREAD_RECURSIVE_MUTEX_INITIALIZER and PTHREAD_ERRORCHECK_MUTEX_INITIA...
Yabin Cui [Thu, 26 Mar 2015 04:21:15 +0000 (04:21 +0000)]
Merge "Remove PTHREAD_RECURSIVE_MUTEX_INITIALIZER and PTHREAD_ERRORCHECK_MUTEX_INITIALIZER."

9 years agoRemove PTHREAD_RECURSIVE_MUTEX_INITIALIZER and PTHREAD_ERRORCHECK_MUTEX_INITIALIZER.
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

9 years agoMerge "Hide internal of pthread_mutex_t."
Yabin Cui [Thu, 26 Mar 2015 02:10:06 +0000 (02:10 +0000)]
Merge "Hide internal of pthread_mutex_t."

9 years agoInitial implementation of __cxa_thread_atexit_impl
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

9 years agoHide internal of pthread_mutex_t.
Yabin Cui [Sat, 21 Mar 2015 22:08:25 +0000 (15:08 -0700)]
Hide internal of pthread_mutex_t.

Bug: 19249079
Change-Id: Iffb79c8d861b698d474f212dc80c638fc2cf1620

9 years agoMerge "Fix in error handling in pthread_create.cpp."
Yabin Cui [Thu, 26 Mar 2015 00:26:59 +0000 (00:26 +0000)]
Merge "Fix in error handling in pthread_create.cpp."

9 years agoFix 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

9 years agoMerge "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."

9 years agoCause 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

9 years agoMerge "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."

9 years agoAdd 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

9 years agoMerge "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."

9 years agoRemove unused/unusable relocation packer files.
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

9 years agoUse ALIAS_SYMBOL for assembler aliasing.
Christopher Ferris [Wed, 25 Mar 2015 16:12:00 +0000 (09:12 -0700)]
Use ALIAS_SYMBOL for assembler aliasing.

Change-Id: I8d04d2da0a1ac440cc9044fc819c9a8eda5ff17d

9 years agoMerge "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."

9 years agoMake 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

9 years agoMerge "Replace fixed arrays with vectors"
Dmitriy Ivanov [Wed, 25 Mar 2015 00:45:19 +0000 (00:45 +0000)]
Merge "Replace fixed arrays with vectors"

9 years agoReplace 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

9 years agoMerge "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."

9 years agoConvert 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

9 years agoMerge "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."

9 years agoLet 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

9 years agoMerge "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."

9 years agoMerge "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."

9 years agoRTLD_LAZY is not supported, use RTLD_NOW instead.
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

9 years agoMerge "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."

9 years agoWork 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

9 years agoAdd test for pthread types alignment check.
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

9 years agoMerge "Fix alignment error for pthread_internal_t/pthread stack."
Yabin Cui [Fri, 20 Mar 2015 23:26:23 +0000 (23:26 +0000)]
Merge "Fix alignment error for pthread_internal_t/pthread stack."

9 years agoFix 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

9 years agoMerge "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"

9 years agoLimit 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

9 years agoMerge "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."

9 years agoReturn EINVAL when calling pthread_detach for joined thread.
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

9 years agoMerge "Fix two errors in pthread_detach.cpp."
Yabin Cui [Thu, 19 Mar 2015 23:38:40 +0000 (23:38 +0000)]
Merge "Fix two errors in pthread_detach.cpp."

9 years agoFix 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

9 years agoMerge "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"

9 years agoMove 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

9 years agoMerge "Make __get_thread inlined."
Yabin Cui [Thu, 19 Mar 2015 02:50:19 +0000 (02:50 +0000)]
Merge "Make __get_thread inlined."

9 years agoMerge "Implement lookup by DT_SONAME"
Dmitriy Ivanov [Thu, 19 Mar 2015 02:40:30 +0000 (02:40 +0000)]
Merge "Implement lookup by DT_SONAME"

9 years agoMake __get_thread inlined.
Yabin Cui [Wed, 18 Mar 2015 21:14:02 +0000 (14:14 -0700)]
Make __get_thread inlined.

Bug: 19825434

Change-Id: Ifb672a45a5776b83625a25654ed0d6f7fc368ae3

9 years agoImplement lookup by DT_SONAME
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

9 years agoMerge "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."

9 years agoHide 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

9 years agoMerge "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."

9 years agoFix library lookup for filenames with slash.
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

9 years agoMerge "Support loading shared libraries from zip files"
Dimitry Ivanov [Wed, 18 Mar 2015 17:25:32 +0000 (17:25 +0000)]
Merge "Support loading shared libraries from zip files"

9 years agoMerge "Fix _PATH_DEFPATH to correspond to the actual default path."
Elliott Hughes [Wed, 18 Mar 2015 01:15:04 +0000 (01:15 +0000)]
Merge "Fix _PATH_DEFPATH to correspond to the actual default path."

9 years agoMerge "set errno to ENOENT in getauxval per glibc 2.19"
Elliott Hughes [Wed, 18 Mar 2015 01:05:23 +0000 (01:05 +0000)]
Merge "set errno to ENOENT in getauxval per glibc 2.19"

9 years agoFix _PATH_DEFPATH to correspond to the actual default path.
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

9 years agoset errno to ENOENT in getauxval per glibc 2.19
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>
9 years agoMerge "Change name of rwlock benchmark."
Yabin Cui [Tue, 17 Mar 2015 21:20:52 +0000 (21:20 +0000)]
Merge "Change name of rwlock benchmark."

9 years agoChange 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

9 years agoMerge "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."

9 years agoFix 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

9 years agoMerge "Make pthread join_state not protected by g_thread_list_lock."
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."

9 years agoMerge "Remove duplication in pthread_mutex.cpp."
Yabin Cui [Tue, 17 Mar 2015 18:12:32 +0000 (18:12 +0000)]
Merge "Remove duplication in pthread_mutex.cpp."

9 years agoSupport loading shared libraries from zip files
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

9 years agoMerge "Fix build: align pthread_cond_t to sizeof(long)"
Dmitriy Ivanov [Tue, 17 Mar 2015 00:10:49 +0000 (00:10 +0000)]
Merge "Fix build: align pthread_cond_t to sizeof(long)"

9 years agoFix build: align pthread_cond_t to sizeof(long)
Dmitriy Ivanov [Tue, 17 Mar 2015 00:06:59 +0000 (17:06 -0700)]
Fix build: align pthread_cond_t to sizeof(long)

Change-Id: Ieaee6d09089b161ec516ba22cafaee1ecb4342da

9 years agoMerge "Add alignment to opaque types."
Christopher Ferris [Mon, 16 Mar 2015 23:33:34 +0000 (23:33 +0000)]
Merge "Add alignment to opaque types."

9 years agoAdd alignment to opaque types.
Christopher Ferris [Mon, 16 Mar 2015 23:21:08 +0000 (16:21 -0700)]
Add alignment to opaque types.

If there is no alignment forced, then the compiler might put these
structures at any alignment.

Change-Id: I6416db72433504e0ec1178bfae6f5b18b6e363fb

9 years agoMerge "Remove obsolete test_isolated wrapper function"
Dmitriy Ivanov [Mon, 16 Mar 2015 21:50:16 +0000 (21:50 +0000)]
Merge "Remove obsolete test_isolated wrapper function"

9 years agoMerge "General purpose memory allocator for linker."
Dmitriy Ivanov [Mon, 16 Mar 2015 21:49:58 +0000 (21:49 +0000)]
Merge "General purpose memory allocator for linker."

9 years agoMerge "Fix atomic_load on const variable in pthread_cond_t."
Yabin Cui [Mon, 16 Mar 2015 21:31:08 +0000 (21:31 +0000)]
Merge "Fix atomic_load on const variable in pthread_cond_t."

9 years agoFix atomic_load on const variable in pthread_cond_t.
Yabin Cui [Mon, 16 Mar 2015 21:26:53 +0000 (14:26 -0700)]
Fix atomic_load on const variable in pthread_cond_t.

Change-Id: I60f55a53294a09332a3fbec669ed793359d1bdf5

9 years agoRemove obsolete test_isolated wrapper function
Dmitriy Ivanov [Mon, 16 Mar 2015 21:15:46 +0000 (14:15 -0700)]
Remove obsolete test_isolated wrapper function

 We already run all of our tests in isolated mode.

Change-Id: I8236baa302b1026a9b4a1c33a4aa65e223771bc7

9 years agoMerge "Revert "Revert "Moving StringPrintf to libbase."""
Dan Albert [Mon, 16 Mar 2015 21:02:51 +0000 (21:02 +0000)]
Merge "Revert "Revert "Moving StringPrintf to libbase."""

9 years agoMerge "Hide content of pthread_cond_t in pthread_cond_internal_t."
Yabin Cui [Mon, 16 Mar 2015 20:58:01 +0000 (20:58 +0000)]
Merge "Hide content of pthread_cond_t in pthread_cond_internal_t."

9 years agoMerge "Fix typo"
Dmitriy Ivanov [Mon, 16 Mar 2015 20:30:01 +0000 (20:30 +0000)]
Merge "Fix typo"

9 years agoFix typo
Dmitriy Ivanov [Mon, 16 Mar 2015 20:20:23 +0000 (13:20 -0700)]
Fix typo

Change-Id: Ie6dad7d09873c88f6bbb2d45c2780e3b0c618bd6

9 years agoGeneral purpose memory allocator for linker.
Dmitriy Ivanov [Wed, 11 Mar 2015 00:48:27 +0000 (17:48 -0700)]
General purpose memory allocator for linker.

 Add basic general purpose memory allocator to
 linker in order to enable usage of other libraries
 like libziparchive.

Change-Id: I4a680ebb36ed5ba67c61249f81dba9f567808434

9 years agoHide content of pthread_cond_t in pthread_cond_internal_t.
Yabin Cui [Sat, 14 Mar 2015 03:30:00 +0000 (20:30 -0700)]
Hide content of pthread_cond_t in pthread_cond_internal_t.

Bug: 19249079
Change-Id: I6f55af30bcd6211ce71630c6cacbef0e1663dcee

9 years agoRevert "Revert "Moving StringPrintf to libbase.""
Dan Albert [Mon, 16 Mar 2015 17:06:29 +0000 (10:06 -0700)]
Revert "Revert "Moving StringPrintf to libbase.""

This reverts commit d2dad2b24fb82604f9dbe7a082e630a524f1473d.

9 years agoMerge "Revert "Moving StringPrintf to libbase.""
Nicolas Geoffray [Mon, 16 Mar 2015 12:20:26 +0000 (12:20 +0000)]
Merge "Revert "Moving StringPrintf to libbase.""

9 years agoRevert "Moving StringPrintf to libbase."
Nicolas Geoffray [Mon, 16 Mar 2015 12:19:26 +0000 (12:19 +0000)]
Revert "Moving StringPrintf to libbase."

libbase has been reverted

This reverts commit 7ed5fa1e4d37722a644518594bf2b0e1529c05e9.

Change-Id: I5d8ff8c38ff8c9123e6cee5dc15a101a79e94b2e

9 years agoMerge "Moving StringPrintf to libbase."
Dan Albert [Sat, 14 Mar 2015 23:55:08 +0000 (23:55 +0000)]
Merge "Moving StringPrintf to libbase."

9 years agoMerge "Fix typo in alias symbol."
Christopher Ferris [Sat, 14 Mar 2015 19:22:29 +0000 (19:22 +0000)]
Merge "Fix typo in alias symbol."

9 years agoFix typo in alias symbol.
Christopher Ferris [Sat, 14 Mar 2015 19:17:45 +0000 (12:17 -0700)]
Fix typo in alias symbol.

Change-Id: I41d2c29bd4a9ba382bbe3440541c8e1506fc5809

9 years agoMerge "For libm, use a macro for aliasing symbols."
Christopher Ferris [Sat, 14 Mar 2015 17:44:31 +0000 (17:44 +0000)]
Merge "For libm, use a macro for aliasing symbols."

9 years agoFor libm, use a macro for aliasing symbols.
Christopher Ferris [Sat, 14 Mar 2015 00:43:52 +0000 (17:43 -0700)]
For libm, use a macro for aliasing symbols.

Change-Id: Ibd42ebc387c2bf3eba9aa96091770915b4b34184

9 years agoMoving StringPrintf to libbase.
Dan Albert [Sat, 14 Mar 2015 05:34:37 +0000 (22:34 -0700)]
Moving StringPrintf to libbase.

Change-Id: I47ef28bb294ffb7c7c065c5624417edf23503b77

9 years agoMerge "Hide content of pthread_rwlock_t in pthread_rwlock_internal_t."
Yabin Cui [Sat, 14 Mar 2015 02:38:31 +0000 (02:38 +0000)]
Merge "Hide content of pthread_rwlock_t in pthread_rwlock_internal_t."