fixed more binutils issues (newer gcc/libc)
[zpugcc/jano.git] / toolchain / gcc / libgloss / iq2000 / crt1.c
blobfb333a871e0d2d404daa4d8719d24d72391be185
3 /* This object reserves enough space for an EH frame initialization
4 object. */
6 struct object {
7 void *reserve[7];
8 };
11 void _main ()
13 static int initialized;
14 static struct object object;
15 if (! initialized)
17 typedef void (*pfunc) ();
18 extern pfunc __ctors[];
19 extern pfunc __ctors_end[];
20 extern unsigned char __eh_frame_begin[];
21 extern void __register_frame_info (void *, struct object *);
23 pfunc *p;
25 initialized = 1;
26 for (p = __ctors_end; p > __ctors; )
27 (*--p) ();
29 __register_frame_info (__eh_frame_begin, &object);