Do not test ifunc on mips

This commit fixes mips build

Bug: http://b/28009632
Change-Id: I5c657b31947791aea4cc02a2fc4ede6d0ecde851
This commit is contained in:
Dimitry Ivanov 2016-04-05 17:12:01 -07:00
parent 66606ff84c
commit 0a2ab0203c
2 changed files with 12 additions and 2 deletions

View File

@ -211,6 +211,8 @@ TEST(dlfcn, dlopen_by_soname) {
dlclose(handle);
}
// mips doesn't support ifuncs
#if !defined(__mips__)
TEST(dlfcn, ifunc) {
typedef const char* (*fn_ptr)();
@ -254,6 +256,7 @@ TEST(dlfcn, ifunc_ctor_call) {
ASSERT_STREQ("true", is_ctor_called());
dlclose(handle);
}
#endif
TEST(dlfcn, dlopen_check_relocation_dt_needed_order) {
// This is the structure of the test library and

View File

@ -348,12 +348,19 @@ libtest_ifunc_src_files := \
# TODO(dimitry): clang does not support ifunc attribute
libtest_ifunc_clang_host := false
libtest_ifunc_clang_target := false
module := libtest_ifunc
build_target := SHARED_LIBRARY
include $(LOCAL_PATH)/Android.build.testlib.mk
build_type := host
include $(TEST_PATH)/Android.build.mk
ifeq ($(TARGET_ARCH),$(filter $(TARGET_ARCH),arm arm64 x86 x86_64))
build_type := target
libtest_ifunc_clang_target := false
include $(TEST_PATH)/Android.build.mk
endif
# -----------------------------------------------------------------------------
# Library used by atexit tests