summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Export two dlmalloc functions everywhere.Christopher Ferris2015-06-062-6/+31
| | | | | | | | | | | 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
* Fix a few libc makefile mishaps.Christopher Ferris2015-06-061-4/+7
| | | | | | | | | | | | | | | | | 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
* am 61b040a5: resolved conflicts for merge of ea248d9c to lmp-mr1-ub-devYabin Cui2015-06-050-0/+0
|\ | | | | | | | | * commit '61b040a57094093cfb090ebb1c321d4a69c20b64': Make sys_resource test more robust.
| * resolved conflicts for merge of ea248d9c to lmp-mr1-ub-devYabin Cui2015-06-020-0/+0
| |\ | | | | | | | | | Change-Id: I362ab2e25e3368c71cb1af51cee2e8fb5ce53e61
| | * Merge "Make sys_resource test more robust." into lollipop-cts-devYabin Cui2015-06-021-44/+68
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | automerge: 492a0bf * commit '492a0bf212973baa1c33d584d57e75395774447f': Make sys_resource test more robust.
| | | * Merge "Make sys_resource test more robust." into lollipop-cts-devYabin Cui2015-06-021-44/+68
| | | |\
| | | | * Make sys_resource test more robust.Yabin Cui2015-06-021-44/+68
| | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
* | | | Hide __atexitDmitriy Ivanov2015-06-043-15/+12
| | | | | | | | | | | | | | | | | | | | | | | | Bug: http://b/21640806 Change-Id: I778b35c8c7538859179e97fcf5a82db2fcd9e50f (cherry picked from commit 9cf6fc304bbbfb26911e0b624b80d862c40b0308)
* | | | Merge "Reorder DIR structure due to bad apps." into mnc-devChristopher Ferris2015-06-041-1/+7
|\ \ \ \
| * | | | Reorder DIR structure due to bad apps.Christopher Ferris2015-06-041-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | Strip version info when extracting symbolsDmitriy Ivanov2015-06-041-2/+3
|/ / / / | | | | | | | | | | | | | | | | | | | | Bug: http://b/20139821 Change-Id: I1c1ed1b97a75936407e996698b98b94a7175ac30 (cherry picked from commit 6cda0742895e46aa4ad0e4e8d5637d166f9f46f2)
* | | | Merge "Backward compatibility for dlsym(RTLD_DEFAULT, ...)" into mnc-devDmitriy Ivanov2015-06-034-9/+34
|\ \ \ \
| * | | | Backward compatibility for dlsym(RTLD_DEFAULT, ...)Dmitriy Ivanov2015-06-024-9/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | Merge "libc: Add O_PATH support for fgetxattr / fsetxattr" into mnc-devNick Kralevich2015-06-0218-26/+259
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | libc: Add O_PATH support for fgetxattr / fsetxattrNick Kralevich2015-06-0218-26/+259
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | Work around for libraries without dt_sonameDmitriy Ivanov2015-06-021-0/+13
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | Applies only for apps targeting sdk version <= 22 Bug: http://b/21565766 Change-Id: If0bf2229dc1341e9ca09f9a05d0890515273d5a2
* | | | Fix dlsym(handle_of_main_executable, ...)Dmitriy Ivanov2015-06-013-2/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
* | | | Cleanup ftruncate negative test.Dan Albert2015-06-012-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Addresses post-submit comments from I54692ab8105dd09db6af7a2c0894a17bdd118aa0. Bug: http://b/21309901 Change-Id: Ie19ee8cdcc4055a65fe7dfc103156e54eafe8977 (cherry picked from commit 9d476a02e9a14e847669a6683c585028175aa322)
* | | | Fix error handling for negative size in ftruncate.Dan Albert2015-06-017-60/+38
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 21309901 Change-Id: I54692ab8105dd09db6af7a2c0894a17bdd118aa0 (cherry picked from commit c05554ec5c9aff5e0f1e83de9bb62c3569eecca2)
* | | | Improve some of error/warning messagesDmitriy Ivanov2015-05-281-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | Bug: http://b/20464031 Change-Id: I948141c46f9e054fc45f5934153dee56ce3cd558 (cherry picked from commit 087005f37e02b48809746947159d824493885b1e)
* | | | Work around incorrect dt_needed entriesDmitriy Ivanov2015-05-282-1/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This applies for apps targeting sdk<=22 and only for lp32 platforms. Bug: http://b/21364029 Change-Id: I903e81c9ccda2a8beaba1d132d68c77d30a4cdb2 (cherry picked from commit d974e8804689058714dc4fe9adcb57ee9a6996a8)
* | | | Add functions to provide target sdk versionDmitriy Ivanov2015-05-279-15/+138
| | | | | | | | | | | | | | | | | | | | | | | | Bug: http://b/21364029 Change-Id: I8648d1bff6c8fd6e7cd12da7f128e048b9f2829a (cherry picked from commit 79fd668bb4ddb22432eeda2ebd8d10359013d9a8)
* | | | Fix RTLD_NEXT lookup for the local_groupDmitriy Ivanov2015-05-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
* | | | am fd20a8c2: resolved conflicts for merge of 473d96c0 to lmp-mr1-ub-devYabin Cui2015-05-201-3/+3
|\ \ \ \ | |/ / / | | | | | | | | | | | | * commit 'fd20a8c2d669b3f2d63e2d33a32b90d1b7f17b82': Fix timer flaky test in lollipop-mr1-cts-dev.
| * | | resolved conflicts for merge of 473d96c0 to lmp-mr1-ub-devYabin Cui2015-05-201-3/+3
| |\ \ \ | | |/ / | | | | | | | | Change-Id: I48269218b152054d527d9257d40490b54205140f
| | * | Merge "Fix timer flaky test in lollipop-mr1-cts-dev." into lollipop-mr1-cts-devYabin Cui2015-05-091-73/+76
| | |\ \
| | | * | Fix timer flaky test in lollipop-mr1-cts-dev.Yabin Cui2015-05-081-73/+76
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is partically cherry-pick from https://android-review.googlesource.com/#/c/123410/. And as lollipop-mr1-cts-dev still uses stlport, <stdatomic.h> is used instead of <atomic>. Bug: 20677618 Change-Id: I952a6fd074facc4227c955fecf3ecbfbbaec4193
* | | | Hide rt_sigqueueinfo.Yabin Cui2015-05-188-18/+21
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 19358804 Change-Id: I38a53ad64c81d0eefdd1d24599e769fd8a477a56 (cherry picked from commit 40a8f214a5264efe5feaaffd55cea67fb87d097b)
* | | | Remove pthread_detach_no_leak test.Yabin Cui2015-05-181-36/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This test has lost its purpose as we are using mmap/munmap for pthread_internal_t. And it is a flaky test. Bug: 21205574 Bug: 20860440 Change-Id: I7cbb6bc3fd8a2ca430415beab5ee27a856ce4ea7 (cherry picked from commit 2957cc5f1043adf0b9c0f1cdfff2d408952e40f5)
* | | | Merge "Apply work around b/19059885 to x86" into mnc-devDmitriy Ivanov2015-05-165-9/+15
|\ \ \ \
| * | | | Apply work around b/19059885 to x86Dmitriy Ivanov2015-05-155-9/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: http://b/19059885 Bug: http://b/21203348 Change-Id: Ic375e9f877d68de8f866d17362879a7dde638465
* | | | | Use unified syntax to compile with both llvm and gcc.Chih-Hung Hsieh2015-05-159-91/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All arch-arm and arch-arm64 .S files were compiled by gcc with and without this patch. The output object files were identical. When compiled with llvm and this patch, the output files were also identical to gcc's output. BUG: 18061004 Change-Id: I458914d512ddf5496e4eb3d288bf032cd526d32b (cherry picked from commit 33f33515b503b634d9fbc57dda7123ea9cf23fc6)
* | | | | Fix opcode to compile with both gcc and llvm.Chih-Hung Hsieh2015-05-152-11/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | BUG: 17302991 Change-Id: I31febd9ad24312388068803ce247b295bd73b607 (cherry picked from commit 0a93df369cf3f44d40ca1f0cb4a58aeab42fb39c)
* | | | | Don't use TEMP_FAILURE_RETRY on close in bionic.Elliott Hughes2015-05-152-3/+2
|/ / / / | | | | | | | | | | | | | | | | | | | | Bug: http://b/20501816 Change-Id: Id64b5109cc2b165fa0351b6edbb865a5e5058008 (cherry picked from commit 4e8ef698d0d76be3f8d75de32701e6e6327c1fbd)
* | | | Remove -z global workaround for target x86Dmitriy Ivanov2015-05-151-4/+1
| | | | | | | | | | | | | | | | | | | | Change-Id: I08e75a1c7437c97e4af59316d2c14c7fa3f65e03 (cherry picked from commit 933332462d37dfa121fa691095cdce218a0139bf)
* | | | Fix regression in crash reportingJohn Reck2015-05-151-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 19532651 Partial revert of be0e43b77676338fd5e6a82c9cc2b6302d579de2 Change-Id: I99e220328aff985facb920ebcd84ac1a016759b5
* | | | ScopedFd: Don't use TEMP_FAILURE_RETRY() with close()Spencer Low2015-05-132-81/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | According to the comments in Posix_close(), TEMP_FAILURE_RETRY() should not be used with close(): https://android.googlesource.com/platform/libcore/+/462bdac45c10f43d88d8f07f6994e272a27c14a2%5E%21/#F12 Kill ScopedFd by simplifying the single caller. Bug: http://b/20501816 Change-Id: I248c40b8c2fc95f1938a6edfc245c81847fc44af Signed-off-by: Spencer Low <CompareAndSwap@gmail.com> (cherry picked from commit 0346ad7a4fb6e253317577ee8b9cc79d958f4349)
* | | | Improved dlsym tests and fixes to linkerDmitriy Ivanov2015-05-126-47/+169
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Answers the question: what if dependent library was preloaded with RTLD_LOCAL flag. Also add test for RTLD_NEXT within local_group. Bug: http://b/17512583 Change-Id: I79e081e68b3a8c0ed8980d4275a06515fea94ec9 (cherry picked from commit 697bd9fd38ab078a117ad9a5777cf286c467b9b9)
* | | | Update NOTICE files (the second time today).Elliott Hughes2015-05-122-84/+0
| | | | | | | | | | | | | | | | | | | | Change-Id: Ifb031d29ee697ee0682bd651e0081493e8016e67 (cherry picked from commit f58ac87182da214c7cdd697a4fa09aeb7b995305)
* | | | Simplify three copyright headers.Elliott Hughes2015-05-123-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There's no reason to have multiple years in our own copyright headers, and given the stupidity of our NOTICE file generation, it just creates more junk. Change-Id: I065a3811c2e2584e3b649a18ad9460286bc72b92 (cherry picked from commit c69ace87ec110a91005bdf19dbafeb355f399c06)
* | | | Merge "Update NOTICE files." into mnc-devElliott Hughes2015-05-123-90/+234
|\ \ \ \
| * | | | Update NOTICE files.Elliott Hughes2015-05-123-90/+234
| | | | | | | | | | | | | | | | | | | | Change-Id: I4e170118abf452dd87ffe79d343ba1e2b53955de
* | | | | Switch libc/libcstdc++/libm to hash-style=bothDmitriy Ivanov2015-05-082-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: http://b/19059885 Change-Id: Ie42703d91f291fd689a1cf9c35bcab5c487b9a84 (cherry picked from commit 88e777d6f46709abebab88421e8c4ea7a9e3d9c4)
* | | | | Merge changes from topic 'blobs' into mnc-devDan Albert2015-05-084-24/+1
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Revert "Fix volantis boot." Revert "Fix clang build." Revert "Try again to fix clang build."
| * | | | | Revert "Fix volantis boot."Dan Albert2015-05-084-20/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: http://b/20065774 This reverts commit 76e1cbca75e9fdaf7a7943f2c58e65433b283f4a. (cherry picked from commit 7c2c01d681d7f2faa256a263996a35ac3edc94b3)
| * | | | | Revert "Fix clang build."Dan Albert2015-05-081-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: http://b/20065774 This reverts commit 0975a5d9d29019e764dc0ab2ddc75759bebffb9b. (cherry picked from commit 6f0d7005f9bc6d293e5cfcd60c13a6af0ffa99fc)
| * | | | | Revert "Try again to fix clang build."Dan Albert2015-05-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: http://b/20065774 This reverts commit dffd3c58389103d6ee712fac6544217c00c1f315. Change-Id: I5dd095ff4ab133baa2afcbd4c79fbee55d05c459 (cherry picked from commit f920f821e27c845d2de54c1c92c3ab74587ed31a)
* | | | | | Merge "remove rootdir build.prop" into mnc-devAndres Morales2015-05-081-1/+0
|\ \ \ \ \ \
| * | | | | | remove rootdir build.propAndres Morales2015-05-071-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | merge with default.prop Change-Id: I6cff4527dec2b31bdde42ec26c42ef2782f8deb4
* | | | | | | Add definitions of Elf32_Sxword and ELFXX_R_INFODmitriy Ivanov2015-05-071-0/+5
| |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: http://b/17056684 Change-Id: If35302245ac3ab40d1c80fb2b04620778c114f87 (cherry picked from commit ce16a53d393512336f30c21a244afd70b7d57cf6)