summary refs log tree commit diff
path: root/sysdeps/hppa/entry.h
blob: 5ea5b47448ceb2e7e3c4085a4c26ec14209c7314 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef __ASSEMBLY__
extern void _start (void);
#endif

/* Lives in libgcc.so and canonicalizes function pointers for comparison.  */
extern unsigned int __canonicalize_funcptr_for_compare (unsigned int fptr);

/* The function's entry point is stored in the first word of the
   function descriptor (plabel) of _start().  */
#define ENTRY_POINT __canonicalize_funcptr_for_compare((unsigned int)_start)

/* We have to provide a special declaration.  */
#define ENTRY_POINT_DECL(class) class void _start (void);