diff options
author | Szabolcs Nagy <nsz@port70.net> | 2015-04-30 18:50:04 +0100 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2015-04-30 16:22:57 -0400 |
commit | 18f75b80fd67fd7348fcfb807216f654597b592f (patch) | |
tree | 5c09a03a4c5d682eccf1ce5d727affc6beea593b | |
parent | 4e50b2e4b5c32b804324eb6967a9ca72c9a2b654 (diff) | |
download | musl-18f75b80fd67fd7348fcfb807216f654597b592f.tar.gz musl-18f75b80fd67fd7348fcfb807216f654597b592f.tar.xz musl-18f75b80fd67fd7348fcfb807216f654597b592f.zip |
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).
-rw-r--r-- | arch/aarch64/syscall_arch.h | 2 | ||||
-rw-r--r-- | arch/arm/syscall_arch.h | 2 | ||||
-rw-r--r-- | arch/microblaze/syscall_arch.h | 2 | ||||
-rw-r--r-- | arch/mips/syscall_arch.h | 3 | ||||
-rw-r--r-- | arch/or1k/syscall_arch.h | 2 |
5 files changed, 3 insertions, 8 deletions
diff --git a/arch/aarch64/syscall_arch.h b/arch/aarch64/syscall_arch.h index ec7cc785..a92bff97 100644 --- a/arch/aarch64/syscall_arch.h +++ b/arch/aarch64/syscall_arch.h @@ -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"); \ diff --git a/arch/arm/syscall_arch.h b/arch/arm/syscall_arch.h index c1c94666..199ad2a6 100644 --- a/arch/arm/syscall_arch.h +++ b/arch/arm/syscall_arch.h @@ -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"); \ diff --git a/arch/microblaze/syscall_arch.h b/arch/microblaze/syscall_arch.h index 79f98340..8e2de7ea 100644 --- a/arch/microblaze/syscall_arch.h +++ b/arch/microblaze/syscall_arch.h @@ -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) diff --git a/arch/mips/syscall_arch.h b/arch/mips/syscall_arch.h index 69b8154f..1b1179c4 100644 --- a/arch/mips/syscall_arch.h +++ b/arch/mips/syscall_arch.h @@ -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) diff --git a/arch/or1k/syscall_arch.h b/arch/or1k/syscall_arch.h index 3e4650cc..caff7ece 100644 --- a/arch/or1k/syscall_arch.h +++ b/arch/or1k/syscall_arch.h @@ -5,8 +5,6 @@ #define SYSCALL_MMAP2_UNIT 8192ULL -long (__syscall)(long, ...); - #ifndef __clang__ static __inline long __syscall0(long n) |