diff options
author | Rich Felker <dalias@aerifal.cx> | 2015-04-14 11:18:59 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2015-04-14 11:18:59 -0400 |
commit | cbc02ba23cec16d7a821648ea8424546bc7f02dc (patch) | |
tree | c3650ae9dc0fe3506365371cb0fd0358df6597cf /arch/x32/src | |
parent | bc081f628b51337b525ca2d53aeff1b971f092f5 (diff) | |
download | musl-cbc02ba23cec16d7a821648ea8424546bc7f02dc.tar.gz musl-cbc02ba23cec16d7a821648ea8424546bc7f02dc.tar.xz musl-cbc02ba23cec16d7a821648ea8424546bc7f02dc.zip |
consistently use hidden visibility for cancellable syscall internals
in a few places, non-hidden symbols were referenced from asm in ways that assumed ld-time binding. while these is no semantic reason these symbols need to be hidden, fixing the references without making them hidden was going to be ugly, and hidden reduces some bloat anyway. in the asm files, .global/.hidden directives have been moved to the top to unclutter the actual code.
Diffstat (limited to 'arch/x32/src')
-rw-r--r-- | arch/x32/src/syscall_cp_fixup.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/x32/src/syscall_cp_fixup.c b/arch/x32/src/syscall_cp_fixup.c index 470597d1..07d39b52 100644 --- a/arch/x32/src/syscall_cp_fixup.c +++ b/arch/x32/src/syscall_cp_fixup.c @@ -1,4 +1,8 @@ #include <sys/syscall.h> + +#ifdef SHARED +__attribute__((__visibility__("hidden"))) +#endif long __syscall_cp_internal(volatile void*, long long, long long, long long, long long, long long, long long, long long); @@ -8,6 +12,9 @@ struct __timespec_kernel { long long tv_sec; long long tv_nsec; }; #define __fixup(X) do { if(X) X = (unsigned long) (&(struct __timespec_kernel) \ { .tv_sec = __tsc(X)->tv_sec, .tv_nsec = __tsc(X)->tv_nsec}); } while(0) +#ifdef SHARED +__attribute__((__visibility__("hidden"))) +#endif long __syscall_cp_asm (volatile void * foo, long long n, long long a1, long long a2, long long a3, long long a4, long long a5, long long a6) { switch (n) { |