OSDN Git Service

android-x86/bionic.git
9 years agoDon't use TIMER_ABSTIME in time_test.
Yabin Cui [Fri, 19 Jun 2015 00:01:11 +0000 (17:01 -0700)]
Don't use TIMER_ABSTIME in time_test.

If TIMER_ABSTIME is used in timer_settime(), the timer is always fired
immediately, which is not the intent of the tests.

Change-Id: I76047dbeb2bdded272ee6d028630b53bfd7d8514

9 years agoMerge "Improve library lookup logic"
Dmitriy Ivanov [Thu, 18 Jun 2015 00:30:47 +0000 (00:30 +0000)]
Merge "Improve library lookup logic"

9 years agoImprove library lookup logic
Dmitriy Ivanov [Tue, 16 Jun 2015 22:38:21 +0000 (15:38 -0700)]
Improve library lookup logic

Linker tries to open a library even if it can
be found by soname. This only happens if the
library was previously opened under different
target sdk version.

Bug: http://b/21876587
Bug: http://b/21153477
Bug: http://b/21171302
Bug: https://code.google.com/p/android/issues/detail?id=160921
Change-Id: I7dbbcc3b49933bffd89ca0af55371e1a1f2bf4c2
(cherry picked from commit 28154f5c56dc4a64270cae2374b47a168d1bd7fa)

9 years agoMerge "[MIPS] Add optimized string functions"
Christopher Ferris [Wed, 17 Jun 2015 23:50:55 +0000 (23:50 +0000)]
Merge "[MIPS] Add optimized string functions"

9 years agoMerge "Revert "Improve library lookup logic""
Dimitry Ivanov [Wed, 17 Jun 2015 21:35:27 +0000 (21:35 +0000)]
Merge "Revert "Improve library lookup logic""

9 years agoRevert "Improve library lookup logic"
Dimitry Ivanov [Wed, 17 Jun 2015 21:34:25 +0000 (21:34 +0000)]
Revert "Improve library lookup logic"

This reverts commit 455c145e3c451b2b6dc00663e4040d79acefd496.

Bug: http://b/21876587
Bug: http://b/21153477
Bug: http://b/21171302
Bug: https://code.google.com/p/android/issues/detail?id=160921
Change-Id: Iad21ddfc1ac749d12bcb52384a8d937b307dd03b

9 years agoMerge "Add versions to libm.so symbols"
Dmitriy Ivanov [Wed, 17 Jun 2015 20:49:42 +0000 (20:49 +0000)]
Merge "Add versions to libm.so symbols"

9 years agoMerge "Improve library lookup logic"
Dmitriy Ivanov [Wed, 17 Jun 2015 17:28:49 +0000 (17:28 +0000)]
Merge "Improve library lookup logic"

9 years agoImprove library lookup logic
Dmitriy Ivanov [Tue, 16 Jun 2015 22:38:21 +0000 (15:38 -0700)]
Improve library lookup logic

Linker tries to open a library even if it can
be found by soname. This only happens if the
library was previously opened under different
target sdk version.

Bug: http://b/21876587
Bug: http://b/21153477
Bug: http://b/21171302
Bug: https://code.google.com/p/android/issues/detail?id=160921
Change-Id: I769a04b6b1368a107d43f399297be14050338bbc
(cherry picked from commit ea4ef52fa46602a5853df0e5b1ddd71b194d54ce)

9 years agoMerge "Revert "[MIPS] Do not use compact branches until GDB supports them""
Elliott Hughes [Wed, 17 Jun 2015 17:05:13 +0000 (17:05 +0000)]
Merge "Revert "[MIPS] Do not use compact branches until GDB supports them""

9 years agoRevert "[MIPS] Do not use compact branches until GDB supports them"
Nikola Veljkovic [Wed, 17 Jun 2015 15:17:54 +0000 (17:17 +0200)]
Revert "[MIPS] Do not use compact branches until GDB supports them"

This reverts commit 3cec6eca929de5d627a8cc1fbe72c564ba5175cc.

9 years ago[MIPS] Add optimized string functions
Nikola Veljkovic [Tue, 26 May 2015 10:06:09 +0000 (12:06 +0200)]
[MIPS] Add optimized string functions

Use same string functions for all MIPS architectures.

Change-Id: I5575b16f3f66fa3609d7dafd151b6091bfe3517f

9 years agoMerge "Fixes for building gdbserver (and gdb) out of the box."
Elliott Hughes [Tue, 16 Jun 2015 23:58:30 +0000 (23:58 +0000)]
Merge "Fixes for building gdbserver (and gdb) out of the box."

9 years agoFixes for building gdbserver (and gdb) out of the box.
Elliott Hughes [Tue, 16 Jun 2015 23:04:35 +0000 (16:04 -0700)]
Fixes for building gdbserver (and gdb) out of the box.

Bug: http://b/21695943
Change-Id: Iadb600b2ae619515d7038a4db9bf464ba31adb36

9 years agoMerge "Use new sanitizer option."
Dan Albert [Tue, 16 Jun 2015 21:23:49 +0000 (21:23 +0000)]
Merge "Use new sanitizer option."

9 years agoUse new sanitizer option.
Dan Albert [Tue, 16 Jun 2015 20:57:54 +0000 (13:57 -0700)]
Use new sanitizer option.

Change-Id: I21b04a1f3be3b10ee557bf9e0caa5db638686364

9 years agoMerge "Add support for cortex-a53 in bionic."
Tim Murray [Tue, 16 Jun 2015 19:04:13 +0000 (19:04 +0000)]
Merge "Add support for cortex-a53 in bionic."

9 years agoMerge "Add version to libc.so symbols"
Dmitriy Ivanov [Tue, 16 Jun 2015 18:04:32 +0000 (18:04 +0000)]
Merge "Add version to libc.so symbols"

9 years agoMerge "Hide accidentally-exposed __clock_nanosleep."
Elliott Hughes [Tue, 16 Jun 2015 17:43:36 +0000 (17:43 +0000)]
Merge "Hide accidentally-exposed __clock_nanosleep."

9 years agoAdd version to libc.so symbols
Dmitriy Ivanov [Thu, 4 Jun 2015 00:48:51 +0000 (17:48 -0700)]
Add version to libc.so symbols

Bug: http://b/21617095
Bug: http://b/20139821
Change-Id: If3d42d2a0b4a0c49721fd9b9ecbb4f7bee5a1eff

9 years agoAdd support for cortex-a53 in bionic.
Tim Murray [Thu, 11 Jun 2015 22:33:06 +0000 (15:33 -0700)]
Add support for cortex-a53 in bionic.

allows -mcpu=cortex-a53 to be passed as part of a command line.

Change-Id: Id4203a9fd197f4c3b661bad21ac58c32819fd687

9 years agoHide accidentally-exposed __clock_nanosleep.
Elliott Hughes [Tue, 16 Jun 2015 02:39:04 +0000 (19:39 -0700)]
Hide accidentally-exposed __clock_nanosleep.

Bug: http://b/21858067
Change-Id: Iaa83a5e17cfff796aed4f641d0d14427614d9399

9 years agoAdd versions to libm.so symbols
Dmitriy Ivanov [Fri, 5 Jun 2015 01:30:51 +0000 (18:30 -0700)]
Add versions to libm.so symbols

Bug: http://b/20139821
Change-Id: Ifdfcac62d59eb8f0985990aa8512046ecb87449e

9 years agoMerge "Avoid name collision with user_fpsimd_state in <asm/ptrace.h>."
Elliott Hughes [Tue, 16 Jun 2015 01:50:24 +0000 (01:50 +0000)]
Merge "Avoid name collision with user_fpsimd_state in <asm/ptrace.h>."

9 years agoAvoid name collision with user_fpsimd_state in <asm/ptrace.h>.
Elliott Hughes [Tue, 16 Jun 2015 01:47:39 +0000 (18:47 -0700)]
Avoid name collision with user_fpsimd_state in <asm/ptrace.h>.

We don't want to use <asm/ptrace.h> because (a) it'll drag in a bunch of
namespace pollution and (b) the registers should be "long double" for
userspace, not the kernel's uint128s. So just use a slightly different
name for our struct (which matches the traditional names for these structs
anyway).

Bug: http://b/21695943
Bug: https://code.google.com/p/android/issues/detail?id=86712
Change-Id: I8812ca98cfe6b649dbd31f7d6aea41928ba2acbd

9 years agoMerge "Fix two accidentally leaked mips64 symbols."
Elliott Hughes [Tue, 16 Jun 2015 01:36:29 +0000 (01:36 +0000)]
Merge "Fix two accidentally leaked mips64 symbols."

9 years agoMerge "Add a sys/procfs.h."
Elliott Hughes [Tue, 16 Jun 2015 01:28:47 +0000 (01:28 +0000)]
Merge "Add a sys/procfs.h."

9 years agoFix two accidentally leaked mips64 symbols.
Elliott Hughes [Tue, 16 Jun 2015 00:49:54 +0000 (17:49 -0700)]
Fix two accidentally leaked mips64 symbols.

Bug: http://b/21857154
Change-Id: Ie1fb63f54c6c527b8c1172e8f6ce48f23fca9b41

9 years agoAdd a sys/procfs.h.
Dan Albert [Wed, 4 Mar 2015 18:31:29 +0000 (10:31 -0800)]
Add a sys/procfs.h.

Needed for building gdbserver out of the box.

Bug: http://b/21695943
Bug: https://code.google.com/p/android/issues/detail?id=86712
Change-Id: Ieadda2b595f08bfddfa61fcd68006b8e7c1a438d

9 years agoMerge "Make path to apk compliant with jar url format"
Dmitriy Ivanov [Sat, 13 Jun 2015 00:43:56 +0000 (00:43 +0000)]
Merge "Make path to apk compliant with jar url format"

9 years agoMake path to apk compliant with jar url format
Dmitriy Ivanov [Tue, 9 Jun 2015 20:46:51 +0000 (13:46 -0700)]
Make path to apk compliant with jar url format

Bug: http://b/21726698
Bug: http://b/8076853
Change-Id: I8c1942a98fe3119746b4dc9f60a7ff215ea7009c
(cherry picked from commit 524f1f1efe0cb32714c61e26f21701ac952b9e42)

9 years agoMerge "Always build libm with clang."
Elliott Hughes [Thu, 11 Jun 2015 16:58:22 +0000 (16:58 +0000)]
Merge "Always build libm with clang."

9 years agoAlways build libm with clang.
Elliott Hughes [Thu, 11 Jun 2015 05:55:09 +0000 (22:55 -0700)]
Always build libm with clang.

Change-Id: I00df3b83dfa76a7e12f097fb622ceaec3e2bb5a4

9 years agoMerge "Fix l_addr for the linker"
Dmitriy Ivanov [Thu, 11 Jun 2015 03:05:10 +0000 (03:05 +0000)]
Merge "Fix l_addr for the linker"

9 years agoFix l_addr for the linker
Dmitriy Ivanov [Thu, 11 Jun 2015 02:46:19 +0000 (19:46 -0700)]
Fix l_addr for the linker

Bug: http://b/21765603
Change-Id: I97710ef2436eac2160e29ba3e4521f6e63a1907c

9 years agoMerge "Add process_vm_readv and process_vm_writev."
Elliott Hughes [Thu, 11 Jun 2015 01:31:15 +0000 (01:31 +0000)]
Merge "Add process_vm_readv and process_vm_writev."

9 years agoAdd process_vm_readv and process_vm_writev.
Elliott Hughes [Thu, 11 Jun 2015 00:24:20 +0000 (17:24 -0700)]
Add process_vm_readv and process_vm_writev.

Bug: http://b/21761353
Change-Id: Ic8ef3f241d62d2a4271fbc783c8af50257bac498

9 years agoMerge "Fix application_sdk_versions_smoke test"
Dmitriy Ivanov [Thu, 11 Jun 2015 00:03:45 +0000 (00:03 +0000)]
Merge "Fix application_sdk_versions_smoke test"

9 years agoFix application_sdk_versions_smoke test
Dmitriy Ivanov [Wed, 10 Jun 2015 23:55:50 +0000 (16:55 -0700)]
Fix application_sdk_versions_smoke test

Bug: http://b/21364029
Change-Id: I9716d6b0ea7fae6483629a290dbe695b68526588
(cherry picked from commit 79b3877a137510946ddd39ab71c0badf1a769c11)

9 years agoMerge "Support DT_RUNPATH in the linker."
Evgenii Stepanov [Wed, 10 Jun 2015 23:56:02 +0000 (23:56 +0000)]
Merge "Support DT_RUNPATH in the linker."

9 years agoSupport DT_RUNPATH in the linker.
Evgenii Stepanov [Wed, 10 Jun 2015 20:38:39 +0000 (13:38 -0700)]
Support DT_RUNPATH in the linker.

Only $ORIGIN substitution is supported, but not linux-specific $LIB
or $PLATFORM.

Change-Id: I5814a016c7c91afba080230a547a863686e7c2b9

9 years agoMerge "Statically linked executables should honor AT_SECURE."
Elliott Hughes [Wed, 10 Jun 2015 22:49:56 +0000 (22:49 +0000)]
Merge "Statically linked executables should honor AT_SECURE."

9 years agoMerge "Check if strtab exists before using it"
Dmitriy Ivanov [Wed, 10 Jun 2015 22:26:06 +0000 (22:26 +0000)]
Merge "Check if strtab exists before using it"

9 years agoMerge "Allow NULL in pthread_mutex_lock/unlock."
Christopher Ferris [Wed, 10 Jun 2015 17:53:45 +0000 (17:53 +0000)]
Merge "Allow NULL in pthread_mutex_lock/unlock."

9 years agoAllow NULL in pthread_mutex_lock/unlock.
Christopher Ferris [Wed, 10 Jun 2015 01:46:15 +0000 (18:46 -0700)]
Allow NULL in pthread_mutex_lock/unlock.

The pthread_mutex_lock and pthread_mutex_unlock were allowed to
fail silently on L 32 bit devices when passed a NULL. We changed
this to a crash on 32 bit devices, but there are still games that make
these calls and are not likely to be updated. Therefore, once again
allow NULL to be passed in on 32 bit devices.

Bug: 19995172
(cherry picked from commit 511cfd9dc8cb41bca4920687c7d816ee916ee8e5)

Change-Id: I159a99a941cff94297ef3fffda7075f8ef1ae252

9 years agoStatically linked executables should honor AT_SECURE.
Elliott Hughes [Tue, 9 Jun 2015 01:04:00 +0000 (18:04 -0700)]
Statically linked executables should honor AT_SECURE.

Bug: http://b/19647373
Change-Id: I10e7682d9cec26a523f1a3597ca5326c3ca42ebe

9 years agoMerge "Add flag that makes linker honor min(p_vaddr)"
Dmitriy Ivanov [Tue, 9 Jun 2015 21:02:27 +0000 (21:02 +0000)]
Merge "Add flag that makes linker honor min(p_vaddr)"

9 years agoAdd flag that makes linker honor min(p_vaddr)
Dmitriy Ivanov [Sat, 6 Jun 2015 05:16:23 +0000 (22:16 -0700)]
Add flag that makes linker honor min(p_vaddr)

Bug: http://b/21523078
Change-Id: Ice72766fb6ad3bd333c32b496e7870121e17a763

9 years agoMerge "Fix Mac checkbuild."
Ying Wang [Mon, 8 Jun 2015 19:26:54 +0000 (19:26 +0000)]
Merge "Fix Mac checkbuild."

9 years agoFix Mac checkbuild.
Ying Wang [Sat, 6 Jun 2015 18:55:16 +0000 (11:55 -0700)]
Fix Mac checkbuild.

Bug: 21669400
Change-Id: I54691661605a2e2c1871781964aed343840b8560

(cherry-pick from commit 33c2d441b8f816722bed984c6e12b82b888c3ca2)

9 years agoCheck if strtab exists before using it
Dmitriy Ivanov [Mon, 8 Jun 2015 17:41:33 +0000 (10:41 -0700)]
Check if strtab exists before using it

Bug: http://b/21696087
Change-Id: I1e22d5fd6fe2faead332249493123c9a085081e9

9 years agoMerge "Add O_PATH support for flistxattr()"
Nick Kralevich [Mon, 8 Jun 2015 17:39:00 +0000 (17:39 +0000)]
Merge "Add O_PATH support for flistxattr()"

9 years agoMerge "Export two dlmalloc functions everywhere."
Christopher Ferris [Sat, 6 Jun 2015 20:17:26 +0000 (20:17 +0000)]
Merge "Export two dlmalloc functions everywhere."

9 years agoAdd O_PATH support for flistxattr()
Nick Kralevich [Sat, 6 Jun 2015 18:23:26 +0000 (11:23 -0700)]
Add O_PATH support for flistxattr()

A continuation of commit 2825f10b7f61558c264231a536cf3affc0d84204.

Add O_PATH compatibility support for flistxattr(). This allows
a process to list out all the extended attributes associated with
O_PATH file descriptors.

Change-Id: Ie2285ac7ad2e4eac427ddba6c2d182d41b130f75

9 years agoExport two dlmalloc functions everywhere.
Christopher Ferris [Sat, 6 Jun 2015 00:12:17 +0000 (17:12 -0700)]
Export two dlmalloc functions everywhere.

The functions dlmalloc_inspect_all and dlmalloc_trim get
exported on devices that use dlmalloc, so be consistent and
export them everywhere.

Bug: 21640784
Change-Id: I5b8796cd03c8f401d37d9c22823144f766f9c4c7

9 years agoMerge "Fix a few libc makefile mishaps."
Christopher Ferris [Sat, 6 Jun 2015 00:07:57 +0000 (00:07 +0000)]
Merge "Fix a few libc makefile mishaps."

9 years agoFix a few libc makefile mishaps.
Christopher Ferris [Fri, 5 Jun 2015 02:24:07 +0000 (19:24 -0700)]
Fix a few libc makefile mishaps.

These are the problems fixed in this CL:

- The ndk_cruft.cpp file was not compiled for 64 bit.
- Some files where not compiled for libc_bionic.a due to a missing
  patch-up-arch-specific-flags call.
- The libc_bionic_ndk.a patch up call was using bionic src, not
  the bionic_ndk_src_files.
- Move mmap.cpp to the ndk src list where it was before because of
  the above errors.

Bug: 21640784
Change-Id: I31e97bc8bf347c8e584cc17aa4b984a7d122b298

9 years agoMerge "Hide __atexit"
Dmitriy Ivanov [Thu, 4 Jun 2015 21:50:05 +0000 (21:50 +0000)]
Merge "Hide __atexit"

9 years agoHide __atexit
Dmitriy Ivanov [Thu, 4 Jun 2015 21:33:18 +0000 (14:33 -0700)]
Hide __atexit

Bug: http://b/21640806
Change-Id: I778b35c8c7538859179e97fcf5a82db2fcd9e50f

9 years agoMerge "Reorder DIR structure due to bad apps."
Christopher Ferris [Thu, 4 Jun 2015 21:05:42 +0000 (21:05 +0000)]
Merge "Reorder DIR structure due to bad apps."

9 years agoReorder DIR structure due to bad apps.
Christopher Ferris [Thu, 4 Jun 2015 20:30:45 +0000 (13:30 -0700)]
Reorder DIR structure due to bad apps.

It turns out that apportable apps expect that the DIR structure is
the same as in L and below. Modify the structure to have the same
order, and move the new variable to the end of the structure.

Bug: 21037208
(cherry picked from commit 5edb0f40f654c804d38f1bff43f91719e189c892)

Change-Id: I0c1ab5e295ec8bef638daa4cfea5830aeea602e6

9 years agoMerge "Strip version info when extracting symbols"
Dmitriy Ivanov [Thu, 4 Jun 2015 18:06:00 +0000 (18:06 +0000)]
Merge "Strip version info when extracting symbols"

9 years agoStrip version info when extracting symbols
Dmitriy Ivanov [Thu, 4 Jun 2015 17:12:37 +0000 (10:12 -0700)]
Strip version info when extracting symbols

Bug: http://b/20139821
Change-Id: I1c1ed1b97a75936407e996698b98b94a7175ac30

9 years agoMerge "Backward compatibility for dlsym(RTLD_DEFAULT, ...)"
Dmitriy Ivanov [Wed, 3 Jun 2015 01:11:11 +0000 (01:11 +0000)]
Merge "Backward compatibility for dlsym(RTLD_DEFAULT, ...)"

9 years agoBackward compatibility for dlsym(RTLD_DEFAULT, ...)
Dmitriy Ivanov [Wed, 3 Jun 2015 00:36:54 +0000 (17:36 -0700)]
Backward compatibility for dlsym(RTLD_DEFAULT, ...)

 Do not skip RTLD_LOCAL libraries in dlsym(RTLD_DEFAULT, ...)
 if the library is opened by application with target api level <= 22

Bug: http://b/21565766
Bug: http://b/17512583
Change-Id: Ic45ed1e4f53e84cba9d74cab6b0049c0c7aa8423
(cherry picked from commit 04f7e3e955ba7de5f449c995e667659319dc1cce)

9 years agoMerge "Work around for libraries without dt_soname"
Dmitriy Ivanov [Tue, 2 Jun 2015 21:06:17 +0000 (21:06 +0000)]
Merge "Work around for libraries without dt_soname"

9 years agoWork around for libraries without dt_soname
Dmitriy Ivanov [Tue, 2 Jun 2015 20:28:06 +0000 (13:28 -0700)]
Work around for libraries without dt_soname

 Applies only for apps targeting sdk version <= 22

Bug: http://b/21565766
Change-Id: If0bf2229dc1341e9ca09f9a05d0890515273d5a2
(cherry picked from commit 38c37d6705f420ecac4146c11d79bee6e0ca8a03)

9 years agoMerge "Fix dlsym(handle_of_main_executable, ...)"
Dmitriy Ivanov [Mon, 1 Jun 2015 23:48:08 +0000 (23:48 +0000)]
Merge "Fix dlsym(handle_of_main_executable, ...)"

9 years agoMerge "libc: Add O_PATH support for fgetxattr / fsetxattr"
Nick Kralevich [Mon, 1 Jun 2015 23:16:14 +0000 (23:16 +0000)]
Merge "libc: Add O_PATH support for fgetxattr / fsetxattr"

9 years agolibc: Add O_PATH support for fgetxattr / fsetxattr
Nick Kralevich [Sun, 31 May 2015 20:43:13 +0000 (13:43 -0700)]
libc: Add O_PATH support for fgetxattr / fsetxattr

Support O_PATH file descriptors when handling fgetxattr and fsetxattr.
This avoids requiring file read access to pull extended attributes.

This is needed to support O_PATH file descriptors when calling
SELinux's fgetfilecon() call. In particular, this allows the querying
and setting of SELinux file context by using something like the following
code:

  int dirfd = open("/path/to/dir", O_DIRECTORY);
  int fd = openat(dirfd, "file", O_PATH | O_NOFOLLOW);
  char *context;
  fgetfilecon(fd, &context);

This change was motivated by a comment in
https://android-review.googlesource.com/#/c/152680/1/toys/posix/ls.c

Change-Id: Ic0cdf9f9dd0e35a63b44a4c4a08400020041eddf

9 years agoFix dlsym(handle_of_main_executable, ...)
Dmitriy Ivanov [Sat, 30 May 2015 20:04:39 +0000 (13:04 -0700)]
Fix dlsym(handle_of_main_executable, ...)

  According to man dlopen(3) and posix docs in the case when si is handle
  of the main executable we need to search not only in the executable and its
  dependencies but also in all libraries loaded with RTLD_GLOBAL.

  see also: http://pubs.opengroup.org/onlinepubs/9699919799/functions/dlopen.html

Bug: http://b/21528224
Bug: http://b/17512583
Bug: https://code.google.com/p/android/issues/detail?id=173822
Change-Id: Ib2801367ba48b6f3704da89a6d9f5e6911430013

9 years agoMerge "Cleanup ftruncate negative test."
Dan Albert [Mon, 1 Jun 2015 20:24:15 +0000 (20:24 +0000)]
Merge "Cleanup ftruncate negative test."

9 years agoCleanup ftruncate negative test.
Dan Albert [Mon, 1 Jun 2015 18:28:31 +0000 (11:28 -0700)]
Cleanup ftruncate negative test.

Addresses post-submit comments from
I54692ab8105dd09db6af7a2c0894a17bdd118aa0.

Bug: http://b/21309901
Change-Id: Ie19ee8cdcc4055a65fe7dfc103156e54eafe8977

9 years agoMerge "[MIPS] Do not use compact branches until GDB supports them"
Elliott Hughes [Fri, 29 May 2015 04:39:23 +0000 (04:39 +0000)]
Merge "[MIPS] Do not use compact branches until GDB supports them"

9 years agoMerge "Improve some of error/warning messages"
Dmitriy Ivanov [Thu, 28 May 2015 22:28:13 +0000 (22:28 +0000)]
Merge "Improve some of error/warning messages"

9 years agoMerge "Work around incorrect dt_needed entries"
Dmitriy Ivanov [Thu, 28 May 2015 22:25:15 +0000 (22:25 +0000)]
Merge "Work around incorrect dt_needed entries"

9 years agoWork around incorrect dt_needed entries
Dmitriy Ivanov [Thu, 28 May 2015 01:29:41 +0000 (18:29 -0700)]
Work around incorrect dt_needed entries

  This applies for apps targeting sdk<=22 and
  only for lp32 platforms.

Bug: http://b/21364029
Change-Id: I903e81c9ccda2a8beaba1d132d68c77d30a4cdb2

9 years agoImprove some of error/warning messages
Dmitriy Ivanov [Thu, 28 May 2015 18:44:31 +0000 (11:44 -0700)]
Improve some of error/warning messages

Bug: http://b/20464031
Change-Id: I948141c46f9e054fc45f5934153dee56ce3cd558

9 years agoMerge "Add functions to provide target sdk version"
Dmitriy Ivanov [Wed, 27 May 2015 22:44:25 +0000 (22:44 +0000)]
Merge "Add functions to provide target sdk version"

9 years agoAdd functions to provide target sdk version
Dmitriy Ivanov [Fri, 22 May 2015 00:43:49 +0000 (17:43 -0700)]
Add functions to provide target sdk version

Bug: http://b/21364029
Change-Id: I8648d1bff6c8fd6e7cd12da7f128e048b9f2829a

9 years agoMerge "Fix unit tests, and extend for other architectures"
Simon Baldwin [Wed, 27 May 2015 16:42:37 +0000 (16:42 +0000)]
Merge "Fix unit tests, and extend for other architectures"

9 years agoFix unit tests, and extend for other architectures
Simon Baldwin [Fri, 22 May 2015 14:17:29 +0000 (15:17 +0100)]
Fix unit tests, and extend for other architectures

On unpacking, reinstate any p_align values that packing reduced to
page size.  Ensures a round-trip pack and unpack is bit-equivalent
to the original input.
https://android-review.googlesource.com/#/c/148492/

Extend unit tests to include ia32, x64, and mips32.

Recreate test data for arm32 and arm64.  Generate new test data for
ia32, x64, and mips32.

Bug: http://b/20687795
Bug: http://b/18051137
Change-Id: Ifbca8e206ef447297ba4f19272b813702be27a35

9 years agoMerge "Remove LOCAL_CONLY_FLAGS it is no-op."
Dmitriy Ivanov [Tue, 26 May 2015 20:56:37 +0000 (20:56 +0000)]
Merge "Remove LOCAL_CONLY_FLAGS it is no-op."

9 years agoRemove LOCAL_CONLY_FLAGS it is no-op.
Dmitriy Ivanov [Tue, 26 May 2015 18:38:59 +0000 (11:38 -0700)]
Remove LOCAL_CONLY_FLAGS it is no-op.

Change-Id: Ib52b85d176dc9d46d7550f01537b2635e873d6ad

9 years ago[MIPS] Do not use compact branches until GDB supports them
Nikola Veljkovic [Thu, 21 May 2015 16:23:55 +0000 (18:23 +0200)]
[MIPS] Do not use compact branches until GDB supports them

GDB does not yet have support for compact branches, and is not able
to set a breakpoint on rtld_db_dlactivity(), which is compiled into
one JIC instruction. Unfortunately, We cannot turn off generation of
JIC compact branch. Instead, add unoptimized FP handling code, so GDB
will have something to land on.

Change-Id: Iddcf40ec018972398179018d049b8323fcd258b7

9 years agoMerge "Fix RTLD_NEXT lookup for the local_group"
Dmitriy Ivanov [Fri, 22 May 2015 22:21:24 +0000 (22:21 +0000)]
Merge "Fix RTLD_NEXT lookup for the local_group"

9 years agoFix RTLD_NEXT lookup for the local_group
Dmitriy Ivanov [Fri, 22 May 2015 19:34:42 +0000 (12:34 -0700)]
Fix RTLD_NEXT lookup for the local_group

  Linker used to skip RTLD_NEXT within local_group when
  caller->next is nullptr (which represents load order
  but not the order within local_group dependency tree)

Bug: http://b/21380474
Change-Id: I178fc4657b19bceb871635b177c1df67855b1708

9 years agoMerge "Fix error handling for negative size in ftruncate."
Dan Albert [Thu, 21 May 2015 20:41:25 +0000 (20:41 +0000)]
Merge "Fix error handling for negative size in ftruncate."

9 years agoMerge "Fix pthread_attr_getstack__main_thread failure on glibc."
Yabin Cui [Wed, 20 May 2015 22:52:38 +0000 (22:52 +0000)]
Merge "Fix pthread_attr_getstack__main_thread failure on glibc."

9 years agoFix pthread_attr_getstack__main_thread failure on glibc.
Yabin Cui [Tue, 19 May 2015 22:09:23 +0000 (15:09 -0700)]
Fix pthread_attr_getstack__main_thread failure on glibc.

Move test of bionic specific implementation into bionic ifdef.

Bug: 19805726
Change-Id: Idf369b16e7f41f060c75b0aaf34e05cf3c161aa9

9 years agoFix error handling for negative size in ftruncate.
Dan Albert [Wed, 20 May 2015 01:17:31 +0000 (18:17 -0700)]
Fix error handling for negative size in ftruncate.

Bug: 21309901
Change-Id: I54692ab8105dd09db6af7a2c0894a17bdd118aa0

9 years agoMerge "Hide rt_sigqueueinfo."
Yabin Cui [Mon, 18 May 2015 20:29:41 +0000 (20:29 +0000)]
Merge "Hide rt_sigqueueinfo."

9 years agoHide rt_sigqueueinfo.
Yabin Cui [Mon, 18 May 2015 18:19:11 +0000 (11:19 -0700)]
Hide rt_sigqueueinfo.

Bug: 19358804
Change-Id: I38a53ad64c81d0eefdd1d24599e769fd8a477a56

9 years agoMerge "Apply work around b/19059885 to x86"
Dmitriy Ivanov [Sat, 16 May 2015 16:56:48 +0000 (16:56 +0000)]
Merge "Apply work around b/19059885 to x86"

9 years agoApply work around b/19059885 to x86
Dmitriy Ivanov [Sat, 16 May 2015 00:53:39 +0000 (17:53 -0700)]
Apply work around b/19059885 to x86

Bug: http://b/19059885
Bug: http://b/21203348
Change-Id: Ic375e9f877d68de8f866d17362879a7dde638465
(cherry picked from commit 69a5fb951d69689dedd83cb033ae3dcd0ef05b65)

9 years agoMerge "Don't use TEMP_FAILURE_RETRY on close in bionic."
Elliott Hughes [Fri, 15 May 2015 23:24:12 +0000 (23:24 +0000)]
Merge "Don't use TEMP_FAILURE_RETRY on close in bionic."

9 years agoDon't use TEMP_FAILURE_RETRY on close in bionic.
Elliott Hughes [Fri, 15 May 2015 23:20:07 +0000 (16:20 -0700)]
Don't use TEMP_FAILURE_RETRY on close in bionic.

Bug: http://b/20501816
Change-Id: Id64b5109cc2b165fa0351b6edbb865a5e5058008

9 years agoMerge "Remove -z global workaround for target x86"
Dmitriy Ivanov [Fri, 15 May 2015 17:29:59 +0000 (17:29 +0000)]
Merge "Remove -z global workaround for target x86"

9 years agoMerge "Fix regression in crash reporting"
John Reck [Fri, 15 May 2015 16:29:42 +0000 (16:29 +0000)]
Merge "Fix regression in crash reporting"

9 years agoFix regression in crash reporting
John Reck [Fri, 15 May 2015 14:47:17 +0000 (07:47 -0700)]
Fix regression in crash reporting

Bug: 19532651

Partial revert of be0e43b77676338fd5e6a82c9cc2b6302d579de2

Change-Id: I99e220328aff985facb920ebcd84ac1a016759b5
(cherry picked from commit d7ad443cfd4e1315cdf45210bc94bb68e0564b8f)