From 1b1cafa50c11d4c772a4f938b2feb7cbcc5f992a Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Fri, 17 Apr 2015 23:29:45 -0400 Subject: apply hidden visibility to tlsdesc accessor functions these functions are never called directly; only their addresses are used, so PLT indirections should never happen unless a broken application tries to redefine them, but it's still best to make them hidden. --- src/ldso/tlsdesc.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ldso/tlsdesc.c') diff --git a/src/ldso/tlsdesc.c b/src/ldso/tlsdesc.c index 031b5b80..4bc654fa 100644 --- a/src/ldso/tlsdesc.c +++ b/src/ldso/tlsdesc.c @@ -3,6 +3,9 @@ #include #include "libc.h" +__attribute__((__visibility__("hidden"))) +ptrdiff_t __tlsdesc_static(), __tlsdesc_dynamic(); + ptrdiff_t __tlsdesc_static() { return 0; -- cgit v1.2.1