DragonFly BSD
DragonFly bugs List (threaded) for 2005-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Panic in loader


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 5 Apr 2005 09:41:54 -0700 (PDT)

:No luck, sama thing but this time there's some (four) strange characters
:after the "panic: stack overflow in function".
:
:BTW: Is there some quicker way to test than rebuilding world?
:
:--
:Erik Wikström
    
    Try this patch.  My last patch didn't remove it from enough places.

    Yes, there is a faster way:

    setenv CCVER gcc34
    cd /usr/src/sys/boot; make clean; make obj; make; make install

					-Matt
					Matthew Dillon 
					<dillon@xxxxxxxxxxxxx>

Index: ficl/Makefile
===================================================================
RCS file: /cvs/src/sys/boot/ficl/Makefile,v
retrieving revision 1.5
diff -u -r1.5 Makefile
--- ficl/Makefile	19 Feb 2005 23:19:51 -0000	1.5
+++ ficl/Makefile	5 Apr 2005 16:37:34 -0000
@@ -10,11 +10,12 @@
 		prefix.c search.c stack.c tools.c vm.c words.c
 
 SRCS=		${BASE_SRCS} sysdep.c softcore.c
-OBJS+=		stack_protector.o
+#OBJS+=		stack_protector.o
 
 stack_protector.o: ../../libkern/stack_protector.c
 
 CLEANFILES=	softcore.c testmain testmain.o
+CFLAGS+=	-fno-stack-protector
 CFLAGS+=	-ffreestanding
 .if ${MACHINE_ARCH} == "i386"
 CFLAGS+=	-mpreferred-stack-boundary=2
Index: i386/Makefile.inc
===================================================================
RCS file: /cvs/src/sys/boot/i386/Makefile.inc,v
retrieving revision 1.5
diff -u -r1.5 Makefile.inc
--- i386/Makefile.inc	28 Jan 2004 19:24:11 -0000	1.5
+++ i386/Makefile.inc	5 Apr 2005 16:40:47 -0000
@@ -5,6 +5,7 @@
 
 LOADER_ADDRESS?=	0x200000
 CFLAGS+=		-ffreestanding -mpreferred-stack-boundary=2
+CFLAGS+=		-fno-stack-protector
 
 .if ${MACHINE_ARCH} == "amd64"
 .MAKEFLAGS:  MACHINE_ARCH=i386 MACHINE=i386 REALLY_AMD64=true



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