From b9d698a016ffc11ce0326abe89ab955a1cf5889d Mon Sep 17 00:00:00 2001 From: miod Date: Thu, 22 Oct 2015 18:54:41 +0000 Subject: [PATCH] Build boot blocks with -msmall-data -msmall-text. --- sys/arch/alpha/stand/boot/Makefile | 5 +++-- sys/arch/alpha/stand/bootxx/Makefile | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/sys/arch/alpha/stand/boot/Makefile b/sys/arch/alpha/stand/boot/Makefile index b70b3d2ea75..5ba99b7ba28 100644 --- a/sys/arch/alpha/stand/boot/Makefile +++ b/sys/arch/alpha/stand/boot/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.19 2012/09/01 15:10:06 pascal Exp $ +# $OpenBSD: Makefile,v 1.20 2015/10/22 18:54:41 miod Exp $ # $NetBSD: Makefile,v 1.17 1997/04/17 07:27:46 thorpej Exp $ S= ${.CURDIR}/../../../.. @@ -28,7 +28,8 @@ DEFNS= -DCOMPAT_UFS AFLAGS += -DASSEMBLER ${DEFNS} -fno-pie CPPFLAGS += -I${.CURDIR}/../../../../lib/libsa -I${.CURDIR}/../.. -I${S} ${DEFNS} -CFLAGS = -Os -Werror -mno-fp-regs -fno-pie +CFLAGS = -Os -Werror -mno-fp-regs -fno-pie \ + -msmall-data -msmall-text ${PROG}.nosym: ${PROG}.sym cp ${PROG}.sym ${PROG}.nosym diff --git a/sys/arch/alpha/stand/bootxx/Makefile b/sys/arch/alpha/stand/bootxx/Makefile index 28a22012bfb..b57041cd64e 100644 --- a/sys/arch/alpha/stand/bootxx/Makefile +++ b/sys/arch/alpha/stand/bootxx/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.14 2013/06/13 11:27:56 deraadt Exp $ +# $OpenBSD: Makefile,v 1.15 2015/10/22 18:54:41 miod Exp $ # $NetBSD: Makefile,v 1.12 1997/04/17 07:27:49 thorpej Exp $ S= ${.CURDIR}/../../../.. @@ -23,7 +23,8 @@ DEFNS= -DPRIMARY_BOOTBLOCK 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 \ + -msmall-data -msmall-text ${PROG}.nosym: ${PROG}.sym cp ${PROG}.sym ${PROG}.nosym -- 2.20.1