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-20 18:55:26 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-05-20 18:56:42 +0200
commit9ec7fff6cd2232a1842f9b7be142805622ec2b48 (patch)
tree7b26eb54a5be59cfe28f798abe255122e33acfca /elf/rtld_static_init.c
parenteb0e4756cfe8dcfc56ea9306f731960d4339a8f7 (diff)
downloadglibc-9ec7fff6cd2232a1842f9b7be142805622ec2b48.tar.gz
glibc-9ec7fff6cd2232a1842f9b7be142805622ec2b48.tar.xz
glibc-9ec7fff6cd2232a1842f9b7be142805622ec2b48.zip
elf: Initialize GLRO (dl_minsigstacksize) after static dlopen
This is another field of _rtld_global_ro that benefits from
initialization in __rtld_static_init.

Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
Diffstat (limited to 'elf/rtld_static_init.c')
-rw-r--r--elf/rtld_static_init.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/elf/rtld_static_init.c b/elf/rtld_static_init.c
index bded6bd2d4..42efecfbff 100644
--- a/elf/rtld_static_init.c
+++ b/elf/rtld_static_init.c
@@ -49,6 +49,9 @@ __rtld_static_init (struct link_map *map)
   dl->_dl_hwcap = _dl_hwcap;
   extern __typeof (dl->_dl_hwcap2) _dl_hwcap2 attribute_hidden;
   dl->_dl_hwcap2 = _dl_hwcap2;
+  extern __typeof (dl->_dl_minsigstacksize) _dl_minsigstacksize
+    attribute_hidden;
+  dl->_dl_minsigstacksize = _dl_minsigstacksize;
   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