14506 Commits

Author SHA1 Message Date
Elliott Hughes
df61319444 am 8ce73725: am a40a16ea: Merge "Add a test for pthread_gettid_np."
* commit '8ce73725a3e185d9d36a3913d9713eb9d9062a3c':
  Add a test for pthread_gettid_np.
2014-09-13 02:25:37 +00:00
Elliott Hughes
c63a12128c am 4cc9c6cc: am 69c2d7dc: Merge "Sync libm with upstream."
* commit '4cc9c6cc83e7fcd9d62bac152a9f4fc4c7b8eaf9':
  Sync libm with upstream.
2014-09-13 02:25:13 +00:00
Elliott Hughes
6b9a41e082 am ecd6be3b: am e39e47c6: Merge "Remove "private/bionic_pthread.h"."
* commit 'ecd6be3bd2963ef69500e4b5a0186114f01a282d':
  Remove "private/bionic_pthread.h".
2014-09-13 02:22:42 +00:00
Dmitriy Ivanov
1f08f1a3c8 am b58b8210: am d74aa580: Merge "Fix unload of recursively linked library"
* commit 'b58b821056ab45ece313181fb2d55856957fe2a6':
  Fix unload of recursively linked library
2014-09-13 02:22:41 +00:00
Dmitriy Ivanov
9da0ae4ddd am 75386aa5: am aad92067: Merge "Reformatting"
* commit '75386aa5ffb4f66810b7e267fcd16d69420bb8e2':
  Reformatting
2014-09-13 02:22:41 +00:00
Dmitriy Ivanov
2e3fd896cc am bb5e2968: am 66bbf159: Merge "Refactoring: C++11 style DISABLE_ bionic marcos"
* commit 'bb5e2968ca909903605364e5d7b199d121fcae40':
  Refactoring: C++11 style DISABLE_ bionic marcos
2014-09-13 02:22:40 +00:00
Elliott Hughes
934028eba3 am 73d2059f: Merge "Explain why clock(3) isn\'t broken."
* commit '73d2059f9b3f53446e25d800d64a86efb3bf3f9f':
  Explain why clock(3) isn't broken.
2014-09-13 00:16:26 +00:00
Elliott Hughes
73d2059f9b Merge "Explain why clock(3) isn't broken." 2014-09-12 23:52:13 +00:00
Elliott Hughes
8bd96e067c am 21451f5b: Merge "Get new coshl, sinhl, and tanhl implementations from upstream."
* commit '21451f5bf65ecaa00c9f3b7ac721738b97f41599':
  Get new coshl, sinhl, and tanhl implementations from upstream.
2014-09-12 23:49:31 +00:00
Elliott Hughes
f83c208b82 Explain why clock(3) isn't broken.
Bug: 17441123
Change-Id: I6ee9b7f54bab55b1a8760ce9bcaaa6eab1dcc492
2014-09-12 16:33:37 -07:00
Elliott Hughes
21451f5bf6 Merge "Get new coshl, sinhl, and tanhl implementations from upstream." 2014-09-12 23:13:43 +00:00
Elliott Hughes
8ce73725a3 am a40a16ea: Merge "Add a test for pthread_gettid_np."
* commit 'a40a16eab13b770c3ce80f4e4241dfcd9518022f':
  Add a test for pthread_gettid_np.
2014-09-12 23:12:45 +00:00
Elliott Hughes
c729d4f237 Get new coshl, sinhl, and tanhl implementations from upstream.
Change-Id: I92f9cd53d12efb2e0f4f8a9590b9fe42398233f6
2014-09-12 16:09:40 -07:00
Elliott Hughes
a40a16eab1 Merge "Add a test for pthread_gettid_np." 2014-09-12 22:52:38 +00:00
Elliott Hughes
8fb639ca91 Add a test for pthread_gettid_np.
Bug: 17475191
Change-Id: I8c6a2f4ceba2d24a77ae9a21269edce523aea421
2014-09-12 14:43:07 -07:00
Elliott Hughes
4cc9c6cc83 am 69c2d7dc: Merge "Sync libm with upstream."
* commit '69c2d7dc6434c7e7e9bd22797deb7f727199ab0c':
  Sync libm with upstream.
2014-09-12 21:34:56 +00:00
Elliott Hughes
69c2d7dc64 Merge "Sync libm with upstream." 2014-09-12 21:07:48 +00:00
Elliott Hughes
460ad7454a Sync libm with upstream.
Change-Id: I8ac8ee52122ee19a2e423c3211092023cb4896eb
2014-09-12 14:00:02 -07:00
Elliott Hughes
ecd6be3bd2 am e39e47c6: Merge "Remove "private/bionic_pthread.h"."
* commit 'e39e47c6b377170d696c6b9b5b523a28c1382ca4':
  Remove "private/bionic_pthread.h".
2014-09-12 20:08:45 +00:00
Dmitriy Ivanov
b58b821056 am d74aa580: Merge "Fix unload of recursively linked library"
* commit 'd74aa580354037b9972524e9d654c0a336974838':
  Fix unload of recursively linked library
2014-09-12 20:08:44 +00:00
Dmitriy Ivanov
75386aa5ff am aad92067: Merge "Reformatting"
* commit 'aad92067bf4eecda81a4c331ee4dec70483c5104':
  Reformatting
2014-09-12 20:08:42 +00:00
Dmitriy Ivanov
bb5e2968ca am 66bbf159: Merge "Refactoring: C++11 style DISABLE_ bionic marcos"
* commit '66bbf1595c0fc25d4bc47457d8020b11e135996d':
  Refactoring: C++11 style DISABLE_ bionic marcos
2014-09-12 20:08:41 +00:00
Elliott Hughes
f0a6d5db8f am 0654250e: am 8d8a789c: Merge "Expose __swsetup for LP32 binary compatibility."
* commit '0654250eb99b825abfc4368063c725526018ef77':
  Expose __swsetup for LP32 binary compatibility.
2014-09-12 19:27:34 +00:00
Dmitriy Ivanov
c5cb043819 am 5a6e31c3: am 6487f0d8: Merge "Add IFUNC support for arm64 and IRELATIVE reloc"
* commit '5a6e31c3cbaf5ebbcc6cc6221a12ee1ce10e1e82':
  Add IFUNC support for arm64 and IRELATIVE reloc
2014-09-12 19:27:33 +00:00
Elliott Hughes
d455758e99 am 7f4c7060: am 5920a9ad: Merge "Add pthread_gettid_np and re-expose __get_thread for LP32."
* commit '7f4c7060f0856da7f3624f87b4547615c29130b8':
  Add pthread_gettid_np and re-expose __get_thread for LP32.
2014-09-12 19:27:33 +00:00
Elliott Hughes
6cd84274b8 am da7fe217: am 7e00b44e: Expose __swsetup for LP32 binary compatibility.
* commit 'da7fe217d8ef5aaa1c7f8837719e1c7f1d482679':
  Expose __swsetup for LP32 binary compatibility.
2014-09-12 19:27:27 +00:00
Elliott Hughes
1bd1f3a401 am 66265e80: am 27efc488: Add pthread_gettid_np and re-expose __get_thread for LP32.
* commit '66265e80a13e60ac06153af88936fb4c90a99f66':
  Add pthread_gettid_np and re-expose __get_thread for LP32.
2014-09-12 19:27:27 +00:00
Elliott Hughes
3e4ae3ec09 am d415e27d: am 9e833bf0: Fix mips __fadvise64.S build failure.
* commit 'd415e27d5bcfaba5b8fcd868d98173db708ffa9c':
  Fix mips __fadvise64.S build failure.
2014-09-12 19:19:40 +00:00
Elliott Hughes
ba55c8984e am 5691dcfc: am ea66004c: Merge "Fix mips __fadvise64.S build failure."
* commit '5691dcfc0d8b1418e53d75b3c3428f8f65a87727':
  Fix mips __fadvise64.S build failure.
2014-09-12 19:17:48 +00:00
Elliott Hughes
c3932cca0b am 65e61977: am 176c3278: Merge "Add posix_fadvise(3)." into lmp-dev
* commit '65e619775e3f4517edc7ac68c6b85a9443a67da7':
  Add posix_fadvise(3).
2014-09-12 19:17:03 +00:00
Elliott Hughes
612db11844 am db1e9581: am 33df10f2: Merge "Add posix_fadvise(3)."
* commit 'db1e9581098ad19465d2d81fbe368743b648a071':
  Add posix_fadvise(3).
2014-09-12 19:16:56 +00:00
Elliott Hughes
e39e47c6b3 Merge "Remove "private/bionic_pthread.h"." 2014-09-12 18:43:05 +00:00
Elliott Hughes
0f001b67fe Remove "private/bionic_pthread.h".
Bug: 17476168
Change-Id: Id642987e641de81e914a28daea4ffe9d11e090ed
2014-09-12 11:35:05 -07:00
Dmitriy Ivanov
d74aa58035 Merge "Fix unload of recursively linked library" 2014-09-12 16:55:42 +00:00
Dmitriy Ivanov
aad92067bf Merge "Reformatting" 2014-09-12 16:50:29 +00:00
Dmitriy Ivanov
66bbf1595c Merge "Refactoring: C++11 style DISABLE_ bionic marcos" 2014-09-12 16:50:05 +00:00
Dmitriy Ivanov
6abf624d12 Reformatting
No functional changes.

Change-Id: If71775e5fc207e91ebd31ba3c5f9d2c13dc8dada
2014-09-12 09:43:13 -07:00
Elliott Hughes
0654250eb9 am 8d8a789c: Merge "Expose __swsetup for LP32 binary compatibility."
* commit '8d8a789c49ffb6b71e4b8f34df937cfaaff86e40':
  Expose __swsetup for LP32 binary compatibility.
2014-09-12 05:59:18 +00:00
Dmitriy Ivanov
5a6e31c3cb am 6487f0d8: Merge "Add IFUNC support for arm64 and IRELATIVE reloc"
* commit '6487f0d8341b00b476995e0174dc92e5ae8efbbe':
  Add IFUNC support for arm64 and IRELATIVE reloc
2014-09-12 05:59:16 +00:00
Elliott Hughes
7f4c7060f0 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.
2014-09-12 05:59:16 +00:00
Elliott Hughes
da7fe217d8 am 7e00b44e: Expose __swsetup for LP32 binary compatibility.
* commit '7e00b44e80d6e38b8ab86d0ebc86b666c0ac2ef6':
  Expose __swsetup for LP32 binary compatibility.
2014-09-12 05:48:54 +00:00
Elliott Hughes
66265e80a1 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.
2014-09-12 05:48:52 +00:00
Dmitriy Ivanov
a6ac54a215 Fix unload of recursively linked library
Expanded test for recursive libs. Fixed bug with unnecessary
  soinfo_free of already loaded library.

Change-Id: I2cc19f2650c8b12a35feeac127ef608ebba44d88
2014-09-11 22:40:48 -07:00
Elliott Hughes
8d8a789c49 Merge "Expose __swsetup for LP32 binary compatibility." 2014-09-12 01:27:45 +00:00
Elliott Hughes
5f35710fad Expose __swsetup for LP32 binary compatibility.
(cherry-pick of 7e00b44e80d6e38b8ab86d0ebc86b666c0ac2ef6.)

Bug: 17476127
Change-Id: I0ef1355ac913d782c268a638f88642d6cfc236c2
2014-09-11 18:23:46 -07:00
Dmitriy Ivanov
6487f0d834 Merge "Add IFUNC support for arm64 and IRELATIVE reloc" 2014-09-12 00:40:12 +00:00
Elliott Hughes
7e00b44e80 Expose __swsetup for LP32 binary compatibility.
Bug: 17476127
Change-Id: I0ef1355ac913d782c268a638f88642d6cfc236c2
2014-09-11 16:41:11 -07:00
Dmitriy Ivanov
9aea164457 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
2014-09-11 16:30:45 -07:00
Elliott Hughes
5920a9ad5f Merge "Add pthread_gettid_np and re-expose __get_thread for LP32." 2014-09-11 23:25:46 +00:00
Elliott Hughes
a4831cb4a3 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
2014-09-11 16:22:50 -07:00