Fix symbol names, Elf_e_indet and Elf_e_siz because sys/exec_elf.h was changed

again.
This commit is contained in:
takemura 1999-10-27 14:37:49 +00:00
parent b7f47adef9
commit 87224bbc68
1 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.2 1999/10/27 02:22:21 takemura Exp $ */
/* $NetBSD: machdep.c,v 1.3 1999/10/27 14:37:49 takemura Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -43,7 +43,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.2 1999/10/27 02:22:21 takemura Exp $");
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.3 1999/10/27 14:37:49 takemura Exp $");
/* from: Utah Hdr: machdep.c 1.63 91/04/24 */
@ -194,7 +194,8 @@ mach_init(argc, argv, bi)
/* clear the BSS segment */
#ifdef DDB
if (!strncmp(end, ELFMAG, SELFMAG)) {
if (memcmp(((Elf_Ehdr *)end)->e_ident, ELFMAG, SELFMAG) == 0 &&
((Elf_Ehdr *)end)->e_ident[EI_CLASS] == ELFCLASS) {
esym = end;
esym += ((Elf_Ehdr *)end)->e_entry;
kernend = (caddr_t)mips_round_page(esym);