The a.out header is at the beginning of the .text segment in
ZMAGIC images, so use the correct constant (KERNEL_TEXT_BASE) to find it.
This commit is contained in:
parent
428018d519
commit
efe39dc997
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: dnard_machdep.c,v 1.1 2001/05/09 15:58:07 matt Exp $ */
|
||||
/* $NetBSD: dnard_machdep.c,v 1.2 2001/11/02 21:51:57 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 1997
|
||||
|
@ -309,7 +309,7 @@ initarm(ofw_handle)
|
|||
printf("ddb: ");
|
||||
db_machine_init();
|
||||
{
|
||||
struct exec *kernexec = (struct exec *)KERNEL_BASE;
|
||||
struct exec *kernexec = (struct exec *)KERNEL_TEXT_BASE;
|
||||
extern int end;
|
||||
extern char *esym;
|
||||
|
||||
|
|
Loading…
Reference in New Issue