Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hpcmips/hpcmips Fix symbol names, Elf_e_indet and E...
details: https://anonhg.NetBSD.org/src/rev/2cace3f66258
branches: trunk
changeset: 477682:2cace3f66258
user: takemura <takemura%NetBSD.org@localhost>
date: Wed Oct 27 14:37:49 1999 +0000
description:
Fix symbol names, Elf_e_indet and Elf_e_siz because sys/exec_elf.h was changed
again.
diffstat:
sys/arch/hpcmips/hpcmips/machdep.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 4346375062ce -r 2cace3f66258 sys/arch/hpcmips/hpcmips/machdep.c
--- a/sys/arch/hpcmips/hpcmips/machdep.c Wed Oct 27 14:23:26 1999 +0000
+++ b/sys/arch/hpcmips/hpcmips/machdep.c Wed Oct 27 14:37:49 1999 +0000
@@ -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 @@
/* 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);
Home |
Main Index |
Thread Index |
Old Index