Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/arm32 In an ELF kernel, don't try to find an a....
details: https://anonhg.NetBSD.org/src/rev/7e70fb2f3828
branches: trunk
changeset: 509381:7e70fb2f3828
user: bjh21 <bjh21%NetBSD.org@localhost>
date: Wed May 02 19:10:29 2001 +0000
description:
In an ELF kernel, don't try to find an a.out symbol table.
diffstat:
sys/arch/arm/arm32/db_interface.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (32 lines):
diff -r 1a665fde26e2 -r 7e70fb2f3828 sys/arch/arm/arm32/db_interface.c
--- a/sys/arch/arm/arm32/db_interface.c Wed May 02 18:35:41 2001 +0000
+++ b/sys/arch/arm/arm32/db_interface.c Wed May 02 19:10:29 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_interface.c,v 1.4 2001/03/13 23:56:49 bjh21 Exp $ */
+/* $NetBSD: db_interface.c,v 1.5 2001/05/02 19:10:29 bjh21 Exp $ */
/*
* Copyright (c) 1996 Scott K. Stevens
@@ -342,9 +342,14 @@
void
db_machine_init()
{
+#ifndef __ELF__
struct exec *kernexec = (struct exec *)KERNEL_TEXT_BASE;
int len;
+#endif
+#ifdef __ELF__
+ printf("[ ELF symbol tables not supported ]\n");
+#else
/*
* The boot loader currently loads the kernel with the a.out
* header still attached.
@@ -363,6 +368,7 @@
len = *((u_int *)esym);
esym += (len + (sizeof(u_int) - 1)) & ~(sizeof(u_int) - 1);
}
+#endif
/*
* We get called before malloc() is available, so supply a static
Home |
Main Index |
Thread Index |
Old Index