Use __mcount() instead of _mcount() to reduce diffs with NetBSD.
This commit is contained in:
parent
087655728e
commit
643c457209
@ -11,7 +11,7 @@ FBSD_1.0 {
|
||||
/* PSEUDO syscalls */
|
||||
_exit;
|
||||
|
||||
_mcount;
|
||||
__mcount;
|
||||
_setjmp;
|
||||
_longjmp;
|
||||
alloca;
|
||||
|
@ -80,7 +80,7 @@
|
||||
|
||||
#ifdef GPROF
|
||||
# define _PROF_PROLOGUE \
|
||||
mov ip, lr; bl _mcount
|
||||
mov ip, lr; bl __mcount
|
||||
#else
|
||||
# define _PROF_PROLOGUE
|
||||
#endif
|
||||
|
@ -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 \
|
||||
*/ \
|
||||
|
Loading…
Reference in New Issue
Block a user