blob: e11b49fc53602eb8a0524119a49da9a9deb83f9f [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#include <link.h>
2#include <dl-fptr.h>
3
4#ifndef __ASSEMBLY__
5extern void _start (void);
6#endif
7
8/* The function's entry point is stored in the first word of the
9 function descriptor (plabel) of _start(). */
10#define ENTRY_POINT ELF_PTR_TO_FDESC (_start)->ip
11
12/* We have to provide a special declaration. */
13#define ENTRY_POINT_DECL(class) class void _start (void);