[uclibc-ng-devel,17/32,FDPIC] rtld: Initialize _dl_error_catch_tsd without FUNCDESC relocation

Message ID 20180704155605.1892-18-christophe.lyon@st.com
State New
Headers show
Series
  • FDPIC ABI for ARM
Related show

Commit Message

Christophe Lyon July 4, 2018, 3:55 p.m.
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>

Patch

diff --git a/ldso/ldso/dl-tls.c b/ldso/ldso/dl-tls.c
index 2d21242..80da815 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))