Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/m68k/include mcount() is named __mcount() on ELF, d...
details: https://anonhg.NetBSD.org/src/rev/e08f091cc43a
branches: trunk
changeset: 510336:e08f091cc43a
user: chs <chs%NetBSD.org@localhost>
date: Sun May 27 01:01:08 2001 +0000
description:
mcount() is named __mcount() on ELF, do the right thing.
diffstat:
sys/arch/m68k/include/asm.h | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (25 lines):
diff -r 8a84d87e7c60 -r e08f091cc43a sys/arch/m68k/include/asm.h
--- a/sys/arch/m68k/include/asm.h Sun May 27 00:58:57 2001 +0000
+++ b/sys/arch/m68k/include/asm.h Sun May 27 01:01:08 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: asm.h,v 1.22 2001/05/12 22:27:05 chs Exp $ */
+/* $NetBSD: asm.h,v 1.23 2001/05/27 01:01:08 chs Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -105,8 +105,14 @@
#define _ENTRY(name) \
.text; .even; .globl name; .type name,@function; name:
+#ifdef __ELF__
+#define MCOUNT_ENTRY __mcount
+#else
+#define MCOUNT_ENTRY mcount
+#endif
+
#ifdef GPROF
-#define _PROF_PROLOG link %a6,#0; jbsr mcount; unlk %a6
+#define _PROF_PROLOG link %a6,#0; jbsr MCOUNT_ENTRY; unlk %a6
#else
#define _PROF_PROLOG
#endif
Home |
Main Index |
Thread Index |
Old Index