Subject: port-sparc/10581: namespace pollution in profiled binaries (symbol "mcount")
To: None <gnats-bugs@gnats.netbsd.org>
From: None <itohy@netbsd.org>
List: netbsd-bugs
Date: 07/17/2000 22:21:22
>Number:         10581
>Category:       port-sparc
>Synopsis:       namespace pollution in profiled binaries (symbol "mcount")
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-sparc-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 13 22:59:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     ITOH Yasufumi
>Release:        1.5B (July 14, 2000)
>Organization:
	
>Environment:
	N/A

>Description:
	Profiled (cc -pg) object files on sparc use "mcount"
	for the special purpose.
	This is a good internal name for a.out, but not for ELF.

	The same problem exists on m68k.

>How-To-Repeat:
	Look at
		sys/arch/sparc/include/profile.h
		gnu/dist/gcc/config/sparc/*

>Fix:
	Change "mcount" to "__mcount" or something.

>Release-Note:
>Audit-Trail:
>Unformatted: