OSDN Git Service

android-x86/bionic.git
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 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 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."

9 years agoHide content of pthread_rwlock_t in pthread_rwlock_internal_t.
Yabin Cui [Fri, 13 Mar 2015 21:22:05 +0000 (14:22 -0700)]
Hide content of pthread_rwlock_t in pthread_rwlock_internal_t.

Bug: 19249079
Change-Id: Ifbe634c716b6793bef897ec5134b55eb44c6b8d5

9 years agoMerge "Add some GNU specific elf constants."
Christopher Ferris [Fri, 13 Mar 2015 21:12:05 +0000 (21:12 +0000)]
Merge "Add some GNU specific elf constants."

9 years agoMerge "Switch libc and libm to sysv-only hash style"
Dmitriy Ivanov [Fri, 13 Mar 2015 21:04:07 +0000 (21:04 +0000)]
Merge "Switch libc and libm to sysv-only hash style"

9 years agoSwitch libc and libm to sysv-only hash style
Dmitriy Ivanov [Fri, 13 Mar 2015 19:43:30 +0000 (12:43 -0700)]
Switch libc and libm to sysv-only hash style

Bug: 19059885
Change-Id: I60a23dc5f9c756994d566818332ca42b305b4a05

9 years agoAdd some GNU specific elf constants.
Christopher Ferris [Fri, 13 Mar 2015 17:32:45 +0000 (10:32 -0700)]
Add some GNU specific elf constants.

Change-Id: I6c668463a27a641c9a280ce1937857d622344ff8

9 years agoMerge "Add the optimized implementation of 18 math functions for x86 and x86_64 respe...
Christopher Ferris [Fri, 13 Mar 2015 17:18:20 +0000 (17:18 +0000)]
Merge "Add the optimized implementation of 18 math functions for x86 and x86_64 respectively"

9 years agoMerge "Make gtest_main exit 1 when some test are failed."
Yabin Cui [Fri, 13 Mar 2015 17:02:17 +0000 (17:02 +0000)]
Merge "Make gtest_main exit 1 when some test are failed."

9 years agoMake gtest_main exit 1 when some test are failed.
Yabin Cui [Fri, 13 Mar 2015 05:16:03 +0000 (22:16 -0700)]
Make gtest_main exit 1 when some test are failed.

This is the gtest behavior, which I think can make test status
judgement more convenient.

Change-Id: I7d3c210d1744b954a4148cd905dd5c353207fce8

9 years agoRemove duplication in pthread_mutex.cpp.
Yabin Cui [Thu, 5 Mar 2015 01:36:59 +0000 (17:36 -0800)]
Remove duplication in pthread_mutex.cpp.

Also add unit tests about thread woken up by pthread_mutex_unlock.

Bug: 19216648

Change-Id: I8bde8105b00186c52a2f41d92458ae4a5eb90426

9 years agoMake pthread join_state not protected by g_thread_list_lock.
Yabin Cui [Sat, 7 Mar 2015 01:23:53 +0000 (17:23 -0800)]
Make pthread join_state not protected by g_thread_list_lock.

1. Move the representation of thread join_state from pthread.attr.flag
   to pthread.join_state. This clarifies thread state change.
2. Use atomic operations for pthread.join_state. So we don't need to
   protect it by g_thread_list_lock. g_thread_list_lock will be reduced
   to only protect g_thread_list or even removed in further changes.

Bug: 19636317
Change-Id: I31fb143a7c69508c7287307dd3b0776993ec0f43

9 years agoMerge "syslog.h: missing LOG_MAKEPRI definition"
Mark Salyzyn [Thu, 12 Mar 2015 20:33:25 +0000 (20:33 +0000)]
Merge "syslog.h: missing LOG_MAKEPRI definition"

9 years agosyslog.h: missing LOG_MAKEPRI definition
Mark Salyzyn [Thu, 12 Mar 2015 20:21:35 +0000 (13:21 -0700)]
syslog.h: missing LOG_MAKEPRI definition

Bug: 19681572
Change-Id: Ice5f5cb1f71522ffc47b2243a8dc4c277c2a288f

9 years agoMerge "Add the UMOUNT_NOFOLLOW flag to <sys/mount.h>."
Elliott Hughes [Wed, 11 Mar 2015 16:42:48 +0000 (16:42 +0000)]
Merge "Add the UMOUNT_NOFOLLOW flag to <sys/mount.h>."

9 years agoAdd the UMOUNT_NOFOLLOW flag to <sys/mount.h>.
Elliott Hughes [Wed, 11 Mar 2015 16:32:25 +0000 (09:32 -0700)]
Add the UMOUNT_NOFOLLOW flag to <sys/mount.h>.

Change-Id: I2b81cfc3147d9a0a6ac2a8f064e6d9864fa7e04d

9 years agoMerge "Rename LinkerAllocator and LinkerAllocatorPage"
Dmitriy Ivanov [Wed, 11 Mar 2015 00:37:48 +0000 (00:37 +0000)]
Merge "Rename LinkerAllocator and LinkerAllocatorPage"

9 years agoMerge "Refactoring: rename linker_allocator files"
Dmitriy Ivanov [Wed, 11 Mar 2015 00:35:22 +0000 (00:35 +0000)]
Merge "Refactoring: rename linker_allocator files"

9 years agoRename LinkerAllocator and LinkerAllocatorPage
Dmitriy Ivanov [Tue, 10 Mar 2015 22:43:50 +0000 (15:43 -0700)]
Rename LinkerAllocator and LinkerAllocatorPage

Change-Id: I87d80fbcd4ec26c0ee4f601b9c4c64f600418dd9

9 years agoRefactoring: rename linker_allocator files
Dmitriy Ivanov [Tue, 10 Mar 2015 22:30:26 +0000 (15:30 -0700)]
Refactoring: rename linker_allocator files

Change-Id: Ifc08e64b3a85205f072b7abab1149c7ab71e2f75

9 years agoam c16c8368: Merge "Generate gnu hash for arm only"
Dimitry Ivanov [Tue, 10 Mar 2015 17:41:18 +0000 (17:41 +0000)]
am c16c8368: Merge "Generate gnu hash for arm only"

* commit 'c16c8368773452e2d18d761a7b3ea6f249dc2ac5':
  Generate gnu hash for arm only

9 years agoMerge "Generate gnu hash for arm only"
Dimitry Ivanov [Tue, 10 Mar 2015 17:34:51 +0000 (17:34 +0000)]
Merge "Generate gnu hash for arm only"

9 years agoGenerate gnu hash for arm only
Goran Jakovljevic [Tue, 10 Mar 2015 16:11:39 +0000 (17:11 +0100)]
Generate gnu hash for arm only

Fixes build failure caused by:
https://android-review.googlesource.com/#/c/139660

As previously discussed [1], MIPS does not support GNU-style ELF hashes.

[1] https://android-review.googlesource.com/#/c/49282/2/tests/Android.mk

Change-Id: I9a7966eebfd1ef0a587a20b71faefde38e84ab62

9 years agoam a94cf791: Merge "Generate sysv hash for libc, libstdc++ and libm"
Dmitriy Ivanov [Tue, 10 Mar 2015 15:03:35 +0000 (15:03 +0000)]
am a94cf791: Merge "Generate sysv hash for libc, libstdc++ and libm"

* commit 'a94cf791c1c9b93d49f5573716de93348757ae15':
  Generate sysv hash for libc, libstdc++ and libm

9 years agoam 37c71b14: Merge "Loosen fchmodat AT_SYMLINK_NOFOLLOW test on symlink."
Yabin Cui [Tue, 10 Mar 2015 15:03:34 +0000 (15:03 +0000)]
am 37c71b14: Merge "Loosen fchmodat AT_SYMLINK_NOFOLLOW test on symlink."

* commit '37c71b14e51c53b0cb5daa19bf38559d063453dc':
  Loosen fchmodat AT_SYMLINK_NOFOLLOW test on symlink.

9 years agoMerge "Generate sysv hash for libc, libstdc++ and libm"
Dmitriy Ivanov [Tue, 10 Mar 2015 04:41:01 +0000 (04:41 +0000)]
Merge "Generate sysv hash for libc, libstdc++ and libm"

9 years agoMerge "Loosen fchmodat AT_SYMLINK_NOFOLLOW test on symlink."
Yabin Cui [Tue, 10 Mar 2015 04:14:12 +0000 (04:14 +0000)]
Merge "Loosen fchmodat AT_SYMLINK_NOFOLLOW test on symlink."

9 years agoGenerate sysv hash for libc, libstdc++ and libm
Dmitriy Ivanov [Tue, 10 Mar 2015 02:38:56 +0000 (19:38 -0700)]
Generate sysv hash for libc, libstdc++ and libm

Bug: 19059885
Change-Id: I35e2a9cd0bb3914d9d0c82d163bfaf0fff844667

9 years agoLoosen fchmodat AT_SYMLINK_NOFOLLOW test on symlink.
Yabin Cui [Mon, 9 Mar 2015 20:55:18 +0000 (13:55 -0700)]
Loosen fchmodat AT_SYMLINK_NOFOLLOW test on symlink.

It has been reported in b2/19657449 and b2/19381040 that fchmodat
AT_SYMLINK_NOFOLLOW operation on symlink can succeed. It seems to be
controlled by kernel(version or configuration) or user configuration
whether chmod is allowed on symlinks. Unless we can disable chmod on
symlinks in bionic explicitly, we can not guarantee that the test can
pass. But it seems reasonable to allow chmod on symlink if kernel allows
to. So We prefer to loosen the test here, accepting both success and
failure when doing chmod operation on symlinks.

Bug: 19657449
Bug: 19381040
Change-Id: I780e84f0b50d0412fbac9f1c240d07e984892a28

9 years agoam 017f94d3: Merge "Store fields for gnu_hash separately"
Dmitriy Ivanov [Mon, 9 Mar 2015 21:11:02 +0000 (21:11 +0000)]
am 017f94d3: Merge "Store fields for gnu_hash separately"

* commit '017f94d34eedfaca1c62cb35a65b8436f04b8f62':
  Store fields for gnu_hash separately

9 years agoMerge "Store fields for gnu_hash separately"
Dmitriy Ivanov [Mon, 9 Mar 2015 21:05:51 +0000 (21:05 +0000)]
Merge "Store fields for gnu_hash separately"

9 years agoStore fields for gnu_hash separately
Dmitriy Ivanov [Mon, 9 Mar 2015 19:02:02 +0000 (12:02 -0700)]
Store fields for gnu_hash separately

  Kindle app relies on soinfo's sysv hash
  fields while linking native libraries.

  This change allows to keep sysv hash fields
  intact for the libraries linked with --hash-style=both.

Bug: 19059885
Change-Id: I12528652955638f1a6586bda99e111bb1c8aa7a3

9 years agoAdd the optimized implementation of 18 math functions for x86 and x86_64 respectively
Jingwei Zhang [Fri, 31 Oct 2014 10:29:18 +0000 (18:29 +0800)]
Add the optimized implementation of 18 math functions for x86 and x86_64 respectively

Change-Id: I31bf601448a9427f825517f3a0ff24de47f49bfa
Signed-off-by: Jingwei Zhang <jingwei.zhang@intel.com>
Signed-off-by: Mingwei Shi <mingwei.shi@intel.com>
9 years agoam edc1d3e3: Merge "linker: Allow an app to update it\'s own LD_LIBRARY_PATH"
Nick Kralevich [Sat, 7 Mar 2015 23:38:35 +0000 (23:38 +0000)]
am edc1d3e3: Merge "linker: Allow an app to update it\'s own LD_LIBRARY_PATH"

* commit 'edc1d3e3c6266eadcd05a9aa7bcdec701ba060aa':
  linker: Allow an app to update it's own LD_LIBRARY_PATH

9 years agoMerge "linker: Allow an app to update it's own LD_LIBRARY_PATH"
Nick Kralevich [Sat, 7 Mar 2015 23:31:31 +0000 (23:31 +0000)]
Merge "linker: Allow an app to update it's own LD_LIBRARY_PATH"

9 years agolinker: Allow an app to update it's own LD_LIBRARY_PATH
Nick Kralevich [Sat, 7 Mar 2015 21:37:05 +0000 (13:37 -0800)]
linker: Allow an app to update it's own LD_LIBRARY_PATH

When the kernel executes a program which is setuid, setgid, has
file capabilities, or causes an SELinux domain transition, the
AT_SECURE flag is set. This flag instructs the dynamic linker to
prune any dangerous environment variables passed across security
boundaries.

For SELinux in particular, whether this flag is set depends on the
the "noatsecure" process permission. If that permission does not
exist, then AT_SECURE=1 whenever a domain transition occurs.

In https://android-review.googlesource.com/129971 , Android stopped
using noatsecure when executing init services. In
https://android-review.googlesource.com/130610 , init was flipped
back into SELinux enforcing mode, making ag/129971 active. The
combination of those two changes ensured that AT_SECURE=1 was
set when executing init spawned services.

In particular, AT_SECURE=1 is set when init executes zygote. Due to
the forking nature of zygote, AT_SECURE remains untouched when
executing zygote's children.

This causes problems for the code added in
https://android-review.googlesource.com/48409 . Specifically, if
AT_SECURE=1, an attempt to call android_update_LD_LIBRARY_PATH()
is silently ignored. This causes problems when art tries to adjust
the LD_LIBRARY_PATH for Android apps. Ultimately, apps are unable
to find shared libraries they depend on.

As discussed in bug 7896159, there's no security reason for
preventing an application from updating it's own LD_LIBRARY_PATH.
We only need to prune LD_LIBRARY_PATH when transitioning across
security boundaries, but not when we're entirely within a security
boundary.

Remove the AT_SECURE check within do_android_update_LD_LIBRARY_PATH().
It's unneeded and prevents an application from modifying it's own
LD_LIBRARY_PATH. This allows an application to specify a location
where it's dlopen()ed shared libraries should be loaded from.

There is no change to AT_SECURE handling in
__sanitize_environment_variables(). We continue to honor it there
to prevent using security sensitive environment variables across
an exec boundary.

Bug: 19559835
Change-Id: If4af2ee8e84265aaa0c93de8b281208b20d7942a

9 years agoam 9afb08dd: Merge "libm: Add hardware sqrt, ceil, floor and trunc for x86 & x86_64"
Christopher Ferris [Sat, 7 Mar 2015 17:13:22 +0000 (17:13 +0000)]
am 9afb08dd: Merge "libm: Add hardware sqrt, ceil, floor and trunc for x86 & x86_64"

* commit '9afb08dd0984acea49da5aae21b41522cb805dac':
  libm: Add hardware sqrt, ceil, floor and trunc for x86 & x86_64

9 years agoam 536ec735: Merge changes I796a4ce8,I6165d062,I66c95d90,Ia67fa11d
Dmitriy Ivanov [Sat, 7 Mar 2015 17:13:21 +0000 (17:13 +0000)]
am 536ec735: Merge changes I796a4ce8,I6165d062,I66c95d90,Ia67fa11d

* commit '536ec7359eb951655e389443aa918a4bb16b2d8b':
  Add support for packed relocations.
  Refactoring: introduce reloc_iterators
  Generalize compression tool
  Import relocation packer from chromium repo

9 years agoam e86a86f9: Merge "Remove PTHREAD_ATTR_FLAG_MAIN_THREAD."
Yabin Cui [Sat, 7 Mar 2015 17:13:21 +0000 (17:13 +0000)]
am e86a86f9: Merge "Remove PTHREAD_ATTR_FLAG_MAIN_THREAD."

* commit 'e86a86f9f24df7028d2596c69ff008cf88e039e4':
  Remove PTHREAD_ATTR_FLAG_MAIN_THREAD.

9 years agoMerge "libm: Add hardware sqrt, ceil, floor and trunc for x86 & x86_64"
Christopher Ferris [Sat, 7 Mar 2015 16:46:26 +0000 (16:46 +0000)]
Merge "libm: Add hardware sqrt, ceil, floor and trunc for x86 & x86_64"

9 years agoMerge changes I796a4ce8,I6165d062,I66c95d90,Ia67fa11d
Dmitriy Ivanov [Sat, 7 Mar 2015 07:08:50 +0000 (07:08 +0000)]
Merge changes I796a4ce8,I6165d062,I66c95d90,Ia67fa11d

* changes:
  Add support for packed relocations.
  Refactoring: introduce reloc_iterators
  Generalize compression tool
  Import relocation packer from chromium repo

9 years agoAdd support for packed relocations.
Dmitriy Ivanov [Thu, 5 Feb 2015 00:05:30 +0000 (16:05 -0800)]
Add support for packed relocations.

Change-Id: I796a4ce86d3fccb8361c19889419c96147ee3c9f

9 years agolibm: Add hardware sqrt, ceil, floor and trunc for x86 & x86_64
James Rose [Wed, 12 Nov 2014 19:05:54 +0000 (12:05 -0700)]
libm: Add hardware sqrt, ceil, floor and trunc for x86 & x86_64

Add hardware implementations for sqrt, ceil, floor and trunc for
x86 and x86_64. These routines, and in particular sqrt are much
faster than the BSD C language versions of these functions.

Fixed whitespace errors.

Revised x86 versions with respect to alignment.
Rebased for Android 5.0

Change-Id: I86bdb520ce5e589b0cf63778f353fbd3263c8f0e
Author: James Rose <james.rose@intel.com>
Signed-off-by: James Rose <james.rose@intel.com>
9 years agoMerge "Remove PTHREAD_ATTR_FLAG_MAIN_THREAD."
Yabin Cui [Fri, 6 Mar 2015 23:21:11 +0000 (23:21 +0000)]
Merge "Remove PTHREAD_ATTR_FLAG_MAIN_THREAD."

9 years agoRemove PTHREAD_ATTR_FLAG_MAIN_THREAD.
Yabin Cui [Fri, 6 Mar 2015 21:48:58 +0000 (13:48 -0800)]
Remove PTHREAD_ATTR_FLAG_MAIN_THREAD.

Make this change because I think it is more reasonable to check stack info
in pthread_getattr_np. I believe pthread_attr_t is not tied with any thread,
and can't have a flag saying who using it is the main thread.
This change also helps refactor of g_thread_list_lock.

Bug: 19636317
Change-Id: Iedbb85a391ac3e1849dd036d01445dac4bc63db9

9 years agoRefactoring: introduce reloc_iterators
Dmitriy Ivanov [Wed, 4 Feb 2015 00:06:47 +0000 (16:06 -0800)]
Refactoring: introduce reloc_iterators

 Replace rel/rela array with reloc_iterators.

Change-Id: I6165d062e0390b6bc60da2e8279aabbedf828ec9

9 years agoGeneralize compression tool
Dmitriy Ivanov [Wed, 28 Jan 2015 03:32:56 +0000 (19:32 -0800)]
Generalize compression tool

 1. One binary for all architectures
 2. Generalize (and slightly improve) compression
 2.1 works on all relocation types (rela?.dyn section only so far)
 2.2 Uses same format to encode ElfW(Rel) as well as ElfW(Rela) tables

Bug: 18051137
Change-Id: I66c95d9076954ca115816fc577d0f5ef274e5e72

9 years agoImport relocation packer from chromium repo
Dmitriy Ivanov [Fri, 6 Feb 2015 18:56:28 +0000 (10:56 -0800)]
Import relocation packer from chromium repo

Bug: 18051137
Change-Id: Ia67fa11da8247e3f86f70a8ce99e6695f2c05423

9 years agoam 45ee73a7: Merge "Rename fortify_sprintf_warnings.cpp to fortify_compilation_test...
Yabin Cui [Fri, 6 Mar 2015 21:00:16 +0000 (21:00 +0000)]
am 45ee73a7: Merge "Rename fortify_sprintf_warnings.cpp to fortify_compilation_test.cpp."

* commit '45ee73a7fbe98cba2ccb007b60c027d27dfca1cb':
  Rename fortify_sprintf_warnings.cpp to fortify_compilation_test.cpp.

9 years agoMerge "Rename fortify_sprintf_warnings.cpp to fortify_compilation_test.cpp."
Yabin Cui [Fri, 6 Mar 2015 20:52:30 +0000 (20:52 +0000)]
Merge "Rename fortify_sprintf_warnings.cpp to fortify_compilation_test.cpp."

9 years agoam fe4f2a67: Merge "Use pthread_once for g_uselocale_key creation."
Yabin Cui [Fri, 6 Mar 2015 05:34:31 +0000 (05:34 +0000)]
am fe4f2a67: Merge "Use pthread_once for g_uselocale_key creation."

* commit 'fe4f2a6734ed3ace50606900143e84993f450caf':
  Use pthread_once for g_uselocale_key creation.

9 years agoMerge "Use pthread_once for g_uselocale_key creation."
Yabin Cui [Fri, 6 Mar 2015 05:28:24 +0000 (05:28 +0000)]
Merge "Use pthread_once for g_uselocale_key creation."

9 years agoUse pthread_once for g_uselocale_key creation.
Yabin Cui [Fri, 6 Mar 2015 04:08:21 +0000 (20:08 -0800)]
Use pthread_once for g_uselocale_key creation.

Bug: 19625804
Change-Id: I57ec4c965067dc0c157c795c1f7217a3ca403286

9 years agoam 71bf8379: Merge "libm: arm: add arm specific sqrt and sqrtf"
Christopher Ferris [Thu, 5 Mar 2015 21:59:08 +0000 (21:59 +0000)]
am 71bf8379: Merge "libm: arm: add arm specific sqrt and sqrtf"

* commit '71bf837982446b31f435031ed2d10aa1c8c15988':
  libm: arm: add arm specific sqrt and sqrtf

9 years agoMerge "libm: arm: add arm specific sqrt and sqrtf"
Christopher Ferris [Thu, 5 Mar 2015 21:55:20 +0000 (21:55 +0000)]
Merge "libm: arm: add arm specific sqrt and sqrtf"

9 years agoam c3307dc4: Merge "Better control of pthread keys used in bionic."
Yabin Cui [Thu, 5 Mar 2015 18:33:31 +0000 (18:33 +0000)]
am c3307dc4: Merge "Better control of pthread keys used in bionic."

* commit 'c3307dc43b2526c4031837738b139d22831c5d09':
  Better control of pthread keys used in bionic.

9 years agoMerge "Better control of pthread keys used in bionic."
Yabin Cui [Thu, 5 Mar 2015 18:26:43 +0000 (18:26 +0000)]
Merge "Better control of pthread keys used in bionic."

9 years agoam 5d400204: Merge "Fix fortify compilation test in x86_64."
Yabin Cui [Thu, 5 Mar 2015 08:47:12 +0000 (08:47 +0000)]
am 5d400204: Merge "Fix fortify compilation test in x86_64."

* commit '5d400204589ceb781fa11864c2e8f3001e5dc96f':
  Fix fortify compilation test in x86_64.

9 years agoRename fortify_sprintf_warnings.cpp to fortify_compilation_test.cpp.
Yabin Cui [Wed, 4 Mar 2015 23:31:55 +0000 (15:31 -0800)]
Rename fortify_sprintf_warnings.cpp to fortify_compilation_test.cpp.

Bug: 19234260
Change-Id: Ife27ca13eeae317739eda25b40dd2a08606d6d6f

9 years agoMerge "Fix fortify compilation test in x86_64."
Yabin Cui [Thu, 5 Mar 2015 08:40:58 +0000 (08:40 +0000)]
Merge "Fix fortify compilation test in x86_64."

9 years agoFix fortify compilation test in x86_64.
Yabin Cui [Thu, 5 Mar 2015 08:39:09 +0000 (00:39 -0800)]
Fix fortify compilation test in x86_64.

Change-Id: Ic243f6583e4f435899d01c7845dddacacbfc916e

9 years agoam 1c78181a: Merge "Fix fortify compilation test on x86."
Yabin Cui [Thu, 5 Mar 2015 06:39:55 +0000 (06:39 +0000)]
am 1c78181a: Merge "Fix fortify compilation test on x86."

* commit '1c78181a9da19778dbbcc162854f9564a51243bf':
  Fix fortify compilation test on x86.

9 years agoMerge "Fix fortify compilation test on x86."
Yabin Cui [Thu, 5 Mar 2015 06:36:47 +0000 (06:36 +0000)]
Merge "Fix fortify compilation test on x86."

9 years agoFix fortify compilation test on x86.
Yabin Cui [Thu, 5 Mar 2015 06:35:13 +0000 (22:35 -0800)]
Fix fortify compilation test on x86.

Change-Id: I9b88cbcec51b6f1dbac2780a9bf82851bd6cc87c

9 years agoam 5ad57ce6: Merge "Fix fortify compilation test on mips."
Yabin Cui [Thu, 5 Mar 2015 05:50:33 +0000 (05:50 +0000)]
am 5ad57ce6: Merge "Fix fortify compilation test on mips."

* commit '5ad57ce6ab95a12ab738eb7cd3595745ddd60d8d':
  Fix fortify compilation test on mips.

9 years agoMerge "Fix fortify compilation test on mips."
Yabin Cui [Thu, 5 Mar 2015 05:46:15 +0000 (05:46 +0000)]
Merge "Fix fortify compilation test on mips."

9 years agoFix fortify compilation test on mips.
Yabin Cui [Thu, 5 Mar 2015 05:43:14 +0000 (21:43 -0800)]
Fix fortify compilation test on mips.

Change-Id: Icff5b859ae58067bfa34430d3f5684335fe063b4

9 years agoam e1c0213b: Merge "Switch pthread_rwlock_t to stdatomic."
Yabin Cui [Thu, 5 Mar 2015 04:48:48 +0000 (04:48 +0000)]
am e1c0213b: Merge "Switch pthread_rwlock_t to stdatomic."

* commit 'e1c0213be3f0c2c4e310cbc262da88835a2e5d86':
  Switch pthread_rwlock_t to stdatomic.

9 years agoMerge "Switch pthread_rwlock_t to stdatomic."
Yabin Cui [Thu, 5 Mar 2015 04:42:35 +0000 (04:42 +0000)]
Merge "Switch pthread_rwlock_t to stdatomic."