lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 1 | #include <link.h> |
2 | #include <dl-fptr.h> | ||||
3 | |||||
4 | #ifndef __ASSEMBLY__ | ||||
5 | extern 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); |