summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-09-09 15:43:19 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-09-09 15:43:19 +0000
commit4c3369f64fe36ebcfa9b4b88e0ba8f33e7619f21 (patch)
treedf7c949eb3469c8e27c09ca8e485cb1d0786d522 /sys
parent6652364e6ba4d4b53fb0e8c05db8becb8d0c2e86 (diff)
Preserve symbol table if ksyms is in the kernel but DDB is not.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/sparc/sparc/locore.s5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/sparc/sparc/locore.s b/sys/arch/sparc/sparc/locore.s
index 5ab61f9d700..add5447feb6 100644
--- a/sys/arch/sparc/sparc/locore.s
+++ b/sys/arch/sparc/sparc/locore.s
@@ -1,4 +1,4 @@
-/* $OpenBSD: locore.s,v 1.19 1998/02/24 07:33:36 deraadt Exp $ */
+/* $OpenBSD: locore.s,v 1.20 1998/09/09 15:43:18 millert Exp $ */
/* $NetBSD: locore.s,v 1.73 1997/09/13 20:36:48 pk Exp $ */
/*
@@ -52,6 +52,7 @@
*/
#include "assym.h"
+#include "ksyms.h"
#include <machine/param.h>
#include <sparc/sparc/intreg.h>
#include <sparc/sparc/timerreg.h>
@@ -3226,7 +3227,7 @@ dostart:
* we have to be sure to use only pc-relative addressing.
*/
-#ifdef DDB
+#if defined(DDB) || NKSYMS > 0
/*
* First, check for DDB arguments. The loader passes `_esym' in %o4.
* A DDB magic number is passed in %o5 to allow for bootloaders