summaryrefslogtreecommitdiff
path: root/sys/arch/hppa/stand/boot
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2016-07-30 03:25:50 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2016-07-30 03:25:50 +0000
commit504cca6cdb1359a366237bb2195be0c746cabb21 (patch)
treec9af0b76bebfd27ed2e6c58db5108cda5eb32460 /sys/arch/hppa/stand/boot
parenteaca4810148e3d8b20ad9aa2d209b3e04c30e0f3 (diff)
Prep for relro: make sure it's off for any non-PIE stand/ program
ok millert@ kettenis@
Diffstat (limited to 'sys/arch/hppa/stand/boot')
-rw-r--r--sys/arch/hppa/stand/boot/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/hppa/stand/boot/Makefile b/sys/arch/hppa/stand/boot/Makefile
index 42ce85252b3..1d354d9e740 100644
--- a/sys/arch/hppa/stand/boot/Makefile
+++ b/sys/arch/hppa/stand/boot/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.25 2016/03/30 06:38:45 jmc Exp $
+# $OpenBSD: Makefile,v 1.26 2016/07/30 03:25:48 guenther Exp $
MAN= boot.8
MANSUBDIR=hppa
@@ -17,7 +17,7 @@ SRCS+= milli.S ashrdi3.c memcmp.c memcpy.c memset.c moddi3.c muldi3.c \
qdivrem.c strcmp.c strlcpy.c strlen.c strncmp.c strncpy.c divdi3.c
LD?= ld
-LDFLAGS+=-Bstatic -nostartfiles -nostdlib -N -Ttext $(LINKADDR) -nopie
+LDFLAGS+=-Bstatic -nostartfiles -nostdlib -N -Ttext $(LINKADDR) -nopie -znorelro
LDFLAGS+=-T ${.CURDIR}/ld.script -Map boot.map
SIZE?= size
STRIP?= strip