commit | a3ad450a2e3fb6b3fe359683b247eba20896f646 | [log] [tgz] |
---|---|---|
author | Dmitriy Ivanov <dimitry@google.com> | Tue Jul 29 14:21:45 2014 -0700 |
committer | Dmitriy Ivanov <dimitry@google.com> | Wed Sep 03 15:06:14 2014 -0700 |
tree | 46d55ca77bbe24d4834444ed21aa146bf6750e37 | |
parent | ec95a9cf11f7c4d2211c61da7ce05262a54409d1 [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: I4cf84c70dbaabe99310230dfda12385ae5401859
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;