diff options
author | Pascal Stumpf <pascal@cvs.openbsd.org> | 2012-08-21 14:46:21 +0000 |
---|---|---|
committer | Pascal Stumpf <pascal@cvs.openbsd.org> | 2012-08-21 14:46:21 +0000 |
commit | 9333c875627ad69d46ab3793263036ff3b45cc49 (patch) | |
tree | 697841a9433248956f025a7d1b3cd8019dfef64c /sys/arch/hppa | |
parent | 1caaeac6aae64a980b30cd0f00e3d491be174c97 (diff) |
Add NOPIE= bits for sys/arch/*/stand to ensure that bootblocks will always be
built with -fno-pie. This gets the hairiest part of PIE out of the way ...
ok deraadt@
Diffstat (limited to 'sys/arch/hppa')
-rw-r--r-- | sys/arch/hppa/stand/Makefile.inc | 3 | ||||
-rw-r--r-- | sys/arch/hppa/stand/boot/Makefile | 4 | ||||
-rw-r--r-- | sys/arch/hppa/stand/cdboot/Makefile | 4 | ||||
-rw-r--r-- | sys/arch/hppa/stand/libsa/Makefile | 3 | ||||
-rw-r--r-- | sys/arch/hppa/stand/libz/Makefile | 4 |
5 files changed, 13 insertions, 5 deletions
diff --git a/sys/arch/hppa/stand/Makefile.inc b/sys/arch/hppa/stand/Makefile.inc index d6bb0f83991..720d984154d 100644 --- a/sys/arch/hppa/stand/Makefile.inc +++ b/sys/arch/hppa/stand/Makefile.inc @@ -1,6 +1,7 @@ -# $OpenBSD: Makefile.inc,v 1.17 2008/03/04 22:33:03 deraadt Exp $ +# $OpenBSD: Makefile.inc,v 1.18 2012/08/21 14:46:18 pascal Exp $ CFLAGS=${DEBUG} -Os -Wall -Werror +CFLAGS+=${NOPIE_FLAGS} CPPFLAGS+=-I${S} -I. -I${.CURDIR} SACFLAGS=-nostdinc -fno-builtin -D_STANDALONE -I${STANDIR}/libsa SACFLAGS+=-mdisable-fpregs -mfast-indirect-calls -mpa-risc-1-1 diff --git a/sys/arch/hppa/stand/boot/Makefile b/sys/arch/hppa/stand/boot/Makefile index c3a3846a175..e000e46e31e 100644 --- a/sys/arch/hppa/stand/boot/Makefile +++ b/sys/arch/hppa/stand/boot/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.21 2011/07/09 15:27:11 jsing Exp $ +# $OpenBSD: Makefile,v 1.22 2012/08/21 14:46:18 pascal Exp $ MAN= boot.8 MANSUBDIR=hppa @@ -57,3 +57,5 @@ NOPROG= CPPFLAGS+=${DEBUGFLAGS} -DRELOC=${LOADADDR} -DHEAP_LIMIT=${HEAP_LIMIT} CFLAGS+=$(SACFLAGS) +CFLAGS+=${NOPIE_FLAGS} +AFLAGS+=${NOPIE_FLAGS} diff --git a/sys/arch/hppa/stand/cdboot/Makefile b/sys/arch/hppa/stand/cdboot/Makefile index aa88ec34006..256bfa4f5df 100644 --- a/sys/arch/hppa/stand/cdboot/Makefile +++ b/sys/arch/hppa/stand/cdboot/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.5 2007/12/26 18:52:59 kettenis Exp $ +# $OpenBSD: Makefile,v 1.6 2012/08/21 14:46:18 pascal Exp $ NOMAN= no man S =${.CURDIR}/../../../.. @@ -60,3 +60,5 @@ NOPROG= CPPFLAGS+=-DRELOC=${LOADADDR} -DHEAP_LIMIT=${HEAP_LIMIT} CFLAGS+=$(SACFLAGS) -I../.. -I${.CURDIR}/../libsa -I${S}/stand/boot +CFLAGS+=${NOPIE_FLAGS} +AFLAGS+=${NOPIE_FLAGS} diff --git a/sys/arch/hppa/stand/libsa/Makefile b/sys/arch/hppa/stand/libsa/Makefile index 2beb2c20d9d..bf3fa2f348f 100644 --- a/sys/arch/hppa/stand/libsa/Makefile +++ b/sys/arch/hppa/stand/libsa/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.14 2007/12/26 18:52:59 kettenis Exp $ +# $OpenBSD: Makefile,v 1.15 2012/08/21 14:46:18 pascal Exp $ .include "${.CURDIR}/../Makefile.inc" @@ -10,6 +10,7 @@ DIR_SA= $S/lib/libsa NOPROFILE=noprofile NOPIC=nopic +NOPIE= #AS=cat ; #AS+= -R diff --git a/sys/arch/hppa/stand/libz/Makefile b/sys/arch/hppa/stand/libz/Makefile index cb246dceb5e..e7db96f6a8a 100644 --- a/sys/arch/hppa/stand/libz/Makefile +++ b/sys/arch/hppa/stand/libz/Makefile @@ -1,9 +1,11 @@ -# $OpenBSD: Makefile,v 1.2 2003/12/18 02:27:13 millert Exp $ +# $OpenBSD: Makefile,v 1.3 2012/08/21 14:46:18 pascal Exp $ S=${.CURDIR}/../../../.. ZDST=${.OBJDIR} SADIR=${.CURDIR}/.. +NOPIE= + .PATH: ${S}/lib/libz .include "${S}/lib/libz/Makefile" |