From 9ec7fff6cd2232a1842f9b7be142805622ec2b48 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Thu, 20 May 2021 18:55:26 +0200 Subject: 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 --- elf/rtld_static_init.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'elf') 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 -- cgit v1.2.1