提交 7405cd1e 编写于 作者: R Rich Felker

fix inconsistent visibility for internal syscall symbols

上级 72b25ddb
.global __syscall .global __syscall
.hidden __syscall
.type __syscall,%function .type __syscall,%function
__syscall: __syscall:
uxtw x8,w0 uxtw x8,w0
......
.global __syscall .global __syscall
.hidden __syscall
.type __syscall,%function .type __syscall,%function
__syscall: __syscall:
mov ip,sp mov ip,sp
......
...@@ -59,6 +59,7 @@ __vsyscall6: ...@@ -59,6 +59,7 @@ __vsyscall6:
ret ret
.global __syscall .global __syscall
.hidden __syscall
.type __syscall,@function .type __syscall,@function
__syscall: __syscall:
lea 24(%esp),%eax lea 24(%esp),%eax
......
.global __syscall .global __syscall
.hidden __syscall
.type __syscall,@function .type __syscall,@function
__syscall: __syscall:
addi r12, r5, 0 # Save the system call number addi r12, r5, 0 # Save the system call number
......
.set noreorder .set noreorder
.global __syscall .global __syscall
.hidden __syscall
.type __syscall,@function .type __syscall,@function
__syscall: __syscall:
move $2, $4 move $2, $4
......
.global __syscall .global __syscall
.hidden __syscall
.type __syscall,@function .type __syscall,@function
__syscall: __syscall:
l.ori r11, r3, 0 l.ori r11, r3, 0
......
.global __syscall .global __syscall
.hidden __syscall
.type __syscall,@function .type __syscall,@function
__syscall: __syscall:
mr 0, 3 # Save the system call number mr 0, 3 # Save the system call number
......
.global __syscall .global __syscall
.hidden __syscall
.type __syscall, @function .type __syscall, @function
__syscall: __syscall:
! The kernel syscall entry point documents that the trap number indicates ! The kernel syscall entry point documents that the trap number indicates
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
typedef long syscall_arg_t; typedef long syscall_arg_t;
#endif #endif
#if defined(__PIC__) && (100*__GNUC__+__GNUC_MINOR__ >= 303) #ifdef SHARED
__attribute__((visibility("hidden"))) __attribute__((visibility("hidden")))
#endif #endif
long __syscall_ret(unsigned long), __syscall(syscall_arg_t, ...), long __syscall_ret(unsigned long), __syscall(syscall_arg_t, ...),
......
.global __syscall .global __syscall
.hidden __syscall
.type __syscall,@function .type __syscall,@function
__syscall: __syscall:
movq %rdi,%rax movq %rdi,%rax
......
.global __syscall .global __syscall
.hidden __syscall
.type __syscall,@function .type __syscall,@function
__syscall: __syscall:
movq %rdi,%rax movq %rdi,%rax
......
#include "pthread_impl.h" #include "pthread_impl.h"
#include "syscall.h" #include "syscall.h"
#ifdef SHARED
__attribute__((__visibility__("hidden")))
#endif
long __syscall_cp_c();
static long sccp(syscall_arg_t nr, static long sccp(syscall_arg_t nr,
syscall_arg_t u, syscall_arg_t v, syscall_arg_t w, syscall_arg_t u, syscall_arg_t v, syscall_arg_t w,
syscall_arg_t x, syscall_arg_t y, syscall_arg_t z) syscall_arg_t x, syscall_arg_t y, syscall_arg_t z)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册