From 14def4474ea1c20c0ad7f960bbee7bd876c4233a Mon Sep 17 00:00:00 2001 From: anotherjin <25584417+anotherjin@users.noreply.github.com> Date: Thu, 25 Apr 2024 23:44:53 +0800 Subject: [PATCH] Fix x86_64 and remove unused symbols --- kernel/arch.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/kernel/arch.h b/kernel/arch.h index 2ef7b681bc8e..d6be675495e0 100644 --- a/kernel/arch.h +++ b/kernel/arch.h @@ -24,18 +24,12 @@ #define SYS_NEWFSTATAT_SYMBOL "__arm64_sys_newfstatat" #define SYS_FACCESSAT_SYMBOL "__arm64_sys_faccessat" #define SYS_EXECVE_SYMBOL "__arm64_sys_execve" -#define SYS_EXECVEAT_SYMBOL "__arm64_sys_execveat" -#define COMPAT_SYS_EXECVE_SYMBOL "__arm64_compat_sys_execve" -#define COMPAT_SYS_EXECVEAT_SYMBOL "__arm64_compat_sys_execveat" #else #define PRCTL_SYMBOL "sys_prctl" #define SYS_READ_SYMBOL "sys_read" #define SYS_NEWFSTATAT_SYMBOL "sys_newfstatat" #define SYS_FACCESSAT_SYMBOL "sys_faccessat" #define SYS_EXECVE_SYMBOL "sys_execve" -#define SYS_EXECVEAT_SYMBOL "sys_execveat" -#define COMPAT_SYS_EXECVE_SYMBOL "compat_sys_execve" -#define COMPAT_SYS_EXECVEAT_SYMBOL "compat_sys_execveat" #endif #elif defined(__x86_64__) @@ -58,11 +52,13 @@ #define SYS_READ_SYMBOL "__x64_sys_read" #define SYS_NEWFSTATAT_SYMBOL "__x64_sys_newfstatat" #define SYS_FACCESSAT_SYMBOL "__x64_sys_faccessat" +#define SYS_EXECVE_SYMBOL "__x64_sys_execve" #else #define PRCTL_SYMBOL "sys_prctl" #define SYS_READ_SYMBOL "sys_read" #define SYS_NEWFSTATAT_SYMBOL "sys_newfstatat" #define SYS_FACCESSAT_SYMBOL "sys_faccessat" +#define SYS_EXECVE_SYMBOL "sys_execve" #endif #else