Subversion Repositories Kolibri OS

Rev

Rev 4874 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4874 Rev 5963
Line 16... Line 16...
16
#include 
16
#include 
17
#include 
17
#include 
18
#include 
18
#include 
19
#include 
19
#include 
Line 20... Line -...
20
 
-
 
21
/*
-
 
22
typedef void (*ctp)();
-
 
23
static void __do_global_ctors ()
-
 
24
{
-
 
25
  extern int __CTOR_LIST__;
-
 
26
  int *c = &__CTOR_LIST__;
-
 
27
  c++;
-
 
28
  while (*c)
-
 
29
    {
-
 
30
      ctp d = (ctp)*c;
-
 
31
      (d)();
-
 
32
      c++;
-
 
33
    }
-
 
34
}
-
 
35
*/
-
 
36
 
20
 
37
void *load_libc();
-
 
38
//void __main (){};
-
 
39
 
21
void *load_libc();
Line 40... Line -...
40
void* get_entry_point(void *raw);
-
 
Line 41... Line 22...
41
 
22
void* get_entry_point(void *raw);
42
void _pei386_runtime_relocator (void){};
23
 
43
 
24
 
44
void  __attribute__((noreturn))
25
void  __attribute__((noreturn))
45
__crt_startup (void)
26
__crt_startup (void)
46
{
27
{
Line 47... Line -...
47
    struct   app_hdr *header;
-
 
48
    void    *img;
-
 
49
    void __attribute__((noreturn)) (*entry)(void *img);
28
    struct   app_hdr *header;
Line 50... Line 29...
50
 
29
    void    *img;
51
//    _pei386_runtime_relocator();
30
    void __attribute__((noreturn)) (*entry)(void *img);
52
 
31