David Srbecky
c08c88b5fc
Merge "Add flag that makes linker honor min(p_vaddr)" into mnc-dev
2015-06-19 18:26:21 +00:00
Dmitriy Ivanov
34e8e47d32
Add flag that makes linker honor min(p_vaddr)
...
(cherry picked from commit 8a11628355
)
Bug: 21924613
Bug: http://b/21523078
Change-Id: I3f944a08dd2ed1df4d8a807da4fee423fdd35eb7
2015-06-18 23:58:34 +01:00
Christopher Ferris
7d6410e957
Merge "[MIPS] Add optimized string functions" into mnc-dev
2015-06-18 00:18:40 +00:00
Nikola Veljkovic
1d824c3912
[MIPS] Add optimized string functions
...
Use same string functions for all MIPS architectures.
Bug: 21555893
(cherry picked from commit 38f2eaa07b
)
Change-Id: I94521f023d0bb136a4672782148a9f6e77cc6f1e
2015-06-17 17:02:11 -07:00
Dmitriy Ivanov
28154f5c56
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
2015-06-17 16:36:03 -07:00
Dmitriy Ivanov
4d0d31475f
Add versions to libm.so symbols
...
Bug: http://b/20139821
Change-Id: Ifdfcac62d59eb8f0985990aa8512046ecb87449e
(cherry picked from commit 636f5ddddc
)
2015-06-17 13:50:37 -07:00
Dimitry Ivanov
6b37515c38
Merge "Revert "Improve library lookup logic"" into mnc-dev
2015-06-17 20:43:23 +00:00
Dimitry Ivanov
1eba2f4ce1
Revert "Improve library lookup logic"
...
This reverts commit ea4ef52fa4
.
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: I23ddbd69294023c56c9cbabad29d26c8f736ab43
2015-06-17 20:42:20 +00:00
Dmitriy Ivanov
462df82902
Merge "Improve library lookup logic" into mnc-dev
2015-06-17 17:15:06 +00:00
Elliott Hughes
d49850d6ab
Fixes for building gdbserver (and gdb) out of the box.
...
Bug: http://b/21695943
Change-Id: Iadb600b2ae619515d7038a4db9bf464ba31adb36
(cherry picked from commit 895241efbb
)
2015-06-16 16:59:49 -07:00
Dmitriy Ivanov
ea4ef52fa4
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
2015-06-16 16:52:21 -07:00
Tim Murray
848276051a
Merge "Add support for cortex-a53 in bionic." into mnc-dev
2015-06-16 20:47:17 +00:00
Tim Murray
c34df8b280
Add support for cortex-a53 in bionic.
...
allows -mcpu=cortex-a53 to be passed as part of a command line.
Change-Id: Id4203a9fd197f4c3b661bad21ac58c32819fd687
2015-06-16 13:43:19 -07:00
Dmitriy Ivanov
420574690c
Add version to libc.so symbols
...
Bug: http://b/21617095
Bug: http://b/20139821
Change-Id: If3d42d2a0b4a0c49721fd9b9ecbb4f7bee5a1eff
(cherry picked from commit 665607a6b7
)
2015-06-16 11:08:01 -07:00
Elliott Hughes
929be68849
Hide accidentally-exposed __clock_nanosleep.
...
Bug: http://b/21858067
Change-Id: Iaa83a5e17cfff796aed4f641d0d14427614d9399
(cherry picked from commit b1304935b6
)
2015-06-16 10:44:24 -07:00
Elliott Hughes
f1c85411a8
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
(cherry picked from commit 0577733c2e
)
2015-06-15 19:02:40 -07:00
Dan Albert
cce405a134
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
(cherry picked from commit bf18c61798
)
2015-06-15 18:39:02 -07:00
Elliott Hughes
7051c0f2a5
Fix two accidentally leaked mips64 symbols.
...
Bug: http://b/21857154
Change-Id: Ie1fb63f54c6c527b8c1172e8f6ce48f23fca9b41
(cherry picked from commit 469b418784
)
2015-06-15 18:36:48 -07:00
Sharvil Nanavati
fdcaeac1a9
am 00cef820
: am 64e9e71c
: Define nonportable pthread mutex macros with the _NP suffix.
...
* commit '00cef82013c0826bb43c11651d25de8b99335618':
Define nonportable pthread mutex macros with the _NP suffix.
2015-06-15 15:48:00 +00:00
Sharvil Nanavati
00cef82013
am 64e9e71c
: Define nonportable pthread mutex macros with the _NP suffix.
...
* commit '64e9e71cdb7d88397e510e1986d494b797ed3b45':
Define nonportable pthread mutex macros with the _NP suffix.
2015-06-12 20:13:46 +00:00
Sharvil Nanavati
64e9e71cdb
Define nonportable pthread mutex macros with the _NP suffix.
...
Change-Id: I1066352e5b2607f64daf6aeb0030d0bbe88ead8d
2015-06-12 10:56:17 -07:00
Dmitriy Ivanov
ae1e75458a
Merge "Make path to apk compliant with jar url format" into mnc-dev
2015-06-11 21:55:09 +00:00
Dmitriy Ivanov
38263dd91a
Fix l_addr for the linker
...
Bug: http://b/21765603
Change-Id: I97710ef2436eac2160e29ba3e4521f6e63a1907c
(cherry picked from commit 175dae92d7
)
2015-06-10 20:05:48 -07:00
Elliott Hughes
25ac753f47
Add process_vm_readv and process_vm_writev.
...
Bug: http://b/21761353
Change-Id: Ic8ef3f241d62d2a4271fbc783c8af50257bac498
(cherry picked from commit be57a40d29
)
2015-06-10 18:55:06 -07:00
Elliott Hughes
eeb1d33a31
Merge "Statically linked executables should honor AT_SECURE." into mnc-dev
2015-06-11 00:55:40 +00:00
Dmitriy Ivanov
79b3877a13
Fix application_sdk_versions_smoke test
...
Bug: http://b/21364029
Change-Id: I9716d6b0ea7fae6483629a290dbe695b68526588
2015-06-10 16:55:50 -07:00
Elliott Hughes
66c3b2db2f
Statically linked executables should honor AT_SECURE.
...
Bug: http://b/19647373
Change-Id: I10e7682d9cec26a523f1a3597ca5326c3ca42ebe
(cherry picked from commit 1801db3d3f
)
2015-06-10 16:10:18 -07:00
Dmitriy Ivanov
07f4f5f9ed
Check if strtab exists before using it
...
Bug: http://b/21696087
Change-Id: I1e22d5fd6fe2faead332249493123c9a085081e9
(cherry picked from commit 624b8f17a1
)
2015-06-10 15:25:48 -07:00
Christopher Ferris
511cfd9dc8
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
Change-Id: If7e8860075ecd63c0064d80f64e226fad7bd3c26
2015-06-09 18:46:15 -07:00
Dmitriy Ivanov
524f1f1efe
Make path to apk compliant with jar url format
...
Bug: http://b/21726698
Bug: http://b/8076853
Change-Id: I8c1942a98fe3119746b4dc9f60a7ff215ea7009c
2015-06-09 13:47:46 -07:00
Ying Wang
26e663d479
Fix Mac checkbuild.
...
Bug: 21669400
Change-Id: I54691661605a2e2c1871781964aed343840b8560
(cherry-pick from commit 33c2d441b8f816722bed984c6e12b82b888c3ca2)
2015-06-08 12:20:16 -07:00
Christopher Ferris
e49af9bca5
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 f9554a1776
)
Change-Id: I1000221423c16c356bb6301e55f726db01c3f209
2015-06-06 13:25:56 -07:00
Christopher Ferris
7a799f2b02
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 19fee2ca8b
)
Change-Id: Ib9a9cfd72720586d3400b11cd7189f021e9a06c6
2015-06-06 13:25:32 -07:00
Yabin Cui
e997e9155e
am 61b040a5
: resolved conflicts for merge of ea248d9c
to lmp-mr1-ub-dev
...
* commit '61b040a57094093cfb090ebb1c321d4a69c20b64':
Make sys_resource test more robust.
2015-06-05 02:18:45 +00:00
Dmitriy Ivanov
c534603f8d
Hide __atexit
...
Bug: http://b/21640806
Change-Id: I778b35c8c7538859179e97fcf5a82db2fcd9e50f
(cherry picked from commit 9cf6fc304b
)
2015-06-04 14:51:26 -07:00
Christopher Ferris
f2e86cd980
Merge "Reorder DIR structure due to bad apps." into mnc-dev
2015-06-04 20:57:57 +00:00
Christopher Ferris
5edb0f40f6
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
2015-06-04 13:30:45 -07:00
Dmitriy Ivanov
34de7f8497
Strip version info when extracting symbols
...
Bug: http://b/20139821
Change-Id: I1c1ed1b97a75936407e996698b98b94a7175ac30
(cherry picked from commit 6cda074289
)
2015-06-04 11:15:13 -07:00
Dmitriy Ivanov
0c29aabad2
Merge "Backward compatibility for dlsym(RTLD_DEFAULT, ...)" into mnc-dev
2015-06-03 01:09:34 +00:00
Dmitriy Ivanov
04f7e3e955
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
2015-06-02 18:06:24 -07:00
Yabin Cui
61b040a570
resolved conflicts for merge of ea248d9c
to lmp-mr1-ub-dev
...
Change-Id: I362ab2e25e3368c71cb1af51cee2e8fb5ce53e61
2015-06-02 16:47:42 -07:00
Yabin Cui
ea248d9ca8
Merge "Make sys_resource test more robust." into lollipop-cts-dev
...
automerge: 492a0bf
* commit '492a0bf212973baa1c33d584d57e75395774447f':
Make sys_resource test more robust.
2015-06-02 22:03:23 +00:00
Nick Kralevich
f56bad974b
Merge "libc: Add O_PATH support for fgetxattr / fsetxattr" into mnc-dev
2015-06-02 22:02:43 +00:00
Yabin Cui
492a0bf212
Merge "Make sys_resource test more robust." into lollipop-cts-dev
2015-06-02 22:02:29 +00:00
Yabin Cui
e7ece90b50
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 4853f40f3f
)
2015-06-02 14:40:26 -07:00
Dmitriy Ivanov
38c37d6705
Work around for libraries without dt_soname
...
Applies only for apps targeting sdk version <= 22
Bug: http://b/21565766
Change-Id: If0bf2229dc1341e9ca09f9a05d0890515273d5a2
2015-06-02 13:45:15 -07:00
Nick Kralevich
c92f9f8069
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 2825f10b7f
)
Change-Id: Ic0cdf9f9dd0e35a63b44a4c4a08400020041eddf
2015-06-02 10:08:05 -07:00
Dmitriy Ivanov
c4ebe60e1a
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 f439b5a318
)
2015-06-01 16:57:33 -07:00
Dan Albert
c5e02eeb35
Cleanup ftruncate negative test.
...
Addresses post-submit comments from
I54692ab8105dd09db6af7a2c0894a17bdd118aa0.
Bug: http://b/21309901
Change-Id: Ie19ee8cdcc4055a65fe7dfc103156e54eafe8977
(cherry picked from commit 9d476a02e9
)
2015-06-01 13:24:36 -07:00
Dan Albert
5f3e19dbbe
Fix error handling for negative size in ftruncate.
...
Bug: 21309901
Change-Id: I54692ab8105dd09db6af7a2c0894a17bdd118aa0
(cherry picked from commit c05554ec5c
)
2015-06-01 11:28:13 -07:00