-# $OpenBSD: Makefile.inc,v 1.16 2023/03/11 20:49:33 miod Exp $
+# $OpenBSD: Makefile.inc,v 1.17 2024/01/28 01:07:26 deraadt Exp $
# $NetBSD: Makefile.inc,v 1.8 1997/04/06 08:39:38 cgd Exp $
BINDIR= /usr/mdec
CFLAGS+= -fno-stack-protector -fno-builtin-printf \
-fno-builtin-vprintf -fno-builtin-putchar \
- -fno-builtin-puts -fno-builtin-exit
+ -fno-builtin-puts -fno-builtin-exit -fno-stack-protector
OBJCOPY?= objcopy
STRIP?= strip
-# $OpenBSD: Makefile,v 1.26 2023/03/11 20:49:33 miod Exp $
+# $OpenBSD: Makefile,v 1.27 2024/01/28 01:07:26 deraadt Exp $
# $NetBSD: Makefile,v 1.17 1997/04/17 07:27:46 thorpej Exp $
S= ${.CURDIR}/../../../..
AFLAGS += -DASSEMBLER ${DEFNS} -fno-pie
CPPFLAGS += -I${.CURDIR}/../.. -I${S} ${DEFNS}
CFLAGS = -Oz -Werror -mno-fp-regs -fno-pie \
- -msmall-data -msmall-text
+ -msmall-data -msmall-text -fno-stack-protector
${PROG}.nosym: ${PROG}.sym
cp ${PROG}.sym ${PROG}.nosym
-# $OpenBSD: Makefile,v 1.2 2023/03/13 20:20:13 miod Exp $
+# $OpenBSD: Makefile,v 1.3 2024/01/28 01:07:26 deraadt Exp $
# $NetBSD: Makefile,v 1.17 1997/04/17 07:27:46 thorpej Exp $
MAN?= boot.8
AFLAGS += -DASSEMBLER ${DEFNS} -fno-pie
CPPFLAGS += -I${.CURDIR}/../.. -I${.CURDIR} -I${S} ${DEFNS}
-CFLAGS = -Oz -Werror -mno-fp-regs -fno-pie -msmall-data -msmall-text
+CFLAGS = -Oz -Werror -mno-fp-regs -fno-pie -msmall-data -msmall-text \
+ -fno-stack-protector
${PROG}.nosym: ${PROG}.sym
cp ${PROG}.sym ${PROG}.nosym
-# $OpenBSD: Makefile,v 1.19 2023/03/11 20:49:33 miod Exp $
+# $OpenBSD: Makefile,v 1.20 2024/01/28 01:07:26 deraadt Exp $
# $NetBSD: Makefile,v 1.11 1997/04/17 07:27:50 thorpej Exp $
S= ${.CURDIR}/../../../..
AFLAGS += -DASSEMBLER ${DEFNS} -fno-pie
CPPFLAGS += -I${.CURDIR}/../.. -I${S} ${DEFNS}
-CFLAGS = -Werror -mno-fp-regs -fno-pie
+CFLAGS = -Werror -mno-fp-regs -fno-pie -fno-stack-protector
${PROG}.nosym: ${PROG}.sym
cp ${PROG}.sym ${PROG}.nosym
-# $OpenBSD: Makefile,v 1.15 2020/05/25 16:27:07 deraadt Exp $
+# $OpenBSD: Makefile,v 1.16 2024/01/28 01:07:26 deraadt Exp $
LIB= sa
CLEANFILES += machine
CFLAGS= ${CEXTRAFLAGS} ${AFLAGS} -O2 -D__INTERNAL_LIBSA_CREAD -nostdinc \
- -fno-pie \
+ -fno-pie -fno-stack-protector \
-I${.CURDIR} -I${.CURDIR}/../include -I${.CURDIR}/../.. \
-I${.CURDIR}/../../.. -I${.CURDIR}/../../../.. \
-I${.CURDIR}/../../../../lib/libsa \
-# $OpenBSD: Makefile,v 1.9 2022/10/06 23:32:17 kn Exp $
+# $OpenBSD: Makefile,v 1.10 2024/01/28 01:07:26 deraadt Exp $
S=${.CURDIR}/../../../..
ZDST=${.OBJDIR}
.PATH: ${S}/lib/libz
.include "${S}/lib/libz/Makefile"
-CFLAGS+=${CEXTRAFLAGS} ${AFLAGS} -I${S} -fno-pie
+CFLAGS+=${CEXTRAFLAGS} ${AFLAGS} -I${S} -fno-pie -fno-stack-protector
CPPFLAGS+=-DDYNAMIC_CRC_TABLE -DBUILDFIXED
-# $OpenBSD: Makefile,v 1.27 2019/10/29 02:55:52 deraadt Exp $
+# $OpenBSD: Makefile,v 1.28 2024/01/28 01:07:26 deraadt Exp $
# $NetBSD: Makefile,v 1.2 2001/03/04 14:50:05 mrg Exp $
CURDIR= ${.CURDIR}
CWARNFLAGS+= -Wno-main
AFLAGS+= -Wa,-Av9a
-AFLAGS+= -x assembler-with-cpp -D_LOCORE -D__ELF__ -fno-pie
-CFLAGS+= ${COPTS} -fno-pie
+AFLAGS+= -x assembler-with-cpp -D_LOCORE -D__ELF__ -fno-pie
+CFLAGS+= ${COPTS} -fno-pie -fno-stack-protector
CPPFLAGS+= -D_STANDALONE -DSUN4U -nostdinc
#CPPFLAGS+= -DNETIF_DEBUG