entry.h 368 B

12345678910111213
  1. #include <link.h>
  2. #include <dl-fptr.h>
  3. #ifndef __ASSEMBLY__
  4. extern void _start (void);
  5. #endif
  6. /* The function's entry point is stored in the first word of the
  7. function descriptor (plabel) of _start(). */
  8. #define ENTRY_POINT ELF_PTR_TO_FDESC (_start)->ip
  9. /* We have to provide a special declaration. */
  10. #define ENTRY_POINT_DECL(class) class void _start (void);