]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
htl: initialize first and prevent from unloading
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 14 Jun 2020 15:47:14 +0000 (15:47 +0000)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 14 Jun 2020 15:53:04 +0000 (15:53 +0000)
libc does not have codepaths for reverting the load of a libpthread.

* htl/Makefile (LDFLAGS-pthread.so): Pass -z nodelete -z initfirst to
linker.

htl/Makefile

index c424bd512b8285f77f858094ef3d57cfbb1c8a8c..326a920fb308851377f2c064b9ddd077e6472343 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