3
Copyright 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
5
This file is part of Cygwin.
7
This software is a copyrighted work licensed under the terms of the
8
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
12
* This file is taken from Cygwin distribution. Please keep it in sync.
13
* The differences should be within __MINGW32__ guard.
16
#include <sys/types.h>
20
#include <_bsd_types.h>
23
extern u_char etext asm ("etext");
24
extern u_char eprol asm ("__eprol");
25
extern void _mcleanup (void);
26
extern void monstartup (size_t, size_t);
27
void _monstartup (void) __attribute__((__constructor__));
29
/* startup initialization for -pg support */
36
/* Guard against multiple calls that may happen if DLLs are linked
37
with profile option set as well. Addede side benefit is that it
38
makes profiling backward compatible (GCC used to emit a call to
39
_monstartup when compiling main with profiling enabled). */
43
monstartup ((size_t) &eprol, (size_t) &etext);