Do not test ifunc on mips
This commit fixes mips build Bug: http://b/28009632 Change-Id: I5c657b31947791aea4cc02a2fc4ede6d0ecde851
This commit is contained in:
parent
66606ff84c
commit
0a2ab0203c
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue