about summary refs log tree commit diff
path: root/elf/rtld_static_init.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-05-17 09:59:14 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-05-17 10:17:41 +0200
commit9dc21009a47300f62b2a1fd9fec2270a21bd7c3d (patch)
tree3346d2857b8616a5b979ad145851f37dda0c470d /elf/rtld_static_init.c
parent0b3e92bdf3c11e8ca3271beb03ff16b87c23ed7f (diff)
downloadglibc-9dc21009a47300f62b2a1fd9fec2270a21bd7c3d.tar.gz
glibc-9dc21009a47300f62b2a1fd9fec2270a21bd7c3d.tar.xz
glibc-9dc21009a47300f62b2a1fd9fec2270a21bd7c3d.zip
elf: Move static TLS size and alignment into _rtld_global_ro
This helps to clarify that the caching of these fields in libpthread
(in __static_tls_size, __static_tls_align_m1) is unnecessary.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'elf/rtld_static_init.c')
-rw-r--r--elf/rtld_static_init.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/elf/rtld_static_init.c b/elf/rtld_static_init.c
index cd823096d6..bded6bd2d4 100644
--- a/elf/rtld_static_init.c
+++ b/elf/rtld_static_init.c
@@ -51,6 +51,12 @@ __rtld_static_init (struct link_map *map)
   dl->_dl_hwcap2 = _dl_hwcap2;
   extern __typeof (dl->_dl_pagesize) _dl_pagesize attribute_hidden;
   dl->_dl_pagesize = _dl_pagesize;
+  extern __typeof (dl->_dl_tls_static_align) _dl_tls_static_align
+    attribute_hidden;
+  dl->_dl_tls_static_align = _dl_tls_static_align;
+  extern __typeof (dl->_dl_tls_static_size) _dl_tls_static_size
+    attribute_hidden;
+  dl->_dl_tls_static_size = _dl_tls_static_size;
 
   __rtld_static_init_arch (map, dl);
 }