From fcecd012a6944eab8912787ca668b280e7233a8d Mon Sep 17 00:00:00 2001 From: Christophe Lyon Date: Wed, 4 Jul 2018 17:55:30 +0200 Subject: rtld: Initialize _dl_error_catch_tsd without FUNCDESC relocation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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é Signed-off-by: Christophe Lyon --- ldso/ldso/dl-tls.c | 1 + 1 file changed, 1 insertion(+) 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)) -- cgit v1.2.3