fix inconsistent visibility for internal syscall symbols
authorRich Felker <dalias@aerifal.cx>
Tue, 14 Apr 2015 17:48:20 +0000 (13:48 -0400)
committerRich Felker <dalias@aerifal.cx>
Tue, 14 Apr 2015 17:48:20 +0000 (13:48 -0400)
12 files changed:
src/internal/aarch64/syscall.s
src/internal/arm/syscall.s
src/internal/i386/syscall.s
src/internal/microblaze/syscall.s
src/internal/mips/syscall.s
src/internal/or1k/syscall.s
src/internal/powerpc/syscall.s
src/internal/sh/syscall.s
src/internal/syscall.h
src/internal/x32/syscall.s
src/internal/x86_64/syscall.s
src/thread/__syscall_cp.c

index 48fac92..845986b 100644 (file)
@@ -1,4 +1,5 @@
 .global __syscall
+.hidden __syscall
 .type __syscall,%function
 __syscall:
        uxtw x8,w0
index c5ae25c..2028456 100644 (file)
@@ -1,4 +1,5 @@
 .global __syscall
+.hidden __syscall
 .type __syscall,%function
 __syscall:
        mov ip,sp
index 739201a..0ebf221 100644 (file)
@@ -59,6 +59,7 @@ __vsyscall6:
        ret
 
 .global __syscall
+.hidden __syscall
 .type __syscall,@function
 __syscall:
        lea 24(%esp),%eax
index 9bf7c0e..e0312e7 100644 (file)
@@ -1,4 +1,5 @@
 .global __syscall
+.hidden __syscall
 .type   __syscall,@function
 __syscall:
        addi    r12, r5, 0              # Save the system call number
index e18a382..5d0def5 100644 (file)
@@ -1,6 +1,7 @@
 .set    noreorder
 
 .global __syscall
+.hidden __syscall
 .type   __syscall,@function
 __syscall:
        move    $2, $4
index 2ea0eb1..177964e 100644 (file)
@@ -1,4 +1,5 @@
 .global __syscall
+.hidden __syscall
 .type   __syscall,@function
 __syscall:
        l.ori   r11, r3, 0
index bca620d..5b16b8f 100644 (file)
@@ -1,4 +1,5 @@
        .global __syscall
+       .hidden __syscall
        .type   __syscall,@function
 __syscall:
        mr      0, 3                  # Save the system call number
index a8fda1c..d00712a 100644 (file)
@@ -1,4 +1,5 @@
 .global __syscall
+.hidden __syscall
 .type   __syscall, @function
 __syscall:
        ! The kernel syscall entry point documents that the trap number indicates
index e3a8c5d..a93f6d1 100644 (file)
@@ -17,7 +17,7 @@
 typedef long syscall_arg_t;
 #endif
 
-#if defined(__PIC__) && (100*__GNUC__+__GNUC_MINOR__ >= 303)
+#ifdef SHARED
 __attribute__((visibility("hidden")))
 #endif
 long __syscall_ret(unsigned long), __syscall(syscall_arg_t, ...),
index 6e0db09..c4bee80 100644 (file)
@@ -1,4 +1,5 @@
 .global __syscall
+.hidden __syscall
 .type __syscall,@function
 __syscall:
        movq %rdi,%rax
index 6e0db09..c4bee80 100644 (file)
@@ -1,4 +1,5 @@
 .global __syscall
+.hidden __syscall
 .type __syscall,@function
 __syscall:
        movq %rdi,%rax
index a48cee9..faf57b1 100644 (file)
@@ -1,6 +1,11 @@
 #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)