Source-Changes-HG archive

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

[src/trunk]: src/sys/arch Build boot loaders without unwind tables.



details:   https://anonhg.NetBSD.org/src/rev/763a16788dd1
branches:  trunk
changeset: 789274:763a16788dd1
user:      joerg <joerg%NetBSD.org@localhost>
date:      Mon Aug 12 16:34:05 2013 +0000

description:
Build boot loaders without unwind tables.

diffstat:

 sys/arch/atari/stand/Makefile.booters      |  4 ++--
 sys/arch/ews4800mips/stand/Makefile.bootxx |  4 ++--
 sys/arch/mvme68k/stand/Makefile.booters    |  4 ++--
 sys/arch/pmax/stand/Makefile.booters       |  3 ++-
 sys/arch/sparc/stand/Makefile.buildboot    |  4 ++--
 sys/arch/sun68k/stand/Makefile.inc         |  4 ++--
 sys/arch/sun68k/stand/libsa/Makefile       |  4 ++--
 sys/arch/x68k/stand/Makefile.inc           |  4 ++--
 sys/arch/x68k/stand/boot_ufs/Makefile      |  4 ++--
 sys/arch/x68k/stand/loadbsd/Makefile       |  4 ++--
 sys/arch/x68k/stand/xxboot/Makefile.xxboot |  4 ++--
 11 files changed, 22 insertions(+), 21 deletions(-)

diffs (183 lines):

diff -r 32c9fd88e40b -r 763a16788dd1 sys/arch/atari/stand/Makefile.booters
--- a/sys/arch/atari/stand/Makefile.booters     Mon Aug 12 16:32:39 2013 +0000
+++ b/sys/arch/atari/stand/Makefile.booters     Mon Aug 12 16:34:05 2013 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile.booters,v 1.3 2011/12/18 04:51:12 tsutsui Exp $
+# $NetBSD: Makefile.booters,v 1.4 2013/08/12 16:34:05 joerg Exp $
 
 BINDIR=                /usr/mdec/${BTYPE:tl}
 
 DBG=
-COPTS=         -Os -fomit-frame-pointer -fno-function-cse -fstrength-reduce
+COPTS=         -Os -fomit-frame-pointer -fno-function-cse -fstrength-reduce -fno-unwind-tables
 
 CPPFLAGS+=     -D_STANDALONE -DHEAP_VARIABLE
 CPPFLAGS+=      -D__daddr_t=int32_t
diff -r 32c9fd88e40b -r 763a16788dd1 sys/arch/ews4800mips/stand/Makefile.bootxx
--- a/sys/arch/ews4800mips/stand/Makefile.bootxx        Mon Aug 12 16:32:39 2013 +0000
+++ b/sys/arch/ews4800mips/stand/Makefile.bootxx        Mon Aug 12 16:34:05 2013 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.bootxx,v 1.5 2010/05/27 06:58:13 dholland Exp $
+#      $NetBSD: Makefile.bootxx,v 1.6 2013/08/12 16:34:05 joerg Exp $
 
 NOMAN          =
 
@@ -20,7 +20,7 @@
 DEBUGFLAGS     = -Wall -Werror
 DEBUGFLAGS     += -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
 DEBUGFLAGS     += -Wno-format-zero-length -Wno-sign-compare
-OPTFLAGS       = -Os -mmemcpy
+OPTFLAGS       = -Os -mmemcpy -fno-unwind-tables
 FLAGS          = ${MIPSFLAGS} ${DEBUGFLAGS} ${OPTFLAGS}
 AFLAGS         = -xassembler-with-cpp -D_LOCORE ${FLAGS}
 CFLAGS         = ${FLAGS} -ffreestanding
diff -r 32c9fd88e40b -r 763a16788dd1 sys/arch/mvme68k/stand/Makefile.booters
--- a/sys/arch/mvme68k/stand/Makefile.booters   Mon Aug 12 16:32:39 2013 +0000
+++ b/sys/arch/mvme68k/stand/Makefile.booters   Mon Aug 12 16:34:05 2013 +0000
@@ -1,10 +1,10 @@
-#      $NetBSD: Makefile.booters,v 1.22 2011/01/22 19:19:20 joerg Exp $
+#      $NetBSD: Makefile.booters,v 1.23 2013/08/12 16:34:05 joerg Exp $
 
 S?=            ${.CURDIR}/../../../..
 MDEC_DIR?=     /usr/mdec
 RELOC?=                0x3F0000
 COPTS?=                -Os -Wall -Wno-main -Wmissing-prototypes -Wstrict-prototypes \
-               -ffreestanding -fomit-frame-pointer
+               -ffreestanding -fomit-frame-pointer -fno-unwind-tables
 DEFS?= 
 STRIPFLAG?=
 
diff -r 32c9fd88e40b -r 763a16788dd1 sys/arch/pmax/stand/Makefile.booters
--- a/sys/arch/pmax/stand/Makefile.booters      Mon Aug 12 16:32:39 2013 +0000
+++ b/sys/arch/pmax/stand/Makefile.booters      Mon Aug 12 16:34:05 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.booters,v 1.57 2011/07/10 08:42:55 mrg Exp $
+# $NetBSD: Makefile.booters,v 1.58 2013/08/12 16:34:05 joerg Exp $
 
 NOMAN=         # defined
 
@@ -23,6 +23,7 @@
                -I${.OBJDIR} -I${S}
 # compiler flags for smallest code size
 CFLAGS=                -ffreestanding -Os -g -mmemcpy -mno-abicalls -G 128
+CFLAGS+=       -fno-unwind-tables
 CFLAGS+=       -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
 CFLAGS+=       -Werror
 LDBUG=         -T $S/arch/mips/conf/stand.ldscript
diff -r 32c9fd88e40b -r 763a16788dd1 sys/arch/sparc/stand/Makefile.buildboot
--- a/sys/arch/sparc/stand/Makefile.buildboot   Mon Aug 12 16:32:39 2013 +0000
+++ b/sys/arch/sparc/stand/Makefile.buildboot   Mon Aug 12 16:34:05 2013 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.buildboot,v 1.28 2010/08/25 20:16:48 christos Exp $
+#      $NetBSD: Makefile.buildboot,v 1.29 2013/08/12 16:34:05 joerg Exp $
 #
 # This file is for the sparc `boot' and `bootxx' only; it does not
 # currently play well on a 64-bit system.
@@ -35,7 +35,7 @@
 
 CPPFLAGS+=     -I. -I${.CURDIR}/../../.. -I${.CURDIR}/../../../..
 CPPFLAGS+=     -I${.CURDIR}/../../../../../common/include
-CFLAGS=                -Os
+CFLAGS=                -Os -fno-unwind-tables
 CFLAGS+=       -Wall -Wstrict-prototypes -Wmissing-prototypes -ffreestanding
 
 ### find out what to use for libkern
diff -r 32c9fd88e40b -r 763a16788dd1 sys/arch/sun68k/stand/Makefile.inc
--- a/sys/arch/sun68k/stand/Makefile.inc        Mon Aug 12 16:32:39 2013 +0000
+++ b/sys/arch/sun68k/stand/Makefile.inc        Mon Aug 12 16:34:05 2013 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.18 2011/05/29 10:19:09 tsutsui Exp $
+#      $NetBSD: Makefile.inc,v 1.19 2013/08/12 16:34:05 joerg Exp $
 
 # Must have S=/usr/src/sys (or equivalent)
 # But note: this is w.r.t. a subdirectory
@@ -19,7 +19,7 @@
 INCL?= -I. -I${.CURDIR} -I${.CURDIR}/../libsa -I${S}/lib/libsa -I${S}
 
 CPUFLAGS= -mc68000 -Wa,-mc68010
-COPTS= -Os -fno-defer-pop -ffreestanding
+COPTS= -Os -fno-defer-pop -ffreestanding -fno-unwind-tables
 CFLAGS= -msoft-float
 CPPFLAGS= ${DEFS} ${DEBUG} ${INCL}
 
diff -r 32c9fd88e40b -r 763a16788dd1 sys/arch/sun68k/stand/libsa/Makefile
--- a/sys/arch/sun68k/stand/libsa/Makefile      Mon Aug 12 16:32:39 2013 +0000
+++ b/sys/arch/sun68k/stand/libsa/Makefile      Mon Aug 12 16:34:05 2013 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.28 2010/05/27 06:58:15 dholland Exp $
+#      $NetBSD: Makefile,v 1.29 2013/08/12 16:34:05 joerg Exp $
 
 # Logically src/sys
 S!= cd ${.CURDIR}/../../../..; pwd
@@ -15,7 +15,7 @@
 AFLAGS= -Wa,-mc68020 -Wa,-mc68851
 CFLAGS= -mc68000 -Wa,-mc68010 -Wa,-m68851 -msoft-float
 CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
-COPTS= -Os -fno-defer-pop -ffreestanding
+COPTS= -Os -fno-defer-pop -ffreestanding -fno-unwind-tables
 CPPFLAGS= ${DEFS} ${DEBUG} ${INCL}
 CLEANFILES= SRT0.o SRT1.o vers.c
 
diff -r 32c9fd88e40b -r 763a16788dd1 sys/arch/x68k/stand/Makefile.inc
--- a/sys/arch/x68k/stand/Makefile.inc  Mon Aug 12 16:32:39 2013 +0000
+++ b/sys/arch/x68k/stand/Makefile.inc  Mon Aug 12 16:34:05 2013 +0000
@@ -1,3 +1,3 @@
-#      $NetBSD: Makefile.inc,v 1.1 2002/01/07 04:00:02 minoura Exp $
+#      $NetBSD: Makefile.inc,v 1.2 2013/08/12 16:34:05 joerg Exp $
 
-DBG=-Os
+DBG=-Os -fno-unwind-tables
diff -r 32c9fd88e40b -r 763a16788dd1 sys/arch/x68k/stand/boot_ufs/Makefile
--- a/sys/arch/x68k/stand/boot_ufs/Makefile     Mon Aug 12 16:32:39 2013 +0000
+++ b/sys/arch/x68k/stand/boot_ufs/Makefile     Mon Aug 12 16:34:05 2013 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.28 2013/06/15 01:39:56 christos Exp $
+#      $NetBSD: Makefile,v 1.29 2013/08/12 16:34:05 joerg Exp $
 
 NOMAN=         # defined
 
@@ -37,7 +37,7 @@
        ${HOST_SH} ${S}/conf/newvers_stand.sh \
            ${.ALLSRC} ${MACHINE} ${NEWVERSWHAT}
 
-CFLAGS=        -Os -fomit-frame-pointer
+CFLAGS=        -Os -fomit-frame-pointer -fno-unwind-tables
 CFLAGS+= -m68020-60
 CFLAGS+= -W -Wall -Wstrict-prototypes -Wmissing-prototypes
 CPPFLAGS+= -DTEXTADDR="0x$(TEXT)" -DBOOT_TEXTADDR="0x$(BOOT_TEXT)"
diff -r 32c9fd88e40b -r 763a16788dd1 sys/arch/x68k/stand/loadbsd/Makefile
--- a/sys/arch/x68k/stand/loadbsd/Makefile      Mon Aug 12 16:32:39 2013 +0000
+++ b/sys/arch/x68k/stand/loadbsd/Makefile      Mon Aug 12 16:34:05 2013 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.14 2012/02/08 23:51:37 joerg Exp $
+#      $NetBSD: Makefile,v 1.15 2013/08/12 16:34:05 joerg Exp $
 
 S=     ${.CURDIR}/../../../..
 
@@ -20,7 +20,7 @@
 LIBDOS!=       cd ${.CURDIR}/../libdos && ${PRINTOBJDIR}
 LIBIOCS!=      cd ${.CURDIR}/../libiocs && ${PRINTOBJDIR}
 
-CPPFLAGS=      -W -Wall -O -fomit-frame-pointer
+CPPFLAGS=      -W -Wall -O -fomit-frame-pointer -fno-unwind-tables
 CPPFLAGS+=     -m68000 -Wa,-mc68000
 CPPFLAGS+=     -nostdinc 
 CPPFLAGS+=     -I$S -I.
diff -r 32c9fd88e40b -r 763a16788dd1 sys/arch/x68k/stand/xxboot/Makefile.xxboot
--- a/sys/arch/x68k/stand/xxboot/Makefile.xxboot        Mon Aug 12 16:32:39 2013 +0000
+++ b/sys/arch/x68k/stand/xxboot/Makefile.xxboot        Mon Aug 12 16:34:05 2013 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.xxboot,v 1.1 2012/03/20 13:01:32 minoura Exp $
+#      $NetBSD: Makefile.xxboot,v 1.2 2013/08/12 16:34:05 joerg Exp $
 
 NOMAN=         # defined
 
@@ -32,7 +32,7 @@
        ${_MKTARGET_CREATE}
        ${HOST_SH} ${S}/conf/newvers_stand.sh ${.ALLSRC} ${MACHINE} ${NEWVERSWHAT}
 
-CFLAGS=        -Os -fomit-frame-pointer
+CFLAGS=        -Os -fomit-frame-pointer -fno-unwind-tables
 #CFLAGS+= -Wall
 CPPFLAGS+= -D_STANDALONE
 CPPFLAGS+= -DTEXTADDR="0x$(TEXT)" -DBOOT_TEXTADDR="0x$(BOOT_TEXT)"



Home | Main Index | Thread Index | Old Index