OSDN Git Service

android-x86/bionic.git
9 years agoam 36927c79: am 57e800d5: Merge "Refactoring: rename linker_allocator files"
Dmitriy Ivanov [Wed, 11 Mar 2015 23:02:17 +0000 (23:02 +0000)]
am 36927c79: am 57e800d5: Merge "Refactoring: rename linker_allocator files"

* commit '36927c796b26f6c4f9771e4935615e9edf2205c3':
  Refactoring: rename linker_allocator files

9 years agoam 1f2b704c: am e842dc0d: am c16c8368: Merge "Generate gnu hash for arm only"
Dimitry Ivanov [Wed, 11 Mar 2015 20:09:29 +0000 (20:09 +0000)]
am 1f2b704c: am e842dc0d: am c16c8368: Merge "Generate gnu hash for arm only"

* commit '1f2b704ccf5102ca759f0721f0612bcf84fd5cc9':
  Generate gnu hash for arm only

9 years agoam 57e800d5: Merge "Refactoring: rename linker_allocator files"
Dmitriy Ivanov [Wed, 11 Mar 2015 03:19:20 +0000 (03:19 +0000)]
am 57e800d5: Merge "Refactoring: rename linker_allocator files"

* commit '57e800d534b43bda849858ed4bb47d556469032f':
  Refactoring: rename linker_allocator files

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 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 6d0735fa: am dca2fadd: am a94cf791: Merge "Generate sysv hash for libc, libstdc...
Dmitriy Ivanov [Tue, 10 Mar 2015 22:04:33 +0000 (22:04 +0000)]
am 6d0735fa: am dca2fadd: am a94cf791: Merge "Generate sysv hash for libc, libstdc++ and libm"

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

9 years agoam 981fdd0e: am 50119cec: am 37c71b14: Merge "Loosen fchmodat AT_SYMLINK_NOFOLLOW...
Yabin Cui [Tue, 10 Mar 2015 22:04:32 +0000 (22:04 +0000)]
am 981fdd0e: am 50119cec: am 37c71b14: Merge "Loosen fchmodat AT_SYMLINK_NOFOLLOW test on symlink."

* commit '981fdd0e5580f5a51e52dc1105fa95ec6705d017':
  Loosen fchmodat AT_SYMLINK_NOFOLLOW test on symlink.

9 years agoam 240a7910: am 8af6a7b3: am 017f94d3: Merge "Store fields for gnu_hash separately"
Dmitriy Ivanov [Tue, 10 Mar 2015 18:15:58 +0000 (18:15 +0000)]
am 240a7910: am 8af6a7b3: am 017f94d3: Merge "Store fields for gnu_hash separately"

* commit '240a7910ab46bc1f247270c3edafbb4e18616f60':
  Store fields for gnu_hash separately

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

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

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 dca2fadd: am a94cf791: Merge "Generate sysv hash for libc, libstdc++ and libm"
Dmitriy Ivanov [Tue, 10 Mar 2015 15:12:09 +0000 (15:12 +0000)]
am dca2fadd: am a94cf791: Merge "Generate sysv hash for libc, libstdc++ and libm"

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

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

* commit '50119cec8d872df02547af39a3a85aea9125299b':
  Loosen fchmodat AT_SYMLINK_NOFOLLOW test on symlink.

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 8af6a7b3: am 017f94d3: Merge "Store fields for gnu_hash separately"
Dmitriy Ivanov [Mon, 9 Mar 2015 21:15:50 +0000 (21:15 +0000)]
am 8af6a7b3: am 017f94d3: Merge "Store fields for gnu_hash separately"

* commit '8af6a7b38e1ce134d537f359d8cf4780ed9d8f58':
  Store fields for gnu_hash separately

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 agoam 563fd91a: am 9e08606c: am edc1d3e3: Merge "linker: Allow an app to update it\...
Nick Kralevich [Sun, 8 Mar 2015 00:18:04 +0000 (00:18 +0000)]
am 563fd91a: am 9e08606c: am edc1d3e3: Merge "linker: Allow an app to update it\'s own LD_LIBRARY_PATH"

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

9 years agoam 0e2b8b80: am 5c329e45: am 9afb08dd: Merge "libm: Add hardware sqrt, ceil, floor...
Christopher Ferris [Sun, 8 Mar 2015 00:18:03 +0000 (00:18 +0000)]
am 0e2b8b80: am 5c329e45: am 9afb08dd: Merge "libm: Add hardware sqrt, ceil, floor and trunc for x86 & x86_64"

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

9 years agoam 7d62778c: am 2bf9f30a: am 536ec735: Merge changes I796a4ce8,I6165d062,I66c95d90...
Dmitriy Ivanov [Sun, 8 Mar 2015 00:18:02 +0000 (00:18 +0000)]
am 7d62778c: am 2bf9f30a: am 536ec735: Merge changes I796a4ce8,I6165d062,I66c95d90,Ia67fa11d

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

9 years agoam 7db2acbb: am 2bb873ae: am e86a86f9: Merge "Remove PTHREAD_ATTR_FLAG_MAIN_THREAD."
Yabin Cui [Sun, 8 Mar 2015 00:18:01 +0000 (00:18 +0000)]
am 7db2acbb: am 2bb873ae: am e86a86f9: Merge "Remove PTHREAD_ATTR_FLAG_MAIN_THREAD."

* commit '7db2acbb694871da2b02ccf2261c01e0faf812ae':
  Remove PTHREAD_ATTR_FLAG_MAIN_THREAD.

9 years agoam 39416d70: am a1d1f658: am 45ee73a7: Merge "Rename fortify_sprintf_warnings.cpp...
Yabin Cui [Sun, 8 Mar 2015 00:18:00 +0000 (00:18 +0000)]
am 39416d70: am a1d1f658: am 45ee73a7: Merge "Rename fortify_sprintf_warnings.cpp to fortify_compilation_test.cpp."

* commit '39416d701cdbcff68d7ed11720b61d8a4a9e66bd':
  Rename fortify_sprintf_warnings.cpp to fortify_compilation_test.cpp.

9 years agoam 185d511b: am af1ad422: am fe4f2a67: Merge "Use pthread_once for g_uselocale_key...
Yabin Cui [Sun, 8 Mar 2015 00:17:59 +0000 (00:17 +0000)]
am 185d511b: am af1ad422: am fe4f2a67: Merge "Use pthread_once for g_uselocale_key creation."

* commit '185d511bf827d864397e8ac2dd886ae19618f71d':
  Use pthread_once for g_uselocale_key creation.

9 years agoam 9e08606c: am edc1d3e3: Merge "linker: Allow an app to update it\'s own LD_LIBRARY_...
Nick Kralevich [Sun, 8 Mar 2015 00:08:43 +0000 (00:08 +0000)]
am 9e08606c: am edc1d3e3: Merge "linker: Allow an app to update it\'s own LD_LIBRARY_PATH"

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

9 years agoam 5c329e45: am 9afb08dd: Merge "libm: Add hardware sqrt, ceil, floor and trunc for...
Christopher Ferris [Sun, 8 Mar 2015 00:08:32 +0000 (00:08 +0000)]
am 5c329e45: am 9afb08dd: Merge "libm: Add hardware sqrt, ceil, floor and trunc for x86 & x86_64"

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

9 years agoam 2bf9f30a: am 536ec735: Merge changes I796a4ce8,I6165d062,I66c95d90,Ia67fa11d
Dmitriy Ivanov [Sun, 8 Mar 2015 00:08:30 +0000 (00:08 +0000)]
am 2bf9f30a: am 536ec735: Merge changes I796a4ce8,I6165d062,I66c95d90,Ia67fa11d

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

9 years agoam 2bb873ae: am e86a86f9: Merge "Remove PTHREAD_ATTR_FLAG_MAIN_THREAD."
Yabin Cui [Sun, 8 Mar 2015 00:08:29 +0000 (00:08 +0000)]
am 2bb873ae: am e86a86f9: Merge "Remove PTHREAD_ATTR_FLAG_MAIN_THREAD."

* commit '2bb873aee94db4f317a62480b07f6d4d1d33da6d':
  Remove PTHREAD_ATTR_FLAG_MAIN_THREAD.

9 years agoam a1d1f658: am 45ee73a7: Merge "Rename fortify_sprintf_warnings.cpp to fortify_compi...
Yabin Cui [Sun, 8 Mar 2015 00:07:50 +0000 (00:07 +0000)]
am a1d1f658: am 45ee73a7: Merge "Rename fortify_sprintf_warnings.cpp to fortify_compilation_test.cpp."

* commit 'a1d1f658b5ed0508a21c87008a13830530660eba':
  Rename fortify_sprintf_warnings.cpp to fortify_compilation_test.cpp.

9 years agoam af1ad422: am fe4f2a67: Merge "Use pthread_once for g_uselocale_key creation."
Yabin Cui [Sun, 8 Mar 2015 00:07:22 +0000 (00:07 +0000)]
am af1ad422: am fe4f2a67: Merge "Use pthread_once for g_uselocale_key creation."

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

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 35e88f9b: am e953f3cf: am 71bf8379: Merge "libm: arm: add arm specific sqrt and...
Christopher Ferris [Thu, 5 Mar 2015 22:43:24 +0000 (22:43 +0000)]
am 35e88f9b: am e953f3cf: am 71bf8379: Merge "libm: arm: add arm specific sqrt and sqrtf"

* commit '35e88f9b8bf51b75bb4fe7a72d43875bfed228f6':
  libm: arm: add arm specific sqrt and sqrtf

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

* commit 'e953f3cf985e810071d707bcc296b20ec6e2e8dd':
  libm: arm: add arm specific sqrt and sqrtf

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 807c623b: am 9ecb7f40: am c3307dc4: Merge "Better control of pthread keys used...
Yabin Cui [Thu, 5 Mar 2015 19:26:31 +0000 (19:26 +0000)]
am 807c623b: am 9ecb7f40: am c3307dc4: Merge "Better control of pthread keys used in bionic."

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

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

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

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 4710b5fb: am 917cb395: am 5d400204: Merge "Fix fortify compilation test in x86_64."
Yabin Cui [Thu, 5 Mar 2015 08:59:33 +0000 (08:59 +0000)]
am 4710b5fb: am 917cb395: am 5d400204: Merge "Fix fortify compilation test in x86_64."

* commit '4710b5fb5d0939c2212769b054d700152f7fd885':
  Fix fortify compilation test in x86_64.

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

* commit '917cb395bc7c71b34d3a4feca0c619d2aaf89fd8':
  Fix fortify compilation test in x86_64.

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 3801fb1e: am f9b3f25e: am 1c78181a: Merge "Fix fortify compilation test on x86."
Yabin Cui [Thu, 5 Mar 2015 06:51:36 +0000 (06:51 +0000)]
am 3801fb1e: am f9b3f25e: am 1c78181a: Merge "Fix fortify compilation test on x86."

* commit '3801fb1e8bbaeef23f6a0cf8709ecd60d4ec5f6a':
  Fix fortify compilation test on x86.

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

* commit 'f9b3f25e0ba641cc59a741492737f4712f2d798a':
  Fix fortify compilation test on x86.

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 9336f832: am c2917ec7: am 5ad57ce6: Merge "Fix fortify compilation test on mips."
Yabin Cui [Thu, 5 Mar 2015 06:02:53 +0000 (06:02 +0000)]
am 9336f832: am c2917ec7: am 5ad57ce6: Merge "Fix fortify compilation test on mips."

* commit '9336f83244956c9dcea2ecb0c7a2768b85a953be':
  Fix fortify compilation test on mips.

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

* commit 'c2917ec702d25955c6d139d76cfb7d607079141e':
  Fix fortify compilation test on mips.

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 8e91a1ff: am 80aa71aa: am e1c0213b: Merge "Switch pthread_rwlock_t to stdatomic."
Yabin Cui [Thu, 5 Mar 2015 05:00:35 +0000 (05:00 +0000)]
am 8e91a1ff: am 80aa71aa: am e1c0213b: Merge "Switch pthread_rwlock_t to stdatomic."

* commit '8e91a1ff73b865f9ed5f8ee4a493394e8b3ba302':
  Switch pthread_rwlock_t to stdatomic.

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

* commit '80aa71aa71033fa8c03f8b7a9032643294f60006':
  Switch pthread_rwlock_t to stdatomic.

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."

9 years agoSwitch pthread_rwlock_t to stdatomic.
Yabin Cui [Thu, 12 Feb 2015 01:04:36 +0000 (17:04 -0800)]
Switch pthread_rwlock_t to stdatomic.

Bug: 19099838
Change-Id: Ie82967a60b5cec61a8bdd1e0e4a03738d01944f8

9 years agoBetter control of pthread keys used in bionic.
Yabin Cui [Thu, 5 Mar 2015 00:53:23 +0000 (16:53 -0800)]
Better control of pthread keys used in bionic.

Change-Id: I1e1bc77c0e7879baead6c3417282ce549a1153b5

9 years agoam ea0cbb9a: am 821653e6: am dec9501a: Merge "Add fortify compile test."
Yabin Cui [Thu, 5 Mar 2015 00:10:17 +0000 (00:10 +0000)]
am ea0cbb9a: am 821653e6: am dec9501a: Merge "Add fortify compile test."

* commit 'ea0cbb9a274e2b9294545b7ab877906ed4c3d202':
  Add fortify compile test.

9 years agoam 821653e6: am dec9501a: Merge "Add fortify compile test."
Yabin Cui [Thu, 5 Mar 2015 00:06:03 +0000 (00:06 +0000)]
am 821653e6: am dec9501a: Merge "Add fortify compile test."

* commit '821653e65f481b65c608bb3eb89190f7a85356c7':
  Add fortify compile test.

9 years agoam dec9501a: Merge "Add fortify compile test."
Yabin Cui [Wed, 4 Mar 2015 23:55:21 +0000 (23:55 +0000)]
am dec9501a: Merge "Add fortify compile test."

* commit 'dec9501af2ee4d7cec3a163310d42e8ea1b8c58f':
  Add fortify compile test.

9 years agoMerge "Add fortify compile test."
Yabin Cui [Wed, 4 Mar 2015 23:25:42 +0000 (23:25 +0000)]
Merge "Add fortify compile test."

9 years agoam 59c32458: am 1edafd56: am 86ac7341: Merge "Add aarch64 instructions wherever possible"
Christopher Ferris [Wed, 4 Mar 2015 23:24:45 +0000 (23:24 +0000)]
am 59c32458: am 1edafd56: am 86ac7341: Merge "Add aarch64 instructions wherever possible"

* commit '59c324581f58243564ec6db1688e5e1c3e220750':
  Add aarch64 instructions wherever possible

9 years agoam 1edafd56: am 86ac7341: Merge "Add aarch64 instructions wherever possible"
Christopher Ferris [Wed, 4 Mar 2015 22:51:40 +0000 (22:51 +0000)]
am 1edafd56: am 86ac7341: Merge "Add aarch64 instructions wherever possible"

* commit '1edafd561aefe07dd39273c1c09a9dbb308549d6':
  Add aarch64 instructions wherever possible

9 years agoam 86ac7341: Merge "Add aarch64 instructions wherever possible"
Christopher Ferris [Wed, 4 Mar 2015 22:44:43 +0000 (22:44 +0000)]
am 86ac7341: Merge "Add aarch64 instructions wherever possible"

* commit '86ac734142a4d0765ceb589e7dcc3af1a4f4a8dd':
  Add aarch64 instructions wherever possible

9 years agolibm: arm: add arm specific sqrt and sqrtf
Shu Zhang [Wed, 23 Jul 2014 09:21:55 +0000 (17:21 +0800)]
libm: arm: add arm specific sqrt and sqrtf

Add arm specific optimized sqrt and sqrtf.

Change-Id: I8ea417fc98a800c8cf4f47a0c6668c51d927b1dc

9 years agoMerge "Add aarch64 instructions wherever possible"
Christopher Ferris [Wed, 4 Mar 2015 21:52:00 +0000 (21:52 +0000)]
Merge "Add aarch64 instructions wherever possible"

9 years agoAdd fortify compile test.
Yabin Cui [Wed, 4 Mar 2015 04:27:58 +0000 (20:27 -0800)]
Add fortify compile test.

Two parts of tests are added:
1. Compile time warnings for gcc checking built-in functions.
2. Compile time errors for each errordecl() in bionic.

Bug: 19234260
Change-Id: Iec6e4a8070c36815574fe9e0af9595d6143a4757

9 years agoAdd aarch64 instructions wherever possible
Amaury Le Leyzour [Tue, 17 Feb 2015 23:05:51 +0000 (15:05 -0800)]
Add aarch64 instructions wherever possible

fma, sqrt and various rounding functions have aarch64 instruction equivalent

Change-Id: I1284f31b9f78f914281e5563b8d44db8362b627d

9 years agoam 01351a72: am c210e84f: am e1edd301: Merge "Refactor pthread_key.cpp to be lock...
Yabin Cui [Wed, 4 Mar 2015 02:09:32 +0000 (02:09 +0000)]
am 01351a72: am c210e84f: am e1edd301: Merge "Refactor pthread_key.cpp to be lock-free."

* commit '01351a728935bd52d1cb10d10c4c6aa686305053':
  Refactor pthread_key.cpp to be lock-free.

9 years agoam c210e84f: am e1edd301: Merge "Refactor pthread_key.cpp to be lock-free."
Yabin Cui [Wed, 4 Mar 2015 02:00:43 +0000 (02:00 +0000)]
am c210e84f: am e1edd301: Merge "Refactor pthread_key.cpp to be lock-free."

* commit 'c210e84f28633d15f84a66a0652a4485c5fbc24d':
  Refactor pthread_key.cpp to be lock-free.

9 years agoam e1edd301: Merge "Refactor pthread_key.cpp to be lock-free."
Yabin Cui [Wed, 4 Mar 2015 01:53:46 +0000 (01:53 +0000)]
am e1edd301: Merge "Refactor pthread_key.cpp to be lock-free."

* commit 'e1edd301d2a722e0a0687a7a3a87081c8cb956d3':
  Refactor pthread_key.cpp to be lock-free.