Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/conf Force zero-initialised variables into the .data seg...



details:   https://anonhg.NetBSD.org/src/rev/7f18db59888a
branches:  trunk
changeset: 565983:7f18db59888a
user:      pk <pk%NetBSD.org@localhost>
date:      Sat Apr 24 22:07:15 2004 +0000

description:
Force zero-initialised variables into the .data segment.

diffstat:

 sys/conf/Makefile.kern.inc |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 263fe4860f38 -r 7f18db59888a sys/conf/Makefile.kern.inc
--- a/sys/conf/Makefile.kern.inc        Sat Apr 24 21:55:37 2004 +0000
+++ b/sys/conf/Makefile.kern.inc        Sat Apr 24 22:07:15 2004 +0000
@@ -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 @@
 
 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



Home | Main Index | Thread Index | Old Index