OSDN Git Service

android-x86/bionic.git
9 years agoam aad92067: Merge "Reformatting"
Dmitriy Ivanov [Fri, 12 Sep 2014 20:08:42 +0000 (20:08 +0000)]
am aad92067: Merge "Reformatting"

* commit 'aad92067bf4eecda81a4c331ee4dec70483c5104':
  Reformatting

9 years agoam 66bbf159: Merge "Refactoring: C++11 style DISABLE_ bionic marcos"
Dmitriy Ivanov [Fri, 12 Sep 2014 20:08:41 +0000 (20:08 +0000)]
am 66bbf159: Merge "Refactoring: C++11 style DISABLE_ bionic marcos"

* commit '66bbf1595c0fc25d4bc47457d8020b11e135996d':
  Refactoring: C++11 style DISABLE_ bionic marcos

9 years agoMerge "Reformatting"
Dmitriy Ivanov [Fri, 12 Sep 2014 16:50:29 +0000 (16:50 +0000)]
Merge "Reformatting"

9 years agoMerge "Refactoring: C++11 style DISABLE_ bionic marcos"
Dmitriy Ivanov [Fri, 12 Sep 2014 16:50:04 +0000 (16:50 +0000)]
Merge "Refactoring: C++11 style DISABLE_ bionic marcos"

9 years agoReformatting
Dmitriy Ivanov [Fri, 12 Sep 2014 16:43:13 +0000 (09:43 -0700)]
Reformatting

 No functional changes.

Change-Id: If71775e5fc207e91ebd31ba3c5f9d2c13dc8dada

9 years agoam 8d8a789c: Merge "Expose __swsetup for LP32 binary compatibility."
Elliott Hughes [Fri, 12 Sep 2014 05:59:18 +0000 (05:59 +0000)]
am 8d8a789c: Merge "Expose __swsetup for LP32 binary compatibility."

* commit '8d8a789c49ffb6b71e4b8f34df937cfaaff86e40':
  Expose __swsetup for LP32 binary compatibility.

9 years agoam 6487f0d8: Merge "Add IFUNC support for arm64 and IRELATIVE reloc"
Dmitriy Ivanov [Fri, 12 Sep 2014 05:59:16 +0000 (05:59 +0000)]
am 6487f0d8: Merge "Add IFUNC support for arm64 and IRELATIVE reloc"

* commit '6487f0d8341b00b476995e0174dc92e5ae8efbbe':
  Add IFUNC support for arm64 and IRELATIVE reloc

9 years agoam 5920a9ad: Merge "Add pthread_gettid_np and re-expose __get_thread for LP32."
Elliott Hughes [Fri, 12 Sep 2014 05:59:16 +0000 (05:59 +0000)]
am 5920a9ad: Merge "Add pthread_gettid_np and re-expose __get_thread for LP32."

* commit '5920a9ad5fd9f8d515c683e164f946bcfef1f1c3':
  Add pthread_gettid_np and re-expose __get_thread for LP32.

9 years agoam 7e00b44e: Expose __swsetup for LP32 binary compatibility.
Elliott Hughes [Fri, 12 Sep 2014 05:48:54 +0000 (05:48 +0000)]
am 7e00b44e: Expose __swsetup for LP32 binary compatibility.

* commit '7e00b44e80d6e38b8ab86d0ebc86b666c0ac2ef6':
  Expose __swsetup for LP32 binary compatibility.

9 years agoam 27efc488: Add pthread_gettid_np and re-expose __get_thread for LP32.
Elliott Hughes [Fri, 12 Sep 2014 05:48:52 +0000 (05:48 +0000)]
am 27efc488: Add pthread_gettid_np and re-expose __get_thread for LP32.

* commit '27efc48814b8153c55cbcd0af5d9add824816e69':
  Add pthread_gettid_np and re-expose __get_thread for LP32.

9 years agoMerge "Expose __swsetup for LP32 binary compatibility."
Elliott Hughes [Fri, 12 Sep 2014 01:27:44 +0000 (01:27 +0000)]
Merge "Expose __swsetup for LP32 binary compatibility."

9 years agoExpose __swsetup for LP32 binary compatibility.
Elliott Hughes [Thu, 11 Sep 2014 23:41:11 +0000 (16:41 -0700)]
Expose __swsetup for LP32 binary compatibility.

(cherry-pick of 7e00b44e80d6e38b8ab86d0ebc86b666c0ac2ef6.)

Bug: 17476127
Change-Id: I0ef1355ac913d782c268a638f88642d6cfc236c2

9 years agoMerge "Add IFUNC support for arm64 and IRELATIVE reloc"
Dmitriy Ivanov [Fri, 12 Sep 2014 00:40:11 +0000 (00:40 +0000)]
Merge "Add IFUNC support for arm64 and IRELATIVE reloc"

9 years agoExpose __swsetup for LP32 binary compatibility.
Elliott Hughes [Thu, 11 Sep 2014 23:41:11 +0000 (16:41 -0700)]
Expose __swsetup for LP32 binary compatibility.

Bug: 17476127
Change-Id: I0ef1355ac913d782c268a638f88642d6cfc236c2

9 years agoAdd IFUNC support for arm64 and IRELATIVE reloc
Dmitriy Ivanov [Thu, 11 Sep 2014 22:16:03 +0000 (15:16 -0700)]
Add IFUNC support for arm64 and IRELATIVE reloc

 There are number of changes in the way IFUNC related relocations are done:
 1. IRELATIVE relocations are now supported for x86/x86_64 and arm64.
 2. IFUNC relocations are now relying on static linker to generate
    them in correct order - this removes necessety of additional
    relocation pass for ifuncs.
 3. Related to 2: rela?.dyn relocations are preformed before .plt ones.
 4. Ifunc are resolved on symbol lookup this approach allowed to avoid
    mprotect(PROT_WRITE) call on r-x program segments.

Bug: 17399706
Bug: 17177284
Change-Id: I414dd3e82bd47cc03442c5dfc7c279949aec51ed

9 years agoMerge "Add pthread_gettid_np and re-expose __get_thread for LP32."
Elliott Hughes [Thu, 11 Sep 2014 23:25:46 +0000 (23:25 +0000)]
Merge "Add pthread_gettid_np and re-expose __get_thread for LP32."

9 years agoAdd pthread_gettid_np and re-expose __get_thread for LP32.
Elliott Hughes [Thu, 11 Sep 2014 23:11:43 +0000 (16:11 -0700)]
Add pthread_gettid_np and re-expose __get_thread for LP32.

A lot of third-party code calls the private __get_thread symbol,
often as part of a backport of bionic's pthread_rwlock implementation.
Hopefully this will go away for LP64 (since you're guaranteed the
real implementation there), but there are still APIs that take a tid
and no way to convert between a pthread_t and a tid. pthread_gettid_np
is a public API for that. To aid the transition, make __get_thread
available again for LP32.

(cherry-pick of 27efc48814b8153c55cbcd0af5d9add824816e69.)

Bug: 14079438
Change-Id: I43fabc7f1918250d31d4665ffa4ca352d0dbeac1

9 years agoAdd pthread_gettid_np and re-expose __get_thread for LP32.
Elliott Hughes [Thu, 11 Sep 2014 23:11:43 +0000 (16:11 -0700)]
Add pthread_gettid_np and re-expose __get_thread for LP32.

A lot of third-party code calls the private __get_thread symbol,
often as part of a backport of bionic's pthread_rwlock implementation.
Hopefully this will go away for LP64 (since you're guaranteed the
real implementation there), but there are still APIs that take a tid
and no way to convert between a pthread_t and a tid. pthread_gettid_np
is a public API for that. To aid the transition, make __get_thread
available again for LP32.

Bug: 14079438
Change-Id: I43fabc7f1918250d31d4665ffa4ca352d0dbeac1

9 years agoam 9e833bf0: Fix mips __fadvise64.S build failure.
Elliott Hughes [Thu, 11 Sep 2014 18:32:24 +0000 (18:32 +0000)]
am 9e833bf0: Fix mips __fadvise64.S build failure.

* commit '9e833bf0cf2c5bc0e6b65e4d96aa4f2b33113771':
  Fix mips __fadvise64.S build failure.

9 years agoam ea66004c: Merge "Fix mips __fadvise64.S build failure."
Elliott Hughes [Thu, 11 Sep 2014 17:32:03 +0000 (17:32 +0000)]
am ea66004c: Merge "Fix mips __fadvise64.S build failure."

* commit 'ea66004c4a051e40c49314d808e7359634f6c641':
  Fix mips __fadvise64.S build failure.

9 years agoFix mips __fadvise64.S build failure.
Elliott Hughes [Thu, 11 Sep 2014 17:10:08 +0000 (10:10 -0700)]
Fix mips __fadvise64.S build failure.

Bug: 12449798

(cherry picked from commit 9990b3973bdfcda5419c06886215147a878222f1)

Change-Id: Iba92e2aa262666a59fc38b870dfd9f4082eeb628

9 years agoMerge "Fix mips __fadvise64.S build failure."
Elliott Hughes [Thu, 11 Sep 2014 17:12:48 +0000 (17:12 +0000)]
Merge "Fix mips __fadvise64.S build failure."

9 years agoFix mips __fadvise64.S build failure.
Elliott Hughes [Thu, 11 Sep 2014 17:10:08 +0000 (10:10 -0700)]
Fix mips __fadvise64.S build failure.

Bug: 12449798
Change-Id: I0663b741108ba2f1d286904d6414b3ff4d475551

9 years agoam 176c3278: Merge "Add posix_fadvise(3)." into lmp-dev
Elliott Hughes [Thu, 11 Sep 2014 16:08:32 +0000 (16:08 +0000)]
am 176c3278: Merge "Add posix_fadvise(3)." into lmp-dev

* commit '176c32787c53e720bf4664592fd0b8ea4ffbdd75':
  Add posix_fadvise(3).

9 years agoam 33df10f2: Merge "Add posix_fadvise(3)."
Elliott Hughes [Thu, 11 Sep 2014 15:58:49 +0000 (15:58 +0000)]
am 33df10f2: Merge "Add posix_fadvise(3)."

* commit '33df10f284a8adbf58f9734c0f43537db4206b2c':
  Add posix_fadvise(3).

9 years agoMerge "Add posix_fadvise(3)."
Elliott Hughes [Thu, 11 Sep 2014 15:46:44 +0000 (15:46 +0000)]
Merge "Add posix_fadvise(3)."

9 years agoAdd posix_fadvise(3).
Elliott Hughes [Thu, 11 Sep 2014 00:39:00 +0000 (17:39 -0700)]
Add posix_fadvise(3).

(cherry-pick of 00008263782e484020420c606f7d145fe7d0a4d8.)

Bug: 12449798
Change-Id: I07cbf3f670a0d1304b68148325a774f266b5c433

9 years agoMerge "Add posix_fadvise(3)." into lmp-dev
Elliott Hughes [Thu, 11 Sep 2014 15:43:05 +0000 (15:43 +0000)]
Merge "Add posix_fadvise(3)." into lmp-dev

9 years agoAdd posix_fadvise(3).
Elliott Hughes [Thu, 11 Sep 2014 00:39:00 +0000 (17:39 -0700)]
Add posix_fadvise(3).

Bug: 12449798
Change-Id: I07cbf3f670a0d1304b68148325a774f266b5c433

9 years agoam 33a73bfa: When comparing DNS server configs, also compare number of servers
Lorenzo Colitti [Thu, 11 Sep 2014 00:13:20 +0000 (00:13 +0000)]
am 33a73bfa: When comparing DNS server configs, also compare number of servers

* commit '33a73bfa0712c483830e4c9abbf4d6a0551478bf':
  When comparing DNS server configs, also compare number of servers

9 years agoWhen comparing DNS server configs, also compare number of servers
Lorenzo Colitti [Mon, 8 Sep 2014 09:09:43 +0000 (18:09 +0900)]
When comparing DNS server configs, also compare number of servers

Bug: 16070602
Change-Id: I605f1cca50b08479ebcad290b3bd179f59be8a96

9 years agoam c71483c0: Merge "When comparing DNS server configs, also compare number of servers"
Lorenzo Colitti [Tue, 9 Sep 2014 10:42:23 +0000 (10:42 +0000)]
am c71483c0: Merge "When comparing DNS server configs, also compare number of servers"

* commit 'c71483c0b38a6b4f2675f0bffa221dcf175c34ac':
  When comparing DNS server configs, also compare number of servers

9 years agoMerge "When comparing DNS server configs, also compare number of servers"
Lorenzo Colitti [Tue, 9 Sep 2014 10:22:17 +0000 (10:22 +0000)]
Merge "When comparing DNS server configs, also compare number of servers"

9 years agoWhen comparing DNS server configs, also compare number of servers
Lorenzo Colitti [Mon, 8 Sep 2014 09:09:43 +0000 (18:09 +0900)]
When comparing DNS server configs, also compare number of servers

Bug: 16070602
Change-Id: I605f1cca50b08479ebcad290b3bd179f59be8a96

9 years agoam 3c3624f3: Merge "Load libraries in breadth-first order"
Dmitriy Ivanov [Tue, 9 Sep 2014 01:11:41 +0000 (01:11 +0000)]
am 3c3624f3: Merge "Load libraries in breadth-first order"

* commit '3c3624f3df14590e7213d35c3b39a0a11c7d2d34':
  Load libraries in breadth-first order

9 years agoRefactoring: C++11 style DISABLE_ bionic marcos
Dmitriy Ivanov [Mon, 8 Sep 2014 23:22:22 +0000 (16:22 -0700)]
Refactoring: C++11 style DISABLE_ bionic marcos

  Enable the -std=gnu++11 flag for libstdc++ static and
  dynamic libs.

  ScopeGuard uses DISABLE_ macros instead of '= delete';

Change-Id: I07e21b306f95fffd49345f7fa136cfdac61e0225

9 years agoMerge "Load libraries in breadth-first order"
Dmitriy Ivanov [Tue, 9 Sep 2014 00:49:37 +0000 (00:49 +0000)]
Merge "Load libraries in breadth-first order"

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 agoLoad libraries in breadth-first order
Dmitriy Ivanov [Fri, 5 Sep 2014 23:42:53 +0000 (16:42 -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: If1ba5c807322409faa914e27ecb675e2c4541f0d
Attempt: 2

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