resolvd, slaacd, unwind.
The mitigation story is way better: syscalls are in a randomly located
libc, and every syscall stub is randomly located inside that due to
random relinking. As opposed to fixed offset inside a release binary.
There is one known consequence: /usr nfs mounting must use statically
configured IP addresses.
ok kettenis florian, others
-# $OpenBSD: Makefile,v 1.2 2021/07/26 09:26:36 florian Exp $
+# $OpenBSD: Makefile,v 1.3 2022/08/29 17:00:29 deraadt Exp $
PROG= dhcpleased
SRCS= bpf.c checksum.c control.c dhcpleased.c engine.c frontend.c log.c
DPADD+= ${LIBEVENT} ${LIBUTIL}
.include <bsd.prog.mk>
+
+# Don't compile dhcpleased as static binary by default
+LDSTATIC=
-# $OpenBSD: Makefile,v 1.4 2015/12/23 21:16:17 tim Exp $
+# $OpenBSD: Makefile,v 1.5 2022/08/29 17:00:30 deraadt Exp $
PROG= mountd
MAN= exports.5 mountd.8
DPADD= ${LIBUTIL}
.include <bsd.prog.mk>
+
+# Don't compile mountd as static binary by default
+LDSTATIC=
-# $OpenBSD: Makefile,v 1.8 2015/10/02 00:47:48 deraadt Exp $
+# $OpenBSD: Makefile,v 1.9 2022/08/29 17:00:30 deraadt Exp $
PROG= nfsd
MAN= nfsd.8
.include <bsd.prog.mk>
+
+# Don't compile nfsd as static binary by default
+LDSTATIC=
-# $OpenBSD: Makefile,v 1.9 2013/06/19 03:51:30 lteo Exp $
+# $OpenBSD: Makefile,v 1.10 2022/08/29 17:00:30 deraadt Exp $
CFLAGS+=-Wall -Wmissing-prototypes -Wshadow
MAN= pflogd.8
.include <bsd.prog.mk>
+
+# Don't compile pflogd as static binary by default
+LDSTATIC=
-# $OpenBSD: Makefile,v 1.1 2021/02/24 18:10:41 florian Exp $
+# $OpenBSD: Makefile,v 1.2 2022/08/29 17:00:30 deraadt Exp $
PROG= resolvd
SRCS= resolvd.c
CFLAGS+= -Wsign-compare
.include <bsd.prog.mk>
+
+# Don't compile resolvd as static binary by default
+LDSTATIC=
-# $OpenBSD: Makefile,v 1.2 2019/11/07 08:45:31 florian Exp $
+# $OpenBSD: Makefile,v 1.3 2022/08/29 17:00:30 deraadt Exp $
PROG= slaacd
SRCS= control.c engine.c frontend.c log.c slaacd.c
DPADD+= ${LIBEVENT} ${LIBUTIL}
.include <bsd.prog.mk>
+
+# Don't compile slaacd as static binary by default
+LDSTATIC=
-# $OpenBSD: Makefile,v 1.8 2021/01/24 18:29:15 florian Exp $
+# $OpenBSD: Makefile,v 1.9 2022/08/29 17:00:30 deraadt Exp $
PROG= unwind
SRCS= control.c resolver.c frontend.c log.c unwind.c parse.y printconf.c
DPADD+= ${LIBEVENT} ${LIBUTIL} ${LIBSSL} ${LIBCRYPTO}
.include <bsd.prog.mk>
+
+# Don't compile unwind as static binary by default
+LDSTATIC=