about summary refs log tree commit diff
path: root/src/thread/__syscall_cp.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2015-11-11 19:29:45 -0500
committerRich Felker <dalias@aerifal.cx>2015-11-11 19:29:45 -0500
commit8a8fdf6398b85c99dffb237e47fa577e2ddc9e77 (patch)
tree8a857fd548cedb3c1664b3ee6f17c827167d73ee /src/thread/__syscall_cp.c
parentdc5bd27ac4eb68e7ec84dff0fd26f2ac55360989 (diff)
downloadmusl-8a8fdf6398b85c99dffb237e47fa577e2ddc9e77.tar.gz
musl-8a8fdf6398b85c99dffb237e47fa577e2ddc9e77.tar.xz
musl-8a8fdf6398b85c99dffb237e47fa577e2ddc9e77.zip
eliminate use of SHARED macro to suppress visibility attributes
this is the first and simplest stage of removal of the SHARED macro,
which will eventually allow libc.a and libc.so to be produced from the
same object files.

the original motivation for these #ifdefs which are now being removed
was to allow building a static-only libc using a compiler that does
not support visibility. however, SHARED was the wrong condition to
test for this anyway; various assembly-language sources refer to
hidden symbols and declare them with the .hidden directive, making it
wrong to define the referenced symbols as non-hidden. if there is a
need in the future to build libc using compilers that lack visibility,
support could be moved to the build system or perhaps the __PIC__
macro could be checked instead of SHARED.
Diffstat (limited to 'src/thread/__syscall_cp.c')
-rw-r--r--src/thread/__syscall_cp.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/thread/__syscall_cp.c b/src/thread/__syscall_cp.c
index faf57b1a..09a2be84 100644
--- a/src/thread/__syscall_cp.c
+++ b/src/thread/__syscall_cp.c
@@ -1,9 +1,7 @@
 #include "pthread_impl.h"
 #include "syscall.h"
 
-#ifdef SHARED
 __attribute__((__visibility__("hidden")))
-#endif
 long __syscall_cp_c();
 
 static long sccp(syscall_arg_t nr,