OSDN Git Service

android-x86/bionic.git
9 years agoresolved conflicts for merge of 02542b3b to lmp-mr1-dev-plus-aosp
Dmitriy Ivanov [Sat, 4 Oct 2014 18:16:42 +0000 (11:16 -0700)]
resolved conflicts for merge of 02542b3b to lmp-mr1-dev-plus-aosp

Change-Id: Ib881abd163fd737719b665c447055c7883a7b791

9 years agoam a5087148: Reimplement clock(3) using clock_gettime(3)
Alex Van Brunt [Sat, 4 Oct 2014 16:44:11 +0000 (16:44 +0000)]
am a5087148: Reimplement clock(3) using clock_gettime(3)

* commit 'a508714800242b294291060641ed35d719bdc857':
  Reimplement clock(3) using clock_gettime(3)

9 years agoam 4ef0e59f: Merge "Reimplement clock(3) using clock_gettime(3)"
Elliott Hughes [Sat, 4 Oct 2014 02:17:19 +0000 (02:17 +0000)]
am 4ef0e59f: Merge "Reimplement clock(3) using clock_gettime(3)"

* commit '4ef0e59f339ad138eabe3bc408beda6004f5ea83':
  Reimplement clock(3) using clock_gettime(3)

9 years agoReimplement clock(3) using clock_gettime(3)
Alex Van Brunt [Fri, 26 Sep 2014 20:32:47 +0000 (13:32 -0700)]
Reimplement clock(3) using clock_gettime(3)

Unlike times(), clock_gettime() is implemented as a vDSO on many architectures.
So, using clock_gettime() will return a more accurate time and do so with less
overhead because it does have the overhead of calling into the kernel.

It is also significantly more accurate because it measures the actual time in
nanoseconds rather than the number of ticks (typically 1 millisecond or more).

Bug: 17814435

(cherry picked from commit 8d0b2dbf2154d5da17ff09b1d4f864d281362ad2)

Change-Id: Id4945d9f387330518f78669809639952e9227ed9

9 years agoMerge "Reimplement clock(3) using clock_gettime(3)"
Elliott Hughes [Sat, 4 Oct 2014 01:57:42 +0000 (01:57 +0000)]
Merge "Reimplement clock(3) using clock_gettime(3)"

9 years agoReimplement clock(3) using clock_gettime(3)
Alex Van Brunt [Fri, 26 Sep 2014 20:32:47 +0000 (13:32 -0700)]
Reimplement clock(3) using clock_gettime(3)

Unlike times(), clock_gettime() is implemented as a vDSO on many architectures.
So, using clock_gettime() will return a more accurate time and do so with less
overhead because it does have the overhead of calling into the kernel.

It is also significantly more accurate because it measures the actual time in
nanoseconds rather than the number of ticks (typically 1 millisecond or more).

Bug: 17814435
Change-Id: Id4945d9f387330518f78669809639952e9227ed9

9 years agoam ea9800e9: Explain why clock(3) isn\'t broken.
Elliott Hughes [Sat, 4 Oct 2014 00:06:27 +0000 (00:06 +0000)]
am ea9800e9: Explain why clock(3) isn\'t broken.

* commit 'ea9800e98598c71fe76c4e2a0d0498b6bd490a83':
  Explain why clock(3) isn't broken.

9 years agoExplain why clock(3) isn't broken.
Elliott Hughes [Fri, 12 Sep 2014 23:33:37 +0000 (16:33 -0700)]
Explain why clock(3) isn't broken.

Bug: 17441123
Bug: 17814435

(cherry picked from commit f83c208b82c78dad07f4065f63bdd354f5ef9951)

Change-Id: I2065afe73b79a8d86404edee16e983625d902cdc

9 years agoresolved conflicts for merge of 04f5f410 to lmp-mr1-dev-plus-aosp
Dmitriy Ivanov [Fri, 3 Oct 2014 19:21:57 +0000 (12:21 -0700)]
resolved conflicts for merge of 04f5f410 to lmp-mr1-dev-plus-aosp

Change-Id: I921c62dbe265b1be4d373d1988951de0f6743fba

9 years agoam d5df4124: Merge "Add RTLD_NODELETE flag support"
Dmitriy Ivanov [Fri, 3 Oct 2014 16:47:05 +0000 (16:47 +0000)]
am d5df4124: Merge "Add RTLD_NODELETE flag support"

* commit 'd5df4124bbbb30411ef19f7c2fbb3987d0eb9630':
  Add RTLD_NODELETE flag support

9 years agoFix gdb could not get shared library list issue
Ningsheng Jian [Tue, 16 Sep 2014 07:22:10 +0000 (15:22 +0800)]
Fix gdb could not get shared library list issue

Get dynamic flags from phdr table's correct entry rather the first
entry, so that the following DT_DEBUG entry can be set.

Also fix the undefined reference to LoadTask::deleter issue under gcc
-O0 option.

Bug: 17524778

(cherry picked from commit e93be99da0614ff38cbf8b2bb0624ff1dc79b8d0)

Change-Id: I347792dab25c7b19c3fc690e03d20899ce1e26e0

9 years agoMerge "Add RTLD_NODELETE flag support"
Dmitriy Ivanov [Thu, 2 Oct 2014 21:47:29 +0000 (21:47 +0000)]
Merge "Add RTLD_NODELETE flag support"

9 years agoFixes to linker code after the conflict resolution
Dmitriy Ivanov [Thu, 2 Oct 2014 20:44:20 +0000 (13:44 -0700)]
Fixes to linker code after the conflict resolution

Change-Id: Icd0728604a865b73e7af0e0aee38971a612935f2

9 years agoUndo the bad work of Automerger
Dmitriy Ivanov [Thu, 2 Oct 2014 20:08:39 +0000 (13:08 -0700)]
Undo the bad work of Automerger

Change-Id: I585388aebc556a094db4c22e647edacea7cde129

9 years agoRevert "L-MR1 specific fixes"
Dmitriy Ivanov [Thu, 2 Oct 2014 19:49:42 +0000 (12:49 -0700)]
Revert "L-MR1 specific fixes"

This reverts commit 1cd0c6777f35b531c9ce78397d0915aa521b3e87.

9 years agoam 1cd0c677: L-MR1 specific fixes
Dmitriy Ivanov [Thu, 2 Oct 2014 19:41:50 +0000 (19:41 +0000)]
am 1cd0c677: L-MR1 specific fixes

* commit '1cd0c6777f35b531c9ce78397d0915aa521b3e87':
  L-MR1 specific fixes

9 years agoresolved conflicts for merge of 7d971ec1 to lmp-mr1-dev-plus-aosp
Dmitriy Ivanov [Thu, 2 Oct 2014 19:38:54 +0000 (12:38 -0700)]
resolved conflicts for merge of 7d971ec1 to lmp-mr1-dev-plus-aosp

Change-Id: I1cd01e5c0dd00cd55594654d53f7e0cb6edf35d9

9 years agoresolved conflicts for merge of f4cb6313 to lmp-mr1-dev-plus-aosp
Dmitriy Ivanov [Thu, 2 Oct 2014 19:33:10 +0000 (12:33 -0700)]
resolved conflicts for merge of f4cb6313 to lmp-mr1-dev-plus-aosp

Change-Id: I9c033fa82c7bf07e06157227f5162d603804b7d6

9 years agoam ef1306d7: Refactoring: C++11 style DISABLE_ bionic marcos
Dmitriy Ivanov [Thu, 2 Oct 2014 19:23:57 +0000 (19:23 +0000)]
am ef1306d7: Refactoring: C++11 style DISABLE_ bionic marcos

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

9 years agoresolved conflicts for merge of 61c4147f to lmp-mr1-dev-plus-aosp
Dmitriy Ivanov [Thu, 2 Oct 2014 19:22:07 +0000 (12:22 -0700)]
resolved conflicts for merge of 61c4147f to lmp-mr1-dev-plus-aosp

Change-Id: I4ed15dbb2136a1984f7651dcc85d05e3e585ac51

9 years agoresolved conflicts for merge of ae69a958 to lmp-mr1-dev-plus-aosp
Dmitriy Ivanov [Thu, 2 Oct 2014 19:16:19 +0000 (12:16 -0700)]
resolved conflicts for merge of ae69a958 to lmp-mr1-dev-plus-aosp

Change-Id: Ia466577ef6e627cc6fcef46aa37cce21acbc8519

9 years agoresolved conflicts for merge of c0133a73 to lmp-mr1-dev-plus-aosp
Dmitriy Ivanov [Thu, 2 Oct 2014 18:52:06 +0000 (11:52 -0700)]
resolved conflicts for merge of c0133a73 to lmp-mr1-dev-plus-aosp

Change-Id: I31d81e91d796fa27f9c88a7edc96c97320ade72c

9 years agoresolved conflicts for merge of 8de1ddec to lmp-mr1-dev-plus-aosp
Dmitriy Ivanov [Thu, 2 Oct 2014 18:34:05 +0000 (11:34 -0700)]
resolved conflicts for merge of 8de1ddec to lmp-mr1-dev-plus-aosp

Change-Id: I9bb063dcf684307181ce4a2b1e5f96bd0d78aaff

9 years agoresolved conflicts for merge of 59c12a65 to lmp-mr1-dev-plus-aosp
Dmitriy Ivanov [Thu, 2 Oct 2014 18:27:57 +0000 (11:27 -0700)]
resolved conflicts for merge of 59c12a65 to lmp-mr1-dev-plus-aosp

Change-Id: I92667dd3d55c8cfd2586c88362fd542c7a6ff9b2

9 years agoresolved conflicts for merge of 81fe2b16 to lmp-mr1-dev-plus-aosp
Dmitriy Ivanov [Thu, 2 Oct 2014 18:06:05 +0000 (11:06 -0700)]
resolved conflicts for merge of 81fe2b16 to lmp-mr1-dev-plus-aosp

Change-Id: I61272d86ebf0d40262e88f5f4327cf97be035bda

9 years agoresolved conflicts for merge of 7210c41f to lmp-mr1-dev-plus-aosp
Dmitriy Ivanov [Thu, 2 Oct 2014 17:54:08 +0000 (10:54 -0700)]
resolved conflicts for merge of 7210c41f to lmp-mr1-dev-plus-aosp

Change-Id: I44d84a95f506e89e77cce8c218083a80ca5724b9

9 years agoam 4466bd72: Implement LinkedList::visit()
Dmitriy Ivanov [Thu, 2 Oct 2014 17:34:40 +0000 (17:34 +0000)]
am 4466bd72: Implement LinkedList::visit()

* commit '4466bd72fb9daeb0ef8f250e8314b555aab30817':
  Implement LinkedList::visit()

9 years agoresolved conflicts for merge of ff01f6fc to lmp-mr1-dev-plus-aosp
Dmitriy Ivanov [Thu, 2 Oct 2014 17:33:04 +0000 (10:33 -0700)]
resolved conflicts for merge of ff01f6fc to lmp-mr1-dev-plus-aosp

Change-Id: I90e7700708a305a7e93dd3ef3a32c5508038b53b

9 years agoresolved conflicts for merge of 4d01d08c to lmp-mr1-dev-plus-aosp
Dmitriy Ivanov [Thu, 2 Oct 2014 17:28:43 +0000 (10:28 -0700)]
resolved conflicts for merge of 4d01d08c to lmp-mr1-dev-plus-aosp

Change-Id: Icaf503240281596de05ee331457200b61d57ab46

9 years agoresolved conflicts for merge of cfad7ae9 to lmp-mr1-dev-plus-aosp
Dmitriy Ivanov [Thu, 2 Oct 2014 17:21:34 +0000 (10:21 -0700)]
resolved conflicts for merge of cfad7ae9 to lmp-mr1-dev-plus-aosp

Change-Id: I119e37c6689c4cc49663748a72c17dc55a362b02

9 years agoam 5dfe802d: Remove unnecessary calls to LinkedList::clear()
Dmitriy Ivanov [Thu, 2 Oct 2014 17:06:50 +0000 (17:06 +0000)]
am 5dfe802d: Remove unnecessary calls to LinkedList::clear()

* commit '5dfe802d0dedbfce355a7ece5bc77c7346941bb2':
  Remove unnecessary calls to LinkedList::clear()

9 years agoresolved conflicts for merge of 93c3f420 to lmp-mr1-dev-plus-aosp
Dmitriy Ivanov [Thu, 2 Oct 2014 17:05:02 +0000 (10:05 -0700)]
resolved conflicts for merge of 93c3f420 to lmp-mr1-dev-plus-aosp

Change-Id: I3cd9c572ec096dc14e0356fe2725074bc7af29d3

9 years agoresolved conflicts for merge of 3bbd218e to lmp-mr1-dev-plus-aosp
Dmitriy Ivanov [Thu, 2 Oct 2014 16:59:26 +0000 (09:59 -0700)]
resolved conflicts for merge of 3bbd218e to lmp-mr1-dev-plus-aosp

Change-Id: Ie7f85be196a44ab59554384274f2022239f91b0e

9 years agoMerge "resolved conflicts for merge of bd321c11 to lmp-mr1-dev-plus-aosp" into lmp...
Dmitriy Ivanov [Thu, 2 Oct 2014 16:51:07 +0000 (16:51 +0000)]
Merge "resolved conflicts for merge of bd321c11 to lmp-mr1-dev-plus-aosp" into lmp-mr1-dev-plus-aosp

9 years agoresolved conflicts for merge of bd321c11 to lmp-mr1-dev-plus-aosp
Dmitriy Ivanov [Thu, 2 Oct 2014 16:49:28 +0000 (09:49 -0700)]
resolved conflicts for merge of bd321c11 to lmp-mr1-dev-plus-aosp

Change-Id: I6ee8a75840073ed00eda9f8f0fbd372cdcfb0be0

9 years agoresolved conflicts for merge of 31b88da8 to lmp-mr1-dev-plus-aosp
Dmitriy Ivanov [Thu, 2 Oct 2014 15:53:42 +0000 (08:53 -0700)]
resolved conflicts for merge of 31b88da8 to lmp-mr1-dev-plus-aosp

Change-Id: I3081cba9e1372adc085380cda01d4825543a6727

9 years agoam e4f8962a: Merge "Update bionic to tzdata 2014h." into lmp-mr1-dev
Elliott Hughes [Thu, 2 Oct 2014 12:37:01 +0000 (12:37 +0000)]
am e4f8962a: Merge "Update bionic to tzdata 2014h." into lmp-mr1-dev

* commit 'e4f8962ab5b4fb64842f4635fdf01a860bb180ee':
  Update bionic to tzdata 2014h.

9 years agoam b5f5b0e4: Fix update-tzdata.py to rebuild icu4c .dat file.
Elliott Hughes [Thu, 2 Oct 2014 12:37:00 +0000 (12:37 +0000)]
am b5f5b0e4: Fix update-tzdata.py to rebuild icu4c .dat file.

* commit 'b5f5b0e418e5c382573e367dd4aff9373180bbe4':
  Fix update-tzdata.py to rebuild icu4c .dat file.

9 years agoL-MR1 specific fixes
Dmitriy Ivanov [Wed, 1 Oct 2014 23:26:49 +0000 (16:26 -0700)]
L-MR1 specific fixes

 Reset soinfo version to 0.
 Disable ifunc test for arm64 because of old toolchain
 in lmp-mr1-dev branch

 Note: this commit should be reverted in -plus-aosp branch.

Change-Id: I2d6d996d43bc35d5d4975c745779f43a988b31e6

9 years agoFix unload of recursively linked library
Dmitriy Ivanov [Tue, 9 Sep 2014 17:21:42 +0000 (10:21 -0700)]
Fix unload of recursively linked library

  Expanded test for recursive libs. Fixed bug with unnecessary
  soinfo_free of already loaded library.

(cherry picked from commit a6ac54a215d6b64f5cc5a59b66c1dbfbb41ea9f5)

Change-Id: I6907c723d9fbdf6b2777f3f236b1e29b0843edd6

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

(cherry picked from commit 9aea164457c269c475592da36b4655d45f55c7bc)

Change-Id: Ie19d900fc203beb93faf8943b0d06d534a6de4ad

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';

(cherry picked from commit d9ff7226613014056c9edd79a68dc5af939107a0)

Change-Id: If2573d080770e18b36b56106f2369f7bb682cd3c

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

(cherry picked from commit 7b956ede3f0f40bd8a085a8ad3729bb3e0e030f2)

Change-Id: I5d804ceb5e69533584161bfed6787529cd8296fb

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
Attempt: 2

(cherry picked from commit 14669a939d113214a4a20b9318fca0992d5453f0)

Change-Id: Id87540c96a2242220967b6fa5d84ddcd829e2b97

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.

(cherry picked from commit 498eb18b82a425f9f30132e4832f327b2ee0e545)

Change-Id: Iec7eab83d0c0ed1604e1e8ea3f9e9d0ce1d29680

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

(cherry picked from commit b2a30ee8d209154efc367db11b4167a5d6db605f)

Change-Id: I59c5333bc050cbbea14051cea9220be2f64ee383

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

(cherry picked from commit a3ad450a2e3fb6b3fe359683b247eba20896f646)

Change-Id: I1125de10272c84e4f075cbc72859c1f6b3e89943

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

(cherry picked from commit b58db8b083ce41798a5310616e4f20885cec611f)

Change-Id: I916c05056d37a9c287b0a5ae3b1a209d98c8f70e

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

(cherry picked from commit 29bbc9dd4c606de9187e46d8899a2a744715c967)

Change-Id: Id208621f66afa2e02a6b3facacee7d874466d81b

9 years agoImplement LinkedList::visit()
Dmitriy Ivanov [Tue, 2 Sep 2014 16:45:40 +0000 (09:45 -0700)]
Implement LinkedList::visit()

(cherry picked from commit a4926058496c1c24c00ac07e42d45048dac7c487)

Change-Id: I59554be45c910bfe33494016595a5ade9daad230

9 years agoIntroduce size-based r/w allocators
Dmitriy Ivanov [Mon, 1 Sep 2014 23:15:52 +0000 (16:15 -0700)]
Introduce size-based r/w allocators

(cherry picked from commit 0cd83ebb0e9784827d9ec0a8028a710e73a28b2b)

Change-Id: Ib037bd5313c9a78b6051482f14e789aa820b4dd1

9 years agoErase elements in LinkedList::remove_if
Dmitriy Ivanov [Fri, 29 Aug 2014 21:01:48 +0000 (14:01 -0700)]
Erase elements in LinkedList::remove_if

(cherry picked from commit 4bea498544bb1377f610520d7f58856382a6e5fc)

Change-Id: I1ffe248bc2b7572f38fbd987e9c6db5ecbd4559d

9 years agoReplace NULL with nullptr
Dmitriy Ivanov [Fri, 29 Aug 2014 19:02:36 +0000 (12:02 -0700)]
Replace NULL with nullptr

(cherry picked from commit 851135bf9941b3813adb9b4f43d76e040c4ba157)

Change-Id: Ic4997907680db7472ef38ffb0f0ca66fff37b797

9 years agoRemove unnecessary calls to LinkedList::clear()
Dmitriy Ivanov [Tue, 26 Aug 2014 22:56:31 +0000 (15:56 -0700)]
Remove unnecessary calls to LinkedList::clear()

(cherry picked from commit 608217e1674d8fd8b334fe18c753b6c4638ed783)

Change-Id: I031359d79b2e77977ace197ef410e41539dc0ce6

9 years agoEnable __cxa_atexit && __cxa_finalize for linker
Dmitriy Ivanov [Tue, 26 Aug 2014 21:16:52 +0000 (14:16 -0700)]
Enable __cxa_atexit && __cxa_finalize for linker

 This allows adding destructors to classes used
 for global variables.

(cherry picked from commit 14241402de0faa4b244b1bd6b1f0799ce169b880)

Change-Id: I1d8776130d1e01a8c53d23a2949f5010f4c96b16

9 years agoBump soinfo version
Dmitriy Ivanov [Fri, 22 Aug 2014 19:25:04 +0000 (12:25 -0700)]
Bump soinfo version

 This includes:
 1. Placing has_ifunc after fields with version = 0
 2. Switch to has_min_version(v) function.
 3. Minor soinfo initialization refactoring (placement new + ctor)

(cherry picked from commit 0d15094287fe0f288d9c258953143fc1998b6b5a)

Change-Id: Idf135fdd3d4826b5653f32add2adc6db5d4a4f95

9 years agoRun constructors before resolving ifunc functions
Dmitriy Ivanov [Thu, 21 Aug 2014 20:54:03 +0000 (13:54 -0700)]
Run constructors before resolving ifunc functions

Bug: 17177284

(cherry picked from commit 9598b8c415e2fa9f240508185fe8c964b83f538d)

Change-Id: I2c9631ee1cd77f8cf95ec0216a35b605c8786454

9 years agoAdded test for ifunc support in dynamic linker.
Brigid Smith [Wed, 23 Jul 2014 18:22:25 +0000 (11:22 -0700)]
Added test for ifunc support in dynamic linker.

ifuncs now work in i386 and x86_64 when called in the same library as
well as in a different library.

Bug:6657325
(cherry picked from commit c5a13efa9bc4264be0a9a9e37c00633af01584ed)

Change-Id: I321d780bc2f9bd1baa749e1acacd2683aefe827b

9 years agoam 2d111d9e: Merge "Make memory_order_acquire visible in global namespace"
Hans Boehm [Wed, 1 Oct 2014 19:23:03 +0000 (19:23 +0000)]
am 2d111d9e: Merge "Make memory_order_acquire visible in global namespace"

* commit '2d111d9eb10b6c48e2e47251be66b418a6109dd9':
  Make memory_order_acquire visible in global namespace

9 years agoMerge "Make memory_order_acquire visible in global namespace"
Hans Boehm [Wed, 1 Oct 2014 19:16:49 +0000 (19:16 +0000)]
Merge "Make memory_order_acquire visible in global namespace"

9 years agoam b19bd93f: Merge "Add stpcpy assembler version."
Christopher Ferris [Wed, 1 Oct 2014 18:24:26 +0000 (18:24 +0000)]
am b19bd93f: Merge "Add stpcpy assembler version."

* commit 'b19bd93f8b83307f2f7530545f7c78824914f4eb':
  Add stpcpy assembler version.

9 years agoMerge "Add stpcpy assembler version."
Christopher Ferris [Wed, 1 Oct 2014 18:16:14 +0000 (18:16 +0000)]
Merge "Add stpcpy assembler version."

9 years agoAdd RTLD_NODELETE flag support
Dmitriy Ivanov [Mon, 19 May 2014 22:06:58 +0000 (15:06 -0700)]
Add RTLD_NODELETE flag support

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

9 years agoMerge "Update bionic to tzdata 2014h." into lmp-mr1-dev
Elliott Hughes [Wed, 1 Oct 2014 18:02:51 +0000 (18:02 +0000)]
Merge "Update bionic to tzdata 2014h." into lmp-mr1-dev

9 years agoam cadccfd7: Merge "Update bionic to tzdata 2014h."
Elliott Hughes [Wed, 1 Oct 2014 17:38:45 +0000 (17:38 +0000)]
am cadccfd7: Merge "Update bionic to tzdata 2014h."

* commit 'cadccfd70821aeb107b8fc0084da04faecbfde2f':
  Update bionic to tzdata 2014h.

9 years agoam 89fd3236: Merge "Fix update-tzdata.py to rebuild icu4c .dat file."
Elliott Hughes [Wed, 1 Oct 2014 17:38:44 +0000 (17:38 +0000)]
am 89fd3236: Merge "Fix update-tzdata.py to rebuild icu4c .dat file."

* commit '89fd32362bb62775aad001802bc79e3f07d7d62f':
  Fix update-tzdata.py to rebuild icu4c .dat file.

9 years agoUpdate bionic to tzdata 2014h.
Elliott Hughes [Wed, 1 Oct 2014 00:35:38 +0000 (17:35 -0700)]
Update bionic to tzdata 2014h.

From the release notes:

  Changes affecting past time stamps

    America/Jamaica's 1974 spring-forward transition was Jan. 6, not Apr. 28.

    Shanks says Asia/Novokuznetsk switched from LMT (not "NMT") on 1924-05-01,
    not 1920-01-06.  The old entry was based on a misinterpretation of Shanks.

    Some more zones have been turned into links, when they differed
    from existing zones only for older time stamps.  As usual,
    these changes affect UTC offsets in pre-1970 time stamps only.
    Their old contents have been moved to the 'backzone' file.
    The affected zones are: Africa/Blantyre, Africa/Bujumbura,
    Africa/Gaborone, Africa/Harare, Africa/Kigali, Africa/Lubumbashi,
    Africa/Lusaka, Africa/Maseru, and Africa/Mbabane.

Bug: 17731498

(cherry picked from commit 0c8fb51e6b8cfcd00d453cb5ebfa516f02009854)

Change-Id: Icf8a9cbd309951b4ffc20c74eb1e78c1e39c222f

9 years agoMerge "Update bionic to tzdata 2014h."
Elliott Hughes [Wed, 1 Oct 2014 17:20:33 +0000 (17:20 +0000)]
Merge "Update bionic to tzdata 2014h."

9 years agoFix update-tzdata.py to rebuild icu4c .dat file.
Elliott Hughes [Wed, 1 Oct 2014 00:30:01 +0000 (17:30 -0700)]
Fix update-tzdata.py to rebuild icu4c .dat file.

Bug: 17731498

(cherry picked from commit f8896c6c93fd698b129742780878123a3a19ae07)

Change-Id: If97e1ccf593a2ed6c2356077e660d6fd88a05875

9 years agoMerge "Fix update-tzdata.py to rebuild icu4c .dat file."
Elliott Hughes [Wed, 1 Oct 2014 17:00:23 +0000 (17:00 +0000)]
Merge "Fix update-tzdata.py to rebuild icu4c .dat file."

9 years agoAdd stpcpy assembler version.
Christopher Ferris [Tue, 30 Sep 2014 18:53:13 +0000 (11:53 -0700)]
Add stpcpy assembler version.

For generic, continue to use the C version of the code.

Bug: 13746695
Change-Id: I77426a70b06131f2373bb51265bea1240bb3f101

9 years agoam 81156d93: Merge "Add coverage flag for libm."
Dan Albert [Wed, 1 Oct 2014 01:38:13 +0000 (01:38 +0000)]
am 81156d93: Merge "Add coverage flag for libm."

* commit '81156d93c557e88379dd3e9d869dcc97a15293f5':
  Add coverage flag for libm.

9 years agoMake memory_order_acquire visible in global namespace
Hans Boehm [Wed, 1 Oct 2014 01:31:04 +0000 (18:31 -0700)]
Make memory_order_acquire visible in global namespace

We were missing that using directive when including <atomic>.

Bug:17736764
Change-Id: Ie8ca92a952749415567bcd5fa21d56629a364660

9 years agoMerge "Add coverage flag for libm."
Dan Albert [Wed, 1 Oct 2014 01:28:24 +0000 (01:28 +0000)]
Merge "Add coverage flag for libm."

9 years agoUpdate bionic to tzdata 2014h.
Elliott Hughes [Wed, 1 Oct 2014 00:35:38 +0000 (17:35 -0700)]
Update bionic to tzdata 2014h.

From the release notes:

  Changes affecting past time stamps

    America/Jamaica's 1974 spring-forward transition was Jan. 6, not Apr. 28.

    Shanks says Asia/Novokuznetsk switched from LMT (not "NMT") on 1924-05-01,
    not 1920-01-06.  The old entry was based on a misinterpretation of Shanks.

    Some more zones have been turned into links, when they differed
    from existing zones only for older time stamps.  As usual,
    these changes affect UTC offsets in pre-1970 time stamps only.
    Their old contents have been moved to the 'backzone' file.
    The affected zones are: Africa/Blantyre, Africa/Bujumbura,
    Africa/Gaborone, Africa/Harare, Africa/Kigali, Africa/Lubumbashi,
    Africa/Lusaka, Africa/Maseru, and Africa/Mbabane.

Bug: 17731498
Change-Id: If65b740d4e3a67075cca770655a1df17952c3da0

9 years agoFix update-tzdata.py to rebuild icu4c .dat file.
Elliott Hughes [Wed, 1 Oct 2014 00:30:01 +0000 (17:30 -0700)]
Fix update-tzdata.py to rebuild icu4c .dat file.

Bug: 17731498
Change-Id: I4c810507c0ca9883dde1bece14530db80485b8f6

9 years agoam 252c1ac9: Merge "Update our FreeBSD realpath(3) to upstream head."
Elliott Hughes [Wed, 1 Oct 2014 00:05:10 +0000 (00:05 +0000)]
am 252c1ac9: Merge "Update our FreeBSD realpath(3) to upstream head."

* commit '252c1ac9738ff6187354f243ef118eac962b65dc':
  Update our FreeBSD realpath(3) to upstream head.

9 years agoAdd coverage flag for libm.
Dan Albert [Tue, 30 Sep 2014 23:56:43 +0000 (16:56 -0700)]
Add coverage flag for libm.

Change-Id: I195d38c5e1f50d1cc6d4353dc8857f11b803b7a3

9 years agoMerge "Update our FreeBSD realpath(3) to upstream head."
Elliott Hughes [Tue, 30 Sep 2014 23:55:57 +0000 (23:55 +0000)]
Merge "Update our FreeBSD realpath(3) to upstream head."

9 years agoam 701cf941: Merge "Fix mips build"
Dmitriy Ivanov [Tue, 30 Sep 2014 23:51:07 +0000 (23:51 +0000)]
am 701cf941: Merge "Fix mips build"

* commit '701cf9419b4df92bd959bbc6f18150f6ae76df7c':
  Fix mips build

9 years agoam e04aa450: Merge "Clean up the pthread key tests."
Dan Albert [Tue, 30 Sep 2014 23:51:07 +0000 (23:51 +0000)]
am e04aa450: Merge "Clean up the pthread key tests."

* commit 'e04aa450c2b51ea066d1a1c37978cce808d13872':
  Clean up the pthread key tests.

9 years agoMerge "Fix mips build"
Dmitriy Ivanov [Tue, 30 Sep 2014 23:42:24 +0000 (23:42 +0000)]
Merge "Fix mips build"

9 years agoMerge "Clean up the pthread key tests."
Dan Albert [Tue, 30 Sep 2014 23:41:06 +0000 (23:41 +0000)]
Merge "Clean up the pthread key tests."

9 years agoUpdate our FreeBSD realpath(3) to upstream head.
Elliott Hughes [Tue, 30 Sep 2014 23:15:42 +0000 (16:15 -0700)]
Update our FreeBSD realpath(3) to upstream head.

Change-Id: I8c89728184ecd2c1a28a05cefa84a5037d28b552

9 years agoFix mips build
Dmitriy Ivanov [Tue, 30 Sep 2014 23:30:22 +0000 (16:30 -0700)]
Fix mips build

Change-Id: I4454e69a982f239b168678c5a681d1078b4bd4f1

9 years agoClean up the pthread key tests.
Dan Albert [Tue, 30 Sep 2014 18:48:24 +0000 (11:48 -0700)]
Clean up the pthread key tests.

The previous pthread_key_create_many test was really
pthread_key_create_all, which has proven very difficult to test
correctly (because it is affected by any other parts of the system using
pthread keys, and that can vary with test ordering). It also tested
expected values of PTHREAD_KEYS_MAX and the associated sysconf() value,
rather than those being in their own test.

Instead, split this test into a few distinct tests:

 * pthread.pthread_keys_max
 * pthread._SC_THREAD_KEYS_MAX_big_enough_for_POSIX
 * pthread.pthread_key_many_distinct
     * We actually didn't have a test to ensure that the keys we were
       creating were distinct.
 * pthread.pthread_key_EAGAIN
     * Make sure pthread_key_create() will _eventually_ fail with
       EAGAIN, not at a (sometimes incorrectly) predetermined maximum.

Change-Id: Iff1e4fdcc02404094bde0418122c64c227cf1702

9 years agoam 1f7d5ac5: Merge "Fix unused DT entry warnings."
Dmitriy Ivanov [Tue, 30 Sep 2014 22:26:16 +0000 (22:26 +0000)]
am 1f7d5ac5: Merge "Fix unused DT entry warnings."

* commit '1f7d5ac53854a09bbcace08b3a1d1b9cf3f2eed3':
  Fix unused DT entry warnings.

9 years agoMerge "Fix unused DT entry warnings."
Dmitriy Ivanov [Tue, 30 Sep 2014 22:14:32 +0000 (22:14 +0000)]
Merge "Fix unused DT entry warnings."

9 years agoFix unused DT entry warnings.
Dmitriy Ivanov [Tue, 30 Sep 2014 02:14:45 +0000 (19:14 -0700)]
Fix unused DT entry warnings.

 DT_STRSZ Implement strtab boundary checks
 DT_FLAGS_1 Warn if flags other than DF_1_NOW|DF_1_GLOBAL are set

Bug: 17552334
Change-Id: Iaad29cd52f5b2d7d2f785fb351697906dc1617d9

9 years agoam 0481471b: Merge "Switch benchmarks and tests to libc++."
Dan Albert [Tue, 30 Sep 2014 17:39:04 +0000 (17:39 +0000)]
am 0481471b: Merge "Switch benchmarks and tests to libc++."

* commit '0481471b1bb95a90f632a9fb59c7a1767b9836c8':
  Switch benchmarks and tests to libc++.

9 years agoam e49491ad: Merge "Ignore multiple symbol definition errors."
Dan Albert [Tue, 30 Sep 2014 17:39:04 +0000 (17:39 +0000)]
am e49491ad: Merge "Ignore multiple symbol definition errors."

* commit 'e49491ada4c8e7827329b56a93e5377433aa9084':
  Ignore multiple symbol definition errors.

9 years agoMerge "Switch benchmarks and tests to libc++."
Dan Albert [Tue, 30 Sep 2014 17:30:57 +0000 (17:30 +0000)]
Merge "Switch benchmarks and tests to libc++."

9 years agoMerge "Ignore multiple symbol definition errors."
Dan Albert [Tue, 30 Sep 2014 17:30:52 +0000 (17:30 +0000)]
Merge "Ignore multiple symbol definition errors."

9 years agoSwitch benchmarks and tests to libc++.
Dan Albert [Fri, 26 Sep 2014 22:37:52 +0000 (15:37 -0700)]
Switch benchmarks and tests to libc++.

Change-Id: I3b9c8f8c14a1e227e67ae1977cc29b0e8fccef5d

9 years agoIgnore multiple symbol definition errors.
Dan Albert [Mon, 29 Sep 2014 22:16:46 +0000 (15:16 -0700)]
Ignore multiple symbol definition errors.

libc and libc++ both define std::nothrow. libc's is a private symbol,
but this still causes issues when linking libc.a and libc++.a, since
private isn't effective until it has been linked. To fix this, just
allow multiple symbol definitions for the static tests.

Change-Id: Idbf19fefda47298c39360e3f5b6242b0b1a52fcc

9 years agoam 9997daa0: Merge "Return has_DT_SYMBOLIC flag."
Dmitriy Ivanov [Tue, 30 Sep 2014 16:50:04 +0000 (16:50 +0000)]
am 9997daa0: Merge "Return has_DT_SYMBOLIC flag."

* commit '9997daa0ff8f630bee5d3b8eb0ab15a0ba1e5cf6':
  Return has_DT_SYMBOLIC flag.

9 years agoMerge "Return has_DT_SYMBOLIC flag."
Dmitriy Ivanov [Tue, 30 Sep 2014 16:40:25 +0000 (16:40 +0000)]
Merge "Return has_DT_SYMBOLIC flag."

9 years agoam b104be32: Merge "Remove arch-mips64/bionic/__get_sp.S"
Andrew Hsieh [Tue, 30 Sep 2014 06:03:31 +0000 (06:03 +0000)]
am b104be32: Merge "Remove arch-mips64/bionic/__get_sp.S"

* commit 'b104be321f2538a6e0bbd566bc958537d1f65cef':
  Remove arch-mips64/bionic/__get_sp.S

9 years agoam 85a932c0: Merge "Cleanup arm assembly."
Christopher Ferris [Tue, 30 Sep 2014 06:03:31 +0000 (06:03 +0000)]
am 85a932c0: Merge "Cleanup arm assembly."

* commit '85a932c0c9225e0f71d94a0d8cbac85089a398cf':
  Cleanup arm assembly.

9 years agoMerge "Remove arch-mips64/bionic/__get_sp.S"
Andrew Hsieh [Tue, 30 Sep 2014 00:01:01 +0000 (00:01 +0000)]
Merge "Remove arch-mips64/bionic/__get_sp.S"