public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] htl: initialize first and prevent from unloading
@ 2020-06-14 16:56 Samuel Thibault
0 siblings, 0 replies; only message in thread
From: Samuel Thibault @ 2020-06-14 16:56 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=e2b9d562d1e024fda6d10f0f272521bf20fa664f
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.
Diff:
---
htl/Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/htl/Makefile b/htl/Makefile
index c424bd512b..326a920fb3 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-06-14 16:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-14 16:56 [glibc] htl: initialize first and prevent from unloading Samuel Thibault
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).