2000-02-18 03:39:52 +08:00
|
|
|
void __main ()
|
|
|
|
{
|
2001-08-29 21:26:32 +08:00
|
|
|
#ifndef __ELF__
|
2000-02-18 03: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 21:26:32 +08:00
|
|
|
#endif
|
2000-02-18 03:39:52 +08:00
|
|
|
}
|