From e1c6e17400389c7d340f5dffe7a6ee07968a2a11 Mon Sep 17 00:00:00 2001 From: Masamichi Takagi Date: Fri, 19 Jul 2019 11:58:40 +0900 Subject: [PATCH] uti: Use only general registers in libmck_syscall_intercept.so Change-Id: I8e8e98bdc7e621aa111c0940d915ebe1775a10c3 --- executer/user/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/executer/user/CMakeLists.txt b/executer/user/CMakeLists.txt index e9076be4..de3fdd8f 100644 --- a/executer/user/CMakeLists.txt +++ b/executer/user/CMakeLists.txt @@ -58,6 +58,9 @@ endif() if (ENABLE_UTI) add_library(mck_syscall_intercept SHARED syscall_intercept.c arch/${ARCH}/archdep_c.c) + if (${ARCH} STREQUAL "arm64") + set_source_files_properties(syscall_intercept.c PROPERTIES COMPILE_FLAGS -mgeneral-regs-only) + endif() target_link_libraries(mck_syscall_intercept ${LIBSYSCALL_INTERCEPT_LIBRARIES}) target_include_directories(mck_syscall_intercept PRIVATE ${LIBSYSCALL_INTERCEPT_INCLUDE_DIRS}) set_target_properties(mck_syscall_intercept PROPERTIES INSTALL_RPATH_USE_LINK_PATH TRUE)