From: deraadt Date: Mon, 6 Jan 2014 22:28:45 +0000 (+0000) Subject: In the new PIE world, all dynamic binaries (for instance those found X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=21e55f767ca076406c203db7d345289217728fde;p=openbsd 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. --- 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