Use __mcount() instead of _mcount() to reduce diffs with NetBSD.

This commit is contained in:
cognet 2007-05-19 16:20:37 +00:00
parent 087655728e
commit 643c457209
3 changed files with 5 additions and 5 deletions

View File

@ -11,7 +11,7 @@ FBSD_1.0 {
/* PSEUDO syscalls */
_exit;
_mcount;
__mcount;
_setjmp;
_longjmp;
alloca;

View File

@ -80,7 +80,7 @@
#ifdef GPROF
# define _PROF_PROLOGUE \
mov ip, lr; bl _mcount
mov ip, lr; bl __mcount
#else
# define _PROF_PROLOGUE
#endif

View File

@ -61,9 +61,9 @@ typedef u_long fptrdiff_t;
#define MCOUNT \
__asm__(".text"); \
__asm__(".align 0"); \
__asm__(".type _mcount ,%function"); \
__asm__(".global _mcount"); \
__asm__("_mcount:"); \
__asm__(".type __mcount ,%function"); \
__asm__(".global __mcount"); \
__asm__("__mcount:"); \
/* \
* Preserve registers that are trashed during mcount \
*/ \