From 98e9d5f9011690faae85dbb5552fd568ef56f2b5 Mon Sep 17 00:00:00 2001 From: christos Date: Mon, 11 Jan 2016 01:57:12 +0000 Subject: [PATCH] Put back the rump-disabling of mcount for librump. Otherwise the world breaks because the mcount assembly code is written to call __mcount via the PLT. --- common/lib/libc/gmon/mcount.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/common/lib/libc/gmon/mcount.c b/common/lib/libc/gmon/mcount.c index cb02410cde5b..6ea3d3c87c04 100644 --- a/common/lib/libc/gmon/mcount.c +++ b/common/lib/libc/gmon/mcount.c @@ -1,4 +1,4 @@ -/* $NetBSD: mcount.c,v 1.11 2016/01/10 09:04:32 ryo Exp $ */ +/* $NetBSD: mcount.c,v 1.12 2016/01/11 01:57:12 christos Exp $ */ /* * Copyright (c) 2003, 2004 Wasabi Systems, Inc. @@ -76,7 +76,7 @@ #if 0 static char sccsid[] = "@(#)mcount.c 8.1 (Berkeley) 6/4/93"; #else -__RCSID("$NetBSD: mcount.c,v 1.11 2016/01/10 09:04:32 ryo Exp $"); +__RCSID("$NetBSD: mcount.c,v 1.12 2016/01/11 01:57:12 christos Exp $"); #endif #endif @@ -106,6 +106,16 @@ _MCOUNT_DECL(u_long, u_long) __used; #endif +/* XXX: make these interfaces */ +#ifdef _RUMPKERNEL +#undef MCOUNT_ENTER +#define MCOUNT_ENTER +#undef MCOUNT_EXIT +#define MCOUNT_EXIT +#undef MCOUNT +#define MCOUNT +#endif + /* * mcount is called on entry to each function compiled with the profiling * switch set. _mcount(), which is declared in a machine-dependent way