OSDN Git Service

Fix symbol lookup order during relocation
authorDmitriy Ivanov <dimitry@google.com>
Thu, 28 Aug 2014 21:12:12 +0000 (14:12 -0700)
committerDmitriy Ivanov <dimitry@google.com>
Sat, 1 Nov 2014 00:10:30 +0000 (17:10 -0700)
commit976402cca13a1f4f3aa988fd301575e134ef5f2c
tree96d5ca98af5d4638b03541afc5e40d1f888516c0
parentbf3d5ef5fd240d4c5fbde1b32f9084dbc720840b
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
Bug: 18186310

(cherry picked from commit d225a5e65223b375a63548c4b780f04d8f3d7b60)

Change-Id: I4e889cdf2dfbf8230b0790053d311ee6b0d0ee2d
linker/linked_list.h
linker/linker.cpp
linker/linker.h
tests/Android.mk
tests/dl_test.cpp [new file with mode: 0644]
tests/dlfcn_test.cpp
tests/libs/Android.mk
tests/libs/dl_df_1_global.cpp [new file with mode: 0644]
tests/libs/dl_df_1_use_global.cpp [new file with mode: 0644]
tests/libs/dl_preempt_library_1.cpp [new file with mode: 0644]
tests/libs/dl_preempt_library_2.cpp [new file with mode: 0644]