summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2019-11-12 04:38:28 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2019-11-12 04:38:28 +0000
commit8d53a05075ff3bd05044599bbcbff5823877948f (patch)
tree0cf825edd6d2ea740ae2817502fb5aedb77a4e2d /lib
parenta1c8a678bd969ce29c33da8b9a96a8ed5a5aad08 (diff)
Now that libc.so has only five PLT entries on almost all our archs,
link it with -znow ok kettenis@ deraadt@ jca@
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/Makefile b/lib/libc/Makefile
index bd812632e37..4bb4b67fcbb 100644
--- a/lib/libc/Makefile
+++ b/lib/libc/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.41 2019/06/02 01:03:01 guenther Exp $
+# $OpenBSD: Makefile,v 1.42 2019/11/12 04:38:27 guenther Exp $
#
# The YP functions are always in libc. To choose that getpwent() and friends
# actually call the YP functions, put -DYP on the CFLAGS line below.
@@ -16,7 +16,7 @@ LDADD+=-lcompiler_rt
.else
LDADD+=-lgcc
.endif
-LDADD+=-Wl,-zinitfirst
+LDADD+=-Wl,-zinitfirst,-znow
VERSION_SCRIPT= Symbols.map
SYMBOL_LISTS= ${LIBCSRCDIR}/Symbols.list \