linker: don't pass dlextinfo to dependent loads
Don't pass the parent load's dlextinfo to dependent loads, since this
causes the linker to try to load the dependencies using the same
addresses/relro/fds/etc as the main library, which is never going to
work. This was how it worked before ae69a95 which broke this.
Bug: http://b/23742664
Bug: http://b/20948231
Bug: http://b/20841817
Change-Id: I340ebae1127666d5c6c6f9c6521b89fb93f15bdd
diff --git a/tests/libs/Android.mk b/tests/libs/Android.mk
index 8615934..b13400e 100644
--- a/tests/libs/Android.mk
+++ b/tests/libs/Android.mk
@@ -68,6 +68,8 @@
libdlext_test_ldflags := \
-Wl,-z,relro \
+libdlext_test_shared_libraries := libtest_simple
+
module := libdlext_test
module_tag := optional
include $(LOCAL_PATH)/Android.build.testlib.mk
@@ -101,6 +103,8 @@
libdlext_test_norelro_ldflags := \
-Wl,-z,norelro \
+libdlext_test_norelro_shared_libraries := libtest_simple
+
module := libdlext_test_norelro
module_tag := optional
build_type := target
@@ -113,6 +117,8 @@
libdlext_test_fd_src_files := \
dlext_test_library.cpp \
+libdlext_test_fd_shared_libraries := libtest_simple
+
libdlext_test_fd_install_to_out_data := true
module := libdlext_test_fd
module_tag := optional