From owner-svn-src-head@FreeBSD.ORG Sun Jun 8 17:29:52 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B00694E3; Sun, 8 Jun 2014 17:29:52 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 985FD2838; Sun, 8 Jun 2014 17:29:52 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s58HTqKS006534; Sun, 8 Jun 2014 17:29:52 GMT (envelope-from bdrewery@svn.freebsd.org) Received: (from bdrewery@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s58HTWkc006213; Sun, 8 Jun 2014 17:29:32 GMT (envelope-from bdrewery@svn.freebsd.org) Message-Id: <201406081729.s58HTWkc006213@svn.freebsd.org> From: Bryan Drewery Date: Sun, 8 Jun 2014 17:29:32 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r267233 - in head: . bin/rmail gnu/usr.bin/binutils/addr2line gnu/usr.bin/binutils/nm gnu/usr.bin/binutils/objcopy gnu/usr.bin/binutils/objdump gnu/usr.bin/binutils/readelf gnu/usr.bin/... X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jun 2014 17:29:52 -0000 Author: bdrewery Date: Sun Jun 8 17:29:31 2014 New Revision: 267233 URL: http://svnweb.freebsd.org/changeset/base/267233 Log: 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 Discussed between: des@ and Shawn Webb [2] Added: head/tools/build/options/WITH_PIE (contents, props changed) Modified: head/Makefile.inc1 head/bin/rmail/Makefile head/gnu/usr.bin/binutils/addr2line/Makefile head/gnu/usr.bin/binutils/nm/Makefile head/gnu/usr.bin/binutils/objcopy/Makefile head/gnu/usr.bin/binutils/objdump/Makefile head/gnu/usr.bin/binutils/readelf/Makefile head/gnu/usr.bin/binutils/size/Makefile head/gnu/usr.bin/binutils/strings/Makefile head/gnu/usr.bin/binutils/strip/Makefile head/gnu/usr.bin/gdb/gdb/Makefile head/gnu/usr.bin/gdb/gdbtui/Makefile head/gnu/usr.bin/gdb/kgdb/Makefile head/gnu/usr.bin/groff/src/devices/grodvi/Makefile head/gnu/usr.bin/groff/src/devices/grohtml/Makefile head/gnu/usr.bin/groff/src/devices/grolbp/Makefile head/gnu/usr.bin/groff/src/devices/grolj4/Makefile head/gnu/usr.bin/groff/src/devices/grops/Makefile head/gnu/usr.bin/groff/src/devices/grotty/Makefile head/gnu/usr.bin/groff/src/preproc/eqn/Makefile head/gnu/usr.bin/groff/src/preproc/grn/Makefile head/gnu/usr.bin/groff/src/preproc/html/Makefile head/gnu/usr.bin/groff/src/preproc/pic/Makefile head/gnu/usr.bin/groff/src/preproc/refer/Makefile head/gnu/usr.bin/groff/src/preproc/soelim/Makefile head/gnu/usr.bin/groff/src/preproc/tbl/Makefile head/gnu/usr.bin/groff/src/roff/groff/Makefile head/gnu/usr.bin/groff/src/roff/troff/Makefile head/gnu/usr.bin/groff/src/utils/addftinfo/Makefile head/gnu/usr.bin/groff/src/utils/hpftodit/Makefile head/gnu/usr.bin/groff/src/utils/indxbib/Makefile head/gnu/usr.bin/groff/src/utils/lkbib/Makefile head/gnu/usr.bin/groff/src/utils/lookbib/Makefile head/gnu/usr.bin/groff/src/utils/tfmtodit/Makefile head/gnu/usr.bin/rcs/Makefile.inc head/gnu/usr.bin/texinfo/info/Makefile head/gnu/usr.bin/texinfo/infokey/Makefile head/gnu/usr.bin/texinfo/install-info/Makefile head/gnu/usr.bin/texinfo/makeinfo/Makefile head/gnu/usr.bin/texinfo/texindex/Makefile head/kerberos5/libexec/digest-service/Makefile head/kerberos5/libexec/hprop/Makefile head/kerberos5/libexec/hpropd/Makefile head/kerberos5/libexec/ipropd-master/Makefile head/kerberos5/libexec/ipropd-slave/Makefile head/kerberos5/libexec/kadmind/Makefile head/kerberos5/libexec/kcm/Makefile head/kerberos5/libexec/kdc/Makefile head/kerberos5/libexec/kdigest/Makefile head/kerberos5/libexec/kfd/Makefile head/kerberos5/libexec/kimpersonate/Makefile head/kerberos5/libexec/kpasswdd/Makefile head/kerberos5/tools/asn1_compile/Makefile head/kerberos5/tools/slc/Makefile head/kerberos5/usr.bin/hxtool/Makefile head/kerberos5/usr.bin/kadmin/Makefile head/kerberos5/usr.bin/kcc/Makefile head/kerberos5/usr.bin/kdestroy/Makefile head/kerberos5/usr.bin/kf/Makefile head/kerberos5/usr.bin/kgetcred/Makefile head/kerberos5/usr.bin/kinit/Makefile head/kerberos5/usr.bin/kpasswd/Makefile head/kerberos5/usr.bin/ksu/Makefile head/kerberos5/usr.bin/string2key/Makefile head/kerberos5/usr.bin/verify_krb5_conf/Makefile head/kerberos5/usr.sbin/iprop-log/Makefile head/kerberos5/usr.sbin/kstash/Makefile head/kerberos5/usr.sbin/ktutil/Makefile head/lib/csu/amd64/Makefile head/lib/csu/i386-elf/Makefile head/libexec/mail.local/Makefile head/libexec/rtld-elf/Makefile head/libexec/smrsh/Makefile head/libexec/telnetd/Makefile head/sbin/fsck/Makefile head/sbin/ipf/ipf/Makefile head/sbin/ipf/ipfstat/Makefile head/sbin/ipf/ipftest/Makefile head/sbin/ipf/ipmon/Makefile head/sbin/ipf/ipnat/Makefile head/sbin/ipf/ippool/Makefile head/sbin/ipf/ipresend/Makefile head/sbin/rcorder/Makefile head/share/mk/bsd.opts.mk head/share/mk/bsd.prog.mk head/sys/boot/i386/boot2/Makefile head/sys/boot/i386/btx/btx/Makefile head/sys/boot/i386/btx/btxldr/Makefile head/sys/boot/i386/btx/lib/Makefile head/sys/boot/i386/loader/Makefile head/sys/boot/mips/beri/boot2/Makefile head/sys/boot/mips/beri/loader/Makefile head/sys/boot/pc98/boot2/Makefile head/sys/boot/pc98/btx/lib/Makefile head/sys/boot/pc98/loader/Makefile head/sys/boot/sparc64/boot1/Makefile head/sys/boot/sparc64/loader/Makefile head/usr.bin/clang/clang-tblgen/Makefile head/usr.bin/clang/clang.prog.mk head/usr.bin/clang/tblgen/Makefile head/usr.bin/compile_et/Makefile head/usr.bin/mandoc/Makefile head/usr.bin/svn/svn/Makefile head/usr.bin/svn/svnadmin/Makefile head/usr.bin/svn/svndumpfilter/Makefile head/usr.bin/svn/svnlook/Makefile head/usr.bin/svn/svnmucc/Makefile head/usr.bin/svn/svnrdump/Makefile head/usr.bin/svn/svnserve/Makefile head/usr.bin/svn/svnsync/Makefile head/usr.bin/svn/svnversion/Makefile head/usr.bin/telnet/Makefile head/usr.bin/vacation/Makefile head/usr.sbin/amd/amd/Makefile head/usr.sbin/amd/amq/Makefile head/usr.sbin/amd/fixmount/Makefile head/usr.sbin/amd/fsinfo/Makefile head/usr.sbin/amd/hlfsd/Makefile head/usr.sbin/amd/mk-amd-map/Makefile head/usr.sbin/amd/pawd/Makefile head/usr.sbin/amd/wire-test/Makefile head/usr.sbin/btxld/Makefile head/usr.sbin/cron/cron/Makefile head/usr.sbin/cron/crontab/Makefile head/usr.sbin/crunch/crunchgen/Makefile head/usr.sbin/crunch/crunchide/Makefile head/usr.sbin/editmap/Makefile head/usr.sbin/fifolog/fifolog_create/Makefile head/usr.sbin/fifolog/fifolog_reader/Makefile head/usr.sbin/fifolog/fifolog_writer/Makefile head/usr.sbin/ftp-proxy/ftp-proxy/Makefile head/usr.sbin/lpr/chkprintcap/Makefile head/usr.sbin/lpr/lpc/Makefile head/usr.sbin/lpr/lpd/Makefile head/usr.sbin/lpr/lpq/Makefile head/usr.sbin/lpr/lpr/Makefile head/usr.sbin/lpr/lprm/Makefile head/usr.sbin/lpr/pac/Makefile head/usr.sbin/mailstats/Makefile head/usr.sbin/makefs/Makefile head/usr.sbin/makemap/Makefile head/usr.sbin/nmtree/Makefile head/usr.sbin/ntp/ntp-keygen/Makefile head/usr.sbin/ntp/ntpd/Makefile head/usr.sbin/ntp/ntpdate/Makefile head/usr.sbin/ntp/ntpdc/Makefile head/usr.sbin/ntp/ntpq/Makefile head/usr.sbin/ntp/ntptime/Makefile head/usr.sbin/praliases/Makefile head/usr.sbin/sendmail/Makefile Modified: head/Makefile.inc1 ============================================================================== --- head/Makefile.inc1 Sun Jun 8 15:38:40 2014 (r267232) +++ head/Makefile.inc1 Sun Jun 8 17:29:31 2014 (r267233) @@ -245,7 +245,7 @@ BMAKE= MAKEOBJDIRPREFIX=${WORLDTMP} \ ${BMAKEENV} ${MAKE} ${WORLD_FLAGS} -f Makefile.inc1 \ DESTDIR= \ BOOTSTRAPPING=${OSRELDATE} \ - SSP_CFLAGS= \ + SSP_CFLAGS= MK_PIE=no \ MK_HTML=no MK_INFO=no NO_LINT=yes MK_MAN=no \ -DNO_PIC MK_PROFILE=no -DNO_SHARED \ -DNO_CPU_CFLAGS MK_WARNS=no MK_CTF=no \ @@ -257,7 +257,7 @@ TMAKE= MAKEOBJDIRPREFIX=${OBJTREE} \ TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \ DESTDIR= \ BOOTSTRAPPING=${OSRELDATE} \ - SSP_CFLAGS= \ + SSP_CFLAGS= MK_PIE=no \ -DNO_LINT \ -DNO_CPU_CFLAGS MK_WARNS=no MK_CTF=no MK_CLANG_FULL=no MK_LLDB=no MK_TESTS=no @@ -275,7 +275,7 @@ KTMAKE= TOOLS_PREFIX=${WORLDTMP} MAKEOB ${KTMAKEENV} ${MAKE} ${WORLD_FLAGS} -f Makefile.inc1 \ DESTDIR= \ BOOTSTRAPPING=${OSRELDATE} \ - SSP_CFLAGS= \ + SSP_CFLAGS= MK_PIE=no \ MK_HTML=no MK_INFO=no -DNO_LINT MK_MAN=no \ -DNO_PIC MK_PROFILE=no -DNO_SHARED \ -DNO_CPU_CFLAGS MK_WARNS=no MK_CTF=no Modified: head/bin/rmail/Makefile ============================================================================== --- head/bin/rmail/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/bin/rmail/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -14,6 +14,8 @@ MAN= rmail.8 WARNS?= 2 CFLAGS+=-I${SENDMAIL_DIR}/include -I. +NO_PIE= yes + LIBSMDIR= ${.OBJDIR}/../../lib/libsm LIBSM= ${LIBSMDIR}/libsm.a Modified: head/gnu/usr.bin/binutils/addr2line/Makefile ============================================================================== --- head/gnu/usr.bin/binutils/addr2line/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/gnu/usr.bin/binutils/addr2line/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -14,4 +14,6 @@ DPADD+= ${RELTOP}/libbfd/libbfd.a DPADD+= ${RELTOP}/libiberty/libiberty.a LDADD= ${DPADD} +NO_PIE= yes + .include Modified: head/gnu/usr.bin/binutils/nm/Makefile ============================================================================== --- head/gnu/usr.bin/binutils/nm/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/gnu/usr.bin/binutils/nm/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -15,4 +15,6 @@ DPADD+= ${RELTOP}/libbfd/libbfd.a DPADD+= ${RELTOP}/libiberty/libiberty.a LDADD= ${DPADD} +NO_PIE= yes + .include Modified: head/gnu/usr.bin/binutils/objcopy/Makefile ============================================================================== --- head/gnu/usr.bin/binutils/objcopy/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/gnu/usr.bin/binutils/objcopy/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -14,4 +14,6 @@ DPADD+= ${RELTOP}/libbfd/libbfd.a DPADD+= ${RELTOP}/libiberty/libiberty.a LDADD= ${DPADD} +NO_PIE= yes + .include Modified: head/gnu/usr.bin/binutils/objdump/Makefile ============================================================================== --- head/gnu/usr.bin/binutils/objdump/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/gnu/usr.bin/binutils/objdump/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -16,4 +16,6 @@ DPADD+= ${RELTOP}/libbfd/libbfd.a DPADD+= ${RELTOP}/libiberty/libiberty.a LDADD= ${DPADD} +NO_PIE= yes + .include Modified: head/gnu/usr.bin/binutils/readelf/Makefile ============================================================================== --- head/gnu/usr.bin/binutils/readelf/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/gnu/usr.bin/binutils/readelf/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -17,4 +17,6 @@ DPADD+= ${RELTOP}/libbfd/libbfd.a DPADD+= ${RELTOP}/libiberty/libiberty.a LDADD= ${DPADD} +NO_PIE= yes + .include Modified: head/gnu/usr.bin/binutils/size/Makefile ============================================================================== --- head/gnu/usr.bin/binutils/size/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/gnu/usr.bin/binutils/size/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -14,4 +14,6 @@ DPADD+= ${RELTOP}/libbfd/libbfd.a DPADD+= ${RELTOP}/libiberty/libiberty.a LDADD= ${DPADD} +NO_PIE= yes + .include Modified: head/gnu/usr.bin/binutils/strings/Makefile ============================================================================== --- head/gnu/usr.bin/binutils/strings/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/gnu/usr.bin/binutils/strings/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -14,4 +14,6 @@ DPADD+= ${RELTOP}/libbfd/libbfd.a DPADD+= ${RELTOP}/libiberty/libiberty.a LDADD= ${DPADD} +NO_PIE= yes + .include Modified: head/gnu/usr.bin/binutils/strip/Makefile ============================================================================== --- head/gnu/usr.bin/binutils/strip/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/gnu/usr.bin/binutils/strip/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -15,4 +15,6 @@ DPADD+= ${RELTOP}/libiberty/libiberty.a LDADD= ${DPADD} INSTALLFLAGS= -S +NO_PIE= yes + .include Modified: head/gnu/usr.bin/gdb/gdb/Makefile ============================================================================== --- head/gnu/usr.bin/gdb/gdb/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/gnu/usr.bin/gdb/gdb/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -14,5 +14,7 @@ LDFLAGS+= -Wl,-E DPADD= ${GDBLIBS} ${BULIBS} ${LIBM} ${LIBREADLINE} ${LIBTERMCAP} ${LIBGNUREGEX} LDADD= ${GDBLIBS} ${BULIBS} -lm -lreadline -ltermcap -lgnuregex +NO_PIE= yes + .include CFLAGS+= -DDEBUGDIR=\"${DEBUGDIR}\" Modified: head/gnu/usr.bin/gdb/gdbtui/Makefile ============================================================================== --- head/gnu/usr.bin/gdb/gdbtui/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/gnu/usr.bin/gdb/gdbtui/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -15,4 +15,6 @@ LDFLAGS+= -Wl,-E DPADD= ${GDBLIBS} ${BULIBS} ${LIBM} ${LIBREADLINE} ${LIBTERMCAP} ${LIBGNUREGEX} LDADD= ${GDBLIBS} ${BULIBS} -lm -lreadline -ltermcap -lgnuregex +NO_PIE= yes + .include Modified: head/gnu/usr.bin/gdb/kgdb/Makefile ============================================================================== --- head/gnu/usr.bin/gdb/kgdb/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/gnu/usr.bin/gdb/kgdb/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -17,4 +17,6 @@ LDADD= ${GDBLIBS} ${BULIBS} -lkvm${GDB_S CFLAGS+= -Wl,-export-dynamic .endif +NO_PIE= yes + .include Modified: head/gnu/usr.bin/groff/src/devices/grodvi/Makefile ============================================================================== --- head/gnu/usr.bin/groff/src/devices/grodvi/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/gnu/usr.bin/groff/src/devices/grodvi/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -6,4 +6,6 @@ DPADD= ${LIBDRIVER} ${LIBGROFF} ${LIBM} LDADD= ${LIBDRIVER} ${LIBGROFF} -lm CLEANFILES= ${MAN} +NO_PIE= yes + .include Modified: head/gnu/usr.bin/groff/src/devices/grohtml/Makefile ============================================================================== --- head/gnu/usr.bin/groff/src/devices/grohtml/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/gnu/usr.bin/groff/src/devices/grohtml/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -6,4 +6,6 @@ DPADD= ${LIBDRIVER} ${LIBGROFF} ${LIBM} LDADD= ${LIBDRIVER} ${LIBGROFF} -lm MAN= +NO_PIE= yes + .include Modified: head/gnu/usr.bin/groff/src/devices/grolbp/Makefile ============================================================================== --- head/gnu/usr.bin/groff/src/devices/grolbp/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/gnu/usr.bin/groff/src/devices/grolbp/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -6,4 +6,6 @@ DPADD= ${LIBDRIVER} ${LIBGROFF} ${LIBM} LDADD= ${LIBDRIVER} ${LIBGROFF} -lm CLEANFILES= ${MAN} +NO_PIE= yes + .include Modified: head/gnu/usr.bin/groff/src/devices/grolj4/Makefile ============================================================================== --- head/gnu/usr.bin/groff/src/devices/grolj4/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/gnu/usr.bin/groff/src/devices/grolj4/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -7,4 +7,6 @@ DPADD= ${LIBDRIVER} ${LIBGROFF} ${LIBM} LDADD= ${LIBDRIVER} ${LIBGROFF} -lm CLEANFILES= ${MAN} +NO_PIE= yes + .include Modified: head/gnu/usr.bin/groff/src/devices/grops/Makefile ============================================================================== --- head/gnu/usr.bin/groff/src/devices/grops/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/gnu/usr.bin/groff/src/devices/grops/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -6,4 +6,6 @@ DPADD= ${LIBDRIVER} ${LIBGROFF} ${LIBM} LDADD= ${LIBDRIVER} ${LIBGROFF} -lm CLEANFILES= ${MAN} +NO_PIE= yes + .include Modified: head/gnu/usr.bin/groff/src/devices/grotty/Makefile ============================================================================== --- head/gnu/usr.bin/groff/src/devices/grotty/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/gnu/usr.bin/groff/src/devices/grotty/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -6,4 +6,6 @@ DPADD= ${LIBDRIVER} ${LIBGROFF} ${LIBM} LDADD= ${LIBDRIVER} ${LIBGROFF} -lm CLEANFILES= ${MAN} +NO_PIE= yes + .include Modified: head/gnu/usr.bin/groff/src/preproc/eqn/Makefile ============================================================================== --- head/gnu/usr.bin/groff/src/preproc/eqn/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/gnu/usr.bin/groff/src/preproc/eqn/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -11,6 +11,8 @@ SCRIPTS= neqn MAN= eqn.1 neqn.1 CLEANFILES= eqn.cpp eqn_tab.h ${SCRIPTS} ${MAN} y.tab.c y.tab.h +NO_PIE= yes + eqn_tab.h: eqn.cpp .include Modified: head/gnu/usr.bin/groff/src/preproc/grn/Makefile ============================================================================== --- head/gnu/usr.bin/groff/src/preproc/grn/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/gnu/usr.bin/groff/src/preproc/grn/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -6,4 +6,6 @@ DPADD= ${LIBGROFF} ${LIBM} LDADD= ${LIBGROFF} -lm CLEANFILES= ${MAN} +NO_PIE= yes + .include Modified: head/gnu/usr.bin/groff/src/preproc/html/Makefile ============================================================================== --- head/gnu/usr.bin/groff/src/preproc/html/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/gnu/usr.bin/groff/src/preproc/html/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -6,4 +6,6 @@ DPADD= ${LIBGROFF} LDADD= ${LIBGROFF} MAN= +NO_PIE= yes + .include Modified: head/gnu/usr.bin/groff/src/preproc/pic/Makefile ============================================================================== --- head/gnu/usr.bin/groff/src/preproc/pic/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/gnu/usr.bin/groff/src/preproc/pic/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -8,6 +8,8 @@ DPADD= ${LIBGROFF} ${LIBM} LDADD= ${LIBGROFF} -lm CLEANFILES= ${MAN} pic.cpp pic_tab.h y.tab.c y.tab.h +NO_PIE= yes + pic_tab.h: pic.cpp .include Modified: head/gnu/usr.bin/groff/src/preproc/refer/Makefile ============================================================================== --- head/gnu/usr.bin/groff/src/preproc/refer/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/gnu/usr.bin/groff/src/preproc/refer/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -7,4 +7,6 @@ DPADD= ${LIBBIB} ${LIBGROFF} ${LIBM} LDADD= ${LIBBIB} ${LIBGROFF} -lm CLEANFILES= label.cpp label_tab.h ${MAN} y.tab.c y.tab.h +NO_PIE= yes + .include Modified: head/gnu/usr.bin/groff/src/preproc/soelim/Makefile ============================================================================== --- head/gnu/usr.bin/groff/src/preproc/soelim/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/gnu/usr.bin/groff/src/preproc/soelim/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -6,4 +6,6 @@ DPADD= ${LIBGROFF} LDADD= ${LIBGROFF} CLEANFILES= ${MAN} +NO_PIE= yes + .include Modified: head/gnu/usr.bin/groff/src/preproc/tbl/Makefile ============================================================================== --- head/gnu/usr.bin/groff/src/preproc/tbl/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/gnu/usr.bin/groff/src/preproc/tbl/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -6,4 +6,6 @@ DPADD= ${LIBGROFF} ${LIBM} LDADD= ${LIBGROFF} -lm CLEANFILES= ${MAN} +NO_PIE= yes + .include Modified: head/gnu/usr.bin/groff/src/roff/groff/Makefile ============================================================================== --- head/gnu/usr.bin/groff/src/roff/groff/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/gnu/usr.bin/groff/src/roff/groff/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -6,4 +6,6 @@ DPADD= ${LIBGROFF} ${LIBM} LDADD= ${LIBGROFF} -lm CLEANFILES= ${MAN} +NO_PIE= yes + .include Modified: head/gnu/usr.bin/groff/src/roff/troff/Makefile ============================================================================== --- head/gnu/usr.bin/groff/src/roff/troff/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/gnu/usr.bin/groff/src/roff/troff/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -7,6 +7,8 @@ DPADD= ${LIBGROFF} ${LIBM} LDADD= ${LIBGROFF} -lm CLEANFILES= majorminor.cpp ${MAN} +NO_PIE= yes + .include majorminor.cpp: ${GROFF_DIST}/VERSION ${GROFF_DIST}/REVISION Modified: head/gnu/usr.bin/groff/src/utils/addftinfo/Makefile ============================================================================== --- head/gnu/usr.bin/groff/src/utils/addftinfo/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/gnu/usr.bin/groff/src/utils/addftinfo/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -6,4 +6,6 @@ DPADD= ${LIBGROFF} LDADD= ${LIBGROFF} CLEANFILES= ${MAN} +NO_PIE= yes + .include Modified: head/gnu/usr.bin/groff/src/utils/hpftodit/Makefile ============================================================================== --- head/gnu/usr.bin/groff/src/utils/hpftodit/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/gnu/usr.bin/groff/src/utils/hpftodit/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -6,4 +6,6 @@ DPADD= ${LIBGROFF} ${LIBM} LDADD= ${LIBGROFF} -lm CLEANFILES= ${MAN} +NO_PIE= yes + .include Modified: head/gnu/usr.bin/groff/src/utils/indxbib/Makefile ============================================================================== --- head/gnu/usr.bin/groff/src/utils/indxbib/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/gnu/usr.bin/groff/src/utils/indxbib/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -6,6 +6,8 @@ DPADD= ${LIBBIB} ${LIBGROFF} ${LIBM} LDADD= ${LIBBIB} ${LIBGROFF} -lm CLEANFILES= ${MAN} +NO_PIE= yes + beforeinstall: ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \ ${DIST_DIR}/eign ${DESTDIR}${SHAREDIR}/dict/ Modified: head/gnu/usr.bin/groff/src/utils/lkbib/Makefile ============================================================================== --- head/gnu/usr.bin/groff/src/utils/lkbib/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/gnu/usr.bin/groff/src/utils/lkbib/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -6,4 +6,6 @@ DPADD= ${LIBBIB} ${LIBGROFF} ${LIBM} LDADD= ${LIBBIB} ${LIBGROFF} -lm CLEANFILES= ${MAN} +NO_PIE= yes + .include Modified: head/gnu/usr.bin/groff/src/utils/lookbib/Makefile ============================================================================== --- head/gnu/usr.bin/groff/src/utils/lookbib/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/gnu/usr.bin/groff/src/utils/lookbib/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -6,4 +6,6 @@ DPADD= ${LIBBIB} ${LIBGROFF} ${LIBM} LDADD= ${LIBBIB} ${LIBGROFF} -lm CLEANFILES= ${MAN} +NO_PIE= yes + .include Modified: head/gnu/usr.bin/groff/src/utils/tfmtodit/Makefile ============================================================================== --- head/gnu/usr.bin/groff/src/utils/tfmtodit/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/gnu/usr.bin/groff/src/utils/tfmtodit/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -6,4 +6,6 @@ DPADD= ${LIBGROFF} ${LIBM} LDADD= ${LIBGROFF} -lm CLEANFILES= ${MAN} +NO_PIE= yes + .include Modified: head/gnu/usr.bin/rcs/Makefile.inc ============================================================================== --- head/gnu/usr.bin/rcs/Makefile.inc Sun Jun 8 15:38:40 2014 (r267232) +++ head/gnu/usr.bin/rcs/Makefile.inc Sun Jun 8 17:29:31 2014 (r267233) @@ -1,3 +1,4 @@ # $FreeBSD$ LIBRCS= ${.OBJDIR}/../lib/librcs.a +NO_PIE= yes Modified: head/gnu/usr.bin/texinfo/info/Makefile ============================================================================== --- head/gnu/usr.bin/texinfo/info/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/gnu/usr.bin/texinfo/info/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -13,6 +13,8 @@ CFLAGS+= -DINFODIR=\"${INFODIR}:/usr/loc DPADD= ${LIBTERMCAP} ${LIBTXI} LDADD= -ltermcap ${LIBTXI} +NO_PIE= yes + .include .PATH: ${TXIDIR}/info ${TXIDIR}/doc Modified: head/gnu/usr.bin/texinfo/infokey/Makefile ============================================================================== --- head/gnu/usr.bin/texinfo/infokey/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/gnu/usr.bin/texinfo/infokey/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -6,6 +6,8 @@ SRCS= infokey.c key.c DPADD= ${LIBTXI} LDADD= ${LIBTXI} +NO_PIE= yes + .include .PATH: ${TXIDIR}/info ${TXIDIR}/doc Modified: head/gnu/usr.bin/texinfo/install-info/Makefile ============================================================================== --- head/gnu/usr.bin/texinfo/install-info/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/gnu/usr.bin/texinfo/install-info/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -5,6 +5,8 @@ PROG= install-info DPADD= ${LIBTXI} LDADD= ${LIBTXI} +NO_PIE= yes + .include .PATH: ${TXIDIR}/util ${TXIDIR}/doc Modified: head/gnu/usr.bin/texinfo/makeinfo/Makefile ============================================================================== --- head/gnu/usr.bin/texinfo/makeinfo/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/gnu/usr.bin/texinfo/makeinfo/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -8,6 +8,8 @@ SRCS= cmds.c defun.c files.c float.c foo DPADD= ${LIBTXI} LDADD= ${LIBTXI} +NO_PIE= yes + .include .PATH: $(TXIDIR)/makeinfo $(TXIDIR)/doc Modified: head/gnu/usr.bin/texinfo/texindex/Makefile ============================================================================== --- head/gnu/usr.bin/texinfo/texindex/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/gnu/usr.bin/texinfo/texindex/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -5,6 +5,8 @@ PROG= texindex DPADD= ${LIBTXI} LDADD= ${LIBTXI} +NO_PIE= yes + .include .PATH: ${TXIDIR}/util ${TXIDIR}/doc Modified: head/kerberos5/libexec/digest-service/Makefile ============================================================================== --- head/kerberos5/libexec/digest-service/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/kerberos5/libexec/digest-service/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -14,6 +14,8 @@ LDADD= -lhdb -lkdc -lheimipcs -lkrb5 -lr ${LIBVERS} -lheimntlm USEPRIVATELIB= heimipcs +NO_PIE= yes + .include .PATH: ${KRB5DIR}/kdc Modified: head/kerberos5/libexec/hprop/Makefile ============================================================================== --- head/kerberos5/libexec/hprop/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/kerberos5/libexec/hprop/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -16,6 +16,8 @@ LDADD= -lhdb -lkrb5 -lhx509 -lroken ${LI -lasn1 -lcrypto -lcrypt -lcom_err ${LDAPLDADD} LDFLAGS=${LDAPLDFLAGS} +NO_PIE= yes + .include .PATH: ${KRB5DIR}/kdc Modified: head/kerberos5/libexec/hpropd/Makefile ============================================================================== --- head/kerberos5/libexec/hpropd/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/kerberos5/libexec/hpropd/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -10,6 +10,8 @@ LDADD= -lhdb -lkrb5 -lhx509 -lroken ${LI -lasn1 -lcrypto -lcrypt -lcom_err ${LDAPLDADD} LDFLAGS=${LDAPLDFLAGS} +NO_PIE= yes + .include .PATH: ${KRB5DIR}/kdc Modified: head/kerberos5/libexec/ipropd-master/Makefile ============================================================================== --- head/kerberos5/libexec/ipropd-master/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/kerberos5/libexec/ipropd-master/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -11,6 +11,8 @@ LDADD= -lkadm5srv -lhdb -lkrb5 -lhx509 - -lasn1 -lcrypto -lcrypt -lcom_err ${LDAPLDADD} LDFLAGS=${LDAPLDFLAGS} +NO_PIE= yes + foo:: echo ${LIBHX509} Modified: head/kerberos5/libexec/ipropd-slave/Makefile ============================================================================== --- head/kerberos5/libexec/ipropd-slave/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/kerberos5/libexec/ipropd-slave/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -11,6 +11,8 @@ LDADD= -lkadm5srv -lhdb -lkrb5 -lhx509 - -lasn1 -lcrypto -lcrypt -lcom_err ${LDAPLDADD} LDFLAGS=${LDAPLDFLAGS} +NO_PIE= yes + .include .PATH: ${KRB5DIR}/lib/kadm5 Modified: head/kerberos5/libexec/kadmind/Makefile ============================================================================== --- head/kerberos5/libexec/kadmind/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/kerberos5/libexec/kadmind/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -15,6 +15,8 @@ LDADD= -lkadm5srv -lgssapi -lhdb -lkrb5 -lasn1 ${LIBVERS} -lcrypto -lcrypt ${LDAPLDADD} LDFLAGS=${LDAPLDFLAGS} +NO_PIE= yes + .include .PATH: ${KRB5DIR}/kadmin Modified: head/kerberos5/libexec/kcm/Makefile ============================================================================== --- head/kerberos5/libexec/kcm/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/kerberos5/libexec/kcm/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -26,6 +26,8 @@ LDADD= -lhdb -lkrb5 -lroken -lasn1 -lhei USEPRIVATELIB= heimipcs LDFLAGS=${LDAPLDFLAGS} +NO_PIE= yes + .include .PATH: ${KRB5DIR}/kcm Modified: head/kerberos5/libexec/kdc/Makefile ============================================================================== --- head/kerberos5/libexec/kdc/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/kerberos5/libexec/kdc/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -14,6 +14,8 @@ DPADD= ${LIBKDC} ${LIBHDB} ${LIBKRB5} ${ ${LIBCRYPTO} ${LIBCRYPT} ${LIBVERS} LDADD= -lkdc -lhdb -lkrb5 -lroken -lasn1 -lcrypto -lcrypt ${LIBVERS} +NO_PIE= yes + .include .PATH: ${KRB5DIR}/kdc Modified: head/kerberos5/libexec/kdigest/Makefile ============================================================================== --- head/kerberos5/libexec/kdigest/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/kerberos5/libexec/kdigest/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -13,6 +13,8 @@ SRCS= kdigest.c \ kdigest-commands.c \ kdigest-commands.h +NO_PIE= yes + kdigest-commands.h: kdigest-commands.in ${SLC} ${.ALLSRC:M*.in} Modified: head/kerberos5/libexec/kfd/Makefile ============================================================================== --- head/kerberos5/libexec/kfd/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/kerberos5/libexec/kfd/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -9,6 +9,8 @@ DPADD= ${LIBKRB5} ${LIBROKEN} ${LIBASN1} LDADD= -lkrb5 -lroken -lasn1 -lcrypto -lcrypt \ ${LIBVERS} +NO_PIE= yes + .include .PATH: ${KRB5DIR}/appl/kf Modified: head/kerberos5/libexec/kimpersonate/Makefile ============================================================================== --- head/kerberos5/libexec/kimpersonate/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/kerberos5/libexec/kimpersonate/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -11,6 +11,8 @@ DPADD= ${LIBKAFS5} ${LIBKRB5} ${LIBHEIMN LDADD= -lkafs5 -lkrb5 -lheimntlm -lroken -lasn1 -lcrypto -lcrypt \ ${LIBVERS} +NO_PIE= yes + .include .PATH: ${KRB5DIR}/kuser Modified: head/kerberos5/libexec/kpasswdd/Makefile ============================================================================== --- head/kerberos5/libexec/kpasswdd/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/kerberos5/libexec/kpasswdd/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -9,6 +9,8 @@ LDADD= -lkadm5srv -lhdb -lkrb5 -lhx509 - -lasn1 -lcrypto -lcrypt -lcom_err ${LDAPLDADD} LDFLAGS=${LDAPLDFLAGS} +NO_PIE= yes + .include .PATH: ${KRB5DIR}/kpasswd Modified: head/kerberos5/tools/asn1_compile/Makefile ============================================================================== --- head/kerberos5/tools/asn1_compile/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/kerberos5/tools/asn1_compile/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -27,6 +27,8 @@ CFLAGS+=-I${KRB5DIR}/lib/roken -I${KRB5D CLEANFILES= roken.h lex.c parse.c +NO_PIE= yes + roken.h: make-roken > ${.TARGET} Modified: head/kerberos5/tools/slc/Makefile ============================================================================== --- head/kerberos5/tools/slc/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/kerberos5/tools/slc/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -14,6 +14,8 @@ CFLAGS+=-I${KRB5DIR}/lib/roken -I${KRB5D CLEANFILES= roken.h slc-gram.c slc-lex.c +NO_PIE= yes + roken.h: ${MAKE_ROKEN} > ${.TARGET} Modified: head/kerberos5/usr.bin/hxtool/Makefile ============================================================================== --- head/kerberos5/usr.bin/hxtool/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/kerberos5/usr.bin/hxtool/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -10,6 +10,8 @@ DPADD= ${LIBHX509} ${LIBROKEN} ${LIBASN1 LDADD= -lhx509 -lroken -lasn1 -lcrypto -lcrypt ${LIBSL} ${LIBVERS} -ledit SRCS= hxtool.c hxtool-commands.c hxtool-commands.h +NO_PIE= yes + hxtool-commands.h: hxtool-commands.in ${SLC} ${.ALLSRC:M*.in} Modified: head/kerberos5/usr.bin/kadmin/Makefile ============================================================================== --- head/kerberos5/usr.bin/kadmin/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/kerberos5/usr.bin/kadmin/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -36,6 +36,8 @@ LDADD= -lkadm5clnt -lkadm5srv -lhdb -lkr -ledit -lncurses ${LDAPLDADD} LDFLAGS=${LDAPLDFLAGS} +NO_PIE= yes + .include kadmin-commands.h: ${KRB5DIR}/kadmin/kadmin-commands.in Modified: head/kerberos5/usr.bin/kcc/Makefile ============================================================================== --- head/kerberos5/usr.bin/kcc/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/kerberos5/usr.bin/kcc/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -19,6 +19,8 @@ SRCS= kcc.c \ kswitch.c \ copy_cred_cache.c +NO_PIE= yes + kcc-commands.h: kcc-commands.in ${SLC} ${.ALLSRC:M*.in} Modified: head/kerberos5/usr.bin/kdestroy/Makefile ============================================================================== --- head/kerberos5/usr.bin/kdestroy/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/kerberos5/usr.bin/kdestroy/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -8,6 +8,8 @@ LDADD= -lkafs5 -lkrb5 -lheimntlm -lroken -lasn1 -lcrypto -lcrypt MAN= kdestroy.1 +NO_PIE= yes + .include .PATH: ${KRB5DIR}/kuser Modified: head/kerberos5/usr.bin/kf/Makefile ============================================================================== --- head/kerberos5/usr.bin/kf/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/kerberos5/usr.bin/kf/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -9,6 +9,8 @@ DPADD= ${LIBKRB5} ${LIBROKEN} ${LIBASN1} LDADD= -lkrb5 -lroken -lasn1 -lcrypto -lcrypt \ ${LIBVERS} +NO_PIE= yes + .include .PATH: ${KRB5DIR}/appl/kf Modified: head/kerberos5/usr.bin/kgetcred/Makefile ============================================================================== --- head/kerberos5/usr.bin/kgetcred/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/kerberos5/usr.bin/kgetcred/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -6,6 +6,8 @@ CFLAGS+= -I${KRB5DIR}/lib/asn1 \ DPADD= ${LIBKRB5} ${LIBROKEN} ${LIBASN1} ${LIBCRYPTO} ${LIBCRYPT} ${LIBVERS} LDADD= -lkrb5 -lroken -lasn1 -lcrypto -lcrypt ${LIBVERS} +NO_PIE= yes + .include .PATH: ${KRB5DIR}/kuser Modified: head/kerberos5/usr.bin/kinit/Makefile ============================================================================== --- head/kerberos5/usr.bin/kinit/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/kerberos5/usr.bin/kinit/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -7,6 +7,8 @@ DPADD= ${LIBKAFS5} ${LIBKRB5} ${LIBHEIMN LDADD= -lkafs5 -lkrb5 -lheimntlm -lroken ${LIBVERS} \ -lasn1 -lcrypto -lcrypt -lcom_err +NO_PIE= yes + .include .PATH: ${KRB5DIR}/kuser Modified: head/kerberos5/usr.bin/kpasswd/Makefile ============================================================================== --- head/kerberos5/usr.bin/kpasswd/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/kerberos5/usr.bin/kpasswd/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -7,6 +7,8 @@ DPADD= ${LIBKRB5} ${LIBHX509} ${LIBROKEN LDADD= -lkrb5 -lhx509 -lroken ${LIBVERS} \ -lasn1 -lcrypto -lcrypt -lcom_err +NO_PIE= yes + .include .PATH: ${KRB5DIR}/kpasswd Modified: head/kerberos5/usr.bin/ksu/Makefile ============================================================================== --- head/kerberos5/usr.bin/ksu/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/kerberos5/usr.bin/ksu/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -13,6 +13,8 @@ DPADD= ${LIBKAFS5} ${LIBKRB5} ${LIBHX509 LDADD= -lkafs5 -lkrb5 -lhx509 -lroken ${LIBVERS} \ -lasn1 -lcrypto -lcrypt -lcom_err +NO_PIE= yes + .include .PATH: ${KRB5DIR}/appl/su Modified: head/kerberos5/usr.bin/string2key/Makefile ============================================================================== --- head/kerberos5/usr.bin/string2key/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/kerberos5/usr.bin/string2key/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -11,6 +11,8 @@ DPADD= ${LIBHDB} ${LIBKRB5} ${LIBROKEN} ${LIBCRYPT} ${LIBVERS} LDADD= -lhdb -lkrb5 -lroken -lasn1 -lcrypto -lcrypt ${LIBVERS} +NO_PIE= yes + .include .PATH: ${KRB5DIR}/kdc Modified: head/kerberos5/usr.bin/verify_krb5_conf/Makefile ============================================================================== --- head/kerberos5/usr.bin/verify_krb5_conf/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/kerberos5/usr.bin/verify_krb5_conf/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -8,6 +8,8 @@ DPADD= ${LIBKAFS5} ${LIBKRB5} ${LIBHX509 LDADD= -lkafs5 -lkrb5 -lhx509 -lroken ${LIBVERS} \ -lasn1 -lcrypto -lcrypt -lcom_err +NO_PIE= yes + .include .PATH: ${KRB5DIR}/lib/krb5 Modified: head/kerberos5/usr.sbin/iprop-log/Makefile ============================================================================== --- head/kerberos5/usr.sbin/iprop-log/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/kerberos5/usr.sbin/iprop-log/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -13,6 +13,8 @@ DPADD= ${LIBKADM5SRV} ${LIBHDB} ${LIBKRB LDADD= -lkadm5srv -lhdb -lkrb5 -lasn1 -lcrypto -lcrypt ${LIBSL} -lroken \ ${LIBVERS} -ledit +NO_PIE= yes + iprop-commands.h: iprop-commands.in ${SLC} ${.ALLSRC:M*.in} Modified: head/kerberos5/usr.sbin/kstash/Makefile ============================================================================== --- head/kerberos5/usr.sbin/kstash/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/kerberos5/usr.sbin/kstash/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -10,6 +10,8 @@ LDADD= -lhdb -lkrb5 -lroken ${LIBVERS} \ -lasn1 -lcrypto -lcrypt ${LDAPLDADD} LDFLAGS=${LDAPLDFLAGS} +NO_PIE= yes + .include .PATH: ${KRB5DIR}/kdc Modified: head/kerberos5/usr.sbin/ktutil/Makefile ============================================================================== --- head/kerberos5/usr.sbin/ktutil/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/kerberos5/usr.sbin/ktutil/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -22,6 +22,8 @@ DPADD= ${LIBKADM5CLNT} ${LIBKRB5} ${LIBS LDADD= -lkadm5clnt -lkrb5 ${LIBSL} -lroken ${LIBVERS} \ -lasn1 -lcrypto -lcrypt -ledit +NO_PIE= yes + .include ktutil-commands.h: ${KRB5DIR}/admin/ktutil-commands.in Modified: head/lib/csu/amd64/Makefile ============================================================================== --- head/lib/csu/amd64/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/lib/csu/amd64/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -9,6 +9,8 @@ CFLAGS+= -I${.CURDIR}/../common \ -I${.CURDIR}/../../libc/include CFLAGS+= -fno-omit-frame-pointer +NO_PIE= yes + all: ${OBJS} CLEANFILES= ${OBJS} Modified: head/lib/csu/i386-elf/Makefile ============================================================================== --- head/lib/csu/i386-elf/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/lib/csu/i386-elf/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -13,6 +13,8 @@ CFLAGS+= -I${.CURDIR}/../common \ CLEANFILES= ${FILES} crt1_c.o crt1_s.o gcrt1_c.o Scrt1_c.o CLEANFILES+= crt1_c.s gcrt1_c.s Scrt1_c.s +NO_PIE= yes + # See the comment in lib/csu/common/crtbrand.c for the reason crt1_c.c is not # directly compiled to .o files. Modified: head/libexec/mail.local/Makefile ============================================================================== --- head/libexec/mail.local/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/libexec/mail.local/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -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 Modified: head/libexec/rtld-elf/Makefile ============================================================================== --- head/libexec/rtld-elf/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/libexec/rtld-elf/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -78,5 +78,7 @@ beforeinstall: .PATH: ${.CURDIR}/${RTLD_ARCH} +NO_PIE= yes + .include .include Modified: head/libexec/smrsh/Makefile ============================================================================== --- head/libexec/smrsh/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/libexec/smrsh/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -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 Modified: head/libexec/telnetd/Makefile ============================================================================== --- head/libexec/telnetd/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/libexec/telnetd/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -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 Modified: head/sbin/fsck/Makefile ============================================================================== --- head/sbin/fsck/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/sbin/fsck/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -5,4 +5,6 @@ PROG= fsck SRCS= fsck.c fsutil.c preen.c MAN= fsck.8 +NO_PIE= yes + .include Modified: head/sbin/ipf/ipf/Makefile ============================================================================== --- head/sbin/ipf/ipf/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/sbin/ipf/ipf/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -39,4 +39,6 @@ DPADD+= ${LIBPCAP} LDADD+= -lpcap .endif +NO_PIE= yes + .include Modified: head/sbin/ipf/ipfstat/Makefile ============================================================================== --- head/sbin/ipf/ipfstat/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/sbin/ipf/ipfstat/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -8,4 +8,6 @@ MAN= ipfstat.8 DPADD+= ${LIBCURSES} LDADD+= -lcurses +NO_PIE= yes + .include Modified: head/sbin/ipf/ipftest/Makefile ============================================================================== --- head/sbin/ipf/ipftest/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/sbin/ipf/ipftest/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -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' \ Modified: head/sbin/ipf/ipmon/Makefile ============================================================================== --- head/sbin/ipf/ipmon/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/sbin/ipf/ipmon/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -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' \ Modified: head/sbin/ipf/ipnat/Makefile ============================================================================== --- head/sbin/ipf/ipnat/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/sbin/ipf/ipnat/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -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' \ Modified: head/sbin/ipf/ippool/Makefile ============================================================================== --- head/sbin/ipf/ippool/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/sbin/ipf/ippool/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -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' \ Modified: head/sbin/ipf/ipresend/Makefile ============================================================================== --- head/sbin/ipf/ipresend/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/sbin/ipf/ipresend/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -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 Modified: head/sbin/rcorder/Makefile ============================================================================== --- head/sbin/rcorder/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/sbin/rcorder/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -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} Modified: head/share/mk/bsd.opts.mk ============================================================================== --- head/share/mk/bsd.opts.mk Sun Jun 8 15:38:40 2014 (r267232) +++ head/share/mk/bsd.opts.mk Sun Jun 8 17:29:31 2014 (r267233) @@ -68,7 +68,8 @@ __DEFAULT_YES_OPTIONS = \ __DEFAULT_NO_OPTIONS = \ CTF \ DEBUG_FILES \ - INSTALL_AS_USER + INSTALL_AS_USER \ + PIE .include Modified: head/share/mk/bsd.prog.mk ============================================================================== --- head/share/mk/bsd.prog.mk Sun Jun 8 15:38:40 2014 (r267232) +++ head/share/mk/bsd.prog.mk Sun Jun 8 17:29:31 2014 (r267233) @@ -11,6 +11,18 @@ CFLAGS+=${COPTS} .endif +.if ${MK_PIE} != "no" && (!defined(NO_PIE) || ${NO_PIE} == "no") +.if !defined(RESCUE) && !defined(NO_SHARED) +CFLAGS+= -fPIE -pie +LDFLAGS+= -pie +.elif defined(NO_SHARED) +.if ${NO_SHARED} == "no" || ${NO_SHARED} == "NO" +CFLAGS+= -fPIE -pie +LDFLAGS+= -pie +.endif +.endif +.endif + .if ${MK_ASSERT_DEBUG} == "no" CFLAGS+= -DNDEBUG NO_WERROR= Modified: head/sys/boot/i386/boot2/Makefile ============================================================================== --- head/sys/boot/i386/boot2/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/sys/boot/i386/boot2/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -22,6 +22,8 @@ BOOT2_UFS?= UFS1_AND_UFS2 #BOOT2_UFS?= UFS2_ONLY #BOOT2_UFS?= UFS1_ONLY +NO_PIE= yes + CFLAGS= -Os \ -fomit-frame-pointer \ -mrtd \ Modified: head/sys/boot/i386/btx/btx/Makefile ============================================================================== --- head/sys/boot/i386/btx/btx/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/sys/boot/i386/btx/btx/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -5,6 +5,8 @@ INTERNALPROG= MAN= SRCS= btx.S +NO_PIE= yes + .if defined(BOOT_BTX_NOHANG) BOOT_BTX_FLAGS=0x1 .else Modified: head/sys/boot/i386/btx/btxldr/Makefile ============================================================================== --- head/sys/boot/i386/btx/btxldr/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/sys/boot/i386/btx/btxldr/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -5,6 +5,8 @@ INTERNALPROG= MAN= SRCS= btxldr.S +NO_PIE= yes + CFLAGS+=-DLOADER_ADDRESS=${LOADER_ADDRESS} CFLAGS+=-I${.CURDIR}/../../common Modified: head/sys/boot/i386/btx/lib/Makefile ============================================================================== --- head/sys/boot/i386/btx/lib/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/sys/boot/i386/btx/lib/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -7,4 +7,6 @@ SRCS= btxcsu.S btxsys.s btxv86.s CFLAGS+=-I${.CURDIR}/../../common LDFLAGS=-Wl,-r +NO_PIE= yes + .include Modified: head/sys/boot/i386/loader/Makefile ============================================================================== --- head/sys/boot/i386/loader/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/sys/boot/i386/loader/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -8,6 +8,8 @@ PROG= ${LOADER}.sym INTERNALPROG= NEWVERSWHAT?= "bootstrap loader" x86 +NO_PIE= yes + # architecture-specific loader code SRCS= main.c conf.c vers.c Modified: head/sys/boot/mips/beri/boot2/Makefile ============================================================================== --- head/sys/boot/mips/beri/boot2/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/sys/boot/mips/beri/boot2/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -32,6 +32,8 @@ BINDIR?= /boot INSTALLFLAGS= -b +NO_PIE= yes + LOADERS= flashboot jtagboot FILES= ${LOADERS} ${LOADERS:S/$/.md5/} Modified: head/sys/boot/mips/beri/loader/Makefile ============================================================================== --- head/sys/boot/mips/beri/loader/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/sys/boot/mips/beri/loader/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -36,6 +36,8 @@ PROG?= loader NEWVERSWHAT= "BERI loader" ${MACHINE_CPUARCH} INSTALLFLAGS= -b +NO_PIE= yes + # Architecture-specific loader code SRCS= start.S \ main.c \ Modified: head/sys/boot/pc98/boot2/Makefile ============================================================================== --- head/sys/boot/pc98/boot2/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/sys/boot/pc98/boot2/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -6,6 +6,8 @@ CC:= gcc COMPILER_TYPE:= gcc +NO_PIE= yes + FILES= boot boot1 boot2 NM?= nm Modified: head/sys/boot/pc98/btx/lib/Makefile ============================================================================== --- head/sys/boot/pc98/btx/lib/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/sys/boot/pc98/btx/lib/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -7,4 +7,6 @@ SRCS= btxcsu.S btxsys.s btxv86.s CFLAGS+=-I${.CURDIR}/../../../i386/common LDFLAGS=-Wl,-r +NO_PIE= yes + .include Modified: head/sys/boot/pc98/loader/Makefile ============================================================================== --- head/sys/boot/pc98/loader/Makefile Sun Jun 8 15:38:40 2014 (r267232) +++ head/sys/boot/pc98/loader/Makefile Sun Jun 8 17:29:31 2014 (r267233) @@ -8,6 +8,8 @@ PROG= ${LOADER}.sym INTERNALPROG= NEWVERSWHAT= "bootstrap loader" pc98 +NO_PIE= yes *** DIFF OUTPUT TRUNCATED AT 1000 LINES ***