diff options
author | cognet <cognet@FreeBSD.org> | 2007-05-19 16:20:37 +0000 |
---|---|---|
committer | cognet <cognet@FreeBSD.org> | 2007-05-19 16:20:37 +0000 |
commit | 643c457209498033ae2cddd70831b39918d945f0 (patch) | |
tree | 8073a8d700645c5f2cdb83598b8526b69ed35f08 | |
parent | 087655728e86087d644d50678bf5f0f2816e2692 (diff) | |
download | FreeBSD-src-643c457209498033ae2cddd70831b39918d945f0.zip FreeBSD-src-643c457209498033ae2cddd70831b39918d945f0.tar.gz |
Use __mcount() instead of _mcount() to reduce diffs with NetBSD.
-rw-r--r-- | lib/libc/arm/Symbol.map | 2 | ||||
-rw-r--r-- | sys/arm/include/asm.h | 2 | ||||
-rw-r--r-- | sys/arm/include/profile.h | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/arm/Symbol.map b/lib/libc/arm/Symbol.map index a6c1302..428b51e 100644 --- a/lib/libc/arm/Symbol.map +++ b/lib/libc/arm/Symbol.map @@ -11,7 +11,7 @@ FBSD_1.0 { /* PSEUDO syscalls */ _exit; - _mcount; + __mcount; _setjmp; _longjmp; alloca; diff --git a/sys/arm/include/asm.h b/sys/arm/include/asm.h index 61d2a76..347a78e 100644 --- a/sys/arm/include/asm.h +++ b/sys/arm/include/asm.h @@ -80,7 +80,7 @@ #ifdef GPROF # define _PROF_PROLOGUE \ - mov ip, lr; bl _mcount + mov ip, lr; bl __mcount #else # define _PROF_PROLOGUE #endif diff --git a/sys/arm/include/profile.h b/sys/arm/include/profile.h index 81781bc..b640bf7 100644 --- a/sys/arm/include/profile.h +++ b/sys/arm/include/profile.h @@ -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 \ */ \ |