commit | 14669a939d113214a4a20b9318fca0992d5453f0 | [log] [tgz] |
---|---|---|
author | Dmitriy Ivanov <dimitry@google.com> | Fri Sep 05 16:42:53 2014 -0700 |
committer | Dmitriy Ivanov <dimitry@google.com> | Mon Sep 08 13:02:50 2014 -0700 |
tree | 160b15f09cb7edc2da5b02e47cf3d5ce1461df97 | |
parent | 320a01d51693408dad859094ca52e5f315ff1d15 [diff] [blame] |
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
diff --git a/linker/dlfcn.cpp b/linker/dlfcn.cpp index 38484d9..3024b3c 100644 --- a/linker/dlfcn.cpp +++ b/linker/dlfcn.cpp
@@ -245,6 +245,7 @@ __libdl_info.bucket = g_libdl_buckets; __libdl_info.chain = g_libdl_chains; __libdl_info.has_DT_SYMBOLIC = true; + __libdl_info.ref_count = 1; } return &__libdl_info;