From 42c782845df9cc244f8b1884170cc7ef8ee77f17 Mon Sep 17 00:00:00 2001 From: Pascal Stumpf Date: Tue, 28 Aug 2012 21:03:33 +0000 Subject: Add -nopie to LINKFLAGS on ELF architectures. Note that this needs an updated gcc and ld to understand the new -nopie flag. ok deraadt@ --- sys/arch/sgi/conf/Makefile.sgi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/arch/sgi') diff --git a/sys/arch/sgi/conf/Makefile.sgi b/sys/arch/sgi/conf/Makefile.sgi index 7d0e27a1a08..7c707b59546 100644 --- a/sys/arch/sgi/conf/Makefile.sgi +++ b/sys/arch/sgi/conf/Makefile.sgi @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.sgi,v 1.57 2012/08/22 16:58:26 pascal Exp $ +# $OpenBSD: Makefile.sgi,v 1.58 2012/08/28 21:03:32 pascal Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -45,7 +45,8 @@ CMACHFLAGS+= -fno-stack-protector COPTS?= -O2 CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTS} ${PIPE} AFLAGS= -D_LOCORE -x assembler-with-cpp ${CMACHFLAGS} -LINKFLAGS= -e start -T ${_machdir}/conf/ld.script -Ttext=${LINK_ADDRESS} --warn-common +LINKFLAGS= -e start -T ${_machdir}/conf/ld.script -Ttext=${LINK_ADDRESS} \ + --warn-common -nopie .if ${IDENT:M-DDDB_STRUCT} DB_STRUCTINFO= db_structinfo.h -- cgit v1.2.3