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 /libexec | |
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 'libexec')
-rw-r--r-- | libexec/mail.local/Makefile | 2 | ||||
-rw-r--r-- | libexec/rtld-elf/Makefile | 2 | ||||
-rw-r--r-- | libexec/smrsh/Makefile | 2 | ||||
-rw-r--r-- | libexec/telnetd/Makefile | 2 |
4 files changed, 8 insertions, 0 deletions
diff --git a/libexec/mail.local/Makefile b/libexec/mail.local/Makefile index 3e59609e893e..dff4238aebf6 100644 --- a/libexec/mail.local/Makefile +++ b/libexec/mail.local/Makefile @@ -9,6 +9,8 @@ SRCS= mail.local.c MAN= mail.local.8 CFLAGS+=-I${SENDMAIL_DIR}/include -I. +NO_PIE= yes + WARNS?= 2 WFORMAT=0 diff --git a/libexec/rtld-elf/Makefile b/libexec/rtld-elf/Makefile index 21e2219d3727..ba13778f4ef9 100644 --- a/libexec/rtld-elf/Makefile +++ b/libexec/rtld-elf/Makefile @@ -78,5 +78,7 @@ beforeinstall: .PATH: ${.CURDIR}/${RTLD_ARCH} +NO_PIE= yes + .include <bsd.symver.mk> .include <bsd.prog.mk> diff --git a/libexec/smrsh/Makefile b/libexec/smrsh/Makefile index ae86155d0d00..9f0bfd454edc 100644 --- a/libexec/smrsh/Makefile +++ b/libexec/smrsh/Makefile @@ -9,6 +9,8 @@ SRCS= smrsh.c MAN= smrsh.8 CFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I. +NO_PIE= yes + LIBSMDIR= ${.OBJDIR}/../../lib/libsm LIBSM= ${LIBSMDIR}/libsm.a diff --git a/libexec/telnetd/Makefile b/libexec/telnetd/Makefile index 4300d0dd9254..a63b937231e5 100644 --- a/libexec/telnetd/Makefile +++ b/libexec/telnetd/Makefile @@ -20,6 +20,8 @@ WFORMAT?= 0 CFLAGS+= -DLINEMODE -DUSE_TERMIO -DDIAGNOSTICS -DOLD_ENVIRON \ -DENV_HACK -DSTREAMSPTY +NO_PIE= yes + .if ${MK_INET6_SUPPORT} != "no" CFLAGS+= -DINET6 .endif |