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
b563250dbb
commit
428018d519
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ofwgencfg_machdep.c,v 1.14 2001/10/29 17:32:57 matt Exp $ */
|
||||
/* $NetBSD: ofwgencfg_machdep.c,v 1.15 2001/11/02 21:19:10 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 1997
|
||||
|
@ -224,7 +224,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;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: shark_machdep.c,v 1.21 2001/04/25 17:53:13 bouyer Exp $ */
|
||||
/* $NetBSD: shark_machdep.c,v 1.22 2001/11/02 21:19:11 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 1997
|
||||
|
@ -312,7 +312,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