3 Copyright 1998 Cygnus Solutions.
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
11 #include <sys/types.h>
14 extern u_char etext asm ("etext");
15 extern u_char eprol asm ("__eprol");
16 extern void _mcleanup (void);
17 extern void monstartup (u_long, u_long);
19 void _monstartup (void) __attribute__((__constructor__));
21 /* startup initialization for -pg support */
28 /* Guard against multiple calls that may happen if DLLs are linked
29 with profile option set as well. Addede side benefit is that it
30 makes profiling backward compatible (GCC used to emit a call to
31 _monstartup when compiling main with profiling enabled). */
35 monstartup ((u_long) &eprol, (u_long) &etext);