OSDN Git Service

android-x86/bionic.git
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

9 years agoam e49af9bc: Export two dlmalloc functions everywhere.
Christopher Ferris [Sat, 6 Jun 2015 21:47:45 +0000 (21:47 +0000)]
am e49af9bc: Export two dlmalloc functions everywhere.

* commit 'e49af9bca5706ecbc9c4f3cf15be990294106952':
  Export two dlmalloc functions everywhere.

9 years agoam 7a799f2b: Fix a few libc makefile mishaps.
Christopher Ferris [Sat, 6 Jun 2015 21:47:44 +0000 (21:47 +0000)]
am 7a799f2b: Fix a few libc makefile mishaps.

* commit '7a799f2b02ee453a46ee368cd8c41477e0567852':
  Fix a few libc makefile mishaps.

9 years agoam d9dc13d4: Merge "Export two dlmalloc functions everywhere."
Christopher Ferris [Sat, 6 Jun 2015 21:05:55 +0000 (21:05 +0000)]
am d9dc13d4: Merge "Export two dlmalloc functions everywhere."

* commit 'd9dc13d4172516342ceebf1b16624ed9fdf3fca2':
  Export two dlmalloc functions everywhere.

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
(cherry picked from commit f9554a17765fd91d97d1f74913a626f01e880cee)

Change-Id: I1000221423c16c356bb6301e55f726db01c3f209

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
(cherry picked from commit 19fee2ca8beb4fae5b5c142de19757410171dc93)

Change-Id: Ib9a9cfd72720586d3400b11cd7189f021e9a06c6

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 agoam 966f84b1: Merge "Fix a few libc makefile mishaps."
Christopher Ferris [Sat, 6 Jun 2015 00:35:17 +0000 (00:35 +0000)]
am 966f84b1: Merge "Fix a few libc makefile mishaps."

* commit '966f84b11dca7caf53c67664d811b99567cab7ee':
  Fix a few libc makefile mishaps.

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 agoam e997e915: am 61b040a5: resolved conflicts for merge of ea248d9c to lmp-mr1-ub-dev
Yabin Cui [Fri, 5 Jun 2015 02:43:18 +0000 (02:43 +0000)]
am e997e915: am 61b040a5: resolved conflicts for merge of ea248d9c to lmp-mr1-ub-dev

* commit 'e997e9155e72f1b0b40d832ac91fd39951acc1b9':
  Make sys_resource test more robust.

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 agoam 61b040a5: resolved conflicts for merge of ea248d9c to lmp-mr1-ub-dev
Yabin Cui [Fri, 5 Jun 2015 02:18:45 +0000 (02:18 +0000)]
am 61b040a5: resolved conflicts for merge of ea248d9c to lmp-mr1-ub-dev

* commit '61b040a57094093cfb090ebb1c321d4a69c20b64':
  Make sys_resource test more robust.

9 years agoam c534603f: Hide __atexit
Dmitriy Ivanov [Thu, 4 Jun 2015 23:07:59 +0000 (23:07 +0000)]
am c534603f: Hide __atexit

* commit 'c534603f8d2a03e0ace678adc83d6194a7afdbe9':
  Hide __atexit

9 years agoam 12ca831b: Merge "Hide __atexit"
Dmitriy Ivanov [Thu, 4 Jun 2015 22:14:01 +0000 (22:14 +0000)]
am 12ca831b: Merge "Hide __atexit"

* commit '12ca831b0e03e85a2f5588bdf834dc6046d1ac6c':
  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
(cherry picked from commit 9cf6fc304bbbfb26911e0b624b80d862c40b0308)

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 agoam b68b8b4b: Merge "Reorder DIR structure due to bad apps."
Christopher Ferris [Thu, 4 Jun 2015 21:30:25 +0000 (21:30 +0000)]
am b68b8b4b: Merge "Reorder DIR structure due to bad apps."

* commit 'b68b8b4b95d3e373a8975c0b650cde4d348ff118':
  Reorder DIR structure due to bad apps.

9 years agoam f2e86cd9: Merge "Reorder DIR structure due to bad apps." into mnc-dev
Christopher Ferris [Thu, 4 Jun 2015 21:22:41 +0000 (21:22 +0000)]
am f2e86cd9: Merge "Reorder DIR structure due to bad apps." into mnc-dev

* commit 'f2e86cd98038d6239265d936c32774b7289bfdc7':
  Reorder DIR structure due to bad apps.

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 "Reorder DIR structure due to bad apps." into mnc-dev
Christopher Ferris [Thu, 4 Jun 2015 20:57:23 +0000 (20:57 +0000)]
Merge "Reorder DIR structure due to bad apps." into mnc-dev

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
Change-Id: Id1258e9dc19423109a2c3a8086d3022965591166

9 years agoam 34de7f84: Strip version info when extracting symbols
Dmitriy Ivanov [Thu, 4 Jun 2015 19:22:21 +0000 (19:22 +0000)]
am 34de7f84: Strip version info when extracting symbols

* commit '34de7f849799ea47534d617595ab566690a16f2f':
  Strip version info when extracting symbols

9 years agoam 5cce2e72: Merge "Strip version info when extracting symbols"
Dmitriy Ivanov [Thu, 4 Jun 2015 19:00:32 +0000 (19:00 +0000)]
am 5cce2e72: Merge "Strip version info when extracting symbols"

* commit '5cce2e7205c92e6c4199dc5f4155e003f0a5b832':
  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
(cherry picked from commit 6cda0742895e46aa4ad0e4e8d5637d166f9f46f2)

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 agoam 0c29aaba: Merge "Backward compatibility for dlsym(RTLD_DEFAULT, ...)" into mnc-dev
Dmitriy Ivanov [Wed, 3 Jun 2015 02:22:59 +0000 (02:22 +0000)]
am 0c29aaba: Merge "Backward compatibility for dlsym(RTLD_DEFAULT, ...)" into mnc-dev

* commit '0c29aabad25832ec249288c8da3cf080c898ba74':
  Backward compatibility for dlsym(RTLD_DEFAULT, ...)

9 years agoam 3931b6d9: Merge "Backward compatibility for dlsym(RTLD_DEFAULT, ...)"
Dmitriy Ivanov [Wed, 3 Jun 2015 01:31:48 +0000 (01:31 +0000)]
am 3931b6d9: Merge "Backward compatibility for dlsym(RTLD_DEFAULT, ...)"

* commit '3931b6d9b37a47e0921e329ff5846b7fd21cdd7b':
  Backward compatibility for dlsym(RTLD_DEFAULT, ...)

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 agoMerge "Backward compatibility for dlsym(RTLD_DEFAULT, ...)" into mnc-dev
Dmitriy Ivanov [Wed, 3 Jun 2015 01:09:33 +0000 (01:09 +0000)]
Merge "Backward compatibility for dlsym(RTLD_DEFAULT, ...)" into mnc-dev

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

9 years agoresolved conflicts for merge of ea248d9c to lmp-mr1-ub-dev
Yabin Cui [Tue, 2 Jun 2015 23:47:42 +0000 (16:47 -0700)]
resolved conflicts for merge of ea248d9c to lmp-mr1-ub-dev

Change-Id: I362ab2e25e3368c71cb1af51cee2e8fb5ce53e61

9 years agoam f56bad97: Merge "libc: Add O_PATH support for fgetxattr / fsetxattr" into mnc-dev
Nick Kralevich [Tue, 2 Jun 2015 22:21:20 +0000 (22:21 +0000)]
am f56bad97: Merge "libc: Add O_PATH support for fgetxattr / fsetxattr" into mnc-dev

* commit 'f56bad974bced86671030b13d99f8ec2f497521e':
  libc: Add O_PATH support for fgetxattr / fsetxattr

9 years agoMerge "Make sys_resource test more robust." into lollipop-cts-dev
Yabin Cui [Tue, 2 Jun 2015 22:03:23 +0000 (22:03 +0000)]
Merge "Make sys_resource test more robust." into lollipop-cts-dev
automerge: 492a0bf

* commit '492a0bf212973baa1c33d584d57e75395774447f':
  Make sys_resource test more robust.

9 years agoMerge "libc: Add O_PATH support for fgetxattr / fsetxattr" into mnc-dev
Nick Kralevich [Tue, 2 Jun 2015 22:02:42 +0000 (22:02 +0000)]
Merge "libc: Add O_PATH support for fgetxattr / fsetxattr" into mnc-dev

9 years agoMerge "Make sys_resource test more robust." into lollipop-cts-dev
Yabin Cui [Tue, 2 Jun 2015 22:02:28 +0000 (22:02 +0000)]
Merge "Make sys_resource test more robust." into lollipop-cts-dev

9 years agoMake sys_resource test more robust.
Yabin Cui [Mon, 5 Jan 2015 19:06:30 +0000 (11:06 -0800)]
Make sys_resource test more robust.

Bug: 19482626

"ulimit -c xxx" command may run before bionic-unit-tests.
Make sure sys_resource test fails gently in that case.

Change-Id: Ic3b5ed8b20acba56df8c5ef082c88e5050e761aa
(cherry picked from commit 4853f40f3fb6664cb1b7af97b6b3e795717026b1)

9 years agoam 11b15b23: Merge "Work around for libraries without dt_soname"
Dmitriy Ivanov [Tue, 2 Jun 2015 21:30:54 +0000 (21:30 +0000)]
am 11b15b23: Merge "Work around for libraries without dt_soname"

* commit '11b15b23aa6044b1fa2ce89744643a0cc072b348':
  Work around for libraries without dt_soname

9 years agoam 38c37d67: Work around for libraries without dt_soname
Dmitriy Ivanov [Tue, 2 Jun 2015 21:30:11 +0000 (21:30 +0000)]
am 38c37d67: Work around for libraries without dt_soname

* commit '38c37d6705f420ecac4146c11d79bee6e0ca8a03':
  Work around for libraries without dt_soname

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

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

(cherrypicked from commit 2825f10b7f61558c264231a536cf3affc0d84204)

Change-Id: Ic0cdf9f9dd0e35a63b44a4c4a08400020041eddf

9 years agoam c4ebe60e: Fix dlsym(handle_of_main_executable, ...)
Dmitriy Ivanov [Tue, 2 Jun 2015 14:22:58 +0000 (14:22 +0000)]
am c4ebe60e: Fix dlsym(handle_of_main_executable, ...)

* commit 'c4ebe60e1a2fc165ff11442765325628e27f2a05':
  Fix dlsym(handle_of_main_executable, ...)

9 years agoam ef55f967: Merge "Fix dlsym(handle_of_main_executable, ...)"
Dmitriy Ivanov [Tue, 2 Jun 2015 00:11:05 +0000 (00:11 +0000)]
am ef55f967: Merge "Fix dlsym(handle_of_main_executable, ...)"

* commit 'ef55f967234f160a4e00a51ca53377fadd17715d':
  Fix dlsym(handle_of_main_executable, ...)

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
(cherry picked from commit f439b5a3186ca0fef1092f45770abc716da9d87a)

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 agoam e7deb145: Merge "libc: Add O_PATH support for fgetxattr / fsetxattr"
Nick Kralevich [Mon, 1 Jun 2015 23:42:37 +0000 (23:42 +0000)]
am e7deb145: Merge "libc: Add O_PATH support for fgetxattr / fsetxattr"

* commit 'e7deb145c66cc3434bf0f499de20b2c9d66cb2db':
  libc: Add O_PATH support for fgetxattr / fsetxattr

9 years agoam c5e02eeb: Cleanup ftruncate negative test.
Dan Albert [Mon, 1 Jun 2015 23:21:38 +0000 (23:21 +0000)]
am c5e02eeb: Cleanup ftruncate negative test.

* commit 'c5e02eeb353c3cdd357413f563701d5018fc76a5':
  Cleanup ftruncate negative test.

9 years agoam 5f3e19db: (-s ours) Fix error handling for negative size in ftruncate.
Dan Albert [Mon, 1 Jun 2015 23:21:37 +0000 (23:21 +0000)]
am 5f3e19db: (-s ours) Fix error handling for negative size in ftruncate.

* commit '5f3e19dbbeb851fff5cf7f9869d344feca479413':
  Fix error handling for negative size in ftruncate.

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 agoam ef607cda: Merge "Cleanup ftruncate negative test."
Dan Albert [Mon, 1 Jun 2015 20:45:10 +0000 (20:45 +0000)]
am ef607cda: Merge "Cleanup ftruncate negative test."

* commit 'ef607cdae24363c5e6b6fc72607a4cff78623851':
  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
(cherry picked from commit 9d476a02e9a14e847669a6683c585028175aa322)

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 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
(cherry picked from commit c05554ec5c9aff5e0f1e83de9bb62c3569eecca2)

9 years agoam d7089168: Merge "[MIPS] Do not use compact branches until GDB supports them"
Elliott Hughes [Fri, 29 May 2015 05:01:57 +0000 (05:01 +0000)]
am d7089168: Merge "[MIPS] Do not use compact branches until GDB supports them"

* commit 'd70891687d742414d457e41a998726e5eb0a09bd':
  [MIPS] Do not use compact branches until GDB supports them

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 agoam 55115510: Merge "Improve some of error/warning messages"
Dmitriy Ivanov [Fri, 29 May 2015 00:04:53 +0000 (00:04 +0000)]
am 55115510: Merge "Improve some of error/warning messages"

* commit '5511551009c5b8b7495af8278ffe914d4a8147b1':
  Improve some of error/warning messages

9 years agoam 6c2dba86: Merge "Work around incorrect dt_needed entries"
Dmitriy Ivanov [Fri, 29 May 2015 00:04:52 +0000 (00:04 +0000)]
am 6c2dba86: Merge "Work around incorrect dt_needed entries"

* commit '6c2dba8651f8cf9e406a5c7879fbaee1b0f29980':
  Work around incorrect dt_needed entries

9 years agoam ca10ac6d: Improve some of error/warning messages
Dmitriy Ivanov [Thu, 28 May 2015 23:29:27 +0000 (23:29 +0000)]
am ca10ac6d: Improve some of error/warning messages

* commit 'ca10ac6dd45f73752e8822fee606d83116a5721a':
  Improve some of error/warning messages

9 years agoam 4a7c3af0: Work around incorrect dt_needed entries
Dmitriy Ivanov [Thu, 28 May 2015 23:29:26 +0000 (23:29 +0000)]
am 4a7c3af0: Work around incorrect dt_needed entries

* commit '4a7c3af054fdb525c8e458434f57f20696f43e31':
  Work around incorrect dt_needed entries

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
(cherry picked from commit 087005f37e02b48809746947159d824493885b1e)

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 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
(cherry picked from commit d974e8804689058714dc4fe9adcb57ee9a6996a8)

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 agoam d8ead181: Add functions to provide target sdk version
Dmitriy Ivanov [Wed, 27 May 2015 23:50:05 +0000 (23:50 +0000)]
am d8ead181: Add functions to provide target sdk version

* commit 'd8ead18145cba98fdc7256f9a0e69b8c1c90cd1c':
  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
(cherry picked from commit 79fd668bb4ddb22432eeda2ebd8d10359013d9a8)

9 years agoam d717b1a3: Merge "Add functions to provide target sdk version"
Dmitriy Ivanov [Wed, 27 May 2015 23:14:48 +0000 (23:14 +0000)]
am d717b1a3: Merge "Add functions to provide target sdk version"

* commit 'd717b1a3e55db9b7625a46bec950e856cc107951':
  Add functions to provide target sdk version

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 agoam 560aacee: Merge "Fix unit tests, and extend for other architectures"
Simon Baldwin [Wed, 27 May 2015 17:09:45 +0000 (17:09 +0000)]
am 560aacee: Merge "Fix unit tests, and extend for other architectures"

* commit '560aacee84ecfd1aa8983d0ab58b81fbbe34911d':
  Fix unit tests, and extend for other architectures

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 agoam fad15145: Merge "Remove LOCAL_CONLY_FLAGS it is no-op."
Dmitriy Ivanov [Tue, 26 May 2015 21:21:30 +0000 (21:21 +0000)]
am fad15145: Merge "Remove LOCAL_CONLY_FLAGS it is no-op."

* commit 'fad15145f8ee28be45cf2c870d3b87f22a2f07c3':
  Remove LOCAL_CONLY_FLAGS it is no-op.

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 agoam 15309fde: Fix RTLD_NEXT lookup for the local_group
Dmitriy Ivanov [Fri, 22 May 2015 22:45:39 +0000 (22:45 +0000)]
am 15309fde: Fix RTLD_NEXT lookup for the local_group

* commit '15309fde91b3989a1af139db422acf68e16a9258':
  Fix RTLD_NEXT lookup for the local_group

9 years agoam aaafbe12: Merge "Fix RTLD_NEXT lookup for the local_group"
Dmitriy Ivanov [Fri, 22 May 2015 22:36:32 +0000 (22:36 +0000)]
am aaafbe12: Merge "Fix RTLD_NEXT lookup for the local_group"

* commit 'aaafbe128f51dff92da3cf4f5fc9b47f04f05261':
  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
(cherry picked from commit b96ac41b32e61799c48f3fd07831cc168b95068d)

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 agoam ffe01a3d: Merge "Fix error handling for negative size in ftruncate."
Dan Albert [Thu, 21 May 2015 21:03:17 +0000 (21:03 +0000)]
am ffe01a3d: Merge "Fix error handling for negative size in ftruncate."

* commit 'ffe01a3de62d17cbe1cdf3b40a91d1ac9a9d36b5':
  Fix error handling for negative size in ftruncate.

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 agoam 4fc106d3: Merge "Fix pthread_attr_getstack__main_thread failure on glibc."
Yabin Cui [Wed, 20 May 2015 23:16:02 +0000 (23:16 +0000)]
am 4fc106d3: Merge "Fix pthread_attr_getstack__main_thread failure on glibc."

* commit '4fc106d34b70da868d194e8a0f0a3cddd1f4c22d':
  Fix pthread_attr_getstack__main_thread failure on glibc.

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 agoam c15a9352: am fd20a8c2: resolved conflicts for merge of 473d96c0 to lmp-mr1-ub-dev
Yabin Cui [Wed, 20 May 2015 22:12:31 +0000 (22:12 +0000)]
am c15a9352: am fd20a8c2: resolved conflicts for merge of 473d96c0 to lmp-mr1-ub-dev

* commit 'c15a935202319a41ee0be94afcdbde1d07568ec8':
  Fix timer flaky test in lollipop-mr1-cts-dev.

9 years agoam fd20a8c2: resolved conflicts for merge of 473d96c0 to lmp-mr1-ub-dev
Yabin Cui [Wed, 20 May 2015 21:48:09 +0000 (21:48 +0000)]
am fd20a8c2: resolved conflicts for merge of 473d96c0 to lmp-mr1-ub-dev

* commit 'fd20a8c2d669b3f2d63e2d33a32b90d1b7f17b82':
  Fix timer flaky test in lollipop-mr1-cts-dev.

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 agoresolved conflicts for merge of 473d96c0 to lmp-mr1-ub-dev
Yabin Cui [Wed, 20 May 2015 20:36:56 +0000 (13:36 -0700)]
resolved conflicts for merge of 473d96c0 to lmp-mr1-ub-dev

Change-Id: I48269218b152054d527d9257d40490b54205140f