git-libpthread-nodelete
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Thu, 15 Feb 2024 22:29:51 +0000 (22:29 +0000)
committerRaspbian forward porter <root@raspbian.org>
Thu, 15 Feb 2024 22:29:51 +0000 (22:29 +0000)
Commited for 2.32

commit e2b9d562d1e024fda6d10f0f272521bf20fa664f
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
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

htl/Makefile

index 5303e27a9032124d21cb65bc8ebf559fc6b3d385..b8cf55fa57737f20e6676aacf4c6a43d064f3a72 100644 (file)
@@ -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