remove __syscall declaration where it is not needed (aarch64, arm, microblaze, or1k) and add the hidden attribute where it is (mips).
@@ -3,8 +3,6 @@
((union { long long ll; long l[2]; }){ .ll = x }).l[1]
#define __SYSCALL_LL_O(x) 0, __SYSCALL_LL_E((x))
-long (__syscall)(long, ...);
-
#define __asm_syscall(...) do { \
__asm__ __volatile__ ( "svc 0" \
: "=r"(x0) : __VA_ARGS__ : "memory", "cc"); \
: "=r"(r0) : __VA_ARGS__ : "memory"); \
#ifndef __clang__
static __inline long __syscall0(long n)
@@ -3,6 +3,9 @@
+#ifdef SHARED
+__attribute__((visibility("hidden")))
+#endif
long (__syscall)(long, ...);
#define SYSCALL_RLIM_INFINITY (-1UL/2)
@@ -5,8 +5,6 @@
#define SYSCALL_MMAP2_UNIT 8192ULL