]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/platform-bionic.git/commit
Fix relocation to look for symbols in local group
authorDmitriy Ivanov <dimitry@google.com>
Tue, 21 Oct 2014 16:23:18 +0000 (09:23 -0700)
committerDmitriy Ivanov <dimitry@google.com>
Thu, 23 Oct 2014 19:13:54 +0000 (12:13 -0700)
commitcfa97f172dc1b10d650fefbb6ccffd88ce72a5fb
treef811c34ec0dde4eed15c64d33b4a89c8e5a00030
parentcf8ea37fc91e23d37b3c5873b5e152ccae293f03
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
14 files changed:
linker/linked_list.h
linker/linker.cpp
linker/linker.h
tests/dlfcn_test.cpp
tests/libs/Android.build.dlopen_check_order_dlsym.mk [new file with mode: 0644]
tests/libs/Android.build.dlopen_check_order_reloc_main_executable.mk [new file with mode: 0644]
tests/libs/Android.build.dlopen_check_order_reloc_siblings.mk [new file with mode: 0644]
tests/libs/Android.mk
tests/libs/dlopen_check_order_dlsym_answer.cpp [moved from tests/libs/dlopen_testlib_answer.cpp with 87% similarity]
tests/libs/dlopen_check_order_reloc_answer.cpp [new file with mode: 0644]
tests/libs/dlopen_check_order_reloc_answer_impl.cpp [new file with mode: 0644]
tests/libs/dlopen_check_order_reloc_nephew_answer.cpp [new file with mode: 0644]
tests/libs/dlopen_check_order_reloc_root_answer.cpp [new file with mode: 0644]
tests/libs/dlopen_check_order_reloc_root_answer_impl.cpp [new file with mode: 0644]