3 This file is part of Cygwin.
5 This software is a copyrighted work licensed under the terms of the
6 Cygwin license. Please consult the file "CYGWIN_LICENSE" for
10 * This file is taken from Cygwin distribution. Please keep it in sync.
11 * The differences should be within __MINGW32__ guard.
14 #include <sys/types.h>
18 #include <_bsd_types.h>
21 extern uint8_t etext
asm ("etext");
22 extern uint8_t eprol
asm ("__eprol");
23 extern void _mcleanup (void);
24 extern void monstartup (size_t, size_t);
25 void _monstartup (void) __attribute__((__constructor__
));
27 /* startup initialization for -pg support */
34 /* Guard against multiple calls that may happen if DLLs are linked
35 with profile option set as well. Addede side benefit is that it
36 makes profiling backward compatible (GCC used to emit a call to
37 _monstartup when compiling main with profiling enabled). */
41 monstartup ((size_t) &eprol
, (size_t) &etext
);