2000-02-17 11:39:52 -08:00
|
|
|
void __main ()
|
|
|
|
{
|
2001-08-29 06:26:32 -07:00
|
|
|
#ifndef __ELF__
|
2000-02-17 11:39:52 -08:00
|
|
|
static int initialized;
|
|
|
|
if (! initialized)
|
|
|
|
{
|
|
|
|
typedef void (*pfunc) ();
|
|
|
|
extern pfunc __ctors[];
|
|
|
|
extern pfunc __ctors_end[];
|
|
|
|
pfunc *p;
|
|
|
|
|
|
|
|
initialized = 1;
|
|
|
|
for (p = __ctors_end; p > __ctors; )
|
|
|
|
(*--p) ();
|
|
|
|
|
|
|
|
}
|
2001-08-29 06:26:32 -07:00
|
|
|
#endif
|
2000-02-17 11:39:52 -08:00
|
|
|
}
|