From 3c83ebd4ab0e434ff5150e196702eb4c89925565 Mon Sep 17 00:00:00 2001 From: pk Date: Sat, 24 Apr 2004 22:07:15 +0000 Subject: [PATCH] Force zero-initialised variables into the .data segment. --- sys/conf/Makefile.kern.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/conf/Makefile.kern.inc b/sys/conf/Makefile.kern.inc index 7819de2a4685..d960ed91ef04 100644 --- a/sys/conf/Makefile.kern.inc +++ b/sys/conf/Makefile.kern.inc @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.kern.inc,v 1.51 2003/12/04 02:33:41 lukem Exp $ +# $NetBSD: Makefile.kern.inc,v 1.52 2004/04/24 22:07:15 pk Exp $ # # This file contains common `MI' targets and definitions and it is included # at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}. @@ -76,7 +76,8 @@ CWARNFLAGS+= -Wno-uninitialized CFLAGS+= ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} CFLAGS+= ${CPPFLAGS.${.IMPSRC:T}} -CFLAGS+= ${CPUFLAGS} -ffreestanding ${DEBUG} ${COPTS} ${CWARNFLAGS} +CFLAGS+= ${CPUFLAGS} -ffreestanding -fno-zero-initialized-in-bss +CFLAGS+= ${CPUFLAGS} ${DEBUG} ${COPTS} ${CWARNFLAGS} AFLAGS+= ${CPUFLAGS} -D_LOCORE # Use the per-source COPTS variables to add -g to just those