projects
/
musl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
72b25dd
)
fix inconsistent visibility for internal syscall symbols
author
Rich Felker
<dalias@aerifal.cx>
Tue, 14 Apr 2015 17:48:20 +0000
(13:48 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Tue, 14 Apr 2015 17:48:20 +0000
(13:48 -0400)
12 files changed:
src/internal/aarch64/syscall.s
patch
|
blob
|
history
src/internal/arm/syscall.s
patch
|
blob
|
history
src/internal/i386/syscall.s
patch
|
blob
|
history
src/internal/microblaze/syscall.s
patch
|
blob
|
history
src/internal/mips/syscall.s
patch
|
blob
|
history
src/internal/or1k/syscall.s
patch
|
blob
|
history
src/internal/powerpc/syscall.s
patch
|
blob
|
history
src/internal/sh/syscall.s
patch
|
blob
|
history
src/internal/syscall.h
patch
|
blob
|
history
src/internal/x32/syscall.s
patch
|
blob
|
history
src/internal/x86_64/syscall.s
patch
|
blob
|
history
src/thread/__syscall_cp.c
patch
|
blob
|
history
diff --git
a/src/internal/aarch64/syscall.s
b/src/internal/aarch64/syscall.s
index
48fac92
..
845986b
100644
(file)
--- a/
src/internal/aarch64/syscall.s
+++ b/
src/internal/aarch64/syscall.s
@@
-1,4
+1,5
@@
.global __syscall
.global __syscall
+.hidden __syscall
.type __syscall,%function
__syscall:
uxtw x8,w0
.type __syscall,%function
__syscall:
uxtw x8,w0
diff --git
a/src/internal/arm/syscall.s
b/src/internal/arm/syscall.s
index
c5ae25c
..
2028456
100644
(file)
--- a/
src/internal/arm/syscall.s
+++ b/
src/internal/arm/syscall.s
@@
-1,4
+1,5
@@
.global __syscall
.global __syscall
+.hidden __syscall
.type __syscall,%function
__syscall:
mov ip,sp
.type __syscall,%function
__syscall:
mov ip,sp
diff --git
a/src/internal/i386/syscall.s
b/src/internal/i386/syscall.s
index
739201a
..
0ebf221
100644
(file)
--- a/
src/internal/i386/syscall.s
+++ b/
src/internal/i386/syscall.s
@@
-59,6
+59,7
@@
__vsyscall6:
ret
.global __syscall
ret
.global __syscall
+.hidden __syscall
.type __syscall,@function
__syscall:
lea 24(%esp),%eax
.type __syscall,@function
__syscall:
lea 24(%esp),%eax
diff --git
a/src/internal/microblaze/syscall.s
b/src/internal/microblaze/syscall.s
index
9bf7c0e
..
e0312e7
100644
(file)
--- a/
src/internal/microblaze/syscall.s
+++ b/
src/internal/microblaze/syscall.s
@@
-1,4
+1,5
@@
.global __syscall
.global __syscall
+.hidden __syscall
.type __syscall,@function
__syscall:
addi r12, r5, 0 # Save the system call number
.type __syscall,@function
__syscall:
addi r12, r5, 0 # Save the system call number
diff --git
a/src/internal/mips/syscall.s
b/src/internal/mips/syscall.s
index
e18a382
..
5d0def5
100644
(file)
--- a/
src/internal/mips/syscall.s
+++ b/
src/internal/mips/syscall.s
@@
-1,6
+1,7
@@
.set noreorder
.global __syscall
.set noreorder
.global __syscall
+.hidden __syscall
.type __syscall,@function
__syscall:
move $2, $4
.type __syscall,@function
__syscall:
move $2, $4
diff --git
a/src/internal/or1k/syscall.s
b/src/internal/or1k/syscall.s
index
2ea0eb1
..
177964e
100644
(file)
--- a/
src/internal/or1k/syscall.s
+++ b/
src/internal/or1k/syscall.s
@@
-1,4
+1,5
@@
.global __syscall
.global __syscall
+.hidden __syscall
.type __syscall,@function
__syscall:
l.ori r11, r3, 0
.type __syscall,@function
__syscall:
l.ori r11, r3, 0
diff --git
a/src/internal/powerpc/syscall.s
b/src/internal/powerpc/syscall.s
index
bca620d
..
5b16b8f
100644
(file)
--- a/
src/internal/powerpc/syscall.s
+++ b/
src/internal/powerpc/syscall.s
@@
-1,4
+1,5
@@
.global __syscall
.global __syscall
+ .hidden __syscall
.type __syscall,@function
__syscall:
mr 0, 3 # Save the system call number
.type __syscall,@function
__syscall:
mr 0, 3 # Save the system call number
diff --git
a/src/internal/sh/syscall.s
b/src/internal/sh/syscall.s
index
a8fda1c
..
d00712a
100644
(file)
--- a/
src/internal/sh/syscall.s
+++ b/
src/internal/sh/syscall.s
@@
-1,4
+1,5
@@
.global __syscall
.global __syscall
+.hidden __syscall
.type __syscall, @function
__syscall:
! The kernel syscall entry point documents that the trap number indicates
.type __syscall, @function
__syscall:
! The kernel syscall entry point documents that the trap number indicates
diff --git
a/src/internal/syscall.h
b/src/internal/syscall.h
index
e3a8c5d
..
a93f6d1
100644
(file)
--- a/
src/internal/syscall.h
+++ b/
src/internal/syscall.h
@@
-17,7
+17,7
@@
typedef long syscall_arg_t;
#endif
typedef long syscall_arg_t;
#endif
-#if
defined(__PIC__) && (100*__GNUC__+__GNUC_MINOR__ >= 303)
+#if
def SHARED
__attribute__((visibility("hidden")))
#endif
long __syscall_ret(unsigned long), __syscall(syscall_arg_t, ...),
__attribute__((visibility("hidden")))
#endif
long __syscall_ret(unsigned long), __syscall(syscall_arg_t, ...),
diff --git
a/src/internal/x32/syscall.s
b/src/internal/x32/syscall.s
index
6e0db09
..
c4bee80
100644
(file)
--- a/
src/internal/x32/syscall.s
+++ b/
src/internal/x32/syscall.s
@@
-1,4
+1,5
@@
.global __syscall
.global __syscall
+.hidden __syscall
.type __syscall,@function
__syscall:
movq %rdi,%rax
.type __syscall,@function
__syscall:
movq %rdi,%rax
diff --git
a/src/internal/x86_64/syscall.s
b/src/internal/x86_64/syscall.s
index
6e0db09
..
c4bee80
100644
(file)
--- a/
src/internal/x86_64/syscall.s
+++ b/
src/internal/x86_64/syscall.s
@@
-1,4
+1,5
@@
.global __syscall
.global __syscall
+.hidden __syscall
.type __syscall,@function
__syscall:
movq %rdi,%rax
.type __syscall,@function
__syscall:
movq %rdi,%rax
diff --git
a/src/thread/__syscall_cp.c
b/src/thread/__syscall_cp.c
index
a48cee9
..
faf57b1
100644
(file)
--- a/
src/thread/__syscall_cp.c
+++ b/
src/thread/__syscall_cp.c
@@
-1,6
+1,11
@@
#include "pthread_impl.h"
#include "syscall.h"
#include "pthread_impl.h"
#include "syscall.h"
+#ifdef SHARED
+__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)
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)