From dd5d3287eced2cb6647d166080044fd0bf7b8017 Mon Sep 17 00:00:00 2001 From: itohy Date: Sun, 24 Sep 2000 23:46:37 +0000 Subject: [PATCH] Use "etext" instead of "_etext" like db_trace.c, which makes it be linked by a.out ld. --- sys/arch/i386/i386/db_memrw.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/arch/i386/i386/db_memrw.c b/sys/arch/i386/i386/db_memrw.c index 01da8d9503d5..88fb7a57d9d1 100644 --- a/sys/arch/i386/i386/db_memrw.c +++ b/sys/arch/i386/i386/db_memrw.c @@ -1,4 +1,4 @@ -/* $NetBSD: db_memrw.c,v 1.9 2000/09/07 18:46:19 thorpej Exp $ */ +/* $NetBSD: db_memrw.c,v 1.10 2000/09/24 23:46:37 itohy Exp $ */ /*- * Copyright (c) 1996, 2000 The NetBSD Foundation, Inc. @@ -170,13 +170,13 @@ db_write_text(vaddr_t addr, size_t size, char *data) void db_write_bytes(vaddr_t addr, size_t size, char *data) { - extern char _etext; + extern char etext; char *dst; dst = (char *)addr; /* If any part is in kernel text, use db_write_text() */ - if (addr >= KERNBASE && addr < (vaddr_t)&_etext) { + if (addr >= KERNBASE && addr < (vaddr_t)&etext) { db_write_text(addr, size, data); return; }