PR/3015909 Fix export symbol of mcount function.
GCC expects the mcount function to always have a leading underscore.
This adds an extra underscore to the internal mcount function to
prevent name collisions, and also exports the externally visible
symbol always as _mcount.
mingw-w64-headers/include:
2010-06-16 Doug Semler <dougsemler@gmail.com>
* profile.h: Rename _mcount to _mcount_private to make it obvious.
Declare public _mcount here.
mingw-w64-crt:
2010-06-16 Doug Semler <dougsemler@gmail.com>
* profile/mcountFunc.S: Export _mcount always with single underscore.
(_mcount): Call renamed internal function.
* profile/mcount.c: Remove extern declaration and move to profile.h
git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@2552 4407c894-4637-0410-b4f5-ada5f102cad1
5 files changed