b3ee859bbd6ce5ff9ed252bb00ff0b6c452d0373 |
22-Mar-2016 |
Yabin Cui <yabinc@google.com> |
CloseArchive() to free memory when OpenArchive fails. Bug: 26962895 Change-Id: I42418eee320ddae857b42572690316c53f638e85 (cherry picked from commit 722072d65abb1b9fa709f5c7ae8afd98ef5ab7af)
ionic_tests_zipalign.cpp
|
c0ffceccf93e1752a555086a04d1484c1df1b165 |
20-Jan-2016 |
Christopher Ferris <cferris@google.com> |
Remove dependency on zipalign. Roll our own version of zipalign so that we can break the dependency on the build tools zipalign. This breaks the transitive dependency on androidfw so that building bionic unit tests in brillo works again. Also modify the DlExtTest.ExtInfoUseFdWithOffset test so it dynamically gets the offset of the shared library inside of the zip instead of hard-coding the value. Bug: 25446938 Change-Id: Idfb5d3089960a94eefa2c76e03da1ad2f4d7fb2f
ndroid.build.dlext_testzip.mk
ndroid.mk
ionic_tests_zipalign.cpp
|
1ffec1cc4d0e283bb1ff6f49843769a3493b8d73 |
23-Nov-2015 |
Dmitriy Ivanov <dimitry@google.com> |
Introduce anonymous namespace The anonymous namespace is introduced to handle cases when linker can not find the caller. This usually happens when caller code was not loaded by dynamic linker; for example mono-generated code. Bug: http://b/25844435 Bug: http://b/22548808 Change-Id: I9e5b1d23c1c75bc78548d68e79216a6a943a33cf
amespaces_root.cpp
|
42d5fcb9f494eb45de3b6bf759f4a18076e84728 |
30-Oct-2015 |
Dmitriy Ivanov <dimitry@google.com> |
Introducing linker namespaces Bug: http://b/22548808 Change-Id: Ia3af3c0a167f1d16447a3d83bb045d143319b1e1
ndroid.build.linker_namespaces.mk
ndroid.build.target.testlib.mk
ndroid.mk
amespaces_dlopened.cpp
amespaces_private.cpp
amespaces_public.cpp
amespaces_root.cpp
|
a1feb117e4d5614548574f28dede3443e073512b |
02-Oct-2015 |
Dmitriy Ivanov <dimitry@google.com> |
Make dt_runpath work for libraries opened from apk This patch also fixes realpath for libraries opened directly from apks. Bug: http://b/21960914 Bug: http://b/21961857 Change-Id: I35ade661c87f1d448191f385811f6e9fd3cacf11
ndroid.build.dlext_testzip.mk
ndroid.build.dt_runpath.mk
lopen_b.cpp
|
b48275045de93cce292faaf5170af3ead89b3746 |
29-Sep-2015 |
Dmitriy Ivanov <dimitry@google.com> |
Optimize dlopen from a zip file This change makes dynamic linker reuse ZipArchiveHandles in ld_library_path on dlopen to optimize the lookup of dt_needed libraries. Bug: http://b/21960534 Change-Id: I65f897910d46dd2ffabdcb0b7842db2f127eee30
ndroid.build.dlext_testzip.mk
ndroid.mk
|
298d176813af58731063b4c403143cedf3803eb4 |
29-Sep-2015 |
Colin Cross <ccross@android.com> |
Pass -q is zip for test Pass -q to zip for dlext_testzip to avoid printing: adding: empty_file.txt (stored 0%) on every compile. Bug: 24409581 Change-Id: I2320f31182a9a332b3ef8b32a22561092ab5aceb
ndroid.build.dlext_testzip.mk
|
edfc9f63a261994f2565492436607c04df980e21 |
03-Sep-2015 |
Dmitriy Ivanov <dimitry@google.com> |
linker: don't pass dlextinfo to dependent loads Don't pass the parent load's dlextinfo to dependent loads, since this causes the linker to try to load the dependencies using the same addresses/relro/fds/etc as the main library, which is never going to work. This was how it worked before ae69a95 which broke this. Bug: http://b/23742664 Bug: http://b/20948231 Bug: http://b/20841817 Change-Id: I340ebae1127666d5c6c6f9c6521b89fb93f15bdd
ndroid.mk
|
5341691955e2fc2b271b722c37496d72a0e8c683 |
11-Aug-2015 |
Dan Albert <danalbert@google.com> |
Move up to C++14. The default standard version is now ahead of us. Stop specifying C++11 so we get that too. Change-Id: Ic96942cd7fd134118e29b744601b0119e49b6ac4
ndroid.mk
|
3fef96f827bb4aebed08e48a1a760e0280029efd |
20-Jul-2015 |
Dmitriy Ivanov <dimitry@google.com> |
Fix dt_runpath test. Bfd linker produces DT_RPATH instead of DT_RUNPATH unless --enable-new-dtags option is specified. Bug: http://b/22560945 Change-Id: I71bdc5137b899ab736e55c5a9574cfbba8e1983b
ndroid.build.dt_runpath.mk
|
7d09a8cd114751f88bf0d03f0f2e8f87a4a5ed9a |
23-Jun-2015 |
Dmitriy Ivanov <dimitry@google.com> |
Work around compiler optimization This makes bionic-unit-test-glibc64 behave consistently when testing dlopen from a library with dt_runpath. Bug: http://b/21899363 Change-Id: I9d446eb6852876975874d6b7761f6f81cc4e9916
lopen_b.cpp
|
6865082ca6d887766c6651ed2d079dca56a99d32 |
10-Jun-2015 |
Evgenii Stepanov <eugenis@google.com> |
Support DT_RUNPATH in the linker. Only $ORIGIN substitution is supported, but not linux-specific $LIB or $PLATFORM. Change-Id: I5814a016c7c91afba080230a547a863686e7c2b9
ndroid.build.dt_runpath.mk
ndroid.mk
lopen_b.cpp
|
f439b5a3186ca0fef1092f45770abc716da9d87a |
30-May-2015 |
Dmitriy Ivanov <dimitry@google.com> |
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
ndroid.mk
|
933332462d37dfa121fa691095cdce218a0139bf |
15-May-2015 |
Dmitriy Ivanov <dimitry@google.com> |
Remove -z global workaround for target x86 Change-Id: I08e75a1c7437c97e4af59316d2c14c7fa3f65e03
ndroid.mk
|
697bd9fd38ab078a117ad9a5777cf286c467b9b9 |
12-May-2015 |
Dmitriy Ivanov <dimitry@google.com> |
Improved dlsym tests and fixes to linker 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
ndroid.mk
lsym_from_this.cpp
lsym_from_this_functions.cpp
lsym_from_this_symbol.cpp
lsym_from_this_symbol2.cpp
|
2c256a0f0927abd94f2210b37c18ead210d30477 |
25-Apr-2015 |
Dmitriy Ivanov <dimitry@google.com> |
Merge "Unregister pthread_atfork handlers on dlclose()"
|
e91e66f223950fdc963cd89697541a32a253a0a6 |
25-Apr-2015 |
Dmitriy Ivanov <dimitry@google.com> |
Use bfd linker for x86/x86_64 targets ld.gold in current toolchain for x86_64 does not support -z global. Change-Id: Iea2b192f0f0aa998a02adb356fd4eec4e10a1739
ndroid.mk
|
ea295f68f1fae7c701baaa717f67296659d567ac |
21-Nov-2014 |
Dmitriy Ivanov <dimitry@google.com> |
Unregister pthread_atfork handlers on dlclose() Bug: http://b/20339788 Change-Id: I874c87faa377645fa9e0752f4fc166d81fd9ef7e
ndroid.build.pthread_atfork.mk
ndroid.mk
thread_atfork.cpp
|
6612d7a34768484eb002c07a1c7df1bd85c0997a |
25-Apr-2015 |
Dmitriy Ivanov <dimitry@google.com> |
Enable dlsym_df_1_global test for arm/arm64 Change-Id: I1fdebced93175cb14053e2239e79f97239fc2dc2
ndroid.mk
|
094f58fb2a57d1ed5736ae3588bf0355618f915b |
24-Apr-2015 |
Dimitry Ivanov <dimitry@google.com> |
Revert "Unregister pthread_atfork handlers on dlclose()" The visibility control in pthread_atfork.h is incorrect. It breaks 64bit libc.so by hiding pthread_atfork. This reverts commit 6df122f8528f9b9fcf7dfea14ae98b0ef66274e1. Change-Id: I21e4b344d500c6f6de0ccb7420b916c4e233dd34
ndroid.build.pthread_atfork.mk
ndroid.mk
thread_atfork.cpp
|
6df122f8528f9b9fcf7dfea14ae98b0ef66274e1 |
21-Nov-2014 |
Dmitriy Ivanov <dimitry@google.com> |
Unregister pthread_atfork handlers on dlclose() Change-Id: I326fdf6bb06bed12743f08980b5c69d849c015b8
ndroid.build.pthread_atfork.mk
ndroid.mk
thread_atfork.cpp
|
2a815361448d01b0f4e575f507ce31913214c536 |
09-Apr-2015 |
Dmitriy Ivanov <dimitry@google.com> |
Support symbol versioning Bug: http://b/20139821 Change-Id: I64122a0fb0960c20b2ce614161b7ab048456b681
ndroid.build.versioned_lib.mk
ndroid.mk
ersioned_lib_other.cpp
ersioned_lib_other.map
ersioned_lib_v1.cpp
ersioned_lib_v1.map
ersioned_lib_v2.cpp
ersioned_lib_v2.map
ersioned_lib_v3.cpp
ersioned_lib_v3.map
ersioned_uselib.cpp
ersioned_uselib.map
|
45c57131d25c82d6026ed36a791e9f5be40d5d7e |
04-Apr-2015 |
Dmitriy Ivanov <dimitry@google.com> |
Add libdl dependency for target libraries Fixed x86_64 target build with gcc 4.9 Change-Id: Id3b1e9286c2bcbb8e3ac117bcef957304db7cfd3
ndroid.mk
|
76ac1acdacc045cf1e56504e011dca68137dcd61 |
01-Apr-2015 |
Dmitriy Ivanov <dimitry@google.com> |
Look into local group on dlsym with RTLD_DEFAULT Fix dlsym to look into local group when called with RTLD_DEFAULT and RTLD_NEXT. Bug: 17512583 Change-Id: I541354e89539c712af2ea4ec751e546913027084
ndroid.mk
lsym_from_this.cpp
|
618f1a36f8635fa0f2d60c621fbf79ead2c3f3de |
18-Mar-2015 |
Dmitriy Ivanov <dimitry@google.com> |
Implement lookup by DT_SONAME This CL also fixes SEARCH_NAME hack and resolves https://code.google.com/p/android/issues/detail?id=6670 once and for all. Bug: https://code.google.com/p/android/issues/detail?id=6670 Change-Id: I9b8d6a672cd722f30fbfbb40cdee8d9b39cfe56e
ndroid.mk
|
aef719510a57274e73ca02ab5ecdc5bf17d3985c |
16-Jan-2015 |
Simon Baldwin <simonb@google.com> |
Support loading shared libraries from zip files Add code to support loading shared libraries directly from within APK files. Extends the linker's handling of LD_LIBRARY_PATH, DT_RUNPATH, etc to allow elements to be either directories as normal, or ZIP format files. For ZIP, the ZIP subdirectory string is separated from the path to file by '!'. For example, if DT_NEEDED is libchrome.so and Chrome.apk is the Android ARM APK then the path element /system/app/Chrome.apk!lib/armeabi-v7a would cause the linker to load lib/armeabi-v7a/libchrome.so directly from inside Chrome.apk. For loading to succeed, libchrome.so must be 'stored' and not compressed in Chrome.apk, and must be page aligned within the file. Motivation: Chromium tracking issue: https://code.google.com/p/chromium/issues/detail?id=390618 Bug: 8076853 Change-Id: Ic49046600b1417eae3ee8f37ee98c8ac1ecc19e7
ndroid.build.dlext_testzip.mk
|
279a22f96e639e76c801bdb39aee5576f2280fe0 |
23-Jan-2015 |
Dmitriy Ivanov <dimitry@google.com> |
Minimize calls to mprotect Implement refcounter based data protection guard to avoid unnecessary calls to mprotect when dlopen/dlclose is called from a constructor. Bug: 19124318 Big: 7941716 Change-Id: Id221b84ce75443094f99756dc9950b0a1dc87222
ndroid.mk
lopen_testlib_dlopen_from_ctor.cpp
|
bfa88bca5ca387d6b3560074050856527cfc7514 |
16-Dec-2014 |
Dmitriy Ivanov <dimitry@google.com> |
Add another test for weak-reference This one covers undefined weak reference in .so referenced via JUMP_SLOT relocation. Bug: 17526061 Change-Id: Ib8764bd30c1f686c4818ebbc6683cf42dee908b2
ndroid.mk
lopen_weak_undefined.cpp
|
ab972b9adf8789a9e1b03129cd7f0c22e6bba117 |
29-Nov-2014 |
Dmitriy Ivanov <dimitry@google.com> |
Count references for groups instead of instances Count references on the group level to avoid partially unloading function that might be referenced by other libraries in the local_group Bonus: with this change we can correctly unload recursively linked libraries. is_recursive check is removed. Also dynamic executables (not .so) with 0 DT_NEEDED libraries are now correctly linked. Change-Id: Idfa83baef402840599b93a875f2881d9f020dbcd
ndroid.build.dlopen_2_parents_reloc.mk
ndroid.mk
lopen_2_parents_reloc_answer.cpp
lopen_testlib_invalid.cpp
lopen_testlib_loopy_a.cpp
lopen_testlib_loopy_b.cpp
lopen_testlib_loopy_c.cpp
lopen_testlib_loopy_invalid.cpp
lopen_testlib_loopy_root.cpp
|
7699d13a74769fe8063fcca95588c87c571226c0 |
19-Nov-2014 |
Dmitriy Ivanov <dimitry@google.com> |
Yet another relocation test This time we check if a -> b -> c function in 'a' relocates against implementation in 'c'. Change-Id: I528180c3efd346bd447ea0237e5a8a0ac3cc031f
ndroid.build.dlopen_check_order_reloc_siblings.mk
lopen_check_order_reloc_grandchild_answer.cpp
lopen_check_order_reloc_grandchild_answer_impl.cpp
|
a2547055f25db614601ee8651f2e42ece01f7842 |
18-Nov-2014 |
Dmitriy Ivanov <dimitry@google.com> |
Fix jump to unmapped memory on atexit Split d-tor calls and soinfo_free to 2 separate steps Bug: 18338888 Change-Id: Idbcb7242ade16fa18cba7fe30505ebd8d6023622
lopen_check_order_reloc_nephew_answer.cpp
|
9df4b13baff9f958ad39a8cff59924c157978dac |
14-Nov-2014 |
Dmitriy Ivanov <dimitry@google.com> |
Fix host build for arm/arm64 Change-Id: Id92543e4080aede205b3e63099fa2baa36ba21f0
ndroid.mk
|
b3356773c6b5fbbbb26d22b3d6c6e0e598840e44 |
14-Nov-2014 |
Dmitriy Ivanov <dimitry@google.com> |
Add test for --hash-style=sysv With build system switched to gnu-hash we need a test for sysv-hashed library. Change-Id: I34adc216fa79199aa46066cf13fcc1c1f2581f0e
ndroid.mk
|
ec18ce06f2d007be40ad6f043058f5a4c7236573 |
10-Nov-2014 |
Dmitriy Ivanov <dimitry@google.com> |
Add support for hash-style=gnu Change-Id: I171434a587420895feac8a9b1ad2342087197568
ndroid.mk
|
4e446b19d8710cd2004785db4a00f18f249fe73f |
01-Nov-2014 |
Dmitriy Ivanov <dimitry@google.com> |
Fix arm64 and arm builds. Change-Id: I2c8c41626768e792f27a2616f2cd5ae66606319d
ndroid.mk
|
d225a5e65223b375a63548c4b780f04d8f3d7b60 |
28-Aug-2014 |
Dmitriy Ivanov <dimitry@google.com> |
Fix symbol lookup order during relocation Relocate symbol against DF_1_GLOBAL shared libraries loaded before this shared library. This includes main executable, ld_preloads and other libraries that have DF_1_GLOBAL flag set. Bug: 2643900 Bug: 15432753 Change-Id: Ia788748be59b739d1c7e62b978e7e255f9e65c7b
ndroid.mk
l_df_1_global.cpp
l_df_1_use_global.cpp
l_preempt_library_1.cpp
l_preempt_library_2.cpp
|
b08629862968772c35418698c7d6d99a5110f3f7 |
24-Oct-2014 |
Chih-Hung Hsieh <chh@google.com> |
Disable clang compilation due to lack of ifunc. BUG: 18055309 Change-Id: I0f36011cf7872a20ddd36a6c3c607eb96f0a8ec2
ndroid.mk
|
cfa97f172dc1b10d650fefbb6ccffd88ce72a5fb |
21-Oct-2014 |
Dmitriy Ivanov <dimitry@google.com> |
Fix relocation to look for symbols in local group The local group is a sequence of libraries in default (breadth-first) order. It allows RTLD_LOCALLY loaded library to correctly relocate symbols within its group (see test-cases). Local group lookup is performed after main executable and ld_preloads. Bug: 2643900 Bug: 15432753 Change-Id: I9bb013b46d17dbb5cbdfb8fef26f552748385541
ndroid.build.dlopen_check_order_dlsym.mk
ndroid.build.dlopen_check_order_reloc_main_executable.mk
ndroid.build.dlopen_check_order_reloc_siblings.mk
ndroid.mk
lopen_check_order_dlsym_answer.cpp
lopen_check_order_reloc_answer.cpp
lopen_check_order_reloc_answer_impl.cpp
lopen_check_order_reloc_nephew_answer.cpp
lopen_check_order_reloc_root_answer.cpp
lopen_check_order_reloc_root_answer_impl.cpp
lopen_testlib_answer.cpp
|
4a9e1937c56511aef579312bf39ab345f9179230 |
17-Oct-2014 |
Dmitriy Ivanov <dimitry@google.com> |
Correct way to specify additional dependencies Previous one was not covering all the targets Bug: 17548097 Change-Id: I425e0f8d6e5a43feabd29dcb327049b82754d249
ndroid.mk
|
667853d47770fbdb54aaf0b3261b0d4882725770 |
09-Oct-2014 |
Ying Wang <wangying@google.com> |
Build dlext_testzip as custom module. Use $(BUILD_SYSTEM)/base_rules to build it as custom module, so that it's exposed to utilities like mm/mmma etc. Bug: 17887283 Change-Id: Idd7b62d08e4d56331a3ff15da6aa46eae8c41898
ndroid.build.dlext_testzip.mk
|
51166d3aa2e9c002c123f2a08832deca23100975 |
08-Oct-2014 |
Dmitriy Ivanov <dimitry@google.com> |
Fix mma build: 'cd bionic && mma' case Bug: 17887283 Change-Id: If2015f2361348eac8c53aed3f8715077b79ce2f5
ndroid.build.dlext_testzip.mk
|
75d66dd9a7d6add031f4c2206751c45c937fc139 |
07-Oct-2014 |
Dmitriy Ivanov <dimitry@google.com> |
Fix 2nd arch prefix application Bug: 17887283 Change-Id: I7b3b2332212fe416d6b5f5c2e5c1e07605ba09aa
ndroid.mk
|
07e5bc152d8a3ad4c50808bb86f3c0f2c5e2f514 |
04-Oct-2014 |
Dmitriy Ivanov <dimitry@google.com> |
Add file_offset parameter to android_extinfo Bug: 17762003 Change-Id: I8fb267a3155acef3dba534038cf5d1ef00d7154b
ndroid.build.dlext_testzip.mk
ndroid.mk
|
1b20dafdbe65e43b9f4c95057e8482380833ea91 |
20-May-2014 |
Dmitriy Ivanov <dimitry@google.com> |
Add RTLD_NODELETE flag support Bug: https://code.google.com/p/android/issues/detail?id=64069 Change-Id: Ie5f90482feae86391172be4b32d6cb7d76f446fb
ndroid.mk
lopen_nodelete_1.cpp
lopen_nodelete_2.cpp
lopen_nodelete_dt_flags_1.cpp
|
bf50e2645d84bec481cb42da5f2ff4096061cbf8 |
18-Sep-2014 |
Dmitriy Ivanov <dimitry@google.com> |
Add Android*.mk files to additional dependencies Bug: 17548097 Change-Id: Ie0d9c8f33459320008f561217c54eba42d283b47
ndroid.mk
|
e8ba50fe0d51fbefee1a8f5bb62bf51d841512c8 |
16-Sep-2014 |
Dmitriy Ivanov <dimitry@google.com> |
Fix dlsym() to take into account RTLD_GLOBAL/LOCAL Symbols from libraries opened with RTLD_LOCAL (default) should not be visible via dlsym(RLTD_DEFAULT/RTLD_NEXT, .) Bug: 17512583 Change-Id: I1758943081a67cf3d49ba5808e061b8251a91964
lopen_testlib_simple.cpp
|
eb27bbae8f0edc6b62ca2db73256c7fb53b9e9bf |
15-Sep-2014 |
Dmitriy Ivanov <dimitry@google.com> |
Add dlfcn_test to glibc test suite. Change-Id: I955e4f7dfcc23ea5c767f967b3532dc31663b876
ndroid.build.testlib.mk
ndroid.mk
lopen_testlib_simple.cpp
|
a6ac54a215d6b64f5cc5a59b66c1dbfbb41ea9f5 |
09-Sep-2014 |
Dmitriy Ivanov <dimitry@google.com> |
Fix unload of recursively linked library Expanded test for recursive libs. Fixed bug with unnecessary soinfo_free of already loaded library. Change-Id: I2cc19f2650c8b12a35feeac127ef608ebba44d88
ndroid.mk
lopen_testlib_invalid.cpp
|
9aea164457c269c475592da36b4655d45f55c7bc |
12-Sep-2014 |
Dmitriy Ivanov <dimitry@google.com> |
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
ndroid.mk
lopen_testlib_ifunc.c
|
14669a939d113214a4a20b9318fca0992d5453f0 |
06-Sep-2014 |
Dmitriy Ivanov <dimitry@google.com> |
Load libraries in breadth-first order This patch fixes the problem with symbol search order for dlsym(RTLD_DEFAULT/RTLD_NEXT, .) by loading libraries and ld_preloads in correct order. Bug: https://code.google.com/p/android/issues/detail?id=74255 Change-Id: If1ba5c807322409faa914e27ecb675e2c4541f0d Attempt: 2
ndroid.mk
lopen_testlib_answer.cpp
|
498eb18b82a425f9f30132e4832f327b2ee0e545 |
05-Sep-2014 |
Dmitriy Ivanov <dimitry@google.com> |
Revert "Load libraries in breadth-first order" This reverts commit a3ad450a2e3fb6b3fe359683b247eba20896f646. Change-Id: Ia2b838ad2159c643b80c514849582f4b4f4f40e5
ndroid.mk
lopen_testlib_answer.cpp
|
b2a30ee8d209154efc367db11b4167a5d6db605f |
05-Sep-2014 |
Dmitriy Ivanov <dimitry@google.com> |
Fix order of soinfo links (repairs libcxx tests). Change-Id: Iee9de09657351cd6a7512784ca797e4b84cdd98b
ndroid.mk
lopen_testlib_relo_check_dt_needed_order.cpp
lopen_testlib_relo_check_dt_needed_order_1.cpp
lopen_testlib_relo_check_dt_needed_order_2.cpp
|
a3ad450a2e3fb6b3fe359683b247eba20896f646 |
29-Jul-2014 |
Dmitriy Ivanov <dimitry@google.com> |
Load libraries in breadth-first order This patch fixes the problem with symbol search order for dlsym(RTLD_DEFAULT/RTLD_NEXT, .) by loading libraries and ld_preloads in correct order. Bug: https://code.google.com/p/android/issues/detail?id=74255 Change-Id: I4cf84c70dbaabe99310230dfda12385ae5401859
ndroid.mk
lopen_testlib_answer.cpp
|
9598b8c415e2fa9f240508185fe8c964b83f538d |
21-Aug-2014 |
Dmitriy Ivanov <dimitry@google.com> |
Run constructors before resolving ifunc functions Bug: 17177284 Change-Id: I5714b9bc2d1ca8f8711806bfb68da3d524213e99
lopen_testlib_ifunc.c
|
02aa70589d22fa9b65da43de705d6de2715870c6 |
19-Aug-2014 |
Dmitriy Ivanov <dimitry@google.com> |
Revert "Add support for protected local symbol lookup." This reverts commit d97e9f546ea195686a78e539315b273393609b9e. Bug: 17107521 (cherry picked from commit 9419420919ea846bbad5510850c7aaec95021648) Change-Id: I1a6df946ac8075699e77d68ffa6ac4a21b88e4bf
ndroid.mk
lsym_local_symbol.map
lsym_local_symbol_private.cpp
lsym_local_symbol_public.cpp
|
4571f31bd49e4951c9f1e0ff642c74fd79fe740a |
15-Aug-2014 |
Dmitriy Ivanov <dimitry@google.com> |
Add atexit test for attributed c-tor/d-tor 1. Add test for __attribute__((constructor/destructor)) and static constructor 2. Compile C++ testlibs with -std=gnu++11 Change-Id: I67f9308144a0c638a51f111fcba8e1933fe0ba41
ndroid.mk
texit_testlib.cpp
|
c5a13efa9bc4264be0a9a9e37c00633af01584ed |
23-Jul-2014 |
Brigid Smith <brigidsmith@google.com> |
Added test for ifunc support in dynamic linker. ifuncs now work in i386 and x86_64 when called in the same library as well as in a different library. Bug:6657325 Change-Id: Ic0c48b1b0a76cb90f36c20c79f68294cc3fd44a1
ndroid.mk
lopen_testlib_ifunc.c
|
aa0f2bdbc22d4b7aec5d3f8f5f01eaeaa13414c2 |
29-Jul-2014 |
Dmitriy Ivanov <dimitry@google.com> |
Fix dlsym(3) to do breadth first search. dlsym(3) with handle != RTLD_DEFAULT|RTLD_NEXT performs breadth first search through the dependency tree. Bug: 16653281 Change-Id: I017a6975d1a62abb0218a7eb59ae4deba458e324
ndroid.mk
|
04dc91ae763adc403a14c88b4c46f77b3d2d71a3 |
01-Jul-2014 |
Dmitriy Ivanov <dimitry@google.com> |
Load library using file handle. * This patch enables dlopen by file descriptor instead of path/name. Bug: 15984217 Change-Id: Ib39051e00567fb97070bf96d8ce63993877c0a01
ndroid.mk
|
d97e9f546ea195686a78e539315b273393609b9e |
29-Jun-2014 |
Dmitriy Ivanov <dimitry@google.com> |
Add support for protected local symbol lookup. Bug: http://code.google.com/p/android/issues/detail?id=66048 Change-Id: Ib334223df27adad9477fb241ab099c5e26df4a7d
ndroid.mk
lsym_local_symbol.map
lsym_local_symbol_private.cpp
lsym_local_symbol_public.cpp
|
ce44166c737b6737c3a0820bef10b074a5e36cf8 |
18-Jun-2014 |
Dmitriy Ivanov <dimitry@google.com> |
Fix weak function lookups * Linker now correctly resolves function defined with __attribute__((weak)). Bug: https://code.google.com/p/android/issues/detail?id=70206 Change-Id: I82efb905676c25fefb1b11a13f5fecb0f1384657
ndroid.mk
lsym_weak_function.cpp
|
1f5e1a3cbc564c593fe1090894ecdb070f36e20c |
03-Jun-2014 |
Dmitriy Ivanov <dimitry@google.com> |
Move libraries for unit-tests to separate folder Change-Id: I1653f3f2fd63ba25525369bc725c8f7438ecf021
ndroid.mk
texit_testlib.cpp
lext_test_library.cpp
lopen_testlib_simple.cpp
mpty.cpp
|