Dmitriy Ivanov | 1f5e1a3 | 2014-06-02 16:29:00 -0700 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2012 The Android Open Source Project |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # |
| 16 | |
| 17 | LOCAL_PATH := $(call my-dir) |
| 18 | TEST_PATH := $(LOCAL_PATH)/.. |
| 19 | |
Dmitriy Ivanov | 4571f31 | 2014-08-15 14:22:07 -0700 | [diff] [blame] | 20 | common_cppflags += -std=gnu++11 |
Dmitriy Ivanov | 4a9e193 | 2014-10-17 11:47:18 -0700 | [diff] [blame] | 21 | common_additional_dependencies := \ |
| 22 | $(LOCAL_PATH)/Android.mk \ |
| 23 | $(LOCAL_PATH)/Android.build.dlext_testzip.mk \ |
Dmitriy Ivanov | cfa97f1 | 2014-10-21 09:23:18 -0700 | [diff] [blame] | 24 | $(LOCAL_PATH)/Android.build.dlopen_check_order_dlsym.mk \ |
| 25 | $(LOCAL_PATH)/Android.build.dlopen_check_order_reloc_siblings.mk \ |
| 26 | $(LOCAL_PATH)/Android.build.dlopen_check_order_reloc_main_executable.mk \ |
Dmitriy Ivanov | 4a9e193 | 2014-10-17 11:47:18 -0700 | [diff] [blame] | 27 | $(LOCAL_PATH)/Android.build.testlib.mk \ |
| 28 | $(TEST_PATH)/Android.build.mk |
| 29 | |
Dmitriy Ivanov | 1f5e1a3 | 2014-06-02 16:29:00 -0700 | [diff] [blame] | 30 | # ----------------------------------------------------------------------------- |
Dmitriy Ivanov | b335677 | 2014-11-14 11:19:22 -0800 | [diff] [blame^] | 31 | # Library to test gnu-styled hash |
Dmitriy Ivanov | 1f5e1a3 | 2014-06-02 16:29:00 -0700 | [diff] [blame] | 32 | # ----------------------------------------------------------------------------- |
| 33 | ifneq ($(TARGET_ARCH),$(filter $(TARGET_ARCH),mips mips64)) |
Dmitriy Ivanov | ec18ce0 | 2014-11-09 19:27:20 -0800 | [diff] [blame] | 34 | libgnu-hash-table-library_src_files := \ |
| 35 | dlext_test_library.cpp \ |
Dmitriy Ivanov | 1f5e1a3 | 2014-06-02 16:29:00 -0700 | [diff] [blame] | 36 | |
Dmitriy Ivanov | ec18ce0 | 2014-11-09 19:27:20 -0800 | [diff] [blame] | 37 | libgnu-hash-table-library_ldflags := \ |
Dmitriy Ivanov | 1f5e1a3 | 2014-06-02 16:29:00 -0700 | [diff] [blame] | 38 | -Wl,--hash-style=gnu \ |
| 39 | |
Dmitriy Ivanov | ec18ce0 | 2014-11-09 19:27:20 -0800 | [diff] [blame] | 40 | module := libgnu-hash-table-library |
Dmitriy Ivanov | 1f5e1a3 | 2014-06-02 16:29:00 -0700 | [diff] [blame] | 41 | module_tag := optional |
Dmitriy Ivanov | eb27bba | 2014-09-15 14:13:24 -0700 | [diff] [blame] | 42 | include $(LOCAL_PATH)/Android.build.testlib.mk |
Dmitriy Ivanov | 1f5e1a3 | 2014-06-02 16:29:00 -0700 | [diff] [blame] | 43 | endif |
| 44 | |
| 45 | # ----------------------------------------------------------------------------- |
Dmitriy Ivanov | b335677 | 2014-11-14 11:19:22 -0800 | [diff] [blame^] | 46 | # Library to test sysv-styled hash |
| 47 | # ----------------------------------------------------------------------------- |
| 48 | libsysv-hash-table-library_src_files := \ |
| 49 | dlext_test_library.cpp \ |
| 50 | |
| 51 | libsysv-hash-table-library_ldflags := \ |
| 52 | -Wl,--hash-style=sysv \ |
| 53 | |
| 54 | module := libsysv-hash-table-library |
| 55 | module_tag := optional |
| 56 | include $(LOCAL_PATH)/Android.build.testlib.mk |
| 57 | |
| 58 | # ----------------------------------------------------------------------------- |
Dmitriy Ivanov | 1f5e1a3 | 2014-06-02 16:29:00 -0700 | [diff] [blame] | 59 | # Library used by dlext tests - with GNU RELRO program header |
| 60 | # ----------------------------------------------------------------------------- |
| 61 | libdlext_test_src_files := \ |
| 62 | dlext_test_library.cpp \ |
| 63 | |
| 64 | libdlext_test_ldflags := \ |
| 65 | -Wl,-z,relro \ |
| 66 | |
| 67 | module := libdlext_test |
| 68 | module_tag := optional |
Dmitriy Ivanov | eb27bba | 2014-09-15 14:13:24 -0700 | [diff] [blame] | 69 | include $(LOCAL_PATH)/Android.build.testlib.mk |
Dmitriy Ivanov | 1f5e1a3 | 2014-06-02 16:29:00 -0700 | [diff] [blame] | 70 | |
| 71 | # ----------------------------------------------------------------------------- |
| 72 | # create symlink to libdlext_test.so for symlink test |
| 73 | # ----------------------------------------------------------------------------- |
| 74 | # Use = instead of := to defer the evaluation of $@ |
Dmitriy Ivanov | eb27bba | 2014-09-15 14:13:24 -0700 | [diff] [blame] | 75 | $(TARGET_OUT)/lib/libdlext_test.so: PRIVATE_POST_INSTALL_CMD = \ |
Dmitriy Ivanov | 1f5e1a3 | 2014-06-02 16:29:00 -0700 | [diff] [blame] | 76 | $(hide) cd $(dir $@) && ln -sf $(notdir $@) libdlext_test_v2.so |
| 77 | |
| 78 | ifneq ($(TARGET_2ND_ARCH),) |
| 79 | # link 64 bit .so |
| 80 | $(TARGET_OUT)/lib64/libdlext_test.so: PRIVATE_POST_INSTALL_CMD = \ |
| 81 | $(hide) cd $(dir $@) && ln -sf $(notdir $@) libdlext_test_v2.so |
| 82 | endif |
| 83 | |
Dmitriy Ivanov | eb27bba | 2014-09-15 14:13:24 -0700 | [diff] [blame] | 84 | # host symlinks |
| 85 | $(HOST_OUT)/lib64/libdlext_test.so: PRIVATE_POST_INSTALL_CMD = \ |
| 86 | $(hide) cd $(dir $@) && ln -sf $(notdir $@) libdlext_test_v2.so |
| 87 | |
| 88 | $(HOST_OUT)/lib/libdlext_test.so: PRIVATE_POST_INSTALL_CMD = \ |
| 89 | $(hide) cd $(dir $@) && ln -sf $(notdir $@) libdlext_test_v2.so |
| 90 | |
Dmitriy Ivanov | 1f5e1a3 | 2014-06-02 16:29:00 -0700 | [diff] [blame] | 91 | # ----------------------------------------------------------------------------- |
| 92 | # Library used by dlext tests - without GNU RELRO program header |
| 93 | # ----------------------------------------------------------------------------- |
| 94 | libdlext_test_norelro_src_files := \ |
| 95 | dlext_test_library.cpp \ |
| 96 | |
| 97 | libdlext_test_norelro_ldflags := \ |
| 98 | -Wl,-z,norelro \ |
| 99 | |
| 100 | module := libdlext_test_norelro |
| 101 | module_tag := optional |
| 102 | build_type := target |
| 103 | build_target := SHARED_LIBRARY |
| 104 | include $(TEST_PATH)/Android.build.mk |
| 105 | |
| 106 | # ----------------------------------------------------------------------------- |
Dmitriy Ivanov | 04dc91a | 2014-07-01 14:10:16 -0700 | [diff] [blame] | 107 | # Library used by dlext tests - different name non-default location |
| 108 | # ----------------------------------------------------------------------------- |
| 109 | libdlext_test_fd_src_files := \ |
| 110 | dlext_test_library.cpp \ |
| 111 | |
| 112 | libdlext_test_fd_install_to_out_data := true |
| 113 | module := libdlext_test_fd |
| 114 | module_tag := optional |
| 115 | build_type := target |
| 116 | build_target := SHARED_LIBRARY |
| 117 | include $(TEST_PATH)/Android.build.mk |
| 118 | |
| 119 | # ----------------------------------------------------------------------------- |
Dmitriy Ivanov | 07e5bc1 | 2014-10-03 17:52:44 -0700 | [diff] [blame] | 120 | # Library used by dlext tests - zipped and aligned |
| 121 | # ----------------------------------------------------------------------------- |
| 122 | include $(CLEAR_VARS) |
Dmitriy Ivanov | 75d66dd | 2014-10-07 09:46:46 -0700 | [diff] [blame] | 123 | bionic_2nd_arch_prefix := |
Dmitriy Ivanov | 07e5bc1 | 2014-10-03 17:52:44 -0700 | [diff] [blame] | 124 | include $(LOCAL_PATH)/Android.build.dlext_testzip.mk |
| 125 | ifneq ($(TARGET_2ND_ARCH),) |
Dmitriy Ivanov | 75d66dd | 2014-10-07 09:46:46 -0700 | [diff] [blame] | 126 | bionic_2nd_arch_prefix := $(TARGET_2ND_ARCH_VAR_PREFIX) |
Dmitriy Ivanov | 07e5bc1 | 2014-10-03 17:52:44 -0700 | [diff] [blame] | 127 | include $(LOCAL_PATH)/Android.build.dlext_testzip.mk |
| 128 | endif |
| 129 | |
| 130 | # ----------------------------------------------------------------------------- |
Dmitriy Ivanov | 1f5e1a3 | 2014-06-02 16:29:00 -0700 | [diff] [blame] | 131 | # Library used by dlfcn tests |
| 132 | # ----------------------------------------------------------------------------- |
| 133 | libtest_simple_src_files := \ |
| 134 | dlopen_testlib_simple.cpp |
| 135 | |
| 136 | module := libtest_simple |
Dmitriy Ivanov | eb27bba | 2014-09-15 14:13:24 -0700 | [diff] [blame] | 137 | include $(LOCAL_PATH)/Android.build.testlib.mk |
Dmitriy Ivanov | 1f5e1a3 | 2014-06-02 16:29:00 -0700 | [diff] [blame] | 138 | |
Dmitriy Ivanov | d97e9f5 | 2014-06-29 12:28:37 -0700 | [diff] [blame] | 139 | # ----------------------------------------------------------------------------- |
Dmitriy Ivanov | 1b20daf | 2014-05-19 15:06:58 -0700 | [diff] [blame] | 140 | # Library used by dlfcn nodelete tests |
| 141 | # ----------------------------------------------------------------------------- |
| 142 | libtest_nodelete_1_src_files := \ |
| 143 | dlopen_nodelete_1.cpp |
| 144 | |
| 145 | module := libtest_nodelete_1 |
| 146 | include $(LOCAL_PATH)/Android.build.testlib.mk |
| 147 | |
| 148 | # ----------------------------------------------------------------------------- |
| 149 | # Library used by dlfcn nodelete tests |
| 150 | # ----------------------------------------------------------------------------- |
| 151 | libtest_nodelete_2_src_files := \ |
| 152 | dlopen_nodelete_2.cpp |
| 153 | |
| 154 | module := libtest_nodelete_2 |
| 155 | include $(LOCAL_PATH)/Android.build.testlib.mk |
| 156 | |
| 157 | # ----------------------------------------------------------------------------- |
| 158 | # Library used by dlfcn nodelete tests |
| 159 | # ----------------------------------------------------------------------------- |
| 160 | libtest_nodelete_dt_flags_1_src_files := \ |
| 161 | dlopen_nodelete_dt_flags_1.cpp |
| 162 | |
| 163 | libtest_nodelete_dt_flags_1_ldflags := -Wl,-z,nodelete |
| 164 | |
| 165 | module := libtest_nodelete_dt_flags_1 |
| 166 | include $(LOCAL_PATH)/Android.build.testlib.mk |
| 167 | |
| 168 | # ----------------------------------------------------------------------------- |
Dmitriy Ivanov | cfa97f1 | 2014-10-21 09:23:18 -0700 | [diff] [blame] | 169 | # Build libtest_check_order_dlsym.so with its dependencies. |
Dmitriy Ivanov | 14669a9 | 2014-09-05 16:42:53 -0700 | [diff] [blame] | 170 | # ----------------------------------------------------------------------------- |
Dmitriy Ivanov | cfa97f1 | 2014-10-21 09:23:18 -0700 | [diff] [blame] | 171 | include $(LOCAL_PATH)/Android.build.dlopen_check_order_dlsym.mk |
Dmitriy Ivanov | 14669a9 | 2014-09-05 16:42:53 -0700 | [diff] [blame] | 172 | |
| 173 | # ----------------------------------------------------------------------------- |
Dmitriy Ivanov | cfa97f1 | 2014-10-21 09:23:18 -0700 | [diff] [blame] | 174 | # Build libtest_check_order_siblings.so with its dependencies. |
Dmitriy Ivanov | 14669a9 | 2014-09-05 16:42:53 -0700 | [diff] [blame] | 175 | # ----------------------------------------------------------------------------- |
Dmitriy Ivanov | cfa97f1 | 2014-10-21 09:23:18 -0700 | [diff] [blame] | 176 | include $(LOCAL_PATH)/Android.build.dlopen_check_order_reloc_siblings.mk |
Dmitriy Ivanov | 14669a9 | 2014-09-05 16:42:53 -0700 | [diff] [blame] | 177 | |
| 178 | # ----------------------------------------------------------------------------- |
Dmitriy Ivanov | cfa97f1 | 2014-10-21 09:23:18 -0700 | [diff] [blame] | 179 | # Build libtest_check_order_root.so with its dependencies. |
Dmitriy Ivanov | 14669a9 | 2014-09-05 16:42:53 -0700 | [diff] [blame] | 180 | # ----------------------------------------------------------------------------- |
Dmitriy Ivanov | cfa97f1 | 2014-10-21 09:23:18 -0700 | [diff] [blame] | 181 | include $(LOCAL_PATH)/Android.build.dlopen_check_order_reloc_main_executable.mk |
Dmitriy Ivanov | 14669a9 | 2014-09-05 16:42:53 -0700 | [diff] [blame] | 182 | |
| 183 | # ----------------------------------------------------------------------------- |
| 184 | # Library with dependency loop used by dlfcn tests |
| 185 | # |
| 186 | # libtest_with_dependency_loop -> a -> b -> c -> a |
| 187 | # ----------------------------------------------------------------------------- |
Dmitriy Ivanov | a6ac54a | 2014-09-09 10:21:42 -0700 | [diff] [blame] | 188 | libtest_with_dependency_loop_src_files := dlopen_testlib_invalid.cpp |
Dmitriy Ivanov | 14669a9 | 2014-09-05 16:42:53 -0700 | [diff] [blame] | 189 | |
| 190 | libtest_with_dependency_loop_shared_libraries := \ |
| 191 | libtest_with_dependency_loop_a |
| 192 | |
| 193 | module := libtest_with_dependency_loop |
Dmitriy Ivanov | eb27bba | 2014-09-15 14:13:24 -0700 | [diff] [blame] | 194 | include $(LOCAL_PATH)/Android.build.testlib.mk |
Dmitriy Ivanov | 14669a9 | 2014-09-05 16:42:53 -0700 | [diff] [blame] | 195 | |
| 196 | # ----------------------------------------------------------------------------- |
| 197 | # libtest_with_dependency_loop_a.so |
| 198 | # ----------------------------------------------------------------------------- |
Dmitriy Ivanov | a6ac54a | 2014-09-09 10:21:42 -0700 | [diff] [blame] | 199 | libtest_with_dependency_loop_a_src_files := dlopen_testlib_invalid.cpp |
Dmitriy Ivanov | 14669a9 | 2014-09-05 16:42:53 -0700 | [diff] [blame] | 200 | |
| 201 | libtest_with_dependency_loop_a_shared_libraries := \ |
| 202 | libtest_with_dependency_loop_b_tmp |
| 203 | |
| 204 | module := libtest_with_dependency_loop_a |
Dmitriy Ivanov | eb27bba | 2014-09-15 14:13:24 -0700 | [diff] [blame] | 205 | include $(LOCAL_PATH)/Android.build.testlib.mk |
Dmitriy Ivanov | 14669a9 | 2014-09-05 16:42:53 -0700 | [diff] [blame] | 206 | |
| 207 | # ----------------------------------------------------------------------------- |
| 208 | # libtest_with_dependency_loop_b.so |
| 209 | # |
| 210 | # this is temporary placeholder - will be removed |
| 211 | # ----------------------------------------------------------------------------- |
Dmitriy Ivanov | a6ac54a | 2014-09-09 10:21:42 -0700 | [diff] [blame] | 212 | libtest_with_dependency_loop_b_tmp_src_files := dlopen_testlib_invalid.cpp |
Dmitriy Ivanov | 14669a9 | 2014-09-05 16:42:53 -0700 | [diff] [blame] | 213 | libtest_with_dependency_loop_b_tmp_ldflags := -Wl,-soname=libtest_with_dependency_loop_b.so |
| 214 | |
| 215 | module := libtest_with_dependency_loop_b_tmp |
Dmitriy Ivanov | eb27bba | 2014-09-15 14:13:24 -0700 | [diff] [blame] | 216 | include $(LOCAL_PATH)/Android.build.testlib.mk |
Dmitriy Ivanov | 14669a9 | 2014-09-05 16:42:53 -0700 | [diff] [blame] | 217 | |
| 218 | # ----------------------------------------------------------------------------- |
| 219 | # libtest_with_dependency_loop_b.so |
| 220 | # ----------------------------------------------------------------------------- |
Dmitriy Ivanov | a6ac54a | 2014-09-09 10:21:42 -0700 | [diff] [blame] | 221 | libtest_with_dependency_loop_b_src_files := dlopen_testlib_invalid.cpp |
Dmitriy Ivanov | 14669a9 | 2014-09-05 16:42:53 -0700 | [diff] [blame] | 222 | libtest_with_dependency_loop_b_shared_libraries := libtest_with_dependency_loop_c |
| 223 | |
| 224 | module := libtest_with_dependency_loop_b |
Dmitriy Ivanov | eb27bba | 2014-09-15 14:13:24 -0700 | [diff] [blame] | 225 | include $(LOCAL_PATH)/Android.build.testlib.mk |
Dmitriy Ivanov | 14669a9 | 2014-09-05 16:42:53 -0700 | [diff] [blame] | 226 | |
| 227 | # ----------------------------------------------------------------------------- |
| 228 | # libtest_with_dependency_loop_c.so |
| 229 | # ----------------------------------------------------------------------------- |
Dmitriy Ivanov | a6ac54a | 2014-09-09 10:21:42 -0700 | [diff] [blame] | 230 | libtest_with_dependency_loop_c_src_files := dlopen_testlib_invalid.cpp |
Dmitriy Ivanov | 14669a9 | 2014-09-05 16:42:53 -0700 | [diff] [blame] | 231 | |
| 232 | libtest_with_dependency_loop_c_shared_libraries := \ |
| 233 | libtest_with_dependency_loop_a |
| 234 | |
| 235 | module := libtest_with_dependency_loop_c |
Dmitriy Ivanov | eb27bba | 2014-09-15 14:13:24 -0700 | [diff] [blame] | 236 | include $(LOCAL_PATH)/Android.build.testlib.mk |
Dmitriy Ivanov | 14669a9 | 2014-09-05 16:42:53 -0700 | [diff] [blame] | 237 | |
| 238 | # ----------------------------------------------------------------------------- |
Dmitriy Ivanov | b2a30ee | 2014-09-04 18:23:00 -0700 | [diff] [blame] | 239 | # libtest_relo_check_dt_needed_order.so |
| 240 | # | |
| 241 | # +-> libtest_relo_check_dt_needed_order_1.so |
| 242 | # | |
| 243 | # +-> libtest_relo_check_dt_needed_order_2.so |
| 244 | # ----------------------------------------------------------------------------- |
| 245 | libtest_relo_check_dt_needed_order_shared_libraries := \ |
| 246 | libtest_relo_check_dt_needed_order_1 libtest_relo_check_dt_needed_order_2 |
| 247 | |
| 248 | libtest_relo_check_dt_needed_order_src_files := dlopen_testlib_relo_check_dt_needed_order.cpp |
| 249 | libtest_relo_check_dt_needed_order_1_src_files := dlopen_testlib_relo_check_dt_needed_order_1.cpp |
| 250 | libtest_relo_check_dt_needed_order_2_src_files := dlopen_testlib_relo_check_dt_needed_order_2.cpp |
Dmitriy Ivanov | b2a30ee | 2014-09-04 18:23:00 -0700 | [diff] [blame] | 251 | |
| 252 | module := libtest_relo_check_dt_needed_order |
Dmitriy Ivanov | eb27bba | 2014-09-15 14:13:24 -0700 | [diff] [blame] | 253 | include $(LOCAL_PATH)/Android.build.testlib.mk |
Dmitriy Ivanov | b2a30ee | 2014-09-04 18:23:00 -0700 | [diff] [blame] | 254 | module := libtest_relo_check_dt_needed_order_1 |
Dmitriy Ivanov | eb27bba | 2014-09-15 14:13:24 -0700 | [diff] [blame] | 255 | include $(LOCAL_PATH)/Android.build.testlib.mk |
Dmitriy Ivanov | b2a30ee | 2014-09-04 18:23:00 -0700 | [diff] [blame] | 256 | module := libtest_relo_check_dt_needed_order_2 |
Dmitriy Ivanov | eb27bba | 2014-09-15 14:13:24 -0700 | [diff] [blame] | 257 | include $(LOCAL_PATH)/Android.build.testlib.mk |
Dmitriy Ivanov | b2a30ee | 2014-09-04 18:23:00 -0700 | [diff] [blame] | 258 | |
| 259 | # ----------------------------------------------------------------------------- |
Dmitriy Ivanov | aa0f2bd | 2014-07-28 17:32:20 -0700 | [diff] [blame] | 260 | # Library with dependency used by dlfcn tests |
| 261 | # ----------------------------------------------------------------------------- |
| 262 | libtest_with_dependency_src_files := \ |
| 263 | dlopen_testlib_simple.cpp |
| 264 | |
| 265 | libtest_with_dependency_shared_libraries := libdlext_test |
| 266 | |
| 267 | module := libtest_with_dependency |
Dmitriy Ivanov | eb27bba | 2014-09-15 14:13:24 -0700 | [diff] [blame] | 268 | include $(LOCAL_PATH)/Android.build.testlib.mk |
Dmitriy Ivanov | aa0f2bd | 2014-07-28 17:32:20 -0700 | [diff] [blame] | 269 | |
| 270 | # ----------------------------------------------------------------------------- |
Brigid Smith | c5a13ef | 2014-07-23 11:22:25 -0700 | [diff] [blame] | 271 | # Library used by ifunc tests |
| 272 | # ----------------------------------------------------------------------------- |
Dmitriy Ivanov | eb27bba | 2014-09-15 14:13:24 -0700 | [diff] [blame] | 273 | libtest_ifunc_src_files := \ |
| 274 | dlopen_testlib_ifunc.c |
| 275 | |
| 276 | libtest_ifunc_clang_host := false |
| 277 | module := libtest_ifunc |
| 278 | build_target := SHARED_LIBRARY |
| 279 | |
| 280 | build_type := host |
| 281 | include $(TEST_PATH)/Android.build.mk |
| 282 | |
Dmitriy Ivanov | 9aea164 | 2014-09-11 15:16:03 -0700 | [diff] [blame] | 283 | ifeq ($(TARGET_ARCH),$(filter $(TARGET_ARCH),arm64 x86 x86_64)) |
Dmitriy Ivanov | 9aea164 | 2014-09-11 15:16:03 -0700 | [diff] [blame] | 284 | ifeq ($(TARGET_ARCH),arm64) |
| 285 | libtest_ifunc_multilib := 64 |
| 286 | # TODO: This is a workaround - remove it once gcc |
| 287 | # removes its Android ifunc checks |
| 288 | libtest_ifunc_cflags := -mglibc |
| 289 | endif |
| 290 | |
Dmitriy Ivanov | eb27bba | 2014-09-15 14:13:24 -0700 | [diff] [blame] | 291 | build_type := target |
Chih-Hung Hsieh | b086298 | 2014-10-24 11:04:51 -0700 | [diff] [blame] | 292 | libtest_ifunc_clang_target := false |
Brigid Smith | c5a13ef | 2014-07-23 11:22:25 -0700 | [diff] [blame] | 293 | include $(TEST_PATH)/Android.build.mk |
| 294 | endif |
| 295 | |
| 296 | # ----------------------------------------------------------------------------- |
Dmitriy Ivanov | 1f5e1a3 | 2014-06-02 16:29:00 -0700 | [diff] [blame] | 297 | # Library used by atexit tests |
| 298 | # ----------------------------------------------------------------------------- |
| 299 | |
| 300 | libtest_atexit_src_files := \ |
| 301 | atexit_testlib.cpp |
| 302 | |
| 303 | module := libtest_atexit |
Dmitriy Ivanov | eb27bba | 2014-09-15 14:13:24 -0700 | [diff] [blame] | 304 | include $(LOCAL_PATH)/Android.build.testlib.mk |
Dmitriy Ivanov | 1f5e1a3 | 2014-06-02 16:29:00 -0700 | [diff] [blame] | 305 | |
Dmitriy Ivanov | ce44166 | 2014-06-17 15:56:38 -0700 | [diff] [blame] | 306 | # ----------------------------------------------------------------------------- |
Dmitriy Ivanov | d225a5e | 2014-08-28 14:12:12 -0700 | [diff] [blame] | 307 | # This library is used by dl_load test to check symbol preempting |
| 308 | # by main executable |
| 309 | # ----------------------------------------------------------------------------- |
| 310 | libdl_preempt_test_1_src_files := dl_preempt_library_1.cpp |
| 311 | |
| 312 | module := libdl_preempt_test_1 |
| 313 | include $(LOCAL_PATH)/Android.build.testlib.mk |
| 314 | |
| 315 | # ----------------------------------------------------------------------------- |
| 316 | # This library is used by dl_load test to check symbol preempting |
| 317 | # by libdl_preempt_test_1.so |
| 318 | # ----------------------------------------------------------------------------- |
| 319 | libdl_preempt_test_2_src_files := dl_preempt_library_2.cpp |
| 320 | |
| 321 | module := libdl_preempt_test_2 |
| 322 | include $(LOCAL_PATH)/Android.build.testlib.mk |
| 323 | |
| 324 | # ----------------------------------------------------------------------------- |
| 325 | # Library with DF_1_GLOBAL |
| 326 | # ----------------------------------------------------------------------------- |
| 327 | # TODO: re-enable arm once b/18137520 or b/18130452 are fixed |
Dmitriy Ivanov | 4e446b1 | 2014-10-31 17:27:02 -0700 | [diff] [blame] | 328 | ifeq ($(filter $(TARGET_ARCH),arm arm64),) |
Dmitriy Ivanov | d225a5e | 2014-08-28 14:12:12 -0700 | [diff] [blame] | 329 | libdl_test_df_1_global_src_files := dl_df_1_global.cpp |
| 330 | libdl_test_df_1_global_ldflags := -fuse-ld=bfd -Wl,-z,global |
| 331 | module := libdl_test_df_1_global |
| 332 | include $(LOCAL_PATH)/Android.build.testlib.mk |
| 333 | endif |
| 334 | |
| 335 | # ----------------------------------------------------------------------------- |
| 336 | # Library using symbol from libdl_test_df_1_global |
| 337 | # ----------------------------------------------------------------------------- |
| 338 | libtest_dlsym_df_1_global_src_files := dl_df_1_use_global.cpp |
| 339 | module := libtest_dlsym_df_1_global |
| 340 | include $(LOCAL_PATH)/Android.build.testlib.mk |
| 341 | |
| 342 | # ----------------------------------------------------------------------------- |
Dmitriy Ivanov | ce44166 | 2014-06-17 15:56:38 -0700 | [diff] [blame] | 343 | # Library with weak function |
| 344 | # ----------------------------------------------------------------------------- |
| 345 | libtest_dlsym_weak_func_src_files := \ |
| 346 | dlsym_weak_function.cpp |
| 347 | |
| 348 | module := libtest_dlsym_weak_func |
Dmitriy Ivanov | eb27bba | 2014-09-15 14:13:24 -0700 | [diff] [blame] | 349 | include $(LOCAL_PATH)/Android.build.testlib.mk |