Last change
on this file since 444 was
444,
checked in by satin@…, 6 years ago
|
add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc
|
File size:
293 bytes
|
Line | |
---|
1 | void __main () |
---|
2 | { |
---|
3 | #ifndef __ELF__ |
---|
4 | static int initialized; |
---|
5 | if (! initialized) |
---|
6 | { |
---|
7 | typedef void (*pfunc) (); |
---|
8 | extern pfunc __ctors[]; |
---|
9 | extern pfunc __ctors_end[]; |
---|
10 | pfunc *p; |
---|
11 | |
---|
12 | initialized = 1; |
---|
13 | for (p = __ctors_end; p > __ctors; ) |
---|
14 | (*--p) (); |
---|
15 | |
---|
16 | } |
---|
17 | #endif |
---|
18 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.