2014-06-03 01:29:00 +02:00
|
|
|
#
|
|
|
|
# Copyright (C) 2012 The Android Open Source Project
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
#
|
|
|
|
|
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
TEST_PATH := $(LOCAL_PATH)/..
|
|
|
|
|
2015-08-11 01:40:06 +02:00
|
|
|
common_cppflags :=
|
2014-10-17 20:47:18 +02:00
|
|
|
common_additional_dependencies := \
|
|
|
|
$(LOCAL_PATH)/Android.mk \
|
2015-06-10 22:38:39 +02:00
|
|
|
$(LOCAL_PATH)/Android.build.dt_runpath.mk \
|
2014-10-17 20:47:18 +02:00
|
|
|
$(LOCAL_PATH)/Android.build.dlext_testzip.mk \
|
2014-11-29 22:57:41 +01:00
|
|
|
$(LOCAL_PATH)/Android.build.dlopen_2_parents_reloc.mk \
|
2014-10-21 18:23:18 +02:00
|
|
|
$(LOCAL_PATH)/Android.build.dlopen_check_order_dlsym.mk \
|
|
|
|
$(LOCAL_PATH)/Android.build.dlopen_check_order_reloc_siblings.mk \
|
|
|
|
$(LOCAL_PATH)/Android.build.dlopen_check_order_reloc_main_executable.mk \
|
2014-11-21 05:47:02 +01:00
|
|
|
$(LOCAL_PATH)/Android.build.pthread_atfork.mk \
|
2014-10-17 20:47:18 +02:00
|
|
|
$(LOCAL_PATH)/Android.build.testlib.mk \
|
2015-04-09 22:42:33 +02:00
|
|
|
$(LOCAL_PATH)/Android.build.versioned_lib.mk \
|
2014-10-17 20:47:18 +02:00
|
|
|
$(TEST_PATH)/Android.build.mk
|
|
|
|
|
2014-06-03 01:29:00 +02:00
|
|
|
# -----------------------------------------------------------------------------
|
2014-11-14 20:19:22 +01:00
|
|
|
# Library to test gnu-styled hash
|
2014-06-03 01:29:00 +02:00
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
ifneq ($(TARGET_ARCH),$(filter $(TARGET_ARCH),mips mips64))
|
2014-11-10 04:27:20 +01:00
|
|
|
libgnu-hash-table-library_src_files := \
|
|
|
|
dlext_test_library.cpp \
|
2014-06-03 01:29:00 +02:00
|
|
|
|
2014-11-10 04:27:20 +01:00
|
|
|
libgnu-hash-table-library_ldflags := \
|
2014-06-03 01:29:00 +02:00
|
|
|
-Wl,--hash-style=gnu \
|
|
|
|
|
2014-11-10 04:27:20 +01:00
|
|
|
module := libgnu-hash-table-library
|
2014-06-03 01:29:00 +02:00
|
|
|
module_tag := optional
|
2014-09-15 23:13:24 +02:00
|
|
|
include $(LOCAL_PATH)/Android.build.testlib.mk
|
2014-06-03 01:29:00 +02:00
|
|
|
endif
|
|
|
|
|
2014-11-14 20:19:22 +01:00
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Library to test sysv-styled hash
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
libsysv-hash-table-library_src_files := \
|
|
|
|
dlext_test_library.cpp \
|
|
|
|
|
|
|
|
libsysv-hash-table-library_ldflags := \
|
|
|
|
-Wl,--hash-style=sysv \
|
|
|
|
|
|
|
|
module := libsysv-hash-table-library
|
|
|
|
module_tag := optional
|
|
|
|
include $(LOCAL_PATH)/Android.build.testlib.mk
|
|
|
|
|
2014-06-03 01:29:00 +02:00
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Library used by dlext tests - with GNU RELRO program header
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
libdlext_test_src_files := \
|
|
|
|
dlext_test_library.cpp \
|
|
|
|
|
|
|
|
libdlext_test_ldflags := \
|
|
|
|
-Wl,-z,relro \
|
|
|
|
|
2015-09-03 01:32:02 +02:00
|
|
|
libdlext_test_shared_libraries := libtest_simple
|
|
|
|
|
2014-06-03 01:29:00 +02:00
|
|
|
module := libdlext_test
|
|
|
|
module_tag := optional
|
2014-09-15 23:13:24 +02:00
|
|
|
include $(LOCAL_PATH)/Android.build.testlib.mk
|
2014-06-03 01:29:00 +02:00
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# create symlink to libdlext_test.so for symlink test
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Use = instead of := to defer the evaluation of $@
|
2014-09-15 23:13:24 +02:00
|
|
|
$(TARGET_OUT)/lib/libdlext_test.so: PRIVATE_POST_INSTALL_CMD = \
|
2014-06-03 01:29:00 +02:00
|
|
|
$(hide) cd $(dir $@) && ln -sf $(notdir $@) libdlext_test_v2.so
|
|
|
|
|
|
|
|
ifneq ($(TARGET_2ND_ARCH),)
|
|
|
|
# link 64 bit .so
|
|
|
|
$(TARGET_OUT)/lib64/libdlext_test.so: PRIVATE_POST_INSTALL_CMD = \
|
|
|
|
$(hide) cd $(dir $@) && ln -sf $(notdir $@) libdlext_test_v2.so
|
|
|
|
endif
|
|
|
|
|
2014-09-15 23:13:24 +02:00
|
|
|
# host symlinks
|
|
|
|
$(HOST_OUT)/lib64/libdlext_test.so: PRIVATE_POST_INSTALL_CMD = \
|
|
|
|
$(hide) cd $(dir $@) && ln -sf $(notdir $@) libdlext_test_v2.so
|
|
|
|
|
|
|
|
$(HOST_OUT)/lib/libdlext_test.so: PRIVATE_POST_INSTALL_CMD = \
|
|
|
|
$(hide) cd $(dir $@) && ln -sf $(notdir $@) libdlext_test_v2.so
|
|
|
|
|
2014-06-03 01:29:00 +02:00
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Library used by dlext tests - without GNU RELRO program header
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
libdlext_test_norelro_src_files := \
|
|
|
|
dlext_test_library.cpp \
|
|
|
|
|
|
|
|
libdlext_test_norelro_ldflags := \
|
|
|
|
-Wl,-z,norelro \
|
|
|
|
|
2015-09-03 01:32:02 +02:00
|
|
|
libdlext_test_norelro_shared_libraries := libtest_simple
|
|
|
|
|
2014-06-03 01:29:00 +02:00
|
|
|
module := libdlext_test_norelro
|
|
|
|
module_tag := optional
|
|
|
|
build_type := target
|
|
|
|
build_target := SHARED_LIBRARY
|
|
|
|
include $(TEST_PATH)/Android.build.mk
|
|
|
|
|
2014-07-01 23:10:16 +02:00
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Library used by dlext tests - different name non-default location
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
libdlext_test_fd_src_files := \
|
|
|
|
dlext_test_library.cpp \
|
|
|
|
|
2015-09-03 01:32:02 +02:00
|
|
|
libdlext_test_fd_shared_libraries := libtest_simple
|
|
|
|
|
2014-07-01 23:10:16 +02:00
|
|
|
libdlext_test_fd_install_to_out_data := true
|
|
|
|
module := libdlext_test_fd
|
|
|
|
module_tag := optional
|
|
|
|
build_type := target
|
|
|
|
build_target := SHARED_LIBRARY
|
|
|
|
include $(TEST_PATH)/Android.build.mk
|
|
|
|
|
2015-09-29 01:38:31 +02:00
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Libraries used by dlext tests for open from a zip-file
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
libdlext_test_zip_src_files := \
|
|
|
|
dlext_test_library.cpp \
|
|
|
|
|
|
|
|
libdlext_test_zip_shared_libraries := libatest_simple_zip
|
|
|
|
|
|
|
|
libdlext_test_zip_install_to_out_data := true
|
|
|
|
module := libdlext_test_zip
|
|
|
|
module_tag := optional
|
|
|
|
build_type := target
|
|
|
|
build_target := SHARED_LIBRARY
|
|
|
|
include $(TEST_PATH)/Android.build.mk
|
|
|
|
|
|
|
|
libatest_simple_zip_src_files := \
|
|
|
|
dlopen_testlib_simple.cpp
|
|
|
|
|
|
|
|
libatest_simple_zip_install_to_out_data := true
|
|
|
|
module := libatest_simple_zip
|
|
|
|
module_tag := optional
|
|
|
|
build_type := target
|
|
|
|
build_target := SHARED_LIBRARY
|
|
|
|
include $(TEST_PATH)/Android.build.mk
|
|
|
|
|
2015-03-18 04:06:36 +01:00
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
# Library with soname which does not match filename
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
libdlext_test_different_soname_src_files := \
|
|
|
|
dlext_test_library.cpp \
|
|
|
|
|
|
|
|
module := libdlext_test_different_soname
|
|
|
|
module_tag := optional
|
|
|
|
libdlext_test_different_soname_ldflags := -Wl,-soname=libdlext_test_soname.so
|
|
|
|
include $(LOCAL_PATH)/Android.build.testlib.mk
|
|
|
|
|
2014-10-04 02:52:44 +02:00
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Library used by dlext tests - zipped and aligned
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
include $(CLEAR_VARS)
|
2014-10-07 18:46:46 +02:00
|
|
|
bionic_2nd_arch_prefix :=
|
2014-10-04 02:52:44 +02:00
|
|
|
include $(LOCAL_PATH)/Android.build.dlext_testzip.mk
|
|
|
|
ifneq ($(TARGET_2ND_ARCH),)
|
2014-10-07 18:46:46 +02:00
|
|
|
bionic_2nd_arch_prefix := $(TARGET_2ND_ARCH_VAR_PREFIX)
|
2014-10-04 02:52:44 +02:00
|
|
|
include $(LOCAL_PATH)/Android.build.dlext_testzip.mk
|
|
|
|
endif
|
|
|
|
|
2014-06-03 01:29:00 +02:00
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Library used by dlfcn tests
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
libtest_simple_src_files := \
|
|
|
|
dlopen_testlib_simple.cpp
|
|
|
|
|
|
|
|
module := libtest_simple
|
2014-09-15 23:13:24 +02:00
|
|
|
include $(LOCAL_PATH)/Android.build.testlib.mk
|
2014-06-03 01:29:00 +02:00
|
|
|
|
2014-09-06 01:42:53 +02:00
|
|
|
# -----------------------------------------------------------------------------
|
2014-05-20 00:06:58 +02:00
|
|
|
# Library used by dlfcn nodelete tests
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
libtest_nodelete_1_src_files := \
|
|
|
|
dlopen_nodelete_1.cpp
|
|
|
|
|
|
|
|
module := libtest_nodelete_1
|
|
|
|
include $(LOCAL_PATH)/Android.build.testlib.mk
|
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Library used by dlfcn nodelete tests
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
libtest_nodelete_2_src_files := \
|
|
|
|
dlopen_nodelete_2.cpp
|
|
|
|
|
|
|
|
module := libtest_nodelete_2
|
|
|
|
include $(LOCAL_PATH)/Android.build.testlib.mk
|
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Library used by dlfcn nodelete tests
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
libtest_nodelete_dt_flags_1_src_files := \
|
|
|
|
dlopen_nodelete_dt_flags_1.cpp
|
|
|
|
|
|
|
|
libtest_nodelete_dt_flags_1_ldflags := -Wl,-z,nodelete
|
|
|
|
|
|
|
|
module := libtest_nodelete_dt_flags_1
|
|
|
|
include $(LOCAL_PATH)/Android.build.testlib.mk
|
|
|
|
|
2015-06-10 22:38:39 +02:00
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Build DT_RUNPATH test helper libraries
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
include $(LOCAL_PATH)/Android.build.dt_runpath.mk
|
|
|
|
|
2014-11-29 22:57:41 +01:00
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Build library with two parents
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
include $(LOCAL_PATH)/Android.build.dlopen_2_parents_reloc.mk
|
|
|
|
|
2014-05-20 00:06:58 +02:00
|
|
|
# -----------------------------------------------------------------------------
|
2014-10-21 18:23:18 +02:00
|
|
|
# Build libtest_check_order_dlsym.so with its dependencies.
|
2014-09-06 01:42:53 +02:00
|
|
|
# -----------------------------------------------------------------------------
|
2014-10-21 18:23:18 +02:00
|
|
|
include $(LOCAL_PATH)/Android.build.dlopen_check_order_dlsym.mk
|
2014-09-06 01:42:53 +02:00
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
2014-10-21 18:23:18 +02:00
|
|
|
# Build libtest_check_order_siblings.so with its dependencies.
|
2014-09-06 01:42:53 +02:00
|
|
|
# -----------------------------------------------------------------------------
|
2014-10-21 18:23:18 +02:00
|
|
|
include $(LOCAL_PATH)/Android.build.dlopen_check_order_reloc_siblings.mk
|
2014-09-06 01:42:53 +02:00
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
2014-10-21 18:23:18 +02:00
|
|
|
# Build libtest_check_order_root.so with its dependencies.
|
2014-09-06 01:42:53 +02:00
|
|
|
# -----------------------------------------------------------------------------
|
2014-10-21 18:23:18 +02:00
|
|
|
include $(LOCAL_PATH)/Android.build.dlopen_check_order_reloc_main_executable.mk
|
2014-09-06 01:42:53 +02:00
|
|
|
|
2015-04-09 22:42:33 +02:00
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Build libtest_versioned_lib.so with its dependencies.
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
include $(LOCAL_PATH)/Android.build.versioned_lib.mk
|
|
|
|
|
2014-11-21 05:47:02 +01:00
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Build libraries needed by pthread_atfork tests
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
include $(LOCAL_PATH)/Android.build.pthread_atfork.mk
|
|
|
|
|
2014-09-06 01:42:53 +02:00
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Library with dependency loop used by dlfcn tests
|
|
|
|
#
|
|
|
|
# libtest_with_dependency_loop -> a -> b -> c -> a
|
|
|
|
# -----------------------------------------------------------------------------
|
2014-11-29 22:57:41 +01:00
|
|
|
libtest_with_dependency_loop_src_files := dlopen_testlib_loopy_root.cpp
|
2014-09-06 01:42:53 +02:00
|
|
|
|
|
|
|
libtest_with_dependency_loop_shared_libraries := \
|
|
|
|
libtest_with_dependency_loop_a
|
|
|
|
|
|
|
|
module := libtest_with_dependency_loop
|
2014-09-15 23:13:24 +02:00
|
|
|
include $(LOCAL_PATH)/Android.build.testlib.mk
|
2014-09-06 01:42:53 +02:00
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# libtest_with_dependency_loop_a.so
|
|
|
|
# -----------------------------------------------------------------------------
|
2014-11-29 22:57:41 +01:00
|
|
|
libtest_with_dependency_loop_a_src_files := dlopen_testlib_loopy_a.cpp
|
2014-09-06 01:42:53 +02:00
|
|
|
|
|
|
|
libtest_with_dependency_loop_a_shared_libraries := \
|
|
|
|
libtest_with_dependency_loop_b_tmp
|
|
|
|
|
|
|
|
module := libtest_with_dependency_loop_a
|
2014-09-15 23:13:24 +02:00
|
|
|
include $(LOCAL_PATH)/Android.build.testlib.mk
|
2014-09-06 01:42:53 +02:00
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# libtest_with_dependency_loop_b.so
|
|
|
|
#
|
|
|
|
# this is temporary placeholder - will be removed
|
|
|
|
# -----------------------------------------------------------------------------
|
2014-11-29 22:57:41 +01:00
|
|
|
libtest_with_dependency_loop_b_tmp_src_files := dlopen_testlib_loopy_invalid.cpp
|
2014-09-06 01:42:53 +02:00
|
|
|
libtest_with_dependency_loop_b_tmp_ldflags := -Wl,-soname=libtest_with_dependency_loop_b.so
|
|
|
|
|
|
|
|
module := libtest_with_dependency_loop_b_tmp
|
2014-09-15 23:13:24 +02:00
|
|
|
include $(LOCAL_PATH)/Android.build.testlib.mk
|
2014-09-06 01:42:53 +02:00
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# libtest_with_dependency_loop_b.so
|
|
|
|
# -----------------------------------------------------------------------------
|
2014-11-29 22:57:41 +01:00
|
|
|
libtest_with_dependency_loop_b_src_files := dlopen_testlib_loopy_b.cpp
|
2014-09-06 01:42:53 +02:00
|
|
|
libtest_with_dependency_loop_b_shared_libraries := libtest_with_dependency_loop_c
|
|
|
|
|
|
|
|
module := libtest_with_dependency_loop_b
|
2014-09-15 23:13:24 +02:00
|
|
|
include $(LOCAL_PATH)/Android.build.testlib.mk
|
2014-09-06 01:42:53 +02:00
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# libtest_with_dependency_loop_c.so
|
|
|
|
# -----------------------------------------------------------------------------
|
2014-11-29 22:57:41 +01:00
|
|
|
libtest_with_dependency_loop_c_src_files := dlopen_testlib_loopy_c.cpp
|
2014-09-06 01:42:53 +02:00
|
|
|
|
|
|
|
libtest_with_dependency_loop_c_shared_libraries := \
|
|
|
|
libtest_with_dependency_loop_a
|
|
|
|
|
|
|
|
module := libtest_with_dependency_loop_c
|
2014-09-15 23:13:24 +02:00
|
|
|
include $(LOCAL_PATH)/Android.build.testlib.mk
|
2014-09-06 01:42:53 +02:00
|
|
|
|
2014-09-05 03:23:00 +02:00
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# libtest_relo_check_dt_needed_order.so
|
|
|
|
# |
|
|
|
|
# +-> libtest_relo_check_dt_needed_order_1.so
|
|
|
|
# |
|
|
|
|
# +-> libtest_relo_check_dt_needed_order_2.so
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
libtest_relo_check_dt_needed_order_shared_libraries := \
|
|
|
|
libtest_relo_check_dt_needed_order_1 libtest_relo_check_dt_needed_order_2
|
|
|
|
|
|
|
|
libtest_relo_check_dt_needed_order_src_files := dlopen_testlib_relo_check_dt_needed_order.cpp
|
|
|
|
libtest_relo_check_dt_needed_order_1_src_files := dlopen_testlib_relo_check_dt_needed_order_1.cpp
|
|
|
|
libtest_relo_check_dt_needed_order_2_src_files := dlopen_testlib_relo_check_dt_needed_order_2.cpp
|
|
|
|
|
|
|
|
module := libtest_relo_check_dt_needed_order
|
2014-09-15 23:13:24 +02:00
|
|
|
include $(LOCAL_PATH)/Android.build.testlib.mk
|
2014-09-05 03:23:00 +02:00
|
|
|
module := libtest_relo_check_dt_needed_order_1
|
2014-09-15 23:13:24 +02:00
|
|
|
include $(LOCAL_PATH)/Android.build.testlib.mk
|
2014-09-05 03:23:00 +02:00
|
|
|
module := libtest_relo_check_dt_needed_order_2
|
2014-09-15 23:13:24 +02:00
|
|
|
include $(LOCAL_PATH)/Android.build.testlib.mk
|
2014-09-05 03:23:00 +02:00
|
|
|
|
2014-07-29 02:32:20 +02:00
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Library with dependency used by dlfcn tests
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
libtest_with_dependency_src_files := \
|
|
|
|
dlopen_testlib_simple.cpp
|
|
|
|
|
|
|
|
libtest_with_dependency_shared_libraries := libdlext_test
|
|
|
|
|
|
|
|
module := libtest_with_dependency
|
2014-09-15 23:13:24 +02:00
|
|
|
include $(LOCAL_PATH)/Android.build.testlib.mk
|
2014-07-29 02:32:20 +02:00
|
|
|
|
2014-07-23 20:22:25 +02:00
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Library used by ifunc tests
|
|
|
|
# -----------------------------------------------------------------------------
|
2014-09-15 23:13:24 +02:00
|
|
|
libtest_ifunc_src_files := \
|
|
|
|
dlopen_testlib_ifunc.c
|
2014-07-23 20:22:25 +02:00
|
|
|
|
2014-09-15 23:13:24 +02:00
|
|
|
libtest_ifunc_clang_host := false
|
|
|
|
module := libtest_ifunc
|
|
|
|
build_target := SHARED_LIBRARY
|
2014-09-12 00:16:03 +02:00
|
|
|
|
2014-09-15 23:13:24 +02:00
|
|
|
build_type := host
|
|
|
|
include $(TEST_PATH)/Android.build.mk
|
|
|
|
|
|
|
|
ifeq ($(TARGET_ARCH),$(filter $(TARGET_ARCH),arm64 x86 x86_64))
|
2014-09-12 00:16:03 +02:00
|
|
|
ifeq ($(TARGET_ARCH),arm64)
|
|
|
|
libtest_ifunc_multilib := 64
|
|
|
|
# TODO: This is a workaround - remove it once gcc
|
|
|
|
# removes its Android ifunc checks
|
|
|
|
libtest_ifunc_cflags := -mglibc
|
|
|
|
endif
|
|
|
|
|
2014-09-15 23:13:24 +02:00
|
|
|
build_type := target
|
2014-10-24 20:04:51 +02:00
|
|
|
libtest_ifunc_clang_target := false
|
2014-07-23 20:22:25 +02:00
|
|
|
include $(TEST_PATH)/Android.build.mk
|
|
|
|
endif
|
|
|
|
|
2014-06-03 01:29:00 +02:00
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Library used by atexit tests
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
libtest_atexit_src_files := \
|
|
|
|
atexit_testlib.cpp
|
|
|
|
|
|
|
|
module := libtest_atexit
|
2014-09-15 23:13:24 +02:00
|
|
|
include $(LOCAL_PATH)/Android.build.testlib.mk
|
2014-06-03 01:29:00 +02:00
|
|
|
|
2014-08-28 23:12:12 +02:00
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# This library is used by dl_load test to check symbol preempting
|
|
|
|
# by main executable
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
libdl_preempt_test_1_src_files := dl_preempt_library_1.cpp
|
|
|
|
|
|
|
|
module := libdl_preempt_test_1
|
|
|
|
include $(LOCAL_PATH)/Android.build.testlib.mk
|
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# This library is used by dl_load test to check symbol preempting
|
|
|
|
# by libdl_preempt_test_1.so
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
libdl_preempt_test_2_src_files := dl_preempt_library_2.cpp
|
|
|
|
|
|
|
|
module := libdl_preempt_test_2
|
|
|
|
include $(LOCAL_PATH)/Android.build.testlib.mk
|
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Library with DF_1_GLOBAL
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
libdl_test_df_1_global_src_files := dl_df_1_global.cpp
|
2015-04-25 01:26:03 +02:00
|
|
|
libdl_test_df_1_global_ldflags := -Wl,-z,global
|
2015-05-15 06:28:21 +02:00
|
|
|
|
2015-04-25 01:26:03 +02:00
|
|
|
# TODO (dimitry): host ld.gold does not yet support -z global
|
|
|
|
# remove this line once it is updated.
|
|
|
|
libdl_test_df_1_global_ldflags_host := -fuse-ld=bfd
|
|
|
|
|
2014-08-28 23:12:12 +02:00
|
|
|
module := libdl_test_df_1_global
|
|
|
|
include $(LOCAL_PATH)/Android.build.testlib.mk
|
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Library using symbol from libdl_test_df_1_global
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
libtest_dlsym_df_1_global_src_files := dl_df_1_use_global.cpp
|
|
|
|
module := libtest_dlsym_df_1_global
|
|
|
|
include $(LOCAL_PATH)/Android.build.testlib.mk
|
|
|
|
|
2014-06-18 00:56:38 +02:00
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Library with weak function
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
libtest_dlsym_weak_func_src_files := \
|
|
|
|
dlsym_weak_function.cpp
|
|
|
|
|
|
|
|
module := libtest_dlsym_weak_func
|
2014-09-15 23:13:24 +02:00
|
|
|
include $(LOCAL_PATH)/Android.build.testlib.mk
|
2014-12-16 20:40:46 +01:00
|
|
|
|
2015-04-01 23:45:10 +02:00
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Library to check RTLD_LOCAL with dlsym in 'this'
|
|
|
|
# -----------------------------------------------------------------------------
|
2015-05-12 20:12:27 +02:00
|
|
|
libtest_dlsym_from_this_src_files := dlsym_from_this_symbol.cpp
|
2015-04-01 23:45:10 +02:00
|
|
|
|
2015-04-04 00:17:52 +02:00
|
|
|
libtest_dlsym_from_this_shared_libraries_target := libdl
|
2015-05-12 20:12:27 +02:00
|
|
|
libtest_dlsym_from_this_shared_libraries := libtest_dlsym_from_this_child
|
|
|
|
|
|
|
|
module := libtest_dlsym_from_this
|
|
|
|
include $(LOCAL_PATH)/Android.build.testlib.mk
|
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
libtest_dlsym_from_this_child_src_files := dlsym_from_this_functions.cpp
|
|
|
|
|
|
|
|
libtest_dlsym_from_this_child_shared_libraries := libtest_dlsym_from_this_grandchild
|
|
|
|
|
|
|
|
module := libtest_dlsym_from_this_child
|
|
|
|
include $(LOCAL_PATH)/Android.build.testlib.mk
|
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
libtest_dlsym_from_this_grandchild_src_files := dlsym_from_this_symbol2.cpp
|
2015-04-01 23:45:10 +02:00
|
|
|
|
2015-05-12 20:12:27 +02:00
|
|
|
module := libtest_dlsym_from_this_grandchild
|
2015-04-01 23:45:10 +02:00
|
|
|
include $(LOCAL_PATH)/Android.build.testlib.mk
|
|
|
|
|
2015-05-30 22:04:39 +02:00
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Empty library
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
libtest_empty_src_files := empty.cpp
|
|
|
|
|
|
|
|
module := libtest_empty
|
|
|
|
include $(LOCAL_PATH)/Android.build.testlib.mk
|
|
|
|
|
2014-12-16 20:40:46 +01:00
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Library with weak undefined function
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
libtest_dlopen_weak_undefined_func_src_files := \
|
|
|
|
dlopen_weak_undefined.cpp
|
|
|
|
|
|
|
|
module := libtest_dlopen_weak_undefined_func
|
|
|
|
include $(LOCAL_PATH)/Android.build.testlib.mk
|
2015-01-23 21:03:53 +01:00
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Library with constructor that calls dlopen() b/7941716
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
libtest_dlopen_from_ctor_src_files := \
|
|
|
|
dlopen_testlib_dlopen_from_ctor.cpp
|
|
|
|
|
|
|
|
module := libtest_dlopen_from_ctor
|
|
|
|
|
2015-04-04 00:17:52 +02:00
|
|
|
libtest_dlopen_from_ctor_shared_libraries_target := libdl
|
2015-01-23 21:03:53 +01:00
|
|
|
|
2015-04-04 00:17:52 +02:00
|
|
|
include $(LOCAL_PATH)/Android.build.testlib.mk
|
2015-01-23 21:03:53 +01:00
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Library that depends on the library with constructor that calls dlopen() b/7941716
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
libtest_dlopen_from_ctor_main_src_files := empty.cpp
|
|
|
|
libtest_dlopen_from_ctor_main_shared_libraries := libtest_dlopen_from_ctor
|
|
|
|
|
|
|
|
module := libtest_dlopen_from_ctor_main
|
|
|
|
include $(LOCAL_PATH)/Android.build.testlib.mk
|