blob: 5ea5b47448ceb2e7e3c4085a4c26ec14209c7314 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#ifndef __ASSEMBLY__
2extern void _start (void);
3#endif
4
5/* Lives in libgcc.so and canonicalizes function pointers for comparison. */
6extern 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);