Index: lib/libc/mips/Symbol.map =================================================================== --- lib/libc/mips/Symbol.map +++ lib/libc/mips/Symbol.map @@ -11,6 +11,7 @@ /* PSEUDO syscalls */ _exit; + _mcount; _setjmp; _longjmp; alloca; Index: sys/mips/include/profile.h =================================================================== --- sys/mips/include/profile.h +++ sys/mips/include/profile.h @@ -46,7 +46,8 @@ /*XXX This is not MIPS64 safe. */ #define MCOUNT \ - __asm(".globl _mcount;" \ + __asm(".text;" \ + ".globl _mcount;" \ ".type _mcount,@function;" \ "_mcount:;" \ ".set noreorder;" \