Install a copy of ld.so into /sbin. Soon to be used in order to make "static"
authorpascal <pascal@openbsd.org>
Tue, 16 Dec 2014 20:53:12 +0000 (20:53 +0000)
committerpascal <pascal@openbsd.org>
Tue, 16 Dec 2014 20:53:12 +0000 (20:53 +0000)
PIE possible.

ok deraadt@ tedu@

libexec/ld.so/Makefile

index 796a5b4..612d46a 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile,v 1.50 2014/06/21 08:00:22 otto Exp $
+#      $OpenBSD: Makefile,v 1.51 2014/12/16 20:53:12 pascal Exp $
 
 SUBDIR=ldconfig ldd
 MAN=   ld.so.1
@@ -51,6 +51,10 @@ $(PROG): $(test_prog)
        cp $(candidate) $@
 .endif
 
+afterinstall:
+       ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m ${NONBINMODE} \
+           ${.OBJDIR}/ld.so ${DESTDIR}/sbin/ld.so
+
 .include <bsd.prog.mk>
 
 boot.o: boot.c