[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd,commited 2/6] htl: initialize first and prevent from unloading
From: |
Samuel Thibault |
Subject: |
[hurd,commited 2/6] htl: initialize first and prevent from unloading |
Date: |
Sun, 14 Jun 2020 18:57:53 +0200 |
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 | 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
--
2.27.0
- [hurd,commited 0/6] Make write and pwrite64 cancellation points, Samuel Thibault, 2020/06/14
- [hurd, commited 3/6] htl: Move cleanup stack to variable shared between libc and pthread, Samuel Thibault, 2020/06/14
- [hurd,commited 4/6] htl: Fix cleanup support for IO locking, Samuel Thibault, 2020/06/14
- [hurd, commited 5/6] hurd: Make write and pwrite64 cancellation points, Samuel Thibault, 2020/06/14
- [hurd, commited 1/6] htl: Add noreturn attribute on __pthread_exit forward, Samuel Thibault, 2020/06/14
- [hurd,commited 2/6] htl: initialize first and prevent from unloading,
Samuel Thibault <=
- [hurd,commited 6/6] htl: Enable more cancellation tests, Samuel Thibault, 2020/06/14