]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/platform-bionic.git/commit
Load libraries in breadth-first order
authorDmitriy Ivanov <dimitry@google.com>
Tue, 29 Jul 2014 21:21:45 +0000 (14:21 -0700)
committerDmitriy Ivanov <dimitry@google.com>
Wed, 3 Sep 2014 22:06:14 +0000 (15:06 -0700)
commita3ad450a2e3fb6b3fe359683b247eba20896f646
tree46d55ca77bbe24d4834444ed21aa146bf6750e37
parentec95a9cf11f7c4d2211c61da7ce05262a54409d1
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
12 files changed:
libc/private/ScopeGuard.h [new file with mode: 0644]
libc/private/UniquePtr.h [new file with mode: 0644]
linker/dlfcn.cpp
linker/linker.cpp
linker/linker.h
linker/linker_phdr.cpp
linker/linker_phdr.h
tests/Android.mk
tests/dlfcn_test.cpp
tests/libs/Android.mk
tests/libs/dlopen_testlib_answer.cpp [new file with mode: 0644]
tests/uniqueptr_test.cpp [new file with mode: 0644]