From 21e55f767ca076406c203db7d345289217728fde Mon Sep 17 00:00:00 2001 From: deraadt Date: Mon, 6 Jan 2014 22:28:45 +0000 Subject: [PATCH] In the new PIE world, all dynamic binaries (for instance those found in usr.bin and usr.sbin on the install media) must be re-compiled non-PIE (here, in the special directory) so that crunchgen can reuse them. This issue is most acute on i386, which has register pressure, and does weird things for PIE. thanks for matthew for helping figure this out. --- distrib/special/Makefile | 4 ++-- distrib/special/arch/Makefile | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 distrib/special/arch/Makefile diff --git a/distrib/special/Makefile b/distrib/special/Makefile index 12b30f76766..843eef98f5d 100644 --- a/distrib/special/Makefile +++ b/distrib/special/Makefile @@ -1,7 +1,7 @@ -# $OpenBSD: Makefile,v 1.25 2012/08/21 08:12:47 pascal Exp $ +# $OpenBSD: Makefile,v 1.26 2014/01/06 22:28:45 deraadt Exp $ SUBDIR= libstubs \ - date dd dhclient dmesg ed ftp grep gzip ifconfig init \ + arch date dd dhclient dmesg ed ftp grep gzip ifconfig init \ kbd less more mt newfs ping restore sed sha256 sysctl install: diff --git a/distrib/special/arch/Makefile b/distrib/special/arch/Makefile new file mode 100644 index 00000000000..5993552e872 --- /dev/null +++ b/distrib/special/arch/Makefile @@ -0,0 +1,7 @@ +# $OpenBSD: Makefile,v 1.1 2014/01/06 22:28:50 deraadt Exp $ + +PROG= arch + +.PATH: ${.CURDIR}/../../../usr.bin/arch + +.include -- 2.20.1