@@ -1,4 +1,5 @@
.global __syscall
+.hidden __syscall
.type __syscall,%function
__syscall:
uxtw x8,w0
mov ip,sp
@@ -59,6 +59,7 @@ __vsyscall6:
ret
.type __syscall,@function
lea 24(%esp),%eax
addi r12, r5, 0 # Save the system call number
@@ -1,6 +1,7 @@
.set noreorder
move $2, $4
l.ori r11, r3, 0
+ .hidden __syscall
mr 0, 3 # Save the system call number
.type __syscall, @function
! The kernel syscall entry point documents that the trap number indicates
@@ -17,7 +17,7 @@
typedef long syscall_arg_t;
#endif
-#if defined(__PIC__) && (100*__GNUC__+__GNUC_MINOR__ >= 303)
+#ifdef SHARED
__attribute__((visibility("hidden")))
long __syscall_ret(unsigned long), __syscall(syscall_arg_t, ...),
movq %rdi,%rax
@@ -1,6 +1,11 @@
#include "pthread_impl.h"
#include "syscall.h"
+__attribute__((__visibility__("hidden")))
+#endif
+long __syscall_cp_c();
+
static long sccp(syscall_arg_t nr,
syscall_arg_t u, syscall_arg_t v, syscall_arg_t w,
syscall_arg_t x, syscall_arg_t y, syscall_arg_t z)