fix __syscall declaration with wrong visibility in syscall_arch.h

remove __syscall declaration where it is not needed (aarch64, arm,
microblaze, or1k) and add the hidden attribute where it is (mips).
This commit is contained in:
Szabolcs Nagy 2015-04-30 18:50:04 +01:00 committed by Rich Felker
parent 4e50b2e4b5
commit 18f75b80fd
5 changed files with 3 additions and 8 deletions

View File

@ -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"); \

View File

@ -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"(r0) : __VA_ARGS__ : "memory"); \

View File

@ -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, ...);
#ifndef __clang__
static __inline long __syscall0(long n)

View File

@ -3,6 +3,9 @@
((union { long long ll; long l[2]; }){ .ll = x }).l[1]
#define __SYSCALL_LL_O(x) 0, __SYSCALL_LL_E((x))
#ifdef SHARED
__attribute__((visibility("hidden")))
#endif
long (__syscall)(long, ...);
#define SYSCALL_RLIM_INFINITY (-1UL/2)

View File

@ -5,8 +5,6 @@
#define SYSCALL_MMAP2_UNIT 8192ULL
long (__syscall)(long, ...);
#ifndef __clang__
static __inline long __syscall0(long n)