Back to index

glibc  2.9
Defines | Functions
entry.h File Reference

Go to the source code of this file.

Defines

#define ENTRY_POINT   __start

Functions

void __start (void)

Define Documentation

#define ENTRY_POINT   __start

Definition at line 5 of file entry.h.


Function Documentation

void __start ( void  )

Definition at line 60 of file start.c.

{
  int argc;
  char **argv, **envp;

  /* Set up the global pointer.  */
  asm volatile ("la $28,_gp");
  argc = ((int *) sp)[STACKSIZE];
  argv = (char **) &((int *) sp)[STACKSIZE + 1];
  envp = &argv[argc + 1];
  __environ = envp;

  __libc_init (argc, argv, envp);
  errno = 0;
  exit (main (argc, argv, envp));
}

Here is the call graph for this function: