Index: head/lib/libc/mips/Symbol.map =================================================================== --- head/lib/libc/mips/Symbol.map +++ head/lib/libc/mips/Symbol.map @@ -11,6 +11,7 @@ /* PSEUDO syscalls */ _exit; + _mcount; _setjmp; _longjmp; alloca; Index: head/sys/mips/include/profile.h =================================================================== --- head/sys/mips/include/profile.h +++ head/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;" \