From: Samuel Thibault Date: Sun, 14 Jun 2020 15:47:14 +0000 (+0000) Subject: htl: initialize first and prevent from unloading X-Git-Tag: glibc-2.32~224 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e2b9d562d1e024fda6d10f0f272521bf20fa664f;p=thirdparty%2Fglibc.git htl: initialize first and prevent from unloading libc does not have codepaths for reverting the load of a libpthread. * htl/Makefile (LDFLAGS-pthread.so): Pass -z nodelete -z initfirst to linker. --- diff --git a/htl/Makefile b/htl/Makefile index c424bd512b8..326a920fb30 100644 --- a/htl/Makefile +++ b/htl/Makefile @@ -205,6 +205,7 @@ $(inst_libdir)/libpthread_syms.a: $(srcdir)/libpthread_syms.a $(+force) libc-link.so = $(common-objpfx)libc.so extra-B-pthread.so = -B$(common-objpfx)htl/ +LDFLAGS-pthread.so = -Wl,--enable-new-dtags,-z,nodelete,-z,initfirst include ../Rules