2004-04-19 08:48:59 +02:00
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
extern void _start (void);
|
|
|
|
#endif
|
|
|
|
|
2015-02-06 03:33:03 +01:00
|
|
|
/* Lives in libgcc.so and canonicalizes function pointers for comparison. */
|
|
|
|
extern unsigned int __canonicalize_funcptr_for_compare (unsigned int fptr);
|
|
|
|
|
2004-04-19 08:48:59 +02:00
|
|
|
/* The function's entry point is stored in the first word of the
|
|
|
|
function descriptor (plabel) of _start(). */
|
2015-02-06 03:33:03 +01:00
|
|
|
#define ENTRY_POINT __canonicalize_funcptr_for_compare((unsigned int)_start)
|
2004-04-19 08:48:59 +02:00
|
|
|
|
|
|
|
/* We have to provide a special declaration. */
|
|
|
|
#define ENTRY_POINT_DECL(class) class void _start (void);
|