From 244df24bf411a396ceaf69f8a80a98e5629ee584 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Sun, 2 Apr 2023 00:20:26 +0200 Subject: [PATCH] linux: remove arm oabi support (#3942) The last major distro that supported the oabi calling convention was Debian 5 (Lenny) and that went out of support in February 2012. It seems like a fairly safe assumption that nothing speaks oabi anymore in this day and age. Fixes: https://github.com/libuv/libuv/issues/3935 --- src/unix/linux.c | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/src/unix/linux.c b/src/unix/linux.c index e6ce2f3c..0512417a 100644 --- a/src/unix/linux.c +++ b/src/unix/linux.c @@ -47,14 +47,6 @@ #include #include -#if defined(__arm__) -# if defined(__thumb__) || defined(__ARM_EABI__) -# define UV_SYSCALL_BASE 0 -# else -# define UV_SYSCALL_BASE 0x900000 -# endif -#endif /* __arm__ */ - #ifndef __NR_copy_file_range # if defined(__x86_64__) # define __NR_copy_file_range 326 @@ -63,7 +55,7 @@ # elif defined(__s390__) # define __NR_copy_file_range 375 # elif defined(__arm__) -# define __NR_copy_file_range (UV_SYSCALL_BASE + 391) +# define __NR_copy_file_range 391 # elif defined(__aarch64__) # define __NR_copy_file_range 285 # elif defined(__powerpc__) @@ -81,7 +73,7 @@ # elif defined(__aarch64__) # define __NR_statx 397 # elif defined(__arm__) -# define __NR_statx (UV_SYSCALL_BASE + 397) +# define __NR_statx 397 # elif defined(__ppc__) # define __NR_statx 383 # elif defined(__s390__) @@ -97,7 +89,7 @@ # elif defined(__aarch64__) # define __NR_getrandom 384 # elif defined(__arm__) -# define __NR_getrandom (UV_SYSCALL_BASE + 384) +# define __NR_getrandom 384 # elif defined(__ppc__) # define __NR_getrandom 359 # elif defined(__s390__)