From 4c3369f64fe36ebcfa9b4b88e0ba8f33e7619f21 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Wed, 9 Sep 1998 15:43:19 +0000 Subject: Preserve symbol table if ksyms is in the kernel but DDB is not. --- sys/arch/sparc/sparc/locore.s | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/arch/sparc') 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 #include #include @@ -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 -- cgit v1.2.3