2013-03-10 12:49:29 +01:00
|
|
|
#include <link.h>
|
|
|
|
#include <dl-fptr.h>
|
|
|
|
|
2012-04-17 04:02:27 +02:00
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
extern void _start (void);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* The function's entry point is stored in the first word of the
|
|
|
|
function descriptor (plabel) of _start(). */
|
2013-03-10 12:49:29 +01:00
|
|
|
#define ENTRY_POINT ELF_PTR_TO_FDESC (_start)->ip
|
2012-04-17 04:02:27 +02:00
|
|
|
|
|
|
|
/* We have to provide a special declaration. */
|
|
|
|
#define ENTRY_POINT_DECL(class) class void _start (void);
|