From cbc02ba23cec16d7a821648ea8424546bc7f02dc Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Tue, 14 Apr 2015 11:18:59 -0400 Subject: 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. --- arch/x32/src/syscall_cp_fixup.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'arch/x32/src') 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 + +#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) { -- cgit v1.2.1