From 2440f9f02f826f2d3ce9dddca58d229d1e90e0bd Mon Sep 17 00:00:00 2001 From: pascal Date: Tue, 16 Dec 2014 20:53:12 +0000 Subject: [PATCH] Install a copy of ld.so into /sbin. Soon to be used in order to make "static" PIE possible. ok deraadt@ tedu@ --- libexec/ld.so/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libexec/ld.so/Makefile b/libexec/ld.so/Makefile index 796a5b4feb0..612d46a3cf6 100644 --- a/libexec/ld.so/Makefile +++ b/libexec/ld.so/Makefile @@ -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 boot.o: boot.c -- 2.20.1