-# $OpenBSD: Makefile,v 1.20 2015/10/22 18:54:41 miod Exp $
+# $OpenBSD: Makefile,v 1.21 2016/07/30 03:25:48 guenther Exp $
# $NetBSD: Makefile,v 1.17 1997/04/17 07:27:46 thorpej Exp $
S= ${.CURDIR}/../../../..
${PROG}.sym: ${OBJS} ${LIBSA} ${LIBZ}
sh ${.CURDIR}/newvers.sh ${.CURDIR}/version
${COMPILE.c} vers.c
- ${LD} -nopie -Ttext ${BOOT_RELOC} -N -e start -o ${PROG}.sym \
- ${OBJS} vers.o ${LIBSA} ${LIBZ} ${LIBSA}
+ ${LD} -nopie -znorelro -Ttext ${BOOT_RELOC} -N -e start \
+ -o ${PROG}.sym ${OBJS} vers.o ${LIBSA} ${LIBZ} ${LIBSA}
size ${PROG}.sym
-# $OpenBSD: Makefile,v 1.15 2015/10/22 18:54:41 miod Exp $
+# $OpenBSD: Makefile,v 1.16 2016/07/30 03:25:48 guenther Exp $
# $NetBSD: Makefile,v 1.12 1997/04/17 07:27:49 thorpej Exp $
S= ${.CURDIR}/../../../..
.include <bsd.prog.mk>
${PROG}.sym: ${OBJS}
- ${LD} -nopie -Ttext ${BOOT_RELOC} -N -e start -o ${PROG}.sym ${OBJS}
+ ${LD} -nopie -znorelro -Ttext ${BOOT_RELOC} -N -e start \
+ -o ${PROG}.sym ${OBJS}
size ${PROG}.sym
-# $OpenBSD: Makefile,v 1.13 2014/12/13 14:45:34 miod Exp $
+# $OpenBSD: Makefile,v 1.14 2016/07/30 03:25:48 guenther Exp $
# $NetBSD: Makefile,v 1.11 1997/04/17 07:27:50 thorpej Exp $
S= ${.CURDIR}/../../../..
${PROG}.sym: ${OBJS} ${LIBSA} ${LIBZ}
sh ${.CURDIR}/newvers.sh ${.CURDIR}/version
${COMPILE.c} vers.c
- ${LD} -nopie -Ttext ${BOOT_RELOC} -N -e start -o ${PROG}.sym \
- ${OBJS} vers.o ${LIBSA} ${LIBZ} ${LIBSA}
+ ${LD} -nopie -znorelro -Ttext ${BOOT_RELOC} -N -e start \
+ -o ${PROG}.sym ${OBJS} vers.o ${LIBSA} ${LIBZ} ${LIBSA}
size ${PROG}.sym
-# $OpenBSD: Makefile,v 1.10 2014/07/13 21:18:44 jasper Exp $
+# $OpenBSD: Makefile,v 1.11 2016/07/30 03:25:48 guenther Exp $
MAN= biosboot.8
PROG= biosboot
SRCS= biosboot.S
LD=ld
-LDFLAGS=-nostdlib -Ttext 0 -N -x -Bstatic -nopie
+LDFLAGS=-nostdlib -Ttext 0 -N -x -Bstatic -nopie -znorelro
LDFLAGS+=-melf_i386 -L/usr/libdata
INSTALL_STRIP=
-# $OpenBSD: Makefile,v 1.31 2016/03/30 06:38:45 jmc Exp $
+# $OpenBSD: Makefile,v 1.32 2016/07/30 03:25:48 guenther Exp $
COPTS?=
MAN?= boot.8
SRCS= srt0.S conf.c
LD?= ld
SIZE?= size
-LDFLAGS+=-nostdlib -Bstatic -Ttext $(LINKADDR) -N -x -nopie
+LDFLAGS+=-nostdlib -Bstatic -Ttext $(LINKADDR) -N -x -nopie -znorelro
LDFLAGS+=-melf_i386 -L/usr/libdata
.PATH: ${S}/stand/boot
-# $OpenBSD: Makefile,v 1.27 2015/09/02 01:52:25 yasuoka Exp $
+# $OpenBSD: Makefile,v 1.28 2016/07/30 03:25:48 guenther Exp $
MAN= cdboot.8
SRCS= srt0.S boot.c conf.c
LD?= ld
SIZE?= size
-LDFLAGS+=-nostdlib -Bstatic -Ttext $(LINKADDR) -N -x -nopie
+LDFLAGS+=-nostdlib -Bstatic -Ttext $(LINKADDR) -N -x -nopie -znorelro
LDFLAGS+=-melf_i386 -L/usr/libdata
INSTALL_STRIP=
BINMODE=644
-# $OpenBSD: Makefile,v 1.10 2015/02/07 23:23:03 miod Exp $
+# $OpenBSD: Makefile,v 1.11 2016/07/30 03:25:48 guenther Exp $
#
S= ${.CURDIR}/../../../..
AFLAGS+=-fno-pie
LD=ld
ORG= 0x0000
-LDFLAGS=-nostdlib -Ttext ${ORG} -x -N -s -Bstatic -e start -nopie
+LDFLAGS=-nostdlib -Ttext ${ORG} -x -N -s -Bstatic -e start -nopie -znorelro
LDFLAGS+=-melf_i386 -L/usr/libdata
INSTALL_STRIP=
BINMODE=644
-# $OpenBSD: Makefile,v 1.10 2014/07/13 21:18:44 jasper Exp $
+# $OpenBSD: Makefile,v 1.11 2016/07/30 03:25:48 guenther Exp $
#
S= ${.CURDIR}/../../../..
AFLAGS+=-I${.CURDIR} -I${.CURDIR}/../../.. #-Wa,-a
AFLAGS+=-fno-pie
LD=ld
-LDFLAGS=-nostdlib -Ttext 0 -x -N -s -Bstatic -e start -nopie
+LDFLAGS=-nostdlib -Ttext 0 -x -N -s -Bstatic -e start -nopie -znorelro
LDFLAGS+=-melf_i386 -L/usr/libdata
NOMAN=
-# $OpenBSD: Makefile,v 1.25 2015/11/16 19:33:52 miod Exp $
+# $OpenBSD: Makefile,v 1.26 2016/07/30 03:25:48 guenther Exp $
MAN= pxeboot.8
SRCS= srt0.S conf.c devopen.c open.c
LD?= ld
SIZE?= size
-LDFLAGS+=-nostdlib -Bstatic -Ttext $(LINKADDR) -N -x -nopie
+LDFLAGS+=-nostdlib -Bstatic -Ttext $(LINKADDR) -N -x -nopie -znorelro
LDFLAGS+=-melf_i386 -L/usr/libdata
INSTALL_STRIP=
BINMODE=644
-# $OpenBSD: Makefile.inc,v 1.3 2015/06/05 18:14:26 miod Exp $
+# $OpenBSD: Makefile.inc,v 1.4 2016/07/30 03:25:48 guenther Exp $
BINDIR=/usr/mdec
MANSUBDIR=armish
CFLAGS+= -fno-pie
-LDFLAGS+= -nopie
+LDFLAGS+= -nopie -znorelro
-# $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
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
-# $OpenBSD: Makefile,v 1.9 2014/07/13 21:18:26 miod Exp $
+# $OpenBSD: Makefile,v 1.10 2016/07/30 03:25:48 guenther Exp $
NOMAN= no man
S =${.CURDIR}/../../../..
SRCS+= milli.S strlen.c strlcpy.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 cdboot.map
SIZE?= size
STRIP?= strip
-# $OpenBSD: Makefile,v 1.26 2013/01/18 21:09:04 espie Exp $
+# $OpenBSD: Makefile,v 1.27 2016/07/30 03:25:48 guenther Exp $
MAN= biosboot.8
PROG= biosboot
SRCS= biosboot.S
LD=ld
-LDFLAGS=-nostdlib -Ttext 0 -N -x -Bstatic -nopie
+LDFLAGS=-nostdlib -Ttext 0 -N -x -Bstatic -nopie -znorelro
INSTALL_STRIP=
.depend biosboot.o: assym.h
-# $OpenBSD: Makefile,v 1.59 2016/03/30 06:38:45 jmc Exp $
+# $OpenBSD: Makefile,v 1.60 2016/07/30 03:25:48 guenther Exp $
COPTS?=
MAN?= boot.8
PROG?= boot
LD?= ld
SIZE?= size
-LDFLAGS+=-nostdlib -Bstatic -nopie
+LDFLAGS+=-nostdlib -Bstatic -nopie -znorelro
CLEANFILES+= crt0.o
SRCS= srt0.S conf.c
-# $OpenBSD: Makefile,v 1.24 2015/09/02 04:09:24 yasuoka Exp $
+# $OpenBSD: Makefile,v 1.25 2016/07/30 03:25:48 guenther Exp $
MAN= cdboot.8
SRCS= srt0.S boot.c conf.c
LD?= ld
SIZE?= size
-LDFLAGS+=-nostdlib -Bstatic -Ttext $(LINKADDR) -N -x -nopie
+LDFLAGS+=-nostdlib -Bstatic -Ttext $(LINKADDR) -N -x -nopie -znorelro
INSTALL_STRIP=
BINMODE=644
-# $OpenBSD: Makefile,v 1.6 2014/07/15 22:14:37 deraadt Exp $
+# $OpenBSD: Makefile,v 1.7 2016/07/30 03:25:48 guenther Exp $
#
S= ${.CURDIR}/../../../..
AFLAGS+=-fno-pie
LD=ld
ORG= 0x0000
-LDFLAGS=-nostdlib -Ttext ${ORG} -x -N -s -Bstatic -e start -nopie
+LDFLAGS=-nostdlib -Ttext ${ORG} -x -N -s -Bstatic -e start -nopie -znorelro
NOMAN=
#MAN+= cdbr.8
-# $OpenBSD: Makefile,v 1.19 2013/01/18 21:09:04 espie Exp $
+# $OpenBSD: Makefile,v 1.20 2016/07/30 03:25:48 guenther Exp $
#
S= ${.CURDIR}/../../../..
AFLAGS+=-I${.CURDIR} -I${.CURDIR}/../../.. #-Wa,-a
AFLAGS+=-fno-pie
LD=ld
-LDFLAGS=-nostdlib -Ttext 0 -x -N -s -Bstatic -e start -nopie
+LDFLAGS=-nostdlib -Ttext 0 -x -N -s -Bstatic -e start -nopie -znorelro
NOMAN=
#MAN+= mbr.8
-# $OpenBSD: Makefile,v 1.21 2015/09/02 04:09:24 yasuoka Exp $
+# $OpenBSD: Makefile,v 1.22 2016/07/30 03:25:48 guenther Exp $
MAN= pxeboot.8
SRCS= srt0.S conf.c devopen.c open.c
LD?= ld
SIZE?= size
-LDFLAGS+=-nostdlib -Bstatic -Ttext $(LINKADDR) -N -x -nopie
+LDFLAGS+=-nostdlib -Bstatic -Ttext $(LINKADDR) -N -x -nopie -znorelro
INSTALL_STRIP=
BINMODE=644
-# $OpenBSD: Makefile,v 1.12 2016/03/30 06:38:45 jmc Exp $
+# $OpenBSD: Makefile,v 1.13 2016/07/30 03:25:48 guenther Exp $
MAN= boot.8
.if ${MACHINE} == "landisk"
PROG= boot
SRCS= srt0.S conf.c devs.c getsecs.c scifcons.c delay.c
-LDFLAGS=-nostdlib -Ttext 0x8ff00000 -N -x -Bstatic -e start -nopie
+LDFLAGS=-nostdlib -Ttext 0x8ff00000 -N -x -Bstatic -e start -nopie -znorelro
OBJCOPY?=objcopy
INSTALL_STRIP=
-# $OpenBSD: Makefile,v 1.4 2012/09/02 16:21:05 deraadt Exp $
+# $OpenBSD: Makefile,v 1.5 2016/07/30 03:25:48 guenther Exp $
.include <bsd.own.mk>
SRCS= mbr.S
AFLAGS+=-nostdinc -I${.OBJDIR} -I${.CURDIR}/.. -I${.CURDIR}/../../.. #-Wa,a
AFLAGS+=-fno-pie
-LDFLAGS+=-N -e start -Ttext 0x8c200200 -nopie
+LDFLAGS+=-N -e start -Ttext 0x8c200200 -nopie -znorelro
OBJCOPY?=objcopy
INSTALL_STRIP=
-# $OpenBSD: Makefile,v 1.9 2015/10/05 04:38:27 miod Exp $
+# $OpenBSD: Makefile,v 1.10 2016/07/30 03:25:48 guenther Exp $
MAN= xxboot.8
.if ${MACHINE} == "landisk"
PROG= xxboot
SRCS= pbr.S xxboot.S boot1.c
-LDFLAGS=-nostdlib -Ttext 0x8c201000 -N -x -Bstatic -e start -nopie
+LDFLAGS=-nostdlib -Ttext 0x8c201000 -N -x -Bstatic -e start -nopie -znorelro
INSTALL_STRIP=
-# $OpenBSD: Makefile,v 1.5 2016/03/30 06:38:45 jmc Exp $
+# $OpenBSD: Makefile,v 1.6 2016/07/30 03:25:48 guenther Exp $
NOMAN=
#MAN= boot.8
.endif
CFLAGS+=-fno-pie
AFLAGS+=-fno-pie
-LDFLAGS+=-nopie
+LDFLAGS+=-nopie -znorelro
.include <bsd.prog.mk>
-# $OpenBSD: Makefile,v 1.6 2014/02/23 20:01:04 miod Exp $
+# $OpenBSD: Makefile,v 1.7 2016/07/30 03:25:49 guenther Exp $
# $NetBSD: Makefile,v 1.9 2013/01/22 15:48:40 tsutsui Exp $
# @(#)Makefile 8.2 (Berkeley) 8/15/93
TEXTADDR= 0x700000 # 7MB
LDSCRIPT= ${.CURDIR}/boot.ldscript
LINKFORMAT= -static -N -Ttext ${TEXTADDR} -T ${LDSCRIPT} \
- --warn-common -nopie
+ --warn-common -nopie -znorelro
SRCS= locore.S
SRCS+= init_main.c
-# $OpenBSD: Makefile,v 1.13 2015/09/11 17:46:59 miod Exp $
+# $OpenBSD: Makefile,v 1.14 2016/07/30 03:25:49 guenther Exp $
# $NetBSD: Makefile,v 1.1 1996/09/30 16:35:05 ws Exp $
S= ${.CURDIR}/../../../..
BINDIR= /usr/mdec
OBJCOPY?= objcopy
OBJCOPY_ARGS= -O aixcoff-rs6000 -R .comment -R .note
-LDFLAGS= -nopie -X -Ttext ${RELOC} -e $(ENTRY)
+LDFLAGS= -nopie -znorelro -X -Ttext ${RELOC} -e $(ENTRY)
LDFLAGS+= -T ${.CURDIR}/elf32_powerpc_merge.x -Bstatic
.PATH: ${S}/stand/boot
-# $OpenBSD: Makefile,v 1.14 2015/09/11 17:46:59 miod Exp $
+# $OpenBSD: Makefile,v 1.15 2016/07/30 03:25:49 guenther Exp $
# $NetBSD: Makefile,v 1.2 1997/04/17 07:46:24 thorpej Exp $
S= ${.CURDIR}/../../../..
LIBS!= cd $(.CURDIR)/$(R); $(MAKE) libdep
${PROG}: ${OBJS} ${LIBSA} ${LIBZ}
- ${LD} -nopie -N -X -Ttext ${RELOC} -e ${ENTRY} -o ${PROG} \
+ ${LD} -nopie -znorelro -N -X -Ttext ${RELOC} -e ${ENTRY} -o ${PROG} \
${OBJS} ${LIBS}
.include <bsd.prog.mk>
-# $OpenBSD: Makefile,v 1.3 2016/03/30 06:38:45 jmc Exp $
+# $OpenBSD: Makefile,v 1.4 2016/07/30 03:25:49 guenther Exp $
NOMAN=
#MAN= boot.8
CFLAGS+=-fno-pie -DCONSPEED=15200
AFLAGS+=-fno-pie
-LDFLAGS+=-nopie
+LDFLAGS+=-nopie -znorelro
.include <bsd.prog.mk>
-# $OpenBSD: Makefile,v 1.15 2012/08/31 08:14:08 pascal Exp $
+# $OpenBSD: Makefile,v 1.16 2016/07/30 03:25:49 guenther Exp $
NOMAN= noman
-I${.CURDIR}/../../../../lib/libsa \
-I${.OBJDIR}
CFLAGS+= -D__INTERNAL_LIBSA_CREAD ${STANDALONE} -fno-pie
-LDFLAGS+= -nopie
+LDFLAGS+= -nopie -znorelro
AFLAGS+= ${SAABI}
-# $OpenBSD: Makefile,v 1.16 2016/03/30 06:38:45 jmc Exp $
+# $OpenBSD: Makefile,v 1.17 2016/07/30 03:25:49 guenther Exp $
.include "${.CURDIR}/../Makefile.inc"
STANDIR= ${.CURDIR}/..
RELOC= 0x100000
-LDFLAGS= -Ttext ${RELOC} -nopie
+LDFLAGS= -Ttext ${RELOC} -nopie -znorelro
OBJCOPY?= objcopy
${PROG}: ${OBJS} ${LIBSA} ${LIBZ}
-# $OpenBSD: Makefile,v 1.3 2012/09/11 15:59:01 kettenis Exp $
+# $OpenBSD: Makefile,v 1.4 2016/07/30 03:25:49 guenther Exp $
.include <bsd.own.mk>
PROG= mbr
SRCS= mbr.S
AFLAGS+=-I${.OBJDIR} -I${.CURDIR}/../../.. #-Wa,a
-LDFLAGS+=-N -e start -Ttext 0 -nopie
+LDFLAGS+=-N -e start -Ttext 0 -nopie -znorelro
OBJCOPY?=objcopy
INSTALL_STRIP=
-# $OpenBSD: Makefile,v 1.21 2015/06/14 18:33:53 miod Exp $
+# $OpenBSD: Makefile,v 1.22 2016/07/30 03:25:49 guenther Exp $
# $NetBSD: Makefile,v 1.2 1995/09/30 21:43:38 pk Exp $
PROG= boot
${HOSTCC} -o elfclean ${.ALLSRC}
${PROG}: ${OBJS} ${LIBS} elfclean
- ${LD} -nopie -N -Ttext ${RELOC2} --format a.out-sparc-netbsd \
+ ${LD} -nopie -znorelro -N -Ttext ${RELOC2} --format a.out-sparc-netbsd \
-e start ${OBJS} ${LIBSA} ${LIBZ} -o ${.TARGET}.elf
./elfclean ${.TARGET}.elf
objcopy -j .text -j .data -j .bss -O a.out-sparc-netbsd \
-# $OpenBSD: Makefile,v 1.13 2015/03/17 19:59:39 miod Exp $
+# $OpenBSD: Makefile,v 1.14 2016/07/30 03:25:49 guenther Exp $
# $NetBSD: Makefile,v 1.2 1995/09/30 21:43:38 pk Exp $
.PATH: ${.CURDIR}/../common
${HOSTCC} -o elfclean ${.ALLSRC}
${PROG}: ${OBJS} elfclean
- ${LD} -nopie -N -Ttext ${RELOC} -e start ${OBJS} ${_SOBJS} \
+ ${LD} -nopie -znorelro -N -Ttext ${RELOC} -e start ${OBJS} ${_SOBJS} \
-o ${.TARGET}.elf
./elfclean ${.TARGET}.elf
objcopy -j .text -j .data -j .bss -O a.out-sparc-netbsd \
-# $OpenBSD: Makefile,v 1.19 2014/11/26 20:30:41 stsp Exp $
+# $OpenBSD: Makefile,v 1.20 2016/07/30 03:25:49 guenther Exp $
# $NetBSD: Makefile,v 1.2 2001/03/04 14:50:05 mrg Exp $
CURDIR= ${.CURDIR}
.endif
${PROG}: ${OBJS} ${LIBSA} ${LIBZ}
- ${LD} -N -Ttext ${RELOC} -e ${ENTRY} -o ${PROG} -nopie \
+ ${LD} -N -Ttext ${RELOC} -e ${ENTRY} -o ${PROG} -nopie -znorelro \
${OBJS} -L${LIBSADIR} ${LIBSA} \
-L${LIBZDIR} ${LIBZ}
-# $OpenBSD: Makefile,v 1.17 2016/03/30 06:38:45 jmc Exp $
+# $OpenBSD: Makefile,v 1.18 2016/07/30 03:25:49 guenther Exp $
MAN= boot.8
MANSUBDIR=zaurus
.if ${MACHINE} == "zaurus"
PROG= zboot
-LDFLAGS+=-nostdlib -Bstatic -nopie
+LDFLAGS+=-nostdlib -Bstatic -nopie -znorelro
INSTALL_STRIP=
SRCS= crt0.c
-# $OpenBSD: Makefile,v 1.5 2012/09/11 17:12:06 deraadt Exp $
+# $OpenBSD: Makefile,v 1.6 2016/07/30 03:25:49 guenther Exp $
OBJS= zbsdmod.o
SRCS= zbsdmod.c
CFLAGS= -fno-stack-protector -Wall
CFLAGS+= -DMACHINE=\"${MACHINE}\" -DUTS_RELEASE=\"2.4.20\"
CPPFLAGS= -I${.CURDIR}/../include -fno-pie
-LDFLAGS+= -nopie
+LDFLAGS+= -nopie -znorelro