aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2025-05-03 08:15:36 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2025-05-06 17:14:56 +0000
commit7c6a5272f1ded20e91b63fe3d1a016243641a37d (patch)
tree7f2392e3a29166a3f6c2d54b0f88a3e44c0210b0
parent78aaab9f1cf359f3b7325e4369653f6b50593393 (diff)
libthr.so: mark as -z initfirst
PR: 286537 Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D50133
-rw-r--r--lib/libthr/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libthr/Makefile b/lib/libthr/Makefile
index 19afa93f12be..c87be9475390 100644
--- a/lib/libthr/Makefile
+++ b/lib/libthr/Makefile
@@ -53,6 +53,7 @@ CFLAGS+=-D_PTHREAD_FORCED_UNWIND
.endif
LDFLAGS+=-Wl,-znodelete
+LDFLAGS+=-Wl,-zinitfirst
LDFLAGS+=-Wl,--auxiliary,libsys.so.7
VERSION_DEF=${SRCTOP}/lib/libc/Versions.def