diff options
-rw-r--r-- | gnu/egcs/gcc/config/i386/openbsdelf.h | 2 | ||||
-rw-r--r-- | sys/arch/i386/include/profile.h | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/gnu/egcs/gcc/config/i386/openbsdelf.h b/gnu/egcs/gcc/config/i386/openbsdelf.h index 1fee2094377..c15884facf7 100644 --- a/gnu/egcs/gcc/config/i386/openbsdelf.h +++ b/gnu/egcs/gcc/config/i386/openbsdelf.h @@ -188,7 +188,7 @@ Boston, MA 02111-1307, USA. */ The icky part is not here, but in machine/profile.h. */ #undef FUNCTION_PROFILER #define FUNCTION_PROFILER(FILE, LABELNO) \ - fputs (flag_pic ? "\tcall mcount@PLT\n": "\tcall mcount\n", FILE); + fputs (flag_pic ? "\tcall __mcount@PLT\n": "\tcall __mcount\n", FILE); /* Assembler format: exception region output. */ diff --git a/sys/arch/i386/include/profile.h b/sys/arch/i386/include/profile.h index 55fa3628456..6af9f37b5e6 100644 --- a/sys/arch/i386/include/profile.h +++ b/sys/arch/i386/include/profile.h @@ -1,4 +1,4 @@ -/* $OpenBSD: profile.h,v 1.8 2003/06/02 23:27:47 millert Exp $ */ +/* $OpenBSD: profile.h,v 1.9 2003/08/21 05:08:15 drahn Exp $ */ /* $NetBSD: profile.h,v 1.6 1995/03/28 18:17:08 jtc Exp $ */ /* @@ -35,7 +35,8 @@ #define _MCOUNT_DECL static __inline void _mcount #define MCOUNT \ -extern void mcount(void) __asm("mcount"); \ +extern void mcount(void) __asm("__mcount"); \ +__weak_alias(mcount,__mcount); \ void \ mcount() \ { \ |