From 3dbe15814da9f55274105b9b305941e573499576 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 9 Jul 1996 11:09:08 +0000 Subject: Tue Jul 9 06:19:29 1996 Roland McGrath * sysdeps/generic/machine-gmon.h [NO_UNDERSCORES]: Declare _mcount before using it in lhs of weak_alias. * nss/getXXent_r.c (setup): New function, broken out of SETFUNC_NAME. Call __nss_lookup when not setting STARTP. (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Call it to set up for function-calling loop. --- sysdeps/generic/machine-gmon.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'sysdeps/generic/machine-gmon.h') diff --git a/sysdeps/generic/machine-gmon.h b/sysdeps/generic/machine-gmon.h index 3c6fb68cfd..80ee97fcc3 100644 --- a/sysdeps/generic/machine-gmon.h +++ b/sysdeps/generic/machine-gmon.h @@ -31,6 +31,11 @@ Cambridge, MA 02139, USA. */ /* The asm symbols for C functions are `_function'. The canonical name for the counter function is `mcount', no _. */ void _mcount (void) asm ("mcount"); +#else +/* 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) #endif #define _MCOUNT_DECL(frompc, selfpc) \ @@ -42,7 +47,3 @@ void _mcount (void) \ mcount_internal ((u_long) __builtin_return_address (0), \ (u_long) __builtin_return_address (1)); \ } - -#ifdef NO_UNDERSCORES -weak_alias (_mcount, mcount) -#endif -- cgit 1.4.1