From bf37253a5d69e1706f6287e376376ce7d0050965 Mon Sep 17 00:00:00 2001 From: Philip Guenther Date: Sat, 7 May 2016 19:30:54 +0000 Subject: Declare moncontrol(3) APIs in Export _gmonparam again. Make gcrt0.o use an reserved name for _monstartup() ok millert@ --- lib/csu/crt0.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lib/csu') diff --git a/lib/csu/crt0.c b/lib/csu/crt0.c index 3b82f6a323e..64ec4dbdef0 100644 --- a/lib/csu/crt0.c +++ b/lib/csu/crt0.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crt0.c,v 1.6 2016/03/20 02:32:39 guenther Exp $ */ +/* $OpenBSD: crt0.c,v 1.7 2016/05/07 19:30:53 guenther Exp $ */ /* * Copyright (c) 1995 Christopher G. Demetriou @@ -55,8 +55,7 @@ static void ___start(MD_START_ARGS) __used; char ***_csu_finish(char **_argv, char **_envp, void (*_cleanup)(void)); #ifdef MCRT0 -extern void monstartup(u_long, u_long); -extern void _mcleanup(void); +#include extern unsigned char _etext, _eprol; #endif /* MCRT0 */ @@ -86,7 +85,7 @@ MD_START(MD_START_ARGS) #ifdef MCRT0 atexit(_mcleanup); - monstartup((u_long)&_eprol, (u_long)&_etext); + _monstartup((u_long)&_eprol, (u_long)&_etext); #endif __init(); -- cgit v1.2.3