summaryrefslogtreecommitdiff
path: root/src/ldso/dynlink.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2015-04-17 23:29:45 -0400
committerRich Felker <dalias@aerifal.cx>2015-04-17 23:29:45 -0400
commit1b1cafa50c11d4c772a4f938b2feb7cbcc5f992a (patch)
tree882f21a0ceb9cc8744b0941a227381d91bdba70f /src/ldso/dynlink.c
parentca7977b56fc126e933ced21321a24db5477e085b (diff)
downloadmusl-1b1cafa50c11d4c772a4f938b2feb7cbcc5f992a.tar.gz
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.
Diffstat (limited to 'src/ldso/dynlink.c')
-rw-r--r--src/ldso/dynlink.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ldso/dynlink.c b/src/ldso/dynlink.c
index 9f91a738..ccd526f0 100644
--- a/src/ldso/dynlink.c
+++ b/src/ldso/dynlink.c
@@ -250,6 +250,7 @@ static struct symdef find_sym(struct dso *dso, const char *s, int need_def)
return def;
}
+__attribute__((__visibility__("hidden")))
ptrdiff_t __tlsdesc_static(), __tlsdesc_dynamic();
static void do_relocs(struct dso *dso, size_t *rel, size_t rel_size, size_t stride)