summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@st.com>2018-07-04 17:55:30 +0200
committerWaldemar Brodkorb <wbrodkorb@conet.de>2018-08-10 16:02:45 +0200
commitfcecd012a6944eab8912787ca668b280e7233a8d (patch)
treee9cae9a14557ae95da14764e5c8fd88cd0eed4d6
parent69634db9348550f573141f478cb78eaa8363f16a (diff)
rtld: Initialize _dl_error_catch_tsd without FUNCDESC relocation
Make _dl_initial_error_catch_tsd hidden, such that we do not need a FUNCDESC relocation when initializing _dl_error_catch_tsd. * ldso/ldso/dl-tls.c (_dl_initial_error_catch_tsd): Declare hidden. Signed-off-by: Mickaël Guêné <mickael.guene@st.com> Signed-off-by: Christophe Lyon <christophe.lyon@st.com>
-rw-r--r--ldso/ldso/dl-tls.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ldso/ldso/dl-tls.c b/ldso/ldso/dl-tls.c
index 2d212426f..80da815ef 100644
--- a/ldso/ldso/dl-tls.c
+++ b/ldso/ldso/dl-tls.c
@@ -957,6 +957,7 @@ _dl_add_to_slotinfo (struct link_map *l)
/* Taken from glibc/elf/rtld.c */
static bool tls_init_tp_called;
+rtld_hidden_proto(_dl_initial_error_catch_tsd)
/* _dl_error_catch_tsd points to this for the single-threaded case.
It's reset by the thread library for multithreaded programs. */
void ** __attribute__ ((const))