summaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-07-09 11:09:08 +0000
committerRoland McGrath <roland@gnu.org>1996-07-09 11:09:08 +0000
commit3dbe15814da9f55274105b9b305941e573499576 (patch)
treeecf16ade1932d33b5a96e9831545af9bb9ddda89 /sysdeps
parentd33f2ad4ab849eeffb2c3d19f1e81beed0592646 (diff)
Tue Jul 9 06:19:29 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* 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.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/generic/machine-gmon.h9
1 files changed, 5 insertions, 4 deletions
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