f0556e70bb
_mcount() stub when profiling is enabled. Emit this code sequence for assembly routines as welli (MCOUNT definition in <machine/asm.h>. We do not pass the GOT entry however as the 4th argument, because it's not used. The _mcount() stub calls __mcount(), which does the actual work. Define _MCOUNT_DECL to define __mcount. We do not have an implementation of mcount(), so we define MCOUNT as empty, but have a weak alias to _mcount() in _mcount.S. Note that the _mcount() stub in the kernel is slightly different from the stub in userland. This is because we do not have to worry about nested routines in the kernel.
12 lines
428 B
Makefile
12 lines
428 B
Makefile
# $FreeBSD$
|
|
|
|
SRCS+= __divdf3.S __divdi3.S __divsf3.S __divsi3.S __moddi3.S __modsi3.S \
|
|
__udivdi3.S __udivsi3.S __umoddi3.S __umodsi3.S _mcount.S _set_tp.c \
|
|
_setjmp.S fabs.S flt_rounds.c fpgetmask.c fpgetround.c fpsetmask.c \
|
|
fpsetround.c infinity.c ldexp.c makecontext.c modf.c setjmp.S \
|
|
signalcontext.c sigsetjmp.S
|
|
|
|
# The following may go away if function _Unwind_FindTableEntry()
|
|
# will be part of GCC.
|
|
SRCS+= unwind.c
|