lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 1 | #ifndef __ASSEMBLY__ |
| 2 | extern void _start (void); |
| 3 | #endif |
| 4 | |
| 5 | /* Lives in libgcc.so and canonicalizes function pointers for comparison. */ |
| 6 | extern unsigned int __canonicalize_funcptr_for_compare (unsigned int fptr); |
| 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 __canonicalize_funcptr_for_compare((unsigned int)_start) |
| 11 | |
| 12 | /* We have to provide a special declaration. */ |
| 13 | #define ENTRY_POINT_DECL(class) class void _start (void); |