changes instantiation to mt

This commit is contained in:
2025-08-15 11:50:42 +02:00
parent 95db3ffc81
commit 24a796cf54
6 changed files with 125 additions and 2 deletions

9
src/mcount.c Normal file
View File

@@ -0,0 +1,9 @@
/* The canonical name for the function is `_mcount' in both C and asm,
but some old asm code might assume it's `mcount'. */
void _mcount (void);
weak_alias (_mcount, mcount);
void _mcount (void)
{
mcount_internal ((u_long) __builtin_return_address (1), (u_long) __builtin_return_address(0));
}