Subject: port-alpha/10582: namespace pollution in profiled libc (symbol "mcount")
To: None <gnats-bugs@gnats.netbsd.org>
From: None <itohy@netbsd.org>
List: netbsd-bugs
Date: 07/17/2000 20:49:06
>Number:         10582
>Category:       port-alpha
>Synopsis:       namespace pollution in profiled libc (symbol "mcount")
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-alpha-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 13 23:04:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     ITOH Yasufumi
>Release:        1.5B (July 14, 2000)
>Organization:
	
>Environment:
	Broke down (;_;)


>Description:
	Profiled (cc -pg) libc has global symbol "mcount",
	which pollutes user namespace.

>How-To-Repeat:
	Look at sys/arch/alpha/include/profile.h.

>Fix:
--- sys/arch/alpha/include/profile.h.orig	Sat Aug 30 17:40:33 1997
+++ sys/arch/alpha/include/profile.h	Fri Jul 14 14:54:56 2000
@@ -27,7 +27,7 @@
  * rights to redistribute these changes.
  */
 
-#define	_MCOUNT_DECL	void mcount
+#define	_MCOUNT_DECL	static void mcount
 
 #if 0
 /*
>Release-Note:
>Audit-Trail:
>Unformatted: