From: GNU Libc Maintainers Date: Sat, 2 Oct 2021 12:47:40 +0000 (+0100) Subject: git-libpthread-nodelete X-Git-Tag: archive/raspbian/2.31-13+rpi1+deb11u2^2~74 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a89920b4f1e975fc7e30b21ac72e22ab7ddec38a;p=glibc.git git-libpthread-nodelete Commited for 2.32 commit e2b9d562d1e024fda6d10f0f272521bf20fa664f Author: Samuel Thibault Date: Sun Jun 14 15:47:14 2020 +0000 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. Gbp-Pq: Topic hurd-i386 Gbp-Pq: Name git-libpthread-nodelete.diff --- diff --git a/htl/Makefile b/htl/Makefile index 5303e27a9..b8cf55fa5 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