aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/hppa/entry.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/hppa/entry.h')
-rw-r--r--sysdeps/hppa/entry.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sysdeps/hppa/entry.h b/sysdeps/hppa/entry.h
index b024db2be7..5ea5b47448 100644
--- a/sysdeps/hppa/entry.h
+++ b/sysdeps/hppa/entry.h
@@ -2,9 +2,12 @@
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(_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);