20000317 sourceware import
This commit is contained in:
16
libgloss/mn10300/crt1.c
Normal file
16
libgloss/mn10300/crt1.c
Normal file
@@ -0,0 +1,16 @@
|
||||
void __main ()
|
||||
{
|
||||
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) ();
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user