diff options
author | Bryan Drewery <bdrewery@FreeBSD.org> | 2014-06-08 17:29:31 +0000 |
---|---|---|
committer | Bryan Drewery <bdrewery@FreeBSD.org> | 2014-06-08 17:29:31 +0000 |
commit | 864c53ead899f7838cd2e1cca3b485a4a82f5cdc (patch) | |
tree | 770fe42f243492477db77896e2564375cd017ad4 /sbin | |
parent | 590d63632198eb31acebf50673f1568c2e8f3fda (diff) | |
download | src-864c53ead899f7838cd2e1cca3b485a4a82f5cdc.tar.gz src-864c53ead899f7838cd2e1cca3b485a4a82f5cdc.zip |
In preparation for ASLR [1] support add WITH_PIE to support building with -fPIE.
This is currently an opt-in build flag. Once ASLR support is ready and stable
it should changed to opt-out and be enabled by default along with ASLR.
Each application Makefile uses opt-out to ensure that ASLR will be enabled by
default in new directories when the system is compiled with PIE/ASLR. [2]
Mark known build failures as NO_PIE for now.
The only known runtime failure was rtld.
[1] http://www.bsdcan.org/2014/schedule/events/452.en.html
Submitted by: Shawn Webb <lattera@gmail.com>
Discussed between: des@ and Shawn Webb [2]
Notes
Notes:
svn path=/head/; revision=267233
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/fsck/Makefile | 2 | ||||
-rw-r--r-- | sbin/ipf/ipf/Makefile | 2 | ||||
-rw-r--r-- | sbin/ipf/ipfstat/Makefile | 2 | ||||
-rw-r--r-- | sbin/ipf/ipftest/Makefile | 2 | ||||
-rw-r--r-- | sbin/ipf/ipmon/Makefile | 2 | ||||
-rw-r--r-- | sbin/ipf/ipnat/Makefile | 2 | ||||
-rw-r--r-- | sbin/ipf/ippool/Makefile | 2 | ||||
-rw-r--r-- | sbin/ipf/ipresend/Makefile | 2 | ||||
-rw-r--r-- | sbin/rcorder/Makefile | 2 |
9 files changed, 18 insertions, 0 deletions
diff --git a/sbin/fsck/Makefile b/sbin/fsck/Makefile index 22de03c4da78..d0c45dbfd797 100644 --- a/sbin/fsck/Makefile +++ b/sbin/fsck/Makefile @@ -5,4 +5,6 @@ PROG= fsck SRCS= fsck.c fsutil.c preen.c MAN= fsck.8 +NO_PIE= yes + .include <bsd.prog.mk> diff --git a/sbin/ipf/ipf/Makefile b/sbin/ipf/ipf/Makefile index c3938c63af61..73888b29ba6f 100644 --- a/sbin/ipf/ipf/Makefile +++ b/sbin/ipf/ipf/Makefile @@ -39,4 +39,6 @@ DPADD+= ${LIBPCAP} LDADD+= -lpcap .endif +NO_PIE= yes + .include <bsd.prog.mk> diff --git a/sbin/ipf/ipfstat/Makefile b/sbin/ipf/ipfstat/Makefile index a33c5df38d8f..c2b422df42f4 100644 --- a/sbin/ipf/ipfstat/Makefile +++ b/sbin/ipf/ipfstat/Makefile @@ -8,4 +8,6 @@ MAN= ipfstat.8 DPADD+= ${LIBCURSES} LDADD+= -lcurses +NO_PIE= yes + .include <bsd.prog.mk> diff --git a/sbin/ipf/ipftest/Makefile b/sbin/ipf/ipftest/Makefile index 32b074cb93f4..57f3c4e7de83 100644 --- a/sbin/ipf/ipftest/Makefile +++ b/sbin/ipf/ipftest/Makefile @@ -32,6 +32,8 @@ CLEANFILES+= ipnat.tab.c ipnat.tab.h CLEANFILES+= ippool_y.c ippool_l.c CLEANFILES+= ippool.tab.c ippool.tab.h +NO_PIE= yes + ipnat_y.c: ipnat_y.y ${YACC} -b ipnat -d ${.ALLSRC} sed -e 's/yy/ipnat_yy/g' \ diff --git a/sbin/ipf/ipmon/Makefile b/sbin/ipf/ipmon/Makefile index 3639f8733c1e..2ecfed1aa1b8 100644 --- a/sbin/ipf/ipmon/Makefile +++ b/sbin/ipf/ipmon/Makefile @@ -11,6 +11,8 @@ DPSRCS+= ${GENHDRS} CLEANFILES+= ${GENHDRS} ipmon_y.c ipmon_l.c +NO_PIE= yes + ipmon_y.c: ipmon_y.y ${YACC} -d ${.ALLSRC} sed -e 's/yy/ipmon_yy/g' \ diff --git a/sbin/ipf/ipnat/Makefile b/sbin/ipf/ipnat/Makefile index 1c017e182cb1..aafb0147ec57 100644 --- a/sbin/ipf/ipnat/Makefile +++ b/sbin/ipf/ipnat/Makefile @@ -11,6 +11,8 @@ DPSRCS+= ${GENHDRS} CLEANFILES+= ${GENHDRS} ipnat_y.c ipnat_l.c +NO_PIE= yes + ipnat_y.c: ipnat_y.y ${YACC} -d ${.ALLSRC} sed -e 's/yy/ipnat_yy/g' \ diff --git a/sbin/ipf/ippool/Makefile b/sbin/ipf/ippool/Makefile index 6e3f85da847d..bb7e9ceb24b9 100644 --- a/sbin/ipf/ippool/Makefile +++ b/sbin/ipf/ippool/Makefile @@ -10,6 +10,8 @@ DPSRCS+= ${GENHDRS} CLEANFILES+= ${GENHDRS} ippool_y.c ippool_l.c +NO_PIE= yes + ippool_y.c: ippool_y.y ${YACC} -d ${.ALLSRC} sed -e 's/yy/ippool_yy/g' \ diff --git a/sbin/ipf/ipresend/Makefile b/sbin/ipf/ipresend/Makefile index 5e0ac15cbb1f..492451cebfc2 100644 --- a/sbin/ipf/ipresend/Makefile +++ b/sbin/ipf/ipresend/Makefile @@ -4,6 +4,8 @@ PROG= ipresend SRCS= ipresend.c ip.c resend.c sbpf.c sock.c 44arp.c MAN= ipresend.1 +NO_PIE= yes + .PATH: ${.CURDIR}/../../../contrib/ipfilter/ipsend .include <bsd.prog.mk> diff --git a/sbin/rcorder/Makefile b/sbin/rcorder/Makefile index b71aa4b83d37..dc48b4cae918 100644 --- a/sbin/rcorder/Makefile +++ b/sbin/rcorder/Makefile @@ -14,6 +14,8 @@ CFLAGS+= -DORDER -I. SRCS+= util.h CLEANFILES+= util.h +NO_PIE= yes + util.h: ln -sf ${.CURDIR}/../../lib/libutil/libutil.h ${.TARGET} |