]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
elf: Initialize GLRO (dl_minsigstacksize) after static dlopen
authorFlorian Weimer <fweimer@redhat.com>
Thu, 20 May 2021 16:55:26 +0000 (18:55 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 20 May 2021 16:56:42 +0000 (18:56 +0200)
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>
elf/rtld_static_init.c

index bded6bd2d45a12f64fc53a131ddf515ac6c75cf0..42efecfbff875e718981ed3c861bf80cf6e7a33e 100644 (file)
@@ -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