OSDN Git Service

android-x86/bionic.git
9 years agoam 671f96cd: Merge "Ensure __set_errno is still visible on LP32."
Elliott Hughes [Tue, 9 Sep 2014 00:05:24 +0000 (00:05 +0000)]
am 671f96cd: Merge "Ensure __set_errno is still visible on LP32."

* commit '671f96cd440d306dc2baf5e8631e927cd1aa759d':
  Ensure __set_errno is still visible on LP32.

9 years agoam 201f36d2: Merge "Don\'t expose non-standard basename_r and dirname_r in LP64."
Elliott Hughes [Tue, 9 Sep 2014 00:05:23 +0000 (00:05 +0000)]
am 201f36d2: Merge "Don\'t expose non-standard basename_r and dirname_r in LP64."

* commit '201f36d23bb778b29c8d305fa40a41990e0487bc':
  Don't expose non-standard basename_r and dirname_r in LP64.

9 years agoMerge "Ensure __set_errno is still visible on LP32."
Elliott Hughes [Mon, 8 Sep 2014 23:47:53 +0000 (23:47 +0000)]
Merge "Ensure __set_errno is still visible on LP32."

9 years agoEnsure __set_errno is still visible on LP32.
Elliott Hughes [Mon, 8 Sep 2014 22:25:01 +0000 (15:25 -0700)]
Ensure __set_errno is still visible on LP32.

The use of the .hidden directive to avoid going via the PLT for
__set_errno had the side-effect of actually making __set_errno
hidden (which is odd because assembler directives don't usually
affect symbols defined in a different file --- you can't even
create a weak reference to a symbol that's defined in a different
file).

This change switches the system call stubs over to a new always-hidden
__set_errno_internal and has a visible __set_errno on LP32 just for
binary compatibility with old NDK apps.

(cherry-pick of 7efad83d430f4d824f2aaa75edea5106f6ff8aae.)

Bug: 17423135
Change-Id: I6b6d7a05dda85f923d22e5ffd169a91e23499b7b

9 years agoMerge "Don't expose non-standard basename_r and dirname_r in LP64."
Elliott Hughes [Mon, 8 Sep 2014 23:46:04 +0000 (23:46 +0000)]
Merge "Don't expose non-standard basename_r and dirname_r in LP64."

9 years agoDon't expose non-standard basename_r and dirname_r in LP64.
Elliott Hughes [Fri, 5 Sep 2014 23:12:42 +0000 (16:12 -0700)]
Don't expose non-standard basename_r and dirname_r in LP64.

(cherry-pick of f0e9458ea596227720fa745df15f5357f6c0c8f6.)

Bug: 17407423
Change-Id: I47fe499a4c396bf09d7b78fd828728d04777398b

9 years agoresolved conflicts for merge of 7efad83d to lmp-dev-plus-aosp
Elliott Hughes [Mon, 8 Sep 2014 23:21:24 +0000 (16:21 -0700)]
resolved conflicts for merge of 7efad83d to lmp-dev-plus-aosp

Change-Id: I3994c3c69e187e08d69642e097de14b5040c5b3b

9 years agoEnsure __set_errno is still visible on LP32.
Elliott Hughes [Mon, 8 Sep 2014 22:25:01 +0000 (15:25 -0700)]
Ensure __set_errno is still visible on LP32.

The use of the .hidden directive to avoid going via the PLT for
__set_errno had the side-effect of actually making __set_errno
hidden (which is odd because assembler directives don't usually
affect symbols defined in a different file --- you can't even
create a weak reference to a symbol that's defined in a different
file).

This change switches the system call stubs over to a new always-hidden
__set_errno_internal and has a visible __set_errno on LP32 just for
binary compatibility with old NDK apps.

Bug: 17423135
Change-Id: I6b6d7a05dda85f923d22e5ffd169a91e23499b7b

9 years agoMerge "resolved conflicts for merge of c8f6b82f to lmp-dev-plus-aosp" into lmp-dev...
Elliott Hughes [Mon, 8 Sep 2014 18:41:54 +0000 (18:41 +0000)]
Merge "resolved conflicts for merge of c8f6b82f to lmp-dev-plus-aosp" into lmp-dev-plus-aosp

9 years agoresolved conflicts for merge of c8f6b82f to lmp-dev-plus-aosp
Elliott Hughes [Mon, 8 Sep 2014 18:41:30 +0000 (11:41 -0700)]
resolved conflicts for merge of c8f6b82f to lmp-dev-plus-aosp

Change-Id: I03a4645eb5fbb54e41da25018729b270ba0ed48e

9 years agoam 51c8355d: Add arc4random_addrandom binary compatibility.
Elliott Hughes [Mon, 8 Sep 2014 18:36:55 +0000 (18:36 +0000)]
am 51c8355d: Add arc4random_addrandom binary compatibility.

* commit '51c8355d5cf4b83ccd2ad250ca4c61a616356c2b':
  Add arc4random_addrandom binary compatibility.

9 years agoam d3d89f0d: Merge "Add arc4random_addrandom binary compatibility."
Elliott Hughes [Mon, 8 Sep 2014 18:11:52 +0000 (18:11 +0000)]
am d3d89f0d: Merge "Add arc4random_addrandom binary compatibility."

* commit 'd3d89f0d28aba2db9f11cc0a9b3a865fa1d9d265':
  Add arc4random_addrandom binary compatibility.

9 years agoMerge "Don't expose non-standard basename_r and dirname_r in LP64." into lmp-dev
Elliott Hughes [Mon, 8 Sep 2014 18:07:07 +0000 (18:07 +0000)]
Merge "Don't expose non-standard basename_r and dirname_r in LP64." into lmp-dev

9 years agoMerge "Add arc4random_addrandom binary compatibility."
Elliott Hughes [Mon, 8 Sep 2014 17:53:03 +0000 (17:53 +0000)]
Merge "Add arc4random_addrandom binary compatibility."

9 years agoAdd arc4random_addrandom binary compatibility.
Elliott Hughes [Mon, 8 Sep 2014 17:25:33 +0000 (10:25 -0700)]
Add arc4random_addrandom binary compatibility.

This was in <stdlib.h> in older releases. It's no longer used, but we can
preserve backwards compatibility by making it a no-op.

(cherry-pick of 51c8355d5cf4b83ccd2ad250ca4c61a616356c2b.)

Bug: 16205834
Change-Id: Idde7b46df4f253e39675600bcf82352879a716e7

9 years agoAdd arc4random_addrandom binary compatibility.
Elliott Hughes [Mon, 8 Sep 2014 17:25:33 +0000 (10:25 -0700)]
Add arc4random_addrandom binary compatibility.

This was in <stdlib.h> in older releases. It's no longer used, but we can
preserve backwards compatibility by making it a no-op.

Bug: 16205834
Change-Id: Idde7b46df4f253e39675600bcf82352879a716e7

9 years agoam b4673c41: Merge "Add dlmalloc_usable_size for 32 bit arches."
Christopher Ferris [Sat, 6 Sep 2014 20:28:37 +0000 (20:28 +0000)]
am b4673c41: Merge "Add dlmalloc_usable_size for 32 bit arches."

* commit 'b4673c41025f3a16804aff8438c2810c739a11ef':
  Add dlmalloc_usable_size for 32 bit arches.

9 years agoMerge "Add dlmalloc_usable_size for 32 bit arches."
Christopher Ferris [Sat, 6 Sep 2014 20:17:02 +0000 (20:17 +0000)]
Merge "Add dlmalloc_usable_size for 32 bit arches."

9 years agoam 47ed03f7: Merge "Add dlmalloc_usable_size for 32 bit arches." into lmp-dev
Christopher Ferris [Sat, 6 Sep 2014 20:14:17 +0000 (20:14 +0000)]
am 47ed03f7: Merge "Add dlmalloc_usable_size for 32 bit arches." into lmp-dev

* commit '47ed03f70c6c9addc7f05e4ee4dc71c96d215105':
  Add dlmalloc_usable_size for 32 bit arches.

9 years agoAdd dlmalloc_usable_size for 32 bit arches.
Christopher Ferris [Fri, 5 Sep 2014 23:39:22 +0000 (16:39 -0700)]
Add dlmalloc_usable_size for 32 bit arches.

Bug: 17337831

(cherry picked from commit 1c365cb494d8cab1b639ecef21514425647e606b)

Change-Id: Ice100e42eeac4b9c3b77737a546ec33174adcb2f

9 years agoMerge "Add dlmalloc_usable_size for 32 bit arches." into lmp-dev
Christopher Ferris [Sat, 6 Sep 2014 19:58:39 +0000 (19:58 +0000)]
Merge "Add dlmalloc_usable_size for 32 bit arches." into lmp-dev

9 years agoAdd dlmalloc_usable_size for 32 bit arches.
Christopher Ferris [Fri, 5 Sep 2014 23:39:22 +0000 (16:39 -0700)]
Add dlmalloc_usable_size for 32 bit arches.

Bug: 17337831
Change-Id: I50c50559a5dfa083c85f064042bc0726718c988b

9 years agoam e07b4da5: Merge "Use LOCAL_POST_LINK_CMD to insert the objcopy command for linker."
Ying Wang [Fri, 5 Sep 2014 23:58:08 +0000 (23:58 +0000)]
am e07b4da5: Merge "Use LOCAL_POST_LINK_CMD to insert the objcopy command for linker."

* commit 'e07b4da53ddcb34939c1b5a88db36dec34352add':
  Use LOCAL_POST_LINK_CMD to insert the objcopy command for linker.

9 years agoam 320a01d5: Merge "Revert "Load libraries in breadth-first order""
Dmitriy Ivanov [Fri, 5 Sep 2014 23:58:07 +0000 (23:58 +0000)]
am 320a01d5: Merge "Revert "Load libraries in breadth-first order""

* commit '320a01d51693408dad859094ca52e5f315ff1d15':
  Revert "Load libraries in breadth-first order"

9 years agoMerge "Use LOCAL_POST_LINK_CMD to insert the objcopy command for linker."
Ying Wang [Fri, 5 Sep 2014 23:41:25 +0000 (23:41 +0000)]
Merge "Use LOCAL_POST_LINK_CMD to insert the objcopy command for linker."

9 years agoMerge "Revert "Load libraries in breadth-first order""
Dmitriy Ivanov [Fri, 5 Sep 2014 23:36:22 +0000 (23:36 +0000)]
Merge "Revert "Load libraries in breadth-first order""

9 years agoRevert "Load libraries in breadth-first order"
Dmitriy Ivanov [Fri, 5 Sep 2014 21:57:59 +0000 (14:57 -0700)]
Revert "Load libraries in breadth-first order"

This reverts commit a3ad450a2e3fb6b3fe359683b247eba20896f646.

Change-Id: Ia2b838ad2159c643b80c514849582f4b4f4f40e5

9 years agoam b3ebfecd: Merge "Fix order of soinfo links (repairs libcxx tests)."
Dmitriy Ivanov [Fri, 5 Sep 2014 23:27:30 +0000 (23:27 +0000)]
am b3ebfecd: Merge "Fix order of soinfo links (repairs libcxx tests)."

* commit 'b3ebfecdae05e29062bf4d0234239a54a2733ce0':
  Fix order of soinfo links (repairs libcxx tests).

9 years agoUse LOCAL_POST_LINK_CMD to insert the objcopy command for linker.
Ying Wang [Fri, 5 Sep 2014 22:42:12 +0000 (15:42 -0700)]
Use LOCAL_POST_LINK_CMD to insert the objcopy command for linker.

Previously we duplicated code in build/core/executable.mk and it's hard
to maintain. LOCAL_POST_LINK_CMD is a clean solution for this.

Bug: 17403674
Change-Id: I8c054bf782af68cf1f88b8d787a78ca74a7968b5

9 years agoDon't expose non-standard basename_r and dirname_r in LP64.
Elliott Hughes [Fri, 5 Sep 2014 23:12:42 +0000 (16:12 -0700)]
Don't expose non-standard basename_r and dirname_r in LP64.

Bug: 17407423
Change-Id: I47fe499a4c396bf09d7b78fd828728d04777398b

9 years agoMerge "Fix order of soinfo links (repairs libcxx tests)."
Dmitriy Ivanov [Fri, 5 Sep 2014 23:11:18 +0000 (23:11 +0000)]
Merge "Fix order of soinfo links (repairs libcxx tests)."

9 years agoFix order of soinfo links (repairs libcxx tests).
Dmitriy Ivanov [Fri, 5 Sep 2014 01:23:00 +0000 (18:23 -0700)]
Fix order of soinfo links (repairs libcxx tests).

Change-Id: Iee9de09657351cd6a7512784ca797e4b84cdd98b

9 years agoam 8adace5f: Merge "Enable clang compilation with libc but not linker."
Chih-Hung Hsieh [Fri, 5 Sep 2014 19:11:06 +0000 (19:11 +0000)]
am 8adace5f: Merge "Enable clang compilation with libc but not linker."

* commit '8adace5f2c185bd616f79159eaf90d2982157069':
  Enable clang compilation with libc but not linker.

9 years agoMerge "Enable clang compilation with libc but not linker."
Chih-Hung Hsieh [Fri, 5 Sep 2014 18:54:48 +0000 (18:54 +0000)]
Merge "Enable clang compilation with libc but not linker."

9 years agoEnable clang compilation with libc but not linker.
Chih-Hung Hsieh [Thu, 4 Sep 2014 22:19:52 +0000 (15:19 -0700)]
Enable clang compilation with libc but not linker.

Clang is still disabled for x86 and x86_64 long double code,
for x86_64 special assembly instruction, and the linker module.

BUG: 17163651
BUG: 17302991
BUG: 17403674
Change-Id: I43c5f5f0ddc0c2a31918f00b57150dadd8f3f26b

9 years agoam 5beddb7d: Fix pthread_attr_getstack__main_thread.
Elliott Hughes [Fri, 5 Sep 2014 15:32:44 +0000 (15:32 +0000)]
am 5beddb7d: Fix pthread_attr_getstack__main_thread.

* commit '5beddb7d642524ecb6655ab2823caf2add679917':
  Fix pthread_attr_getstack__main_thread.

9 years agoFix pthread_attr_getstack__main_thread.
Elliott Hughes [Thu, 4 Sep 2014 23:09:25 +0000 (16:09 -0700)]
Fix pthread_attr_getstack__main_thread.

There were two problems here:

* This would fail when run with unlimited stack, because it didn't know
  that bionic reports unlimited stacks as 8MiB.

* This would leave RLIMIT_STACK small, causing failures to exec (so the
  popen and system tests would fail).

(cherry-pick of 27a9aed81978af792cb06035a1619c8141a5fb5b plus the
new ScopeGuard.h from a3ad450a2e3fb6b3fe359683b247eba20896f646.)

Bug: 17394276
Change-Id: I5b92dc64ca089400223b2d9a3743e9b9d57c1bc2

9 years agoam 001815ed: Merge "Reset enviroment for math_tests"
Dmitriy Ivanov [Fri, 5 Sep 2014 02:21:28 +0000 (02:21 +0000)]
am 001815ed: Merge "Reset enviroment for math_tests"

* commit '001815ed197280409d08e9622890e7462c6e6831':
  Reset enviroment for math_tests

9 years agoMerge "Reset enviroment for math_tests"
Dmitriy Ivanov [Fri, 5 Sep 2014 01:56:44 +0000 (01:56 +0000)]
Merge "Reset enviroment for math_tests"

9 years agoReset enviroment for math_tests
Dmitriy Ivanov [Thu, 4 Sep 2014 19:47:07 +0000 (12:47 -0700)]
Reset enviroment for math_tests

Bug: 17390824
Change-Id: I42f4c8d9199a2efe7641f0b0e64580cacb5695da

9 years agoam aca9cae3: Merge "Fix pthread_attr_getstack__main_thread."
Elliott Hughes [Thu, 4 Sep 2014 23:33:50 +0000 (23:33 +0000)]
am aca9cae3: Merge "Fix pthread_attr_getstack__main_thread."

* commit 'aca9cae30972ba2cd7a1158520dccd83b056513c':
  Fix pthread_attr_getstack__main_thread.

9 years agoam c74a7680: Merge "Fix mips signed/unsigned signal_test.cpp build breakage."
Elliott Hughes [Thu, 4 Sep 2014 23:22:50 +0000 (23:22 +0000)]
am c74a7680: Merge "Fix mips signed/unsigned signal_test.cpp build breakage."

* commit 'c74a7680a409cd9f0cd3847b59e20ac16ad05806':
  Fix mips signed/unsigned signal_test.cpp build breakage.

9 years agoam 44352f5f: Merge "Revert "Register __libc_fini as early as possible.""
Dmitriy Ivanov [Thu, 4 Sep 2014 23:22:37 +0000 (23:22 +0000)]
am 44352f5f: Merge "Revert "Register __libc_fini as early as possible.""

* commit '44352f5f7f06ff9383d695b0a7d4243f5268f430':
  Revert "Register __libc_fini as early as possible."

9 years agoam c0cd9ce5: Merge "Revert "Fix arm64 build""
Dmitriy Ivanov [Thu, 4 Sep 2014 23:22:37 +0000 (23:22 +0000)]
am c0cd9ce5: Merge "Revert "Fix arm64 build""

* commit 'c0cd9ce5df753161aabb393420a8ada8f369b551':
  Revert "Fix arm64 build"

9 years agoMerge "Fix pthread_attr_getstack__main_thread."
Elliott Hughes [Thu, 4 Sep 2014 23:20:53 +0000 (23:20 +0000)]
Merge "Fix pthread_attr_getstack__main_thread."

9 years agoFix pthread_attr_getstack__main_thread.
Elliott Hughes [Thu, 4 Sep 2014 23:09:25 +0000 (16:09 -0700)]
Fix pthread_attr_getstack__main_thread.

There were two problems here:

* This would fail when run with unlimited stack, because it didn't know
  that bionic reports unlimited stacks as 8MiB.

* This would leave RLIMIT_STACK small, causing failures to exec (so the
  popen and system tests would fail).

Change-Id: I5b92dc64ca089400223b2d9a3743e9b9d57c1bc2

9 years agoMerge "Fix mips signed/unsigned signal_test.cpp build breakage."
Elliott Hughes [Thu, 4 Sep 2014 22:48:15 +0000 (22:48 +0000)]
Merge "Fix mips signed/unsigned signal_test.cpp build breakage."

9 years agoFix mips signed/unsigned signal_test.cpp build breakage.
Elliott Hughes [Thu, 4 Sep 2014 22:43:10 +0000 (15:43 -0700)]
Fix mips signed/unsigned signal_test.cpp build breakage.

Change-Id: I045ce017c0c51e1843193759a2eb6fc5b93e3867

9 years agoam 05f0bfd6: Merge "Don\'t mask out SA_RESTORER from sa_flags."
Elliott Hughes [Thu, 4 Sep 2014 22:20:50 +0000 (22:20 +0000)]
am 05f0bfd6: Merge "Don\'t mask out SA_RESTORER from sa_flags."

* commit '05f0bfd6c56746aa4f737804ebb62b555dc0d921':
  Don't mask out SA_RESTORER from sa_flags.

9 years agoam 4ee7c325: Merge "Disable Clang, due to x86 LDBL_MANT_DIG errors."
Chih-Hung Hsieh [Thu, 4 Sep 2014 22:20:48 +0000 (22:20 +0000)]
am 4ee7c325: Merge "Disable Clang, due to x86 LDBL_MANT_DIG errors."

* commit '4ee7c325df9662b344304f207faf73cc9c3b735c':
  Disable Clang, due to x86 LDBL_MANT_DIG errors.

9 years agoMerge "Revert "Register __libc_fini as early as possible.""
Dmitriy Ivanov [Thu, 4 Sep 2014 21:55:59 +0000 (21:55 +0000)]
Merge "Revert "Register __libc_fini as early as possible.""

9 years agoMerge "Revert "Fix arm64 build""
Dmitriy Ivanov [Thu, 4 Sep 2014 21:55:55 +0000 (21:55 +0000)]
Merge "Revert "Fix arm64 build""

9 years agoRevert "Register __libc_fini as early as possible."
Dmitriy Ivanov [Thu, 4 Sep 2014 21:54:34 +0000 (21:54 +0000)]
Revert "Register __libc_fini as early as possible."

This reverts commit e880c736d6c1d947f6309d5f1f63c74e8345c6a6.

Change-Id: Ide83e442eb5dbfef5298a15bc602c3fe1dda1862

9 years agoRevert "Fix arm64 build"
Dmitriy Ivanov [Thu, 4 Sep 2014 21:53:14 +0000 (21:53 +0000)]
Revert "Fix arm64 build"

This reverts commit 5c1a7fdbd5a085024019b4c9307d2b2ace35df5e.

Change-Id: Ia5fea0d6a8f59700edce0742e2271b5f02a5d87c

9 years agoMerge "Don't mask out SA_RESTORER from sa_flags."
Elliott Hughes [Thu, 4 Sep 2014 21:03:33 +0000 (21:03 +0000)]
Merge "Don't mask out SA_RESTORER from sa_flags."

9 years agoDon't mask out SA_RESTORER from sa_flags.
Elliott Hughes [Thu, 4 Sep 2014 20:54:42 +0000 (13:54 -0700)]
Don't mask out SA_RESTORER from sa_flags.

glibc doesn't do this, and we probably shouldn't either.

Bug: 16703540
Change-Id: Id5b93c3782e34024a9916463348e8f3caff191bf

9 years agoMerge "Disable Clang, due to x86 LDBL_MANT_DIG errors."
Chih-Hung Hsieh [Thu, 4 Sep 2014 20:44:34 +0000 (20:44 +0000)]
Merge "Disable Clang, due to x86 LDBL_MANT_DIG errors."

9 years agoDisable Clang, due to x86 LDBL_MANT_DIG errors.
Chih-Hung Hsieh [Thu, 4 Sep 2014 19:35:19 +0000 (12:35 -0700)]
Disable Clang, due to x86 LDBL_MANT_DIG errors.

Clang -m32 has incorrect sizeof(long double) = 12.
With -m64, LDBL_MANT_DIG is incorrect 64.

BUG: 17163651
Change-Id: I4b157aa1a8572c3a10aece6070e119a292ab8e83

9 years agoam 071bed80: Merge "_GNU_SOURCE implies _BSD_SOURCE and the latest _POSIX_C_SOURCE."
Elliott Hughes [Thu, 4 Sep 2014 17:16:01 +0000 (17:16 +0000)]
am 071bed80: Merge "_GNU_SOURCE implies _BSD_SOURCE and the latest _POSIX_C_SOURCE."

* commit '071bed8091cab4e070a1f5e6b2eb0dd1141f0498':
  _GNU_SOURCE implies _BSD_SOURCE and the latest _POSIX_C_SOURCE.

9 years agoMerge "_GNU_SOURCE implies _BSD_SOURCE and the latest _POSIX_C_SOURCE."
Elliott Hughes [Thu, 4 Sep 2014 17:02:10 +0000 (17:02 +0000)]
Merge "_GNU_SOURCE implies _BSD_SOURCE and the latest _POSIX_C_SOURCE."

9 years ago_GNU_SOURCE implies _BSD_SOURCE and the latest _POSIX_C_SOURCE.
Elliott Hughes [Thu, 4 Sep 2014 15:52:38 +0000 (08:52 -0700)]
_GNU_SOURCE implies _BSD_SOURCE and the latest _POSIX_C_SOURCE.

This showed up as open_memstream not being visible in <stdio.h>
if only _GNU_SOURCE was defined.

Bug: 17361504
Change-Id: I38f9843f4e6ee770a6325ad50f779bda5495ffca

9 years agoam 1737b159: Merge "Load libraries in breadth-first order"
Dmitriy Ivanov [Thu, 4 Sep 2014 01:48:48 +0000 (01:48 +0000)]
am 1737b159: Merge "Load libraries in breadth-first order"

* commit '1737b159374468a21859d97d8be70a726af0ec9e':
  Load libraries in breadth-first order

9 years agoMerge "Load libraries in breadth-first order"
Dmitriy Ivanov [Thu, 4 Sep 2014 00:59:22 +0000 (00:59 +0000)]
Merge "Load libraries in breadth-first order"

9 years agoam 1e010d60: Add back a dummy arc4random_stir for compatibility.
Elliott Hughes [Wed, 3 Sep 2014 23:49:36 +0000 (23:49 +0000)]
am 1e010d60: Add back a dummy arc4random_stir for compatibility.

* commit '1e010d60397db706cd3d1c4d5701a2bced441aa8':
  Add back a dummy arc4random_stir for compatibility.

9 years agoam 8f3b8f52: Merge "Fix arm64 build"
Dmitriy Ivanov [Wed, 3 Sep 2014 23:47:01 +0000 (23:47 +0000)]
am 8f3b8f52: Merge "Fix arm64 build"

* commit '8f3b8f523ed594b48d28ca0b9a2651d209f29e26':
  Fix arm64 build

9 years agoam 58bb54c3: Merge "Add back a dummy arc4random_stir for compatibility."
Elliott Hughes [Wed, 3 Sep 2014 23:47:00 +0000 (23:47 +0000)]
am 58bb54c3: Merge "Add back a dummy arc4random_stir for compatibility."

* commit '58bb54c38bf31fa5cdad8ddbdc44bbed04aaf0cf':
  Add back a dummy arc4random_stir for compatibility.

9 years agoMerge "Fix arm64 build"
Dmitriy Ivanov [Wed, 3 Sep 2014 23:36:34 +0000 (23:36 +0000)]
Merge "Fix arm64 build"

9 years agoMerge "Add back a dummy arc4random_stir for compatibility."
Elliott Hughes [Wed, 3 Sep 2014 23:34:04 +0000 (23:34 +0000)]
Merge "Add back a dummy arc4random_stir for compatibility."

9 years agoFix arm64 build
Dmitriy Ivanov [Wed, 3 Sep 2014 23:33:08 +0000 (16:33 -0700)]
Fix arm64 build

Bug: 14611536
Change-Id: I4f7f4d1f5c0a37ef38fa0956778393f8d7668512

9 years agoAdd back a dummy arc4random_stir for compatibility.
Elliott Hughes [Wed, 3 Sep 2014 22:53:11 +0000 (15:53 -0700)]
Add back a dummy arc4random_stir for compatibility.

The current arc4random implementation stirs itself as needed, but we
need to keep an arc4random_stir symbol around for binary compatibility.

(cherry-pick of 1e010d60397db706cd3d1c4d5701a2bced441aa8.)

Bug: 17291075
Change-Id: Iaf6171c3ec65c39c1868364d5b35ea280e29a363

9 years agoAdd back a dummy arc4random_stir for compatibility.
Elliott Hughes [Wed, 3 Sep 2014 22:53:11 +0000 (15:53 -0700)]
Add back a dummy arc4random_stir for compatibility.

The current arc4random implementation stirs itself as needed, but we
need to keep an arc4random_stir symbol around for binary compatibility.

Bug: 17291075
Change-Id: Iaf6171c3ec65c39c1868364d5b35ea280e29a363

9 years agoam 450aaa01: Merge "Register __libc_fini as early as possible."
Dmitriy Ivanov [Wed, 3 Sep 2014 22:44:15 +0000 (22:44 +0000)]
am 450aaa01: Merge "Register __libc_fini as early as possible."

* commit '450aaa018df19464cb4e01ea3059a2a075ebde52':
  Register __libc_fini as early as possible.

9 years agoMerge "Register __libc_fini as early as possible."
Dmitriy Ivanov [Wed, 3 Sep 2014 22:29:59 +0000 (22:29 +0000)]
Merge "Register __libc_fini as early as possible."

9 years agoam 8da304b9: Merge "Make string tests check all alignment combinations"
Dmitriy Ivanov [Wed, 3 Sep 2014 22:29:23 +0000 (22:29 +0000)]
am 8da304b9: Merge "Make string tests check all alignment combinations"

* commit '8da304b997bc0f81ebb30fadc79249fafc1c6fce':
  Make string tests check all alignment combinations

9 years agoRegister __libc_fini as early as possible.
Dmitriy Ivanov [Wed, 3 Sep 2014 21:56:05 +0000 (14:56 -0700)]
Register __libc_fini as early as possible.

  We want __libc_fini to be called after all the destructors.

Bug: 14611536
Change-Id: Ibb83a94436795ec178fd605fa531ac29608f4a3e

9 years agoMerge "Make string tests check all alignment combinations"
Dmitriy Ivanov [Wed, 3 Sep 2014 22:08:56 +0000 (22:08 +0000)]
Merge "Make string tests check all alignment combinations"

9 years agoLoad libraries in breadth-first order
Dmitriy Ivanov [Tue, 29 Jul 2014 21:21:45 +0000 (14:21 -0700)]
Load libraries in breadth-first order

  This patch fixes the problem with symbol search order
  for dlsym(RTLD_DEFAULT/RTLD_NEXT, .) by loading libraries
  and ld_preloads in correct order.

Bug: https://code.google.com/p/android/issues/detail?id=74255
Change-Id: I4cf84c70dbaabe99310230dfda12385ae5401859

9 years agoam 28f17701: Merge "Don\'t fail a test just because we aren\'t root."
Dan Albert [Wed, 3 Sep 2014 19:59:14 +0000 (19:59 +0000)]
am 28f17701: Merge "Don\'t fail a test just because we aren\'t root."

* commit '28f1770101d84153e100ad7bc0628b4ef3b6e85c':
  Don't fail a test just because we aren't root.

9 years agoMerge "Don't fail a test just because we aren't root."
Dan Albert [Wed, 3 Sep 2014 18:37:11 +0000 (18:37 +0000)]
Merge "Don't fail a test just because we aren't root."

9 years agoDon't fail a test just because we aren't root.
Dan Albert [Wed, 3 Sep 2014 18:30:21 +0000 (11:30 -0700)]
Don't fail a test just because we aren't root.

If the tests are not being run as root, emit a message and don't
continue with the test.

Change-Id: I352e1a4162caaeb18b81b8daf44797009756dcd9

9 years agoam cb093d1f: Merge "Upgrade bionic to tzdata2014g." into lmp-dev
Elliott Hughes [Wed, 3 Sep 2014 05:07:24 +0000 (05:07 +0000)]
am cb093d1f: Merge "Upgrade bionic to tzdata2014g." into lmp-dev

* commit 'cb093d1f55701da419d1013cc3e6fbb8aea3e957':
  Upgrade bionic to tzdata2014g.

9 years agoam 9ac60bf8: Make stdatomic.h work with gcc4.6 host compiler
Hans Boehm [Wed, 3 Sep 2014 05:07:24 +0000 (05:07 +0000)]
am 9ac60bf8: Make stdatomic.h work with gcc4.6 host compiler

* commit '9ac60bf82b1f0e316666b862e9924f90caa60342':
  Make stdatomic.h work with gcc4.6 host compiler

9 years agoresolved conflicts for merge of 2b10e2f1 to lmp-dev-plus-aosp
Andreas Gampe [Wed, 3 Sep 2014 05:02:48 +0000 (22:02 -0700)]
resolved conflicts for merge of 2b10e2f1 to lmp-dev-plus-aosp

Change-Id: Ia41583773abbbe1f52d72d1e7f4b925e621d28ff

9 years agoam 3b10ba6f: Merge "Add some missing dlclose(.)"
Dmitriy Ivanov [Wed, 3 Sep 2014 01:08:16 +0000 (01:08 +0000)]
am 3b10ba6f: Merge "Add some missing dlclose(.)"

* commit '3b10ba6f1b743ddced32474891ff6d1cb83c027a':
  Add some missing dlclose(.)

9 years agoMerge "Add some missing dlclose(.)"
Dmitriy Ivanov [Wed, 3 Sep 2014 00:36:22 +0000 (00:36 +0000)]
Merge "Add some missing dlclose(.)"

9 years agoAdd some missing dlclose(.)
Dmitriy Ivanov [Wed, 3 Sep 2014 00:31:44 +0000 (17:31 -0700)]
Add some missing dlclose(.)

Bug: 17358010
Change-Id: I9e427b7681f1a8fe890b0b47812d9e65ab95c792

9 years agoam c7de9191: Merge "Start math tests with a clean fenv."
Dan Albert [Tue, 2 Sep 2014 23:35:33 +0000 (23:35 +0000)]
am c7de9191: Merge "Start math tests with a clean fenv."

* commit 'c7de919129098bac259f66f973888b1814ae0d1a':
  Start math tests with a clean fenv.

9 years agoMerge "Start math tests with a clean fenv."
Dan Albert [Tue, 2 Sep 2014 23:11:42 +0000 (23:11 +0000)]
Merge "Start math tests with a clean fenv."

9 years agoam 847e52b9: Merge "Prevent a few test pthread keys from leaking."
Dan Albert [Tue, 2 Sep 2014 23:02:57 +0000 (23:02 +0000)]
am 847e52b9: Merge "Prevent a few test pthread keys from leaking."

* commit '847e52b9b7bca9dee20e33d1006dfc23885e7494':
  Prevent a few test pthread keys from leaking.

9 years agoStart math tests with a clean fenv.
Dan Albert [Tue, 2 Sep 2014 23:00:10 +0000 (16:00 -0700)]
Start math tests with a clean fenv.

We always want the default floating point environment when running these
tests.

Bug: 17358010
Change-Id: I6ca2552e9f2d3e07d7b9dcaf0aec66905401c466

9 years agoMerge "Prevent a few test pthread keys from leaking."
Dan Albert [Tue, 2 Sep 2014 22:43:17 +0000 (22:43 +0000)]
Merge "Prevent a few test pthread keys from leaking."

9 years agoresolved conflicts for merge of c8cf3513 to lmp-dev-plus-aosp
Hans Boehm [Tue, 2 Sep 2014 22:24:33 +0000 (15:24 -0700)]
resolved conflicts for merge of c8cf3513 to lmp-dev-plus-aosp

Change-Id: If1181e3496d0309eebbaa1f1d2696269e61c64bc

9 years agoPrevent a few test pthread keys from leaking.
Dan Albert [Tue, 2 Sep 2014 22:24:26 +0000 (15:24 -0700)]
Prevent a few test pthread keys from leaking.

Bug: 17358010
Change-Id: Ie718dc215ddfd431650295a1630c1b1716760c3d

9 years agoMerge "Upgrade bionic to tzdata2014g." into lmp-dev
Elliott Hughes [Tue, 2 Sep 2014 21:39:02 +0000 (21:39 +0000)]
Merge "Upgrade bionic to tzdata2014g." into lmp-dev

9 years agoam ec95a9cf: Merge "MIPS64 syscall() arguments"
Elliott Hughes [Tue, 2 Sep 2014 21:18:55 +0000 (21:18 +0000)]
am ec95a9cf: Merge "MIPS64 syscall() arguments"

* commit 'ec95a9cf11f7c4d2211c61da7ce05262a54409d1':
  MIPS64 syscall() arguments

9 years agoMerge "MIPS64 syscall() arguments"
Elliott Hughes [Tue, 2 Sep 2014 20:53:30 +0000 (20:53 +0000)]
Merge "MIPS64 syscall() arguments"

9 years agoam 86f594b1: Merge "Encapsulate soinfo_link_image and soinfo_relocate"
Dmitriy Ivanov [Tue, 2 Sep 2014 19:45:29 +0000 (19:45 +0000)]
am 86f594b1: Merge "Encapsulate soinfo_link_image and soinfo_relocate"

* commit '86f594b19bc51ffe87bfacb6b42687af94c3c648':
  Encapsulate soinfo_link_image and soinfo_relocate

9 years agoMIPS64 syscall() arguments
Chris Dearman [Wed, 20 Aug 2014 23:39:47 +0000 (16:39 -0700)]
MIPS64 syscall() arguments

The seventh argument for syscall is passed in a register, not on the stack

Change-Id: Idb69fac77d1f710cff5a3ab4ae1259feb61ae69d

9 years agoMerge "Encapsulate soinfo_link_image and soinfo_relocate"
Dmitriy Ivanov [Tue, 2 Sep 2014 19:25:08 +0000 (19:25 +0000)]
Merge "Encapsulate soinfo_link_image and soinfo_relocate"

9 years agoEncapsulate soinfo_link_image and soinfo_relocate
Dmitriy Ivanov [Tue, 2 Sep 2014 18:47:23 +0000 (11:47 -0700)]
Encapsulate soinfo_link_image and soinfo_relocate

 Also get rid of needed[] array for these functions

Change-Id: I8d12887dbec0724309bb171e6bbd9b9ceb32cc70