summaryrefslogtreecommitdiff
path: root/sys/arch/hppa64/conf
diff options
context:
space:
mode:
authorPascal Stumpf <pascal@cvs.openbsd.org>2012-08-28 21:03:33 +0000
committerPascal Stumpf <pascal@cvs.openbsd.org>2012-08-28 21:03:33 +0000
commit42c782845df9cc244f8b1884170cc7ef8ee77f17 (patch)
tree692fb495c77eadb1d4c3cf5bbeb49e0dba8ae7be /sys/arch/hppa64/conf
parentb38e4f3f802dc97f24e988744e68788b60154c14 (diff)
Add -nopie to LINKFLAGS on ELF architectures. Note that this needs an
updated gcc and ld to understand the new -nopie flag. ok deraadt@
Diffstat (limited to 'sys/arch/hppa64/conf')
-rw-r--r--sys/arch/hppa64/conf/Makefile.hppa645
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/hppa64/conf/Makefile.hppa64 b/sys/arch/hppa64/conf/Makefile.hppa64
index c8dc04d1263..8338c5fbca9 100644
--- a/sys/arch/hppa64/conf/Makefile.hppa64
+++ b/sys/arch/hppa64/conf/Makefile.hppa64
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.hppa64,v 1.42 2012/08/22 16:58:26 pascal Exp $
+# $OpenBSD: Makefile.hppa64,v 1.43 2012/08/28 21:03:32 pascal Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -36,7 +36,8 @@ CMACHFLAGS+= -fno-stack-protector
COPTS?= -Os
CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTS} ${PIPE}
AFLAGS= -D_LOCORE -x assembler-with-cpp -traditional-cpp ${CMACHFLAGS}
-LINKFLAGS= -X -T ${_machdir}/conf/ld.script -Ttext 80000 --warn-common
+LINKFLAGS= -X -T ${_machdir}/conf/ld.script -Ttext 80000 --warn-common \
+ -nopie
.if ${IDENT:M-DDDB} != ""
CFLAGS+= -fno-omit-frame-pointer